/* Integrators Resource - site.css
   Hand-written, no framework, no webfonts, no third-party requests.
   Bump ?v= in index.html, 404.html and contact.php whenever this file changes. */

:root {
  --ink: #0e1621;          /* dark sections, body text */
  --ink-2: #16212e;
  --ink-3: #213042;
  --paper: #f7f6f2;        /* warm off-white page */
  --card: #ffffff;
  --tint: #efede6;
  --line: #e2ded4;
  --line-dark: #2a3a4e;
  --text: #182230;
  --muted: #566170;        /* 6.0:1 on paper */
  --muted-dark: #a9b4c2;   /* on ink */
  --amber: #f2a81d;        /* accent: fills and dark backgrounds only */
  --amber-deep: #c9860a;
  --amber-ink: #8a5800;    /* amber that can carry text on light (6.1:1 on white) */
  --obsidian: #7c6cf0;
  --morf: #19a9b6;
  --ok: #1d7a46;
  --err: #b42318;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(14, 22, 33, .06), 0 8px 24px -12px rgba(14, 22, 33, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 14px; }
.section-dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.btn-primary:hover { background: #f6b843; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 22, 33, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-name { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.brand-name b { font-weight: 750; margin-left: .28em; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: #d6dde6; text-decoration: none; font-size: .9688rem; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: #fff; }
.nav a.nav-cta { color: var(--ink); background: var(--amber); padding: 8px 18px; border-radius: 999px; font-weight: 650; }
.nav a.nav-cta:hover { background: #f6b843; color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: transparent; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s ease; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Without JS the nav simply wraps under the brand; with JS it collapses behind the toggle. */
@media (max-width: 860px) {
  .top-row { flex-wrap: wrap; row-gap: 0; }
  .nav { flex-wrap: wrap; gap: 6px 18px; margin-left: 0; padding-bottom: 12px; width: 100%; }
  .js .nav-toggle { display: block; }
  .js .nav { display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 16px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .js .nav a.nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; padding: 12px 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242, 168, 29, .16), transparent 60%),
    radial-gradient(700px 520px at -10% 110%, rgba(124, 108, 240, .14), transparent 60%),
    var(--ink);
  padding: 88px 0 96px;
}
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 750; }
.hero h1 span { display: block; color: var(--amber); }
.lede { margin-top: 22px; font-size: 1.1875rem; color: #c9d2dd; max-width: 38em; }
.lede strong { color: #fff; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted-dark); font-size: .9375rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 168, 29, .18); flex-shrink: 0; }

/* hero app shelf */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--ink-2), #111a26); border: 1px solid var(--line-dark); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.shelf-app { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 10px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-dark); }
.shelf-app img, .shelf-tile { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 10px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8); }
.shelf-tile { display: grid; place-items: center; background: #fff; }
.shelf-tile img { width: 64px; height: 64px; margin: 0; box-shadow: none; border-radius: 0; }
.shelf-app b { font-size: .9688rem; font-weight: 700; }
.shelf-app small { font-size: .8125rem; color: #9fabba; }
@media (max-width: 520px) { .shelf { padding: 14px; gap: 10px; } .shelf-app img, .shelf-tile { width: 64px; height: 64px; border-radius: 16px; } .shelf-tile img { width: 46px; height: 46px; } .shelf-app b { font-size: .875rem; } }

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-visual { max-width: 560px; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* app cards */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app { --c: var(--amber-deep); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
#onyx-softphone { --c: #3d7be0; }
#obsidian-mail { --c: var(--obsidian); }
#morf { --c: var(--morf); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 8px 18px -10px rgba(14, 22, 33, .55); }
.app-icon-tile { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.app-icon-tile img { width: 48px; height: 48px; }
.app h3 { font-size: 1.5rem; font-weight: 750; }
.app-kind { font-size: .9063rem; color: var(--muted); font-weight: 500; }
.platforms { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li { font-size: .8125rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.platforms li.soon { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.app-lede { margin-top: 16px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: .9688rem; color: #2c3746; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, #fff); }
.ticks li::after { content: ""; position: absolute; left: 4.5px; top: calc(.42em + 4px); width: 6px; height: 3.5px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.ticks b { color: var(--text); font-weight: 650; }
.app-note { margin-top: auto; padding-top: 20px; font-size: .9063rem; color: var(--muted); }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.app-links a { font-size: .9375rem; font-weight: 650; color: var(--amber-ink); text-underline-offset: 3px; }
@media (max-width: 1020px) { .apps { grid-template-columns: minmax(0, 1fr); max-width: 720px; } }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.why { background: var(--ink); padding: 30px 28px; }
.why h3 { font-size: 1.1875rem; font-weight: 700; color: #fff; padding-top: 16px; position: relative; }
.why h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--amber); }
.why p { margin-top: 10px; color: var(--muted-dark); font-size: 1rem; }
.why a { color: #fff; text-decoration-color: rgba(242, 168, 29, .7); text-underline-offset: 3px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* inner pages: support + privacy */
.page-head { background: var(--ink); color: #fff; padding: 72px 0 64px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; }
.page-head .lede a { color: #fff; text-decoration-color: rgba(242, 168, 29, .7); text-underline-offset: 3px; overflow-wrap: anywhere; }
.help-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.help-list li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9688rem; color: #2c3746; }
.help-list b { color: var(--text); }
.contact-copy .privacy-note { margin-top: 18px; }
.privacy-note a { color: var(--amber-ink); font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; }
.toc-h { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--text); text-decoration: none; font-size: .9375rem; padding: 6px 10px; border-radius: 8px; border-left: 2px solid var(--line); }
.toc a:hover { background: var(--tint); border-left-color: var(--amber-deep); }
.prose { max-width: 760px; }
.prose section { scroll-margin-top: 90px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: 1.75rem; font-weight: 750; margin-bottom: 14px; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 24px 0 10px; }
.prose p { margin: 12px 0 0; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 9px; }
.prose li::marker { color: var(--amber-deep); }
.prose a { color: var(--amber-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc-h { width: 100%; margin-bottom: 2px; }
  .toc a { border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 999px; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; }
.contact-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.contact-copy .contact-direct { color: var(--text); }
.contact-direct a { color: var(--amber-ink); font-weight: 650; overflow-wrap: anywhere; }
.privacy-note { font-size: .9375rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
@media (max-width: 560px) { .form { padding: 22px 18px; } }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: .9375rem; font-weight: 600; color: var(--text); padding: 0; }
.field legend { margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fcfbf8;
  border: 1px solid #cfc9bc; border-radius: 12px; padding: 11px 14px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(242, 168, 29, .3); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { font-size: .875rem; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { font-size: .9688rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--err); }

/* footer */
.foot { background: var(--ink); color: var(--muted-dark); padding: 40px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.brand-foot .brand-name { font-size: 1rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { text-decoration: none; font-size: .9375rem; }
.foot-nav a:hover { color: #fff; }
.copy { width: 100%; font-size: .875rem; color: #7d8a9b; border-top: 1px solid var(--line-dark); padding-top: 20px; }

/* simple page (404, no-JS form result) */
.page-simple { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.page-simple h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; }
.page-simple p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.page-simple .btn { margin-top: 28px; }

/* scroll reveal (only when JS has marked the page) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media print {
  .top, .hero::before, .hero-visual, .form, .nav-toggle { display: none !important; }
  .hero, .section-dark, .foot { background: none; color: #000; }
  .why { background: none; }
  .why h3, .why p, .lede, .lede strong { color: #000; }
}
