/* ============================================================
   CaskEquity — "Signal" design system
   Cool light grey, white cards, ink, one electric blue.
   Space Grotesk everywhere, tabular numerals, rounded geometry.
   ============================================================ */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #0b0d12;
  --ink-2: #1c2130;
  --muted: #5d6470;
  --faint: #8a919d;
  --line: #d5dae2;
  --line-soft: #e6eaef;
  --blue: #2447ff;
  --blue-hover: #1a37d6;
  --blue-soft: #e3e8ff;
  --blue-text: #1f3fe0;
  --on-dark-muted: #a8afbd;
  --on-dark-blue: #8fa0ff;
  --good: #0f8a5f;
  --bad: #d13b3b;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-3xl: 28px; --r-full: 999px;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem; --s24: 6rem;

  --t-xs: .8125rem; --t-sm: .9375rem; --t-base: 1.0625rem; --t-lg: 1.1875rem; --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: clamp(2.25rem, 3.6vw, 3rem); --t-hero: clamp(2.5rem, 5vw, 4rem);

  --shadow: 0 20px 50px rgba(11,13,18,.18);
  --shadow-sm: 0 2px 8px rgba(11,13,18,.06);
  --max: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; font-family: var(--font); font-size: var(--t-base); line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
h1 b, h2 b, h3 b, .section-title b { font-weight: 700; }
h1 em, h2 em, h3 em, .section-title em, p.big em, .pullquote em { font-style: normal; font-weight: 700; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-sm); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap, .wrap-default, .wrap-narrow { margin-inline: auto; width: min(var(--max), 100% - 2 * clamp(20px, 4vw, 48px)); }
.wrap-default { max-width: 960px; }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(var(--s16), 7vw, var(--s24)); }
.section-tight { padding-block: clamp(var(--s10), 5vw, var(--s16)); }
.section-offset { background: var(--card); border-block: 1px solid var(--line-soft); }
.center { text-align: center; }
.center .lede, .center h1, .center h2 { margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow, .label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--blue-text); letter-spacing: .01em; margin-bottom: var(--s5); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.eyebrow.center { justify-content: center; width: 100%; }
.lede { font-size: var(--t-lg); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }
.section-title { font-size: var(--t-3xl); max-width: 22ch; }
.section-head { margin-bottom: clamp(var(--s10), 4vw, var(--s16)); }
.section-head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s10); align-items: end; }
.section-head.split .lede { max-width: none; }
.section-head.center { text-align: center; }
.section-head.center .section-title { margin-inline: auto; }
.section-head .lede { margin-top: var(--s4); }
.big { font-size: var(--t-xl); line-height: 1.35; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn, .btn-row .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: var(--r-md); font-weight: 600; font-size: var(--t-sm); line-height: 1; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-dark { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--ink-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 26px; font-size: var(--t-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s8); align-items: center; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-text); font-size: var(--t-sm); }
.btn-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.btn-link:hover svg { transform: translateX(3px); }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- Tags / pills ---------- */
.pill, .tag { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-full); padding: 7px 13px; font-size: var(--t-xs); font-weight: 500; }
.pill { background: var(--blue-soft); color: var(--blue-text); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.tag { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,246,248,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.brand .logo-mark { width: 26px; height: 26px; }
.nav-primary { justify-self: center; }
.nav-primary .menu { display: flex; gap: 4px; background: var(--card); padding: 5px; border-radius: var(--r-full); border: 1px solid var(--line); }
.nav-primary .menu > li { position: relative; }
.nav-primary .menu > li > a { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--r-full); font-size: var(--t-sm); font-weight: 500; color: var(--ink); transition: background .15s ease; }
.nav-primary .menu > li > a:hover { background: var(--bg); }
.nav-primary .menu > li.current-menu-item > a, .nav-primary .menu > li.current-menu-ancestor > a { background: var(--ink); color: #fff; }
.nav-primary .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; }
.nav-primary .menu > li:hover .sub-menu, .nav-primary .menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-primary .sub-menu a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500; }
.nav-primary .sub-menu a:hover { background: var(--bg); }
.nav-primary .sub-menu small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-actions .btn { background: var(--blue); color: #fff; }
.header-actions .btn:hover { background: var(--blue-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(var(--s12), 6vw, var(--s20)) 0 var(--s10); text-align: center; }
.hero h1 { font-size: var(--t-hero); max-width: 19ch; margin: var(--s6) auto 0; }
.hero .lede { margin: var(--s6) auto 0; max-width: 58ch; }
.hero .btn-row { justify-content: center; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: var(--s8); }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s6); }
.kpi small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.kpi .v { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-top: var(--s2); }
.kpi .d { font-size: var(--t-xs); margin-top: var(--s2); color: var(--muted); }
.kpi .d b { color: var(--blue-text); font-weight: 600; }
.kpi .d a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kpi.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.kpi.blue small, .kpi.blue .d { color: #c9d2ff; }
.kpi.blue .d b { color: #fff; }

/* Dark stage for screenshots */
.stage { background: var(--ink); border-radius: var(--r-3xl); padding: 20px 20px 0; overflow: hidden; position: relative; }
.stage .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.stage .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; display: inline-block; }
.stage img { width: 100%; border-radius: 14px 14px 0 0; }
.stage.closed { padding-bottom: 20px; }
.stage.closed img { border-radius: 14px; }
.float { position: absolute; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--shadow); font-size: var(--t-xs); font-weight: 500; }
.float b { display: block; font-size: 1.375rem; letter-spacing: -.03em; margin-top: 2px; font-weight: 700; }
.float.l { left: 5%; top: 18%; }
.float.r { right: 5%; top: 40%; }
.float.good b { color: var(--good); }
.float.bad b { color: var(--bad); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s8); min-height: 240px; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }
.cell .k, .cell .eyebrow { font-size: var(--t-xs); font-weight: 600; color: var(--blue-text); display: block; margin-bottom: var(--s5); padding-bottom: 0; }
.cell .k::before { display: none; }
.cell h3 { font-size: var(--t-xl); }
.cell p { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s3); }
.cell .tags { margin-top: var(--s5); }
.cell img { border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: var(--s6); }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.cell.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cell.dark p { color: var(--on-dark-muted); }
.cell.dark .k, .cell.dark .eyebrow { color: var(--on-dark-blue); }
.cell.dark .tag { border-color: #2a2f3a; background: transparent; color: #fff; }
.cell.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.cell.blue p { color: #c9d2ff; }
.cell.blue .k { color: #fff; }
.cell .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--blue-text); display: grid; place-items: center; margin-bottom: var(--s6); }
.cell .icon svg { width: 22px; height: 22px; }
.cell.dark .icon { background: #1c2130; color: var(--on-dark-blue); }

/* Feature grid (cards) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s8); }
.feature .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--blue-text); display: grid; place-items: center; margin-bottom: var(--s6); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s2); }

/* Columns with numbers */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s8); }
.col .num { font-size: var(--t-xs); font-weight: 600; color: var(--blue-text); margin-bottom: var(--s10); }
.col h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; }
.col p { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s2); }
.col .feature-inner .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--blue-text); display: grid; place-items: center; margin-bottom: var(--s6); }
.col .feature-inner .icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s8); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: var(--t-xs); margin-bottom: var(--s6); }
.step h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s2); }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s8), 5vw, var(--s16)); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .media img { border-radius: var(--r-2xl); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split h2, .split h3 { font-size: var(--t-3xl); }
.split .lede, .split p { margin-top: var(--s4); }
.checklist { display: grid; gap: 10px; margin-top: var(--s6); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.checklist svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.checklist a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }
.section-offset .checklist li { background: var(--bg); }

/* Callout / principles */
.callout { background: var(--ink); color: #fff; border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(var(--s8), 4vw, var(--s16)); align-items: start; }
.callout blockquote { font-size: var(--t-xl); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.callout cite { display: block; font-style: normal; font-size: var(--t-xs); color: var(--on-dark-blue); font-weight: 600; margin-top: var(--s5); }
.callout .principles { display: grid; gap: 10px; }
.callout .principles li { display: flex; gap: 14px; align-items: flex-start; background: #161a24; border: 1px solid #262b37; border-radius: var(--r-lg); padding: 16px 18px; font-size: var(--t-sm); color: var(--on-dark-muted); }
.callout .principles li svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--on-dark-blue); margin-top: 2px; }
.callout .principles strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* Audience cards */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.audience:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.audience .media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.audience .body { padding: var(--s6) var(--s8) var(--s8); display: flex; flex-direction: column; gap: var(--s3); flex: 1; align-items: flex-start; }
.audience .body p, .audience .body h3 { align-self: stretch; }
.audience h3 { font-size: var(--t-xl); }
.audience p { color: var(--muted); font-size: var(--t-sm); flex: 1; }
.audience.lead { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; }
.audience.lead .media img { aspect-ratio: auto; height: 100%; }
.audience.lead .body { padding: var(--s10); justify-content: center; }
.audience.lead h3 { font-size: var(--t-2xl); }

/* Quote band */
.band { position: relative; border-radius: var(--r-3xl); overflow: hidden; background: var(--ink); color: #fff; margin-inline: auto; width: min(var(--max), 100% - 2 * clamp(20px, 4vw, 48px)); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.band .wrap { position: relative; z-index: 1; padding: clamp(var(--s12), 6vw, var(--s20)) clamp(var(--s6), 5vw, var(--s16)); width: auto; }
.band p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1.2; max-width: 26ch; font-weight: 500; }
.band .eyebrow { font-size: var(--t-xs); color: var(--on-dark-blue); }
.band .eyebrow::before { background: var(--on-dark-blue); }
.band small { display: block; margin-top: var(--s6); color: var(--on-dark-muted); font-size: var(--t-sm); }
.band small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Mini calculator teaser */
.calc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.calc-teaser > * { min-width: 0; }
.calc-teaser .text { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); }
.calc-teaser .text .section-title { max-width: 18ch; }
.mini-calc { min-width: 0; background: var(--ink); color: #fff; border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); display: grid; gap: var(--s6); align-content: start; }
.mini-calc .row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.mini-calc label { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--on-dark-muted); font-weight: 500; }
.mini-calc input { width: 100%; min-width: 0; background: #1c2130; border: 1px solid #2a2f3a; border-radius: var(--r-md); padding: 12px 14px; color: #fff; font-size: var(--t-base); font-weight: 600; }
.mini-calc .result .label { font-size: var(--t-xs); color: var(--on-dark-muted); font-weight: 500; }
.mini-calc .result .value { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; }
.mini-calc .result .sub { color: var(--on-dark-muted); font-size: var(--t-sm); margin-top: 6px; }
.mini-calc .result .sub span { color: #fff; font-weight: 600; }
.mini-calc .muted { color: var(--faint); font-size: var(--t-xs); }
.mini-calc .toggle { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--on-dark-muted); font-weight: 500; cursor: pointer; margin-top: -8px; }
.mini-calc .toggle input { width: 18px; height: 18px; accent-color: var(--blue); padding: 0; margin: 0; flex: none; }
.mini-calc .result .split { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: var(--t-xs); color: var(--on-dark-muted); }
.mini-calc .result .split b { color: #fff; font-weight: 600; }

/* ---------- Inner page heroes ---------- */
.page-hero { padding-block: clamp(var(--s12), 6vw, var(--s20)) clamp(var(--s8), 4vw, var(--s12)); text-align: center; }
.page-hero h1 { font-size: var(--t-hero); max-width: 20ch; margin-inline: auto; }
.page-hero .lede { margin: var(--s6) auto 0; }
.page-hero .btn-row { justify-content: center; }
.page-hero.with-media { display: grid; gap: var(--s12); }
.page-hero.with-media > :first-child { max-width: 900px; margin-inline: auto; }
.page-hero.with-media .media img { width: 100%; aspect-ratio: 21/9; max-height: 520px; object-fit: cover; border-radius: var(--r-3xl); }
.device-browser { background: var(--ink); border-radius: var(--r-3xl); padding: 20px 20px 0; overflow: hidden; }
.device-browser .bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.device-browser .dots { display: flex; gap: 6px; }
.device-browser .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.device-browser .urlbar { flex: 1; max-width: 360px; margin-inline: auto; background: #1c2130; color: var(--on-dark-muted); border-radius: var(--r-full); font-size: 12px; padding: 6px 12px; display: flex; gap: 6px; align-items: center; }
.device-browser .urlbar svg { width: 12px; height: 12px; }
.device-browser img { width: 100%; border-radius: 14px 14px 0 0; }
.device-phone { display: none; }

/* Product tour */
.tour { display: grid; gap: 16px; }
.tour-item { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.tour-item.reverse .tour-text { order: 2; }
.tour-text { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); }
.section-offset .tour-text { background: var(--bg); }
.tour-text h3 { font-size: var(--t-2xl); margin-bottom: var(--s4); }
.tour-text > p { color: var(--muted); }
.tour-shot { background: var(--ink); border-radius: var(--r-3xl); padding: clamp(var(--s6), 3vw, var(--s10)); display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.tour-shot img { border-radius: var(--r-md); width: 100%; height: clamp(240px, 26vw, 340px); object-fit: cover; object-position: center top; box-shadow: 0 20px 40px rgba(0,0,0,.35); border: 1px solid #2a2f3a; }
.tour-shot.pos-top img { object-position: center 12%; }
.tour-shot.pos-mid img { object-position: 0% 55%; }
.tour-shot.pos-bottom img { object-position: center 100%; }
.tour-shot.pos-right img { object-position: 100% 60%; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3xl); padding: var(--s8); display: grid; gap: var(--s6); align-content: start; }
.plan h3 { font-size: var(--t-xl); }
.plan .who { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s2); min-height: 3.2em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .amt { font-size: 2.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.plan .per { color: var(--muted); font-size: var(--t-sm); }
.plan .setup { color: var(--muted); font-size: var(--t-xs); margin-top: var(--s2); }
.plan ul { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: var(--s6); }
.plan li { display: flex; gap: 10px; font-size: var(--t-sm); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured .who, .plan.featured .per, .plan.featured .setup { color: var(--on-dark-muted); }
.plan.featured ul { border-color: #2a2f3a; }
.plan.featured li svg { color: var(--on-dark-blue); }
.plan.featured .btn-primary { background: var(--blue); }
.plan.featured .btn-primary:hover { background: var(--blue-hover); }
.badge { position: absolute; top: -13px; left: var(--s8); background: var(--blue); color: #fff; border-radius: var(--r-full); padding: 6px 12px; font-size: var(--t-xs); font-weight: 600; }
.price-note { color: var(--muted); font-size: var(--t-sm); text-align: center; margin-top: var(--s8); max-width: 70ch; margin-inline: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.compare-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; font-size: var(--t-sm); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.compare-table th { font-weight: 600; background: var(--bg); font-size: var(--t-xs); color: var(--muted); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: right; }
.compare-table td b { color: var(--blue-text); font-weight: 600; }
.section-offset .compare-table th { background: var(--bg); }

/* FAQ */
.faq-group + .faq-group { margin-top: var(--s12); }
.faq-group h2 { font-size: var(--t-xl); margin-bottom: var(--s5); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 var(--s6); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 18px 0; font-weight: 600; font-size: var(--t-base); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: 0 0 auto; }
.faq-list .plus::before, .faq-list .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-list .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details[open] .plus { background: var(--ink); border-color: var(--ink); }
.faq-list details[open] .plus::before, .faq-list details[open] .plus::after { background: #fff; }
.faq-list .answer { padding: 0 0 var(--s6); color: var(--muted); font-size: var(--t-sm); }
.faq-list .answer ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.faq-list .answer a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

/* Demo / contact */
.demo-layout { margin-bottom: clamp(var(--s12), 6vw, var(--s20)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: start; }
.contact-aside { background: var(--ink); color: #fff; border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); display: grid; gap: var(--s10); position: sticky; top: 96px; }
.contact-aside .eyebrow { color: var(--on-dark-blue); }
.contact-aside .eyebrow::before { background: var(--on-dark-blue); }
.contact-aside h2 { font-size: var(--t-3xl); }
.contact-aside .lede { color: var(--on-dark-muted); }
.expect { display: grid; gap: var(--s4); }
.expect li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--t-sm); color: var(--on-dark-muted); }
.expect svg { width: 22px; height: 22px; color: var(--on-dark-blue); flex: 0 0 auto; }
.expect strong { display: block; color: #fff; font-weight: 600; }
.expect a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3xl); padding: clamp(var(--s8), 4vw, var(--s12)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); font-size: var(--t-sm); transition: border-color .15s ease, background .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s2); }
.form-foot small { color: var(--muted); font-size: var(--t-xs); max-width: 40ch; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: var(--r-md); padding: 14px 16px; font-size: var(--t-sm); margin-bottom: var(--s5); font-weight: 500; }
.notice.ok { background: #e3f6ee; color: #0b6b49; }
.notice.err { background: #fde8e8; color: #9b2222; }

/* Why / article */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--s16); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: var(--t-sm); }
.toc a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; }
.toc a.active, .toc a:hover { color: var(--ink); background: var(--card); }
.prose { font-size: var(--t-base); line-height: 1.75; }
.prose h2 { font-size: var(--t-2xl); margin: var(--s12) 0 var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: var(--s5); }
.prose p.big { font-size: var(--t-xl); line-height: 1.4; color: var(--ink); }
.prose ul { display: grid; gap: var(--s3); margin: var(--s6) 0; }
.prose ul li { padding-left: var(--s6); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose figure { margin: var(--s10) 0; }
.prose figure img { border-radius: var(--r-2xl); }
.prose figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s3); }
.prose a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.pullquote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s8); font-size: var(--t-xl); line-height: 1.35; letter-spacing: -.02em; margin: var(--s10) 0; font-weight: 500; }
.pullquote small { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: var(--s4); letter-spacing: 0; font-weight: 500; }

/* CTA block */
.cta.section { padding-top: 0; }
.cta-inner { background: var(--blue); color: #fff; border-radius: var(--r-3xl); padding: clamp(var(--s10), 5vw, var(--s16)); display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s10); align-items: center; }
.cta-inner h2 { font-size: var(--t-3xl); }
.cta-inner p { color: #d5dcff; margin-top: var(--s4); max-width: 50ch; }
.cta-inner .btn-row { margin-top: 0; justify-content: flex-end; }
.cta-inner .btn-link { color: #fff; }

/* Footer */
.site-footer { padding: clamp(var(--s12), 5vw, var(--s16)) 0 var(--s8); border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s10); }
.footer-tag { color: var(--muted); font-size: var(--t-sm); max-width: 40ch; margin-top: var(--s5); }
.footer-col h4 { font-size: var(--t-xs); font-weight: 600; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s4); }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: var(--t-sm); color: var(--ink); font-weight: 500; }
.footer-col a:hover { color: var(--blue-text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); border-top: 1px solid var(--line-soft); margin-top: var(--s12); padding-top: var(--s6); font-size: var(--t-xs); color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Calculator token override (vendor styles are scoped under .calc) */
:root, .calc {
  --color-bg: var(--bg); --color-surface: var(--card); --color-surface-2: var(--card); --color-surface-offset: var(--bg); --color-surface-deep: var(--ink);
  --color-divider: var(--line-soft); --color-border: var(--line);
  --color-text: var(--ink); --color-text-muted: var(--muted); --color-text-faint: var(--faint); --color-text-inverse: #fff;
  --color-primary: var(--blue); --color-primary-hover: var(--blue-hover); --color-primary-soft: var(--blue-soft);
  --color-char: var(--ink-2); --color-amber: #9db0ff; --color-copper: var(--blue); --color-rye: var(--muted); --color-slate: #b8bfcb;
  --color-good: var(--good); --color-good-soft: #e3f6ee; --color-alert: var(--bad); --color-alert-soft: #fde8e8;
  --shadow-sm: var(--shadow-sm); --shadow-md: var(--shadow-sm); --shadow-lg: var(--shadow);
  --grid-line: rgba(11,13,18,.08);
  --radius-sm: 10px; --radius-md: 12px; --radius-lg: 20px; --radius-full: 999px;
  --font-display: var(--font); --font-body: var(--font);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --text-xs: var(--t-xs); --text-sm: var(--t-sm); --text-base: var(--t-base); --text-lg: var(--t-lg); --text-xl: var(--t-xl); --text-2xl: var(--t-2xl);
  --transition: .2s ease;
}
.calc .calc-app { padding-top: 0; width: min(var(--max), 100% - 2 * clamp(20px, 4vw, 48px)); margin-inline: auto; }
.calc .panel { border-radius: var(--r-2xl); }

/* ---------- Gravity Forms (Signal skin) ---------- */
.gf-card .gform_wrapper { --gf-color-primary: var(--blue); --gf-color-primary-rgb: 36, 71, 255; --gf-color-primary-contrast: #fff; --gf-color-primary-darker: var(--blue-hover); --gf-color-in-control: var(--ink); --gf-color-in-control-border: var(--line); --gf-color-in-control-focus: var(--blue); --gf-color-in-control-primary: var(--ink); --gf-color-in-control-primary-contrast: #fff; --gf-color-in-control-primary-darker: var(--ink-2); --gf-color-in-control-focus-shadow: var(--blue-soft); --gf-color-in-control-background: var(--bg); --gf-ctrl-border-radius: var(--r-md); --gf-ctrl-btn-border-radius: var(--r-full); --gf-ctrl-btn-font-size: var(--t-sm); --gf-ctrl-btn-font-weight: 600; --gf-ctrl-btn-padding-x: 28px; --gf-ctrl-btn-size: 52px; --gf-ctrl-label-font-size-primary: var(--t-xs); --gf-ctrl-label-font-weight-primary: 600; --gf-ctrl-label-color-primary: var(--ink); --gf-ctrl-desc-font-size: var(--t-xs); --gf-ctrl-desc-color: var(--faint); --gf-form-gap-y: var(--s5); --gf-form-gap-x: var(--s5); --gf-color-danger: var(--bad); --gf-color-danger-rgb: 209, 59, 59; --gf-color-danger-lighter: #fde8e8; --gf-color-danger-darker: #9b2222; --gf-font-family: var(--font); font-family: var(--font); }
.gf-card .gform_wrapper .gform_heading { margin-bottom: var(--s6); }
.gf-card .gform_wrapper .gform_title { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.02em; }
.gf-card .gform_wrapper .gform_description { color: var(--muted); font-size: var(--t-sm); }
.gf-card .gform_wrapper .gfield_label, .gf-card .gform_wrapper legend.gfield_label { font-size: var(--t-xs); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.gf-card .gform_wrapper .gfield_required { color: var(--faint); font-weight: 400; }
.gf-card .gform_wrapper .gfield_description { color: var(--faint); font-size: var(--t-xs); }
.gf-card .gform_wrapper input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), .gf-card .gform_wrapper select, .gf-card .gform_wrapper textarea { width: 100%; padding: 13px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-sm); line-height: 1.4; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.gf-card .gform_wrapper input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):focus, .gf-card .gform_wrapper select:focus, .gf-card .gform_wrapper textarea:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 3px var(--blue-soft); }
.gf-card .gform_wrapper textarea { min-height: 120px; resize: vertical; }
.gf-card .gform_wrapper .gform_footer, .gf-card .gform_wrapper .gform_page_footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s2); padding: 0; }
.gf-card .gform_wrapper input[type=submit], .gf-card .gform_wrapper button.gform_button, .gf-card .gform_wrapper .gform_next_button, .gf-card .gform_wrapper .gform_previous_button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-full); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--font); font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.gf-card .gform_wrapper input[type=submit]:hover, .gf-card .gform_wrapper button.gform_button:hover { background: var(--ink-2); transform: translateY(-1px); }
.gf-card .gform_wrapper .gform_previous_button { background: transparent; color: var(--ink); border-color: var(--line); }
.gf-card .gform_wrapper .gfield_error input, .gf-card .gform_wrapper .gfield_error select, .gf-card .gform_wrapper .gfield_error textarea { border-color: var(--bad); }
.gf-card .gform_wrapper .gfield_validation_message, .gf-card .gform_wrapper .validation_message { background: #fde8e8; color: #9b2222; border: 0; border-radius: var(--r-sm); padding: 8px 12px; font-size: var(--t-xs); margin-top: 6px; }
.gf-card .gform_wrapper .gform_validation_errors { background: #fde8e8; color: #9b2222; border: 0; border-radius: var(--r-md); box-shadow: none; padding: 14px 16px; margin-bottom: var(--s5); }
.gf-card .gform_wrapper .gform_validation_errors > h2 { font-size: var(--t-sm); font-weight: 600; color: inherit; }
.gf-card .gform_confirmation_message { background: #e3f6ee; color: #0b6b49; border-radius: var(--r-md); padding: 14px 16px; font-size: var(--t-sm); font-weight: 500; }
.gf-card .gform_wrapper .gfield--type-consent label, .gf-card .gform_wrapper .gfield_checkbox label, .gf-card .gform_wrapper .gfield_radio label { font-size: var(--t-sm); color: var(--ink-2); font-weight: 400; }
.gf-card .gform_wrapper .gform_required_legend { display: none; }

/* ---------- WordPress generic content ---------- */
.entry-content > * + * { margin-top: var(--s5); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: var(--s10); }
.entry-content h2 { font-size: var(--t-2xl); }
.entry-content h3 { font-size: var(--t-xl); }
.entry-content h4 { font-size: var(--t-base); font-weight: 600; }
.entry-content a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ol { padding-left: var(--s6); display: grid; gap: var(--s3); list-style: decimal; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.entry-content blockquote { border-left: 3px solid var(--blue); padding-left: var(--s5); color: var(--muted); font-size: var(--t-lg); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.entry-content th, .entry-content td { padding: var(--s3); border-bottom: 1px solid var(--line-soft); text-align: left; }
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content textarea, .entry-content select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.entry-content input[type="submit"], .entry-content button[type="submit"] { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; border: 0; cursor: pointer; }
.entry-content input[type="submit"]:hover, .entry-content button[type="submit"]:hover { background: var(--ink-2); }
.alignwide { width: min(var(--max), 100%); } .aligncenter { margin-inline: auto; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-primary .menu > li > a { padding: 9px 12px; }
}
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-primary { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .mobile-nav { display: block; position: fixed; top: 76px; left: 0; right: 0; height: calc(100dvh - 76px); background: var(--bg); padding: var(--s6) clamp(20px, 4vw, 48px) var(--s10); overflow: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; z-index: 49; }
  body.menu-open .mobile-nav, .mobile-nav.open { visibility: visible; transition: transform .25s ease; }
  body.menu-open .mobile-nav, .mobile-nav.open { transform: none; }
  .mobile-nav .menu, .mobile-nav .menu-mobile { display: grid; gap: 4px; }
  .mobile-nav li > a { display: block; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--t-lg); font-weight: 500; background: var(--card); border: 1px solid var(--line); }
  .mobile-nav li.current-menu-item > a { background: var(--ink); color: #fff; border-color: var(--ink); }
  .mobile-nav .sub-menu { display: grid; gap: 4px; margin: 4px 0 4px var(--s6); }
  .mobile-nav .sub-menu small { display: none; }
  .mobile-nav .btn { margin-top: var(--s6); width: 100%; }
  .section-head.split, .split, .calc-teaser, .tour-item, .callout, .demo-layout, .cta-inner { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .tour-item.reverse .tour-text { order: 0; }
  .features, .cols-3, .principles, .audiences, .plans { grid-template-columns: 1fr 1fr; }
  .audience.lead { grid-column: span 2; grid-template-columns: 1fr; }
  .audience.lead .media img { aspect-ratio: 16/9; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c2, .c3, .c4 { grid-column: span 1; }
  .c6 { grid-column: span 2; }
  .contact-aside { position: static; }
  .article-layout { grid-template-columns: 1fr; gap: var(--s8); }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner .btn-row { justify-content: flex-start; }
  .float.r { top: auto; bottom: 14%; }
}
@media (max-width: 640px) {
  .kpis, .steps, .features, .cols-3, .principles, .audiences, .plans, .bento, .form-grid { grid-template-columns: 1fr; }
  .audience.lead { grid-column: span 1; }
  .c6 { grid-column: span 1; }
  .mini-calc .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float { display: none; }
  .stage, .device-browser { padding: 12px 12px 0; border-radius: var(--r-xl); }
  .device-browser .urlbar { display: none; }
  .btn-row .btn { width: 100%; }
  .plan .amt { font-size: 2.25rem; }
  .band { width: min(var(--max), 100% - 2 * 20px); }
}
