/* ============================================================================
   Signum.io — design system
   Brand Guidelines Edition 01 · Concept: Aperture
   Two-colour discipline: Ink on Bone (day) · Bone on Ink (night).
   ========================================================================== */

/* --- tokens: day (Ink on Bone) is the default ---------------------------- */
:root {
  --ink: #161410;
  --bone: #f5f0e6;
  --bone-deep: #ede7dc;
  --ink-soft: #5a544a;
  --reserve: #6b3a1f;   /* oxblood — daytime accent */
  --gold: #c9a24a;      /* old gold — night accent / ceremonial */

  /* semantic, theme-aware */
  --bg: var(--bone);
  --bg-deep: var(--bone-deep);
  --surface: #fbf8f1;
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --accent: var(--reserve);
  --line: rgba(22, 20, 16, 0.14);
  --line-soft: rgba(22, 20, 16, 0.08);
  --shadow: 0 1px 0 rgba(22, 20, 16, 0.04);

  /* type */
  --display: "Italiana", Georgia, serif;   /* logo wordmark only */
  --heading: "Fraunces", "Cormorant Garamond", Georgia, serif;  /* all headings */
  --italic: "Fraunces", Georgia, serif;
  --quote: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Space Grotesk", ui-monospace, monospace;

  /* rhythm */
  --wrap: 1180px;
  --gap: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --radius: 4px;
}

/* --- tokens: night (Bone on Ink) ---------------------------------------- */
:root[data-theme="dark"] {
  --bg: var(--ink);
  --bg-deep: #1d1a15;
  --surface: #211d18;
  --text: var(--bone);
  --text-soft: #b6afa2;
  --accent: var(--gold);
  --line: rgba(245, 240, 230, 0.16);
  --line-soft: rgba(245, 240, 230, 0.08);
  --shadow: none;
}

/* No-JS / first paint: honour the OS preference automatically. The inline
   head script overrides this with the resolved data-theme to avoid FOUC. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --bg-deep: #1d1a15;
    --surface: #211d18;
    --text: var(--bone);
    --text-soft: #b6afa2;
    --accent: var(--gold);
    --line: rgba(245, 240, 230, 0.16);
    --line-soft: rgba(245, 240, 230, 0.08);
    --shadow: none;
  }
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* +20% base for hi-res readability — the site is rem/clamp-based, so every
   type size scales proportionally from here. */
html { font-size: 120%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  /* Body sits at 400 (regular) for legibility — light 300 reads thin at
     paragraph sizes, especially Bone-on-Ink. Weight 300 is kept for large
     display/lead text where size carries it. */
  font-weight: 400;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}
/* Dark text on light reads fine at 400; on Ink, antialiasing thins type, so
   nudge body emphasis to 500 rather than relying on faux-bold. */
strong, b { font-weight: 600; }
:root[data-theme="dark"] body { letter-spacing: 0.006em; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- typography ---------------------------------------------------------- */
/* Headings are Fraunces (one of the brand families) — substantial and
   readable where Italiana read too thin. Italiana is reserved for the logo. */
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.005em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.9rem); }
h2 { font-size: clamp(1.95rem, 1.3rem + 2.8vw, 2.95rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: 0; }

.em { font-family: var(--italic); font-style: italic; font-weight: 400; }
/* the italic accent inside a heading carries the heading's weight */
h1 .em, h2 .em, h3 .em { font-weight: 500; }
.io { font-family: var(--italic); font-style: italic; font-weight: 300;
      font-size: 0.44em; vertical-align: 0.5em; color: var(--text-soft); }

.eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 300; color: var(--text-soft); line-height: 1.55; }

.quote {
  font-family: var(--quote);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.32;
  color: var(--text);
}

/* --- layout -------------------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--deep { background: var(--bg-deep); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; }
.hr { height: 1px; background: var(--line); border: 0; }

/* --- nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease, background-color 0.4s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.15rem; }
.nav.is-scrolled .nav-inner { padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.4rem; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--text-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-auto, .theme-toggle .i-light, .theme-toggle .i-dark { display: none; }
.theme-toggle[data-mode="auto"] .i-auto,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

.nav-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line);
  border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; font-size: 1.1rem; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--label); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--text); transition: all 0.22s ease; white-space: nowrap;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: transparent; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.72rem; }

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-assure { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.85rem 2.4rem;
  margin-top: 2.4rem;
  font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.hero-assure span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-assure span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 560px) { .hero-assure { grid-template-columns: 1fr; } }

/* hero mark */
.hero-mark { display: grid; place-items: center; }
.hero-mark svg { width: min(78%, 360px); height: auto; color: var(--text); }
.aperture-ring { fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-dasharray: 500 36; stroke-dashoffset: 62; transform: rotate(-58deg); transform-origin: 100px 100px; }
.aperture-s { fill: currentColor; }
.animate-aperture .aperture-ring {
  stroke-dasharray: 540 0; stroke-dashoffset: 540;
  animation: seal 1.6s cubic-bezier(0.7, 0, 0.2, 1) 0.2s forwards;
}
@keyframes seal {
  to { stroke-dasharray: 500 36; stroke-dashoffset: 62; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-aperture .aperture-ring { animation: none; stroke-dasharray: 500 36; stroke-dashoffset: 62; }
}

/* --- triad (Signal · Sign · Seal) --------------------------------------- */
.triad { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .triad { grid-template-columns: repeat(3, 1fr); } }
.triad-item { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.triad-item .lat { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-soft); display: block; margin: 0.5rem 0 0.9rem; }
.triad-item h3 { font-family: var(--italic); font-style: italic; font-size: 1.9rem; color: var(--accent); }
.triad-item p { margin-top: 0.6rem; color: var(--text-soft); }
.triad-num { font-family: var(--label); font-size: 0.72rem; color: var(--text-soft); }

/* --- feature panels (platform tour) ------------------------------------- */
.panel { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.panel + .panel { border-top: 1px solid var(--line-soft); }
@media (min-width: 860px) {
  .panel { grid-template-columns: 1fr 1fr; }
  .panel--mirror .panel-media { order: 2; }
}
.panel-copy .eyebrow { display: block; margin-bottom: 0.9rem; }
.panel-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 0.9rem; }
.panel-copy p { color: var(--text-soft); }
.panel-proof { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--quote); font-style: italic; font-size: 1.2rem; color: var(--text); }

/* --- product mock -------------------------------------------------------- */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-url { margin-left: 0.6rem; font-family: var(--label); font-size: 0.7rem; color: var(--text-soft); letter-spacing: 0.04em; }
.mock-body { padding: 0.4rem 0.9rem 0.9rem; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .t { font-family: var(--heading); font-size: 1.05rem; }
.mock-row .s { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--text-soft); text-transform: uppercase; margin-top: 0.2rem; }
.chip { font-family: var(--label); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
.chip--ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.chip--stale { color: var(--text-soft); border-style: dashed; }

/* --- trust strip --------------------------------------------------------- */
.trust { text-align: center; }
.trust .eyebrow { display: block; margin-bottom: 1.8rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 0.9rem; }
.logo-chip { font-family: var(--heading); font-size: 1.05rem; color: var(--text-soft);
  padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.6rem; }
.badge { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); padding: 0.45rem 0.9rem; border: 1px solid var(--accent); border-radius: 4px; }

/* --- customer evidence --------------------------------------------------- */
.evidence { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 820px) { .evidence { grid-template-columns: 0.8fr 1.2fr; } }
.evidence .metric { font-family: var(--heading); font-size: clamp(3rem, 2rem + 6vw, 5.5rem); line-height: 1; color: var(--accent); }
.evidence .metric small { display: block; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-soft); margin-top: 0.8rem; }
.evidence blockquote { border-left: 2px solid var(--accent); padding-left: 1.4rem; }
.evidence cite { display: block; margin-top: 1.1rem; font-style: normal; font-family: var(--label);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }

/* --- integrations grid --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--text-soft); cursor: pointer; transition: all 0.2s; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.int-tile { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.2s, transform 0.2s; }
.int-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.int-tile .name { font-family: var(--heading); font-size: 1.15rem; }
.int-tile .cat { font-family: var(--label); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.3rem; }
.int-tile[hidden] { display: none; }

/* --- pricing ------------------------------------------------------------- */
.price-grid { display: grid; gap: var(--gap); }
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; }
.price-card--feature { border-color: var(--accent); position: relative; }
.price-card--feature::before { content: "Most chosen"; position: absolute; top: -0.7rem; left: 1.8rem;
  font-family: var(--label); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--bone); padding: 0.25rem 0.6rem; border-radius: 3px; }
.price-card h3 { font-family: var(--heading); font-size: 1.6rem; }
.price-card .amt { font-family: var(--heading); font-size: 2.6rem; margin: 0.8rem 0 0.2rem; }
.price-card .amt span { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.price-card .desc { color: var(--text-soft); font-size: 0.95rem; min-height: 2.8em; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.6rem; }
.price-card li { padding-left: 1.3rem; position: relative; font-size: 0.95rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); }
.price-card .btn { margin-top: auto; justify-content: center; }

/* --- spec / security table ---------------------------------------------- */
.spec { display: grid; gap: 0; }
.spec-row { display: grid; gap: 0.4rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .spec-row { grid-template-columns: 0.8fr 2fr; } }
.spec-row dt { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.spec-row dd { color: var(--text-soft); }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; margin-top: 1.6rem; }
.reg-grid span { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); padding: 0.6rem 0.8rem; border: 1px solid var(--line-soft); border-radius: var(--radius); }

/* --- closing CTA --------------------------------------------------------- */
.closing { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.closing .mark { width: 64px; height: 64px; margin: 0 auto 2rem; color: var(--text); }
.closing h2 { max-width: 22ch; margin: 0 auto 2rem; }
.closing .btn { margin-inline: auto; }

/* --- footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 1rem; font-weight: 500; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--text-soft); font-size: 0.92rem; }
.footer a:hover { color: var(--text); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-soft); font-size: 0.92rem; max-width: 26rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-family: var(--label);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }

/* --- reveal-on-scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- mobile nav ---------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.2rem 1.2rem;
    transform: translateY(-120%); transition: transform 0.3s ease; margin-left: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-links .btn { margin-top: 0.8rem; justify-content: center; }
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* --- real product screenshots ------------------------------------------- */
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0e1726; box-shadow: var(--shadow); }
.shot .mock-bar { background: color-mix(in srgb, #0e1726 80%, #000); border-bottom-color: rgba(255,255,255,0.08); }
.shot .mock-bar i { background: rgba(255,255,255,0.18); }
.shot .mock-url { color: rgba(255,255,255,0.55); }
.shot img { display: block; width: 100%; height: auto; }
.nav-links a.active { color: var(--text); }

/* --- subpage hero -------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero .eyebrow { display: block; margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1.4rem; max-width: 42rem; }

/* --- prose / article ----------------------------------------------------- */
.prose { max-width: 44rem; }
.prose p { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.dropcap::first-letter { font-family: var(--heading); font-size: 3.4em; line-height: 0.8;
  float: left; padding: 0.05em 0.12em 0 0; color: var(--accent); }

/* --- comparison table ---------------------------------------------------- */
.cmp { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.cmp th, .cmp td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); font-weight: 500; }
.cmp tbody th { font-weight: 400; color: var(--text); }
.cmp td { color: var(--text-soft); }
.cmp .yes { color: var(--accent); }
.cmp-wrap { overflow-x: auto; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: var(--heading); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--body); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.8rem; color: var(--text-soft); }

/* --- case study ---------------------------------------------------------- */
.case { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 820px) { .case { grid-template-columns: 1fr 1fr; align-items: start; } }
.case .stat { font-family: var(--heading); font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem); color: var(--accent); line-height: 1; }
.case .stat small { display: block; font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.6rem; }
.case-list { display: grid; gap: 1.5rem; }

/* --- team / value grid --------------------------------------------------- */
.tiles { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.tile h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tile p { color: var(--text-soft); }
.tile .eyebrow { display: block; margin-bottom: 0.6rem; }

/* --- contact ------------------------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field textarea, .field select { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* --- intelligence page helpers ------------------------------------------ */
.mono { font-family: var(--label); }
.cols--2 { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 820px) { .cols--2 { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); } }
.tier-tag { display: inline-block; margin-left: 0.5rem; padding: 0.12rem 0.5rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--text-soft); vertical-align: middle; }
.flow-chain { margin-top: 1.4rem; font-family: var(--label); font-size: 0.82rem; line-height: 2;
  letter-spacing: 0.04em; color: var(--text); }
.flow-chain .arr { color: var(--accent); margin: 0 0.45rem; font-weight: 600; }
.flow-chain .sep { color: var(--text-soft); margin: 0 0.35rem; }

/* --- product tour (stepper) --------------------------------------------- */
.tour-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tour-step { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.95rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.tour-step:hover { color: var(--text); }
.tour-step[aria-selected="true"] { color: var(--bone); background: var(--accent); border-color: var(--accent); }
.tour-step .n { opacity: 0.55; }
.tour-panel { display: none; }
.tour-panel.is-active { display: block; animation: tour-fade .45s cubic-bezier(.2,.7,.2,1) both; }
.tour-panel.is-active .shot {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px; border-radius: 10px;
}
.tour-panel .cap { margin-top: 1rem; color: var(--text-soft); max-width: 48rem; }
.tour-panel .cap b { color: var(--accent); }
@keyframes tour-fade {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-panel.is-active { animation: none; }
}
/* active step gets a clearer affordance */
.tour-step { transition: color .2s, background .2s, border-color .2s, transform .12s; }
.tour-step[aria-selected="true"] { transform: translateY(-1px); box-shadow: 0 4px 14px -8px var(--accent); }
.shot img { cursor: zoom-in; }

/* --- lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(12, 11, 9, 0.86); backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); cursor: zoom-out; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(245,240,230,0.3); background: transparent; color: var(--bone); font-size: 1.3rem;
  line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(245,240,230,0.12); }
