/* ============================================================
   census - by Vervaunt Labs
   Design system v3 · clean, editorial, product-led (Dema-inspired)
   Palette: warm off-white base · near-black ink · lime as a spot accent
   Type:    Schibsted Grotesk (display) · Inter (body/UI)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:         #F4F5F6;   /* clean cool near-white page */
  --bg-warm:    #EBEDF0;   /* neutral light grey, small tints only */
  --surface:    #FFFFFF;   /* cards + raised bands */
  --surface-2:  #F9FAFB;   /* very light card alt / recessed rows */
  --ink:        #15171C;   /* cool near-black */
  --ink-2:      #20232B;
  --ink-85:     rgba(21, 23, 28, .86);
  --ink-70:     rgba(21, 23, 28, .66);
  --ink-55:     rgba(21, 23, 28, .60);
  --ink-40:     rgba(21, 23, 28, .50);
  --ink-25:     rgba(21, 23, 28, .22);
  --line:       rgba(21, 23, 28, .11);
  --line-soft:  rgba(21, 23, 28, .06);
  --grid-line:  rgba(21, 23, 28, .05);
  --lime:       #7DFF00;   /* brand spark, tiny accents only */
  --lime-deep:  #2E6E1A;   /* text-safe brand green on light (WCAG AA on bg + surface) */
  --lime-soft:  #E4F5CF;
  /* functional accent palette (Dema-style, for icons + tags) */
  --c-green:    #3E8E23; --c-green-t:  #E4F1D8;
  --c-blue:     #3B6FE0; --c-blue-t:   #E5ECFB;
  --c-coral:    #E1583B; --c-coral-t:  #FBE6E0;
  --c-amber:    #C08519; --c-amber-t:  #F5EAD4;
  --c-violet:   #6E57DB; --c-violet-t: #EAE6FB;
  --pos:        #357C1E;
  --alert:      #C6442A;  --alert-soft: #FBE6E0;
  --paper-on-ink: rgba(244, 246, 248, .72);
  --paper-on-ink-dim: rgba(244, 246, 248, .5);
  --line-on-ink: rgba(244, 246, 248, .16);

  --font-display: 'Hanken Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --size-display: clamp(1.85rem, 3.2vw, 3.05rem);
  --size-h2: clamp(1.36rem, 2.15vw, 1.92rem);
  --size-h3: clamp(1rem, 1.15vw, 1.15rem);
  --size-body: 1.02rem;

  --r-xl: 22px;
  --r-lg: 16px;
  --r: 13px;
  --r-sm: 9px;
  --pill: 999px;

  --container: 1120px;
  --container-wide: 1220px;
  --gutter: clamp(20px, 4.2vw, 52px);
  --section: clamp(38px, 3.8vw, 64px);

  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .15, 1);
  --shadow-sm: 0 1px 2px rgba(23,21,18,.05);
  --shadow-md: 0 2px 4px rgba(23,21,18,.04), 0 16px 34px -20px rgba(23,21,18,.22);
  --shadow-lg: 0 4px 10px rgba(23,21,18,.05), 0 34px 64px -34px rgba(23,21,18,.28);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 71px; font-size: 93.75%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink-85);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
/* subtle grain texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Focus & a11y ---------- */
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible, .theme-ink :focus-visible { outline-color: var(--lime); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-size: .9rem; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .62); }
.slab-warm { background: var(--bg-warm); }
.slab-surface { background: var(--surface); }
.slab-edge { border-top: 1px solid var(--grid-line); }

/* Blueprint rails: faint vertical rules framing (well outside the text column) */
.rails { position: absolute; inset-block: 0; left: 50%; transform: translateX(-50%); width: min(var(--container-wide), calc(100% - 24px)); border-inline: 1px solid var(--grid-line); pointer-events: none; z-index: 0; }
@media (max-width: 860px) { .rails { display: none; } }
main { position: relative; }
main > * { position: relative; z-index: 1; }

/* split section head: title left, supporting copy right, first lines aligned; a hairline rule anchors the standfirst */
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.section-head.split .lede { margin-top: 0; }
.section-head.split > *:nth-child(2) { margin-top: 37px; border-left: 1px solid var(--line); padding-left: clamp(18px, 2.2vw, 28px); }
@media (max-width: 820px){ .section-head.split { grid-template-columns: 1fr; gap: 16px; } .section-head.split > *:nth-child(2) { margin-top: 0; border-left: 0; padding-left: 0; } }

/* custom glyphs: bare line art carrying the lime Census mark, no app-icon tiles */
.ic { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.ic svg { width: 30px; height: 30px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic::after { content: ""; position: absolute; right: 2px; bottom: 4px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); border: 1.2px solid var(--ink); }
.auto-list .ic::after { display: none; } /* these glyphs carry their own baked-in lime accents */
.ic-green, .ic-blue, .ic-coral, .ic-amber, .ic-violet, .ic-ink { background: none; }
.ic-green svg, .ic-blue svg, .ic-coral svg, .ic-amber svg, .ic-violet svg, .ic-ink svg { stroke: var(--ink); }

/* floating back-to-top */
.totop { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 170; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink-2); transform: translateY(-2px); }
.totop svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.totop .ring { position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--lime); opacity: 0; transition: opacity .2s; }
.totop:hover .ring { opacity: .7; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-size: var(--size-display); line-height: 1.04; letter-spacing: -0.022em; font-weight: 600; color: var(--ink); }
.h2 { font-family: var(--font-display); font-size: var(--size-h2); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.h3 { font-family: var(--font-display); font-size: var(--size-h3); line-height: 1.24; letter-spacing: -0.012em; font-weight: 600; color: var(--ink); }
.lede { font-size: clamp(.94rem, 1vw, 1.04rem); line-height: 1.55; color: var(--ink-70); max-width: 46ch; }
.muted { color: var(--ink-55); }
.small { font-size: .94rem; }
strong { font-weight: 600; color: var(--ink); }
em.i { font-style: italic; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.eyebrow.alert::before { background: var(--alert); }
.on-ink .eyebrow { color: var(--paper-on-ink); }

.section-head { max-width: 720px; margin-bottom: clamp(26px, 3.6vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head .lede { margin-top: 18px; }

/* accent underline (clean, robust across sizes) */
.hl { text-decoration-line: underline; text-decoration-color: var(--lime); text-decoration-thickness: .1em; text-underline-offset: .16em; text-decoration-skip-ink: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border-radius: var(--pill); font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .18s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.btn-primary:hover { background: var(--ink-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-40); background: rgba(23,21,18,.03); }
.btn-sm { padding: 10px 17px; font-size: .92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.04rem; }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.on-ink .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.on-ink .btn-primary:hover { background: var(--bg); }
.on-ink .btn-ghost { color: #fff; border-color: var(--line-on-ink); }
.on-ink .btn-ghost:hover { border-color: rgba(247,244,236,.5); background: rgba(247,244,236,.06); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--ink-25); padding-bottom: 3px; transition: gap .2s var(--ease-out), border-color .2s; }
.link-arrow:hover { gap: 11px; border-color: var(--ink); }
.on-ink .link-arrow { color: #fff; border-color: var(--line-on-ink); }
.on-ink .link-arrow:hover { border-color: #fff; }

/* ---------- Announcement ---------- */
.announce { background: var(--ink); color: var(--bg); font-size: .85rem; }
.announce a { display: flex; align-items: center; justify-content: center; gap: 11px; flex-wrap: wrap; padding: 10px var(--gutter); text-decoration: none; color: var(--bg); line-height: 1; }
.announce .tag { font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; background: var(--lime); color: var(--ink); padding: 4px 9px; border-radius: 5px; }
.announce .go { display: inline-flex; align-items: center; gap: 5px; color: var(--bg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,246,248,.45); transition: text-decoration-color .2s; }
.announce a:hover .go { text-decoration-color: var(--bg); }
@media (max-width: 640px){ .announce .hide-s { display:none; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 200; background: transparent; border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.nav.stuck { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 9px 14px; border-radius: var(--pill); color: var(--ink-70); transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--ink); background: rgba(23,21,18,.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(21,23,28,.06); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-inner { gap: 14px; }
  .nav-cta { margin-left: auto; gap: 10px; }
  .nav-cta .btn-sm { min-height: 44px; }
  .nav-burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 10px; border-radius: 10px; }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform .25s var(--ease-out), opacity .2s; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 26px; border-top: 1px solid var(--line-soft); background: var(--bg); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a:not(.btn) { text-decoration: none; font-size: 1.1rem; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); color: var(--ink); }
  .nav-mobile .btn { margin-top: 16px; width: 100%; }
}
@media (max-width: 400px) { .nav-cta .btn-primary .arrow { display: none; } }
@media (min-width: 901px) { .nav-mobile { display: none !important; } }

/* ---------- Floating pill nav (bottom, scroll-spy) ---------- */
.pillnav { position: fixed; left: 50%; bottom: 24px; z-index: 160; transform: translateX(-50%) translateY(26px); display: flex; align-items: center; gap: 1px; padding: 5px; border-radius: var(--pill); background: color-mix(in srgb, var(--surface) 76%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); border: 1px solid var(--line); box-shadow: 0 14px 44px -14px rgba(21,23,28,.30), 0 2px 6px -3px rgba(21,23,28,.14), inset 0 1px 0 rgba(255,255,255,.55); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.pillnav.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.pn-ind { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: var(--pill); background: var(--ink); z-index: 0; opacity: 0; transition: transform .36s var(--ease-out), width .36s var(--ease-out), opacity .25s var(--ease-out); pointer-events: none; }
.pn-ind.on { opacity: 1; }
.pillnav a { position: relative; z-index: 1; white-space: nowrap; text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--ink-55); padding: 9px 16px; border-radius: var(--pill); transition: color .22s var(--ease-out); }
.pillnav a.lit { color: #fff; }
.pillnav .pn-cta { color: var(--ink); font-weight: 600; background: var(--lime); margin-left: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pillnav .pn-cta.lit { color: var(--ink); }
@media (max-width: 760px){ .pillnav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(22px, 2.4vw, 38px) clamp(26px, 3vw, 44px); overflow: clip; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(46% 48% at 86% 62%, rgba(125,255,0,.08), rgba(125,255,0,0) 72%); }
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(38px, 5vw, 72px); grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 6vw, 44px); } .widget-stage { max-width: 560px; margin-inline: auto; width: 100%; } }
.hero h1 { max-width: 14ch; margin-top: 4px; }
.hero .lede { margin-top: 18px; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: 22px; font-size: .84rem; color: var(--ink-55); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .star { color: var(--ink); }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-25); }
@media (max-width:520px){ .hero-trust .sep { display:none; } }

/* ---------- Survey widget ---------- */
.widget-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(16px, 2vw, 26px); border-radius: 22px; background: linear-gradient(165deg, #FFFFFF 0%, #F4F6F8 100%); border: 1px solid var(--line-soft); box-shadow: 0 30px 54px -42px rgba(21,23,28,.28); }
.widget-stage .widget-card { max-width: 346px; }
.hero-flow { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 346px; padding: 9px 0; }
.hero-flow .hf-line { flex: 1; height: 1px; background: var(--line); }
.hero-flow .hf-label { font-size: .7rem; color: var(--ink-40); white-space: nowrap; }
.hero-insight { width: 100%; max-width: 346px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 15px; box-shadow: var(--shadow-md); }
.hi-head { color: var(--ink-55); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.hi-head .hi-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(125,255,0,.2); }
.hi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hi-cell b { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); display: block; letter-spacing: -0.025em; line-height: 1; }
.hi-cell b span { font-size: .52em; color: var(--ink-40); font-weight: 500; }
.hi-cell .hi-l { color: var(--ink-55); font-size: .72rem; line-height: 1.3; display: block; margin-top: 6px; }
/* cycling statement word (only the word fades, not the line) */
#stmt-cycle { transition: transform .34s var(--ease-out), opacity .34s var(--ease-out); }
#stmt-cycle.roll { transform: translateY(-0.5em); opacity: 0; }
#stmt-cycle.roll-reset { transform: translateY(0.56em); opacity: 0; transition: none; }
/* hero touchpoints row */
.hero-surfaces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(20px, 2.4vw, 28px); padding-top: clamp(18px, 2.2vw, 24px); border-top: 1px solid var(--line-soft); }
.hero-surfaces .hs-label { width: 100%; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 7px; }
.hero-surfaces .hs-chip { font-size: .85rem; font-weight: 500; color: var(--ink-70); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 15px; background: var(--surface); transition: color .15s, border-color .15s; }
.hero-surfaces .hs-chip:hover { color: var(--ink); border-color: var(--ink-25); }
/* mobile: keep hero CTAs and touchpoint badges each on a single row (iPhone 15 Pro and down) */
@media (max-width: 480px){
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn-lg { flex: 1 1 auto; padding: 16px clamp(11px, 2.5vw, 20px); font-size: clamp(.82rem, 3.2vw, 1rem); }
  .hero-surfaces { gap: 6px; }
  .hero-surfaces .hs-chip { padding: 7px clamp(8px, 2.1vw, 13px); font-size: clamp(.74rem, 2.8vw, .86rem); }
}
.widget-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(72% 68% at 50% 46%, #000 34%, transparent 84%); mask-image: radial-gradient(72% 68% at 50% 46%, #000 34%, transparent 84%); }
.widget-stage > * { position: relative; z-index: 1; }
.widget-card { position: relative; z-index: 2; width: 100%; max-width: 346px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.1vw, 24px); box-shadow: var(--shadow-lg); }
/* fixed height + input grows and centres so cycling scenes never resize the card (zero layout shift) */
#widget-body { min-height: 283px; display: flex; flex-direction: column; }
#widget-body > .widget-q { flex: 0 0 auto; }
#widget-body > .widget-rate, #widget-body > .widget-options { flex: 1 1 auto; }
#widget-body > .widget-send, #widget-body > .widget-progress { flex: 0 0 auto; }
.widget-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widget-brand { font-size: .7rem; letter-spacing: .04em; color: var(--ink-55); font-weight: 500; }
.widget-dots { display: flex; gap: 6px; }
.widget-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-25); transition: background .3s, transform .3s; }
.widget-dots i.active { background: var(--ink); transform: scale(1.3); }
.widget-q { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.28; color: var(--ink); min-height: 2.3em; }
.widget-options { display: grid; gap: 7px; margin-top: 12px; align-content: center; }
.widget-opt { border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; font-size: .9rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: space-between; transition: border-color .2s, background .2s; }
.widget-opt .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; }
.widget-opt.selected { border-color: var(--ink); background: var(--surface-2); }
.widget-opt.selected .tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.widget-opt.selected .tick::after { content: "✓"; font-size: .68rem; font-weight: 700; }

/* NPS heat scale */
.widget-rate { display: flex; flex-direction: column; justify-content: center; margin-top: 12px; }
.widget-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.scale-anchors { display: flex; justify-content: space-between; margin-top: 8px; font-size: .68rem; letter-spacing: .02em; color: var(--ink-40); font-weight: 500; }
.widget-scale b { aspect-ratio: 1.75; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: .84rem; color: var(--ink); border: 1px solid rgba(23,21,18,.08); transition: transform .18s var(--ease-out), box-shadow .18s; }
.widget-scale b.s1 { background: #F7A38C; } .widget-scale b.s2 { background: #F8B48A; }
.widget-scale b.s3 { background: #F9C589; } .widget-scale b.s4 { background: #F6D585; }
.widget-scale b.s5 { background: #EFE08A; } .widget-scale b.s6 { background: #E4E58C; }
.widget-scale b.s7 { background: #CFE289; } .widget-scale b.s8 { background: #B6DC7E; }
.widget-scale b.s9 { background: #9CD46B; } .widget-scale b.s10 { background: #86CC58; }
.widget-scale b.pick { transform: translateY(-3px); box-shadow: 0 8px 16px -8px rgba(23,21,18,.4); outline: 2px solid var(--ink); }
.widget-send { margin-top: 13px; width: 100%; background: var(--ink); color: #fff; padding: 11px; border-radius: 11px; font-weight: 600; font-size: .92rem; transition: background .25s; }
.widget-send.sent { background: var(--pos); color: #fff; }
.widget-progress { margin-top: 12px; font-size: .74rem; color: var(--ink-40); text-align: center; }
.widget-thanks { text-align: center; min-height: 302px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.widget-thanks .big { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; color: var(--ink); }
.widget-thanks .sub { color: var(--ink-55); font-size: .95rem; margin-top: 6px; }
.widget-thanks .check { width: 50px; height: 50px; border-radius: 50%; background: var(--lime-soft); border: 1px solid var(--lime-deep); color: var(--lime-deep); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.3rem; }

.insight-chip { position: absolute; z-index: 1; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; font-size: .8rem; line-height: 1.4; max-width: 216px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.insight-chip.show { opacity: 1; transform: none; }
.insight-chip .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 6px; font-weight: 600; }
.insight-chip .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }
.insight-chip.alert .tag::before { background: var(--alert); }
.insight-chip .txt { color: var(--ink-85); }
.insight-chip.pos-tl { left: -30px; top: -20px; }
.insight-chip.pos-br { right: -30px; bottom: -20px; }
.insight-chip .spark-mini { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-top: 8px; }
.insight-chip .spark-mini b { width: 6px; background: var(--lime-deep); border-radius: 2px 2px 0 0; height: var(--h); opacity: .85; }
@media (max-width: 600px) { .insight-chip.pos-tl { left: -8px; top: -16px; } .insight-chip.pos-br { right: -8px; bottom: -16px; } }

/* ---------- Logo wall ---------- */
.logos { padding-block: 32px; }
.logos-label { text-align: center; font-size: .8rem; letter-spacing: .04em; color: var(--ink-55); margin-bottom: 24px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(38px, 5vw, 68px); width: max-content; animation: marquee 52s linear infinite; align-items: center; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 20px; }
.marquee-item { font-family: var(--font-display); font-weight: 500; font-size: 1.16rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink-55); transition: color .2s; }
.marquee-item:hover { color: var(--ink-70); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement + stats ---------- */
.statement { text-align: center; }
.statement .big { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.55rem, 2.9vw, 2.45rem); line-height: 1.12; letter-spacing: -0.028em; color: var(--ink); max-width: 24ch; margin-inline: auto; }
.statement .big .dim { color: var(--ink-40); }

.statstrip { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 720px){ .statstrip { grid-template-columns: repeat(2, 1fr); } }
.statstrip .cell { padding: clamp(24px, 2.8vw, 38px); border-right: 1px solid var(--line-soft); }
.statstrip .cell:last-child { border-right: 0; }
@media (max-width: 720px){ .statstrip .cell:nth-child(2){ border-right: 0; } .statstrip .cell:nth-child(1),.statstrip .cell:nth-child(2){ border-bottom: 1px solid var(--line-soft);} }
.statstrip .num { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.statstrip .num sup { font-size: .4em; color: var(--lime-deep); top: -.9em; }
.statstrip .num .u { font-size: .5em; color: var(--ink-40); }
.statstrip .lab { display: block; margin-top: 12px; color: var(--ink-55); font-size: .92rem; line-height: 1.45; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); padding: clamp(24px, 2.6vw, 34px); transition: background .25s var(--ease-out); display: flex; flex-direction: column; }
.step:hover { background: var(--bg-warm, var(--surface)); }
/* editorial: drop the fake-UI step mocks; let the copy carry it */
.step-demo { display: none; }
.step p:last-child { margin-bottom: 0; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* each step ends in a live mini-mock, dividers aligned across the row */
.step-demo { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.step p { margin-bottom: 20px; }
.step-demo .sd-k { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 9px; }
.step-demo .sd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; background: var(--bg-warm); }
.step-demo .sd-t { font-size: .82rem; font-weight: 500; color: var(--ink); }
.step-demo .sd-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-70); }
.step-demo .sd-rule b { background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 7px; font-weight: 600; font-size: .68rem; }
.step-demo .sd-rule em { font-style: normal; color: var(--ink-40); }
.step-demo .sd-rule .q { color: var(--ink); background: var(--lime-soft); border: 1px solid rgba(78,154,46,.3); border-radius: 6px; padding: 3px 7px; }
.step-demo .sd-out { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-demo .sd-out code { font-size: .76rem; padding: 4px 8px; }
.step-demo .sd-ping { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-70); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 10px; }
.step-demo .sd-ping i { width: 7px; height: 7px; border-radius: 2px; background: var(--lime); border: 1px solid rgba(21,23,28,.35); }
@media (min-width: 861px) { .step-demo { min-height: 74px; } }
.step-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.step .ic { display: none; }
.cards.spec .card .ic { display: none; }
.step .num { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .05em; color: var(--lime-deep); line-height: 1; }
.step .num::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); border: 1px solid rgba(21,23,28,.35); }
.step .h3 { margin-bottom: 10px; }
.step p { color: var(--ink-70); font-size: .99rem; }

/* ---------- Surfaces switcher ---------- */
.surfaces { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 940px){ .surfaces { grid-template-columns: 1fr; } }
.surface-tabs { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 940px){ .surface-tabs { flex-direction: row; flex-wrap: wrap; } }
.surface-tab { text-align: left; border: 1px solid transparent; border-radius: var(--r); padding: 16px 18px; transition: border-color .22s, background .22s, box-shadow .22s; display: flex; gap: 13px; align-items: flex-start; }
.surface-tab:hover { background: rgba(23,21,18,.03); }
.surface-tab[aria-selected="true"] { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.surface-tab .st-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-warm); display: grid; place-items: center; flex: 0 0 auto; transition: background .22s; }
.surface-tab[aria-selected="true"] .st-ico { background: var(--ink); }
.surface-tab[aria-selected="true"] .st-ico svg { stroke: #fff; }
.surface-tab .st-ico svg { width: 19px; height: 19px; stroke: var(--ink); }
.surface-tab h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.surface-tab p { font-size: .88rem; color: var(--ink-55); margin-top: 3px; line-height: 1.45; }
@media (max-width: 940px){ .surface-tab { flex: 1 1 210px; } .surface-tab p { display: none; } }
.surface-stage { position: relative; min-height: 588px; display: flex; align-items: center; justify-content: center; }
.surface-panel { display: none; width: 100%; }
.surface-panel.active { display: block; animation: fadeUp .4s var(--ease-out); }
@media (max-width: 940px){ .surface-stage { min-height: 560px; } }

/* Device frames */
.device { position: relative; margin-inline: auto; }

/* Browser (post-purchase + email/follow-up) */
.device-browser { max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.device-browser .bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.device-browser .bar .dots { display: flex; gap: 6px; }
.device-browser .bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-25); }
.device-browser .bar .url { margin-left: 6px; font-size: .7rem; color: var(--ink-55); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 7px; padding: 5px 11px; flex: 1; display: flex; align-items: center; gap: 7px; }
.device-browser .bar .url::before { content: ""; width: 8px; height: 9px; border: 1.5px solid var(--ink-40); border-radius: 3px 3px 1px 1px; flex: 0 0 auto; }
.device-browser .screen { padding: 22px; background: var(--bg); }

/* Order confirmation line items */
.oc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 4px; }
.oc-head .badge { width: 40px; height: 40px; border-radius: 50%; background: var(--lime-soft); border: 1.5px solid var(--lime-deep); color: var(--lime-deep); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.oc-head .h { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); line-height: 1.1; }
.oc-head .s { font-size: .8rem; color: var(--ink-55); margin-top: 2px; }
.oc-items { border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 12px; margin-bottom: 16px; background: var(--surface); }
.oc-line { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.oc-line:last-child { border-bottom: 0; }
.oc-line .thumb { width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto; background: linear-gradient(135deg, #cfd6df, #e8edf3); }
.oc-line .thumb.b { background: linear-gradient(135deg, #d7cdbf, #ece4d8); }
.oc-line .thumb.c { background: linear-gradient(135deg, #cdd8d2, #e5ede8); }
.oc-line .nm { font-weight: 600; font-size: .85rem; color: var(--ink); }
.oc-line .mt { font-size: .73rem; color: var(--ink-55); }
.oc-line .pr { margin-left: auto; font-weight: 600; font-size: .82rem; color: var(--ink); }

/* Phone */
.device-phone { width: 262px; background: #23262F; border-radius: 40px; padding: 7px; box-shadow: 0 40px 70px -34px rgba(21,23,28,.45), 0 0 0 1px rgba(21,23,28,.05); }
.device-phone .pscreen { background: var(--surface); border-radius: 33px; overflow: hidden; min-height: 452px; position: relative; }
.device-phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 76px; height: 19px; background: #23262F; border-radius: 11px; z-index: 4; }
.device-phone .statusbar { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px 8px; font-size: .68rem; font-weight: 600; color: var(--ink); }
.device-phone .statusbar .sig { display: inline-flex; gap: 3px; align-items: center; }
.device-phone .statusbar .sig b { width: 3px; height: 8px; background: var(--ink); border-radius: 1px; display: inline-block; }
.device-phone .statusbar .sig b:nth-child(1){height:4px} .device-phone .statusbar .sig b:nth-child(2){height:6px}
.sf { padding: 6px 12px 14px; }
.sf-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink); }
.sf-nav .ic-row { display: inline-flex; gap: 12px; color: var(--ink-40); }
.sf-hero { height: 156px; border-radius: 14px; background: linear-gradient(150deg, #dfe4ea 0%, #eef1f5 55%, #e4e8ee 100%); position: relative; overflow: hidden; }
.sf-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 30%, rgba(255,255,255,.6), transparent 70%); }
.sf-hero .tagpill { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.85); font-size: .62rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; color: var(--ink); }
.sf-body { padding: 12px 2px 0; }
.sf-title { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.sf-sub { font-size: .74rem; color: var(--ink-55); margin-top: 2px; }
.sf-price { font-weight: 700; font-size: .98rem; color: var(--ink); margin-top: 9px; }
.sf-btn { margin-top: 11px; background: var(--ink); color: #fff; text-align: center; padding: 11px; border-radius: 11px; font-weight: 600; font-size: .82rem; }
.exit-pop { position: absolute; left: 9px; right: 9px; bottom: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 15px; box-shadow: 0 22px 44px -12px rgba(0,0,0,.4); animation: popIn .5s var(--ease-out); }
.exit-pop .eph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.exit-pop .eph .lbl { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink); }
.exit-pop .eph .x { color: var(--ink-40); font-size: 1rem; line-height: 1; }
.exit-pop .eq { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.28; margin-bottom: 12px; }
.eopt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; margin-bottom: 8px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.eopt .rad { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line); margin-left: auto; flex: 0 0 auto; }
.eopt.sel { border-color: var(--ink); background: var(--surface-2); }
.eopt.sel .rad { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.exit-pop .eprog { font-size: .68rem; color: var(--ink-40); text-align: center; margin-top: 10px; }

/* POS terminal */
.device-pos { max-width: 430px; background: #23262F; border-radius: 22px; padding: 11px 11px 13px; box-shadow: var(--shadow-lg); }
.device-pos .pos-head { display: flex; align-items: center; justify-content: space-between; color: var(--paper-on-ink); font-size: .68rem; letter-spacing: .02em; margin-bottom: 13px; padding: 2px 4px; }
.device-pos .pos-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--paper-on-ink); }
.device-pos .pos-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.device-pos .pos-screen { background: var(--surface); border-radius: 15px; padding: 18px; }
.pos-receipt { border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.pos-receipt .rl { display: flex; justify-content: space-between; gap: 14px; font-size: .82rem; color: var(--ink-70); margin-bottom: 5px; }
.pos-receipt .rl.tot { font-weight: 700; color: var(--ink); font-size: .92rem; margin-top: 6px; }

.surface-caption { margin-top: 20px; display: flex; align-items: center; gap: 10px; justify-content: center; font-size: .84rem; color: var(--ink-55); }
.surface-caption .k { background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 6px; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes wfade { from { opacity: .4; } to { opacity: 1; } }

/* ---------- Rules playground ---------- */
.rules-demo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; align-items: stretch; }
.rule-card { padding: clamp(22px, 2.6vw, 34px); }
.rule-group { margin-bottom: 20px; }
.rule-group:last-child { margin-bottom: 0; }
.rule-label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 10px; font-weight: 600; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rule-chip { min-height: 44px; padding: 10px 15px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-70); transition: all .18s var(--ease-out); }
.rule-chip:hover { border-color: var(--ink-40); color: var(--ink); }
.rule-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rule-chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); margin-right: 8px; }
/* preview pane: a warm canvas with the live widget centred, edge-aligned with the container */
.rule-preview { border-left: 1px solid var(--line-soft); background: var(--bg-warm); padding: clamp(22px, 2.6vw, 34px); display: flex; align-items: center; justify-content: center; }
.rp-card { width: 100%; max-width: 384px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.1vw, 24px); box-shadow: var(--shadow-lg); }
/* status bar: the matched rule, part of the console */
.rule-status { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; padding: 15px clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line-soft); background: var(--surface); }
.rs-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--lime); border: 1px solid rgba(21, 23, 28, .3); flex: 0 0 auto; margin-top: 6px; }
.rule-note { font-size: .93rem; color: var(--ink-70); line-height: 1.55; min-height: 2.9em; }
.rule-note b { color: var(--ink); }
@media (max-width: 940px) {
  .rules-demo { grid-template-columns: 1fr; }
  .rule-status { order: 2; border-bottom: 1px solid var(--line-soft); }
  .rule-preview { order: 3; border-left: 0; }
  .rule-note { min-height: 4.2em; }
}
.rule-out-q { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.28; color: var(--ink); min-height: 4em; }

/* ---------- Insights dashboard (light) ---------- */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.dash-card .dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.dash-card .dc-title { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-55); font-weight: 600; }
.dash-pill { font-size: .66rem; letter-spacing: .03em; text-transform: uppercase; background: var(--bg-warm); color: var(--ink-70); padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.dash-score { grid-column: span 4; } .dash-sent { grid-column: span 4; } .dash-brief { grid-column: span 4; }
.dash-trend { grid-column: span 7; } .dash-labels { grid-column: span 5; }
@media (max-width: 900px){ .dash-score,.dash-sent,.dash-brief,.dash-trend,.dash-labels { grid-column: span 12; } }
.score-big { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.score-big .out { color: var(--ink-55); font-size: 1.2rem; }
.score-delta { color: var(--pos); font-size: .8rem; margin-top: 8px; font-weight: 500; }
.sent-bar { display: grid; gap: 11px; margin-top: 4px; }
.sent-row .sl { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-55); margin-bottom: 6px; }
.sent-row .track { height: 8px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.sent-row .fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease-out); }
.sent-row .fill.pos { background: var(--pos); } .sent-row .fill.neu { background: var(--ink-25); } .sent-row .fill.neg { background: var(--alert); }
.dash-brief ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dash-brief li { display: flex; gap: 9px; font-size: .84rem; color: var(--ink-70); line-height: 1.4; }
.dash-brief li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--pos); flex: 0 0 auto; }
.dash-brief li.neg::before { background: var(--alert); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 92px; margin-top: 6px; }
.spark b { flex: 1; background: var(--lime-soft); border: 1px solid rgba(78,154,46,.3); border-bottom: 0; border-radius: 4px 4px 0 0; height: var(--h); }
.spark b:last-child { background: var(--lime); border-color: var(--lime-deep); }
.label-list { display: flex; flex-wrap: wrap; gap: 8px; }
.label-chip { font-size: .78rem; color: var(--ink-70); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 13px; display: inline-flex; align-items: center; gap: 7px; }
.label-chip .n { color: var(--ink); font-weight: 600; }

/* ---------- Use-case bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.uc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.4vw, 32px); position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.uc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.uc .uc-tag { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-55); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.uc .uc-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.uc.alert .uc-tag::before { background: var(--alert); }
.uc h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; margin-bottom: 9px; color: var(--ink); }
.uc p { color: var(--ink-70); font-size: .95rem; }
.uc .uc-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-55); }
.uc .uc-foot b { color: var(--ink); }
/* exit-intent ranked reasons: the "ranked list" made visible */
.uc-reasons { display: grid; gap: 11px; margin-top: 24px; }
.uc-reasons .mock-bar .track { height: 7px; }
.uc-reasons .mock-bar .fill.top { background: var(--alert); }
.uc-reasons .mock-bar .fill { background: var(--ink-30, rgba(21,23,28,.3)); }
.uc-lg { grid-column: span 4; } .uc-sm { grid-column: span 2; } .uc-md { grid-column: span 3; }
.uc-ink { background: var(--ink); border-color: var(--ink); }
.uc-ink h3, .uc-ink .big { color: #fff; } .uc-ink p { color: var(--paper-on-ink); } .uc-ink .uc-tag { color: var(--paper-on-ink-dim); } .uc-ink .uc-foot { border-color: var(--line-on-ink); color: var(--paper-on-ink-dim); } .uc-ink .uc-foot b { color: #fff; }
.uc-warm { background: var(--bg-warm); }
@media (max-width: 940px){ .uc-lg { grid-column: 1 / -1; } .uc-md, .uc-sm { grid-column: span 3; } }
@media (max-width: 640px){ .bento { grid-template-columns: 1fr; } .uc-lg,.uc-md,.uc-sm { grid-column: span 1; } }

.mini-chart { position: relative; margin-top: 26px; height: 96px; display: flex; align-items: flex-end; gap: 10px; }
.mini-chart b { position: relative; flex: 1; border-radius: 4px 4px 0 0; height: var(--h); background: var(--ink-25); transition: height .8s var(--ease-out); }
.mini-chart b.peak { background: var(--lime-deep); }
.mini-chart b.peak i { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .6rem; font-weight: 600; letter-spacing: .02em; color: var(--lime-deep); white-space: nowrap; }
.mini-chart .mc-base { position: absolute; left: 0; right: 0; bottom: 25%; border-top: 1px dashed var(--ink-25); pointer-events: none; }
.mini-chart .mc-base em { position: absolute; left: 0; top: -15px; font-style: normal; font-size: .58rem; letter-spacing: .02em; color: var(--ink-40); background: var(--surface); padding-right: 6px; }
.uc-ink .mini-chart b { background: rgba(247,244,236,.24); } .uc-ink .mini-chart b.peak { background: var(--lime); }
.chart-x { display: flex; justify-content: space-between; font-size: .62rem; color: var(--ink-40); margin-top: 6px; }
.uc-ink .chart-x { color: var(--paper-on-ink-dim); }
.uc .big { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.uc .big .u { font-size: .4em; color: var(--ink-40); }

/* ---------- Question bank explorer ---------- */
.qx { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
@media (max-width: 900px){ .qx { grid-template-columns: 1fr; } }
.qx-cats { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px){ .qx-cats { flex-direction: row; flex-wrap: wrap; } }
.qx-cat { text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; color: var(--ink-70); transition: all .2s var(--ease-out); font-weight: 500; }
.qx-cat:hover { background: rgba(23,21,18,.04); color: var(--ink); }
.qx-cat[aria-selected="true"] { background: var(--ink); color: #fff; }
.qx-cat .qn { font-size: .78rem; margin-left: auto; color: var(--ink-55); }
.qx-cat[aria-selected="true"] .qn { color: var(--ink-70); }
.qx-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.qx-panel-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.qx-panel-head h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.qx-panel-head .learn { font-size: .84rem; color: var(--ink-55); max-width: 32ch; text-align: right; }
@media (max-width: 560px){ .qx-panel-head { flex-direction: column; align-items: flex-start; gap: 6px; } .qx-panel-head .learn { text-align: left; } }
.qx-list { display: grid; }
.qx-item { display: flex; align-items: center; gap: 14px; padding: 15px 24px; border-top: 1px solid var(--line-soft); animation: fadeUp .4s var(--ease-out) backwards; }
.qx-item:first-child { border-top: 0; }
.qx-item .qtype { font-size: .64rem; letter-spacing: .03em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; flex: 0 0 auto; border: 1px solid var(--line); color: var(--ink-70); min-width: 92px; text-align: center; font-weight: 600; }
.qx-item .qtype.rating { background: var(--lime-soft); border-color: rgba(78,154,46,.3); color: var(--lime-deep); }
.qx-item .qtype.text { background: var(--bg-warm); }
.qx-item .qtype.single { background: var(--bg-warm); }
.qx-item .qtype.multi { background: var(--bg-warm); }
.qx-item .qt { font-size: .96rem; color: var(--ink-85); }
.qx-foot { padding: 16px 24px; background: var(--surface-2); border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-55); }

/* ---------- Automation / Slack + Flow ---------- */
.auto-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,3.4vw,52px); align-items: center; }
@media (max-width: 940px){ .auto-grid { grid-template-columns: 1fr; } }
/* Flow viz: a drafting canvas with wired nodes and a live packet running the automation */
.flow-viz { background: var(--surface); background-image: radial-gradient(rgba(21,23,28,.06) 1px, transparent 1px); background-size: 13px 13px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px,2.4vw,28px); box-shadow: var(--shadow-md); }
.fv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fv-head .fv-k { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); }
.fv-head .fv-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .7rem; color: var(--lime-deep); background: var(--lime-soft); border: 1px solid rgba(78,154,46,.3); border-radius: 999px; padding: 3px 10px; }
.fv-head .fv-live i { width: 7px; height: 7px; border-radius: 2px; background: var(--lime); border: 1px solid rgba(21,23,28,.35); }
.flow-node { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.flow-node .fn-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.flow-node .fn-ico.trigger { background: var(--lime-soft); } .flow-node .fn-ico.trigger svg { stroke: var(--lime-deep); }
.flow-node .fn-ico.action { background: var(--bg-warm); } .flow-node .fn-ico.action svg { stroke: var(--ink); }
.flow-node .fn-t { font-weight: 600; font-size: .92rem; color: var(--ink); } .flow-node .fn-s { font-size: .74rem; color: var(--ink-55); }
.flow-node .fn-tag { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-40); }
/* ports: small diamonds where the wire meets the node */
.flow-node::after { content: ""; position: absolute; left: 50%; bottom: -4.5px; width: 7px; height: 7px; background: var(--surface); border: 1.5px solid var(--ink-40); transform: translateX(-50%) rotate(45deg); z-index: 1; }
.fv-outlabel + .slack-msg { margin-top: 0; }
.flow-conn { width: 0; height: 30px; border-left: 2px dashed var(--ink-25); margin-inline: auto; position: relative; background: none; }
.flow-conn::after { content: ""; position: absolute; left: -5px; top: -2px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); border: 1px solid var(--ink); animation: fvPkt 2.4s cubic-bezier(.4,0,.6,1) infinite; }
.flow-conn.out::after { animation-delay: 1.2s; }
@keyframes fvPkt { 0% { top: -2px; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
.fv-outlabel { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); text-align: center; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .flow-conn::after { animation: none; top: calc(50% - 4px); } }
.slack-msg { margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: var(--surface); display: flex; gap: 12px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.slack-msg.show { opacity: 1; transform: none; }
.slack-msg .sav { width: 36px; height: 36px; border-radius: 9px; background: var(--alert); display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 700; }
.slack-msg .sn { font-weight: 600; font-size: .9rem; color: var(--ink); display: flex; align-items: center; gap: 8px; } .slack-msg .st { font-size: .68rem; color: var(--ink-40); font-weight: 400; }
.slack-msg .sb { font-size: .86rem; color: var(--ink-70); margin-top: 3px; }
.slack-msg .sb b { color: var(--ink); }
.auto-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.auto-list li { display: flex; gap: 14px; align-items: flex-start; }
.auto-list .ai { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.auto-list .ai svg { width: 17px; height: 17px; stroke: var(--ink); }
.auto-list b { font-weight: 600; color: var(--ink); } .auto-list span { color: var(--ink-70); font-size: .96rem; }
code { font-family: var(--font-mono); background: var(--bg-warm); padding: 1px 6px; border-radius: 5px; font-size: .84em; color: var(--ink); }

/* ---------- Close-the-loop flow ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; position: relative; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
@media (max-width: 900px){ .loop { grid-template-columns: 1fr; gap: 40px; } }
.loop-step { background: var(--surface); padding: clamp(22px, 2vw, 30px); position: relative; display: flex; flex-direction: column; transition: background .25s var(--ease-out); }
.loop-step:hover { background: var(--bg-warm, var(--surface)); }
.loop-step .ic { display: none; }
.loop-step .ls-chip, .loop-step .ls-chip.codes, .loop-step .ls-chip.email { display: none; }
.loop-step .ls-top { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 14px; }
.loop-step .ls-top .ic { width: 40px; height: 40px; }
.loop-step .ls-top .ic svg { width: 26px; height: 26px; }
.loop-step .ls-n { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; color: var(--lime-deep); letter-spacing: .05em; line-height: 1; }
.loop-step .ls-n::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); border: 1px solid rgba(21,23,28,.35); }
.loop-step h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: -0.01em; }
.loop-step p { font-size: .88rem; color: var(--ink-70); line-height: 1.45; }
.loop-step::after, .loop-step::before { display: none; }
@media (max-width: 900px){
  .loop-step:not(:last-child)::after { left: 50%; top: 100%; margin-left: 0; margin-top: 20px; }
  .loop-step:not(:last-child)::before { left: 50%; top: 100%; margin-left: 0; margin-top: 20px; transform: translate(-50%, -50%) rotate(90deg); }
}
.ls-chip { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
/* desktop row: equal outcome zones so the dividers sit on one shared line, with a guaranteed gap under the text */
@media (min-width: 901px) {
  .loop-step p { margin-bottom: 14px; }
  .ls-chip { min-height: 88px; }
  .ls-chip.codes { align-content: flex-start; }
}
.ls-chip .ls-q { display: block; font-size: .76rem; color: var(--ink-55); margin-bottom: 7px; }
.ls-chip .ls-a { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--lime-deep); background: var(--lime-soft); border: 1px solid rgba(62,142,35,.3); border-radius: 8px; padding: 6px 11px; }
.ls-chip.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-chip .ls-wait { font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--bg-warm); border-radius: 8px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px; }
.ls-chip.email b { display: block; font-size: .84rem; color: var(--ink); margin-bottom: 3px; }
.ls-chip.email span { font-size: .78rem; color: var(--ink-55); line-height: 1.4; }

/* ---------- Feature cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .cards { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px){ .cards { grid-template-columns: 1fr !important; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-warm); display: grid; place-items: center; margin-bottom: 6px; }
.card-icon svg { width: 23px; height: 23px; stroke: var(--ink); }
.card-icon .lm { stroke: var(--lime-deep); }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.card p { color: var(--ink-70); font-size: .94rem; }
.card .mono-tag { margin-top: auto; padding-top: 10px; font-size: .74rem; letter-spacing: .02em; color: var(--ink-55); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.card .mono-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
/* contained spec-sheet variant (avoids the generic floating-card grid) */
.cards.spec { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.cards.spec .card { border: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
.cards.spec .card:hover { transform: none; box-shadow: none; background: var(--surface-2); }

/* ---------- Ink sections ---------- */
.theme-ink { background: var(--ink); color: var(--bg); }
.theme-ink.rounded { border-radius: clamp(22px, 3vw, 36px); margin-inline: clamp(10px, 1.6vw, 24px); position: relative; overflow: hidden; }
.theme-ink p, .theme-ink .muted { color: var(--paper-on-ink); }
.theme-ink .h2, .theme-ink .h3, .theme-ink b, .theme-ink strong, .theme-ink .display { color: #fff; }

/* blueprint rails continue through dark slabs (aligned to the page rails via 100vw) */
.rails-ink { position: absolute; inset-block: 0; left: 50%; transform: translateX(-50%); width: min(var(--container-wide), calc(100vw - 24px)); border-inline: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.theme-ink > .container, .theme-ink > .container-wide, .theme-ink > .cta-panel { position: relative; }
@media (max-width: 860px) { .rails-ink { display: none; } }

/* NPS hallmark: the brand scale as a quiet sign-off on dark slabs */
.nps-mark { display: flex; gap: 7px; justify-content: center; margin-top: clamp(26px, 3.4vw, 38px); }
.nps-mark span { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(255,255,255,.22); }
.nps-mark span.on { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 16px rgba(125,255,0,.35); }

/* ---------- Tour tabs (features page) ---------- */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 4vw, 42px); }
.tour-tab { padding: 11px 20px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink-70); font-weight: 500; font-size: .96rem; transition: all .22s var(--ease-out); }
.tour-tab:hover { border-color: var(--ink-40); color: var(--ink); }
.tour-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tour-panel { display: none; }
.tour-panel.active { display: grid; gap: clamp(28px, 4vw, 58px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; animation: fadeUp .5s var(--ease-out); }
@media (max-width: 940px) { .tour-panel.active { grid-template-columns: 1fr; } }
.tour-copy .h3 { margin-bottom: 14px; }
.tour-copy ul { margin-top: 18px; display: grid; gap: 10px; padding: 0; list-style: none; }
.tour-copy li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-70); font-size: .98rem; }
.tour-copy li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-deep); flex: 0 0 auto; position: relative; top: 6px; }

/* ---------- Mock UI ---------- */
.mock { background: var(--surface); color: var(--ink); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .9rem; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.mock-title { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-55); font-weight: 600; }
.mock-pill { background: var(--ink); color: #fff; font-size: .68rem; font-weight: 600; padding: 5px 11px; border-radius: var(--pill); }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px 14px; }
.mock-row .q { font-weight: 600; font-size: .88rem; color: var(--ink); }
.mock-row .t { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-55); overflow-wrap: anywhere; }
.mock-toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--pos); position: relative; flex: 0 0 auto; transition: background .2s; }
.mock-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.22); }
.mock-toggle.off { background: var(--ink-25); }
.mock-toggle.off::after { right: auto; left: 3px; }
.mock-swatch { width: 34px; height: 22px; border-radius: 7px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.14); }
.mock-bar { display: grid; gap: 7px; }
.mock-bar .lbl { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-55); }
.mock-bar .track { height: 9px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.mock-bar .fill { height: 100%; border-radius: 999px; background: var(--ink); width: 0; transition: width 1.1s var(--ease-out); }
.mock-bar .fill.lime { background: var(--pos); } .mock-bar .fill.coral { background: var(--alert); }
.mock-bar.animated .fill { width: var(--w); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { font-size: .74rem; padding: 6px 11px; border-radius: 8px; background: var(--bg-warm); border: 1px solid var(--line-soft); color: var(--ink-70); }
.mock-chip.lime { background: var(--lime-soft); border-color: rgba(78,154,46,.3); color: var(--lime-deep); }
.mock-insight { border-left: 3px solid var(--lime-deep); background: var(--lime-soft); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: .86rem; line-height: 1.5; color: var(--ink-85); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px; }
.mock-kpi b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; display: block; letter-spacing: -0.02em; color: var(--ink); }
.mock-kpi span { font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-55); }

/* ---------- Testimonials ---------- */
.quote-stage { position: relative; min-height: 300px; }
.quote { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.quote.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); max-width: 24ch; }
.quote blockquote .lq { color: var(--lime-deep); }
.quote figcaption { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quote .who b { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); }
.quote .who span { color: var(--ink-55); font-size: .9rem; }
.quote-nav { display: flex; gap: 8px; margin-top: 30px; }
.quote-dot { width: 34px; height: 4px; border-radius: 999px; background: var(--ink-25); border: 0; padding: 0; transition: background .3s; }
.quote-dot[aria-selected="true"] { background: var(--ink); }
.stars { color: var(--lime-deep); letter-spacing: 2px; font-size: .95rem; }

/* ---------- Reviews wall ---------- */
.rev-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rev-stat .rs-stars { color: var(--lime-deep); letter-spacing: 3px; font-size: 1rem; }
.rev-stat b { font-family: var(--font-display); font-size: 1.95rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.rev-stat .rs-meta { color: var(--ink-55); font-size: .92rem; max-width: 30ch; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-top: clamp(30px, 4vw, 48px); }
@media (max-width: 1000px){ .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .reviews { grid-template-columns: 1fr; } }
.review { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.review .stars { display: block; margin-bottom: 12px; }
.review blockquote { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-85); flex: 1; }
.review figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.review figcaption b { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; }
.review figcaption span { color: var(--ink-55); font-size: .82rem; }

/* ---------- Integrations ---------- */
.integrations { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px){ .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px){ .integrations { grid-template-columns: minmax(0, 1fr); } }
.integration { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px 22px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s; }
.integration:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.integration .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--lime); flex: 0 0 auto; }
.integration.partner .dot { background: var(--ink-40); }
.integration span { font-size: .95rem; }
.integration em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--ink-55); letter-spacing: .02em; }
.int-stack { display: grid; gap: clamp(16px, 2vw, 22px); }
.int-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.int-head .int-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--lime-deep); background: var(--lime-soft); border: 1px solid rgba(78,154,46,.28); border-radius: 6px; padding: 3px 8px; }
.int-head .int-label { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.3vw, 1.12rem); letter-spacing: -.01em; color: var(--ink); }
.int-head .int-note { margin-left: auto; font-size: .82rem; color: var(--ink-55); }
.int-link { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); }
.int-link .int-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.int-link .int-chip { font-size: .8rem; color: var(--ink-70); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.int-link .int-chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
@media (max-width: 560px) { .int-head .int-note { display: none; } .int-link .int-chip { white-space: normal; text-align: center; } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 900px){ .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 2.8vw, 36px); display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.featured p, .plan.featured li { color: var(--paper-on-ink); }
/* trial CTA on the dark card: white outline pill that fills and inverts on hover */
.plan.featured .btn { background: transparent; border: 1.5px solid rgba(255,255,255,.85); color: #fff; box-shadow: none; }
.plan.featured .btn:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: none; }
.plan-flag { position: absolute; top: -13px; left: 26px; background: var(--lime); color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 7px; }
.plan-name { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: inherit; opacity: .65; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan-price b { font-family: var(--font-display); font-size: clamp(2rem, 2.7vw, 2.55rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: inherit; }
.plan.featured .plan-price b { color: #fff; }
.plan-price span { color: inherit; opacity: .55; font-size: .95rem; }
.plan-for { margin-top: 12px; font-size: .95rem; opacity: .82; min-height: 3em; }
.plan ul { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; align-items: baseline; font-size: .96rem; }
.plan li::before { content: "✓"; font-weight: 700; color: var(--lime-deep); flex: 0 0 auto; }
.plan.featured li::before { color: var(--lime); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-note { margin-top: 14px; text-align: center; font-size: .74rem; opacity: .6; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .95rem; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-55); background: var(--surface-2); font-weight: 600; }
.compare thead th.hot { color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--ink); font-weight: 600; }
.compare td.yes::before { content: "✓ "; color: var(--lime-deep); }
.compare td.no { color: var(--ink-25); }
.compare .group td { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-55); background: var(--surface-2); font-weight: 600; }

/* Comparison table becomes stacked feature cards on phones (no horizontal scroll) */
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .compare { min-width: 0; width: 100%; display: block; font-size: .96rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .compare tbody, .compare tbody tr { display: block; }
  .compare tr.group td { display: block; padding: 0; margin: 26px 2px 11px; background: transparent; border: 0; }
  .compare tbody tr.group:first-child td { margin-top: 0; }
  .compare tbody tr:not(.group) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .compare tbody tr:not(.group) th[scope="row"] { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); padding: 12px 15px 10px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
  .compare tbody tr:not(.group) td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 15px; border: 0; border-top: 1px solid var(--line-soft); text-align: right; }
  .compare tbody tr:not(.group) td:first-of-type { border-top: 0; }
  .compare td.yes::before, .compare td.no::before { content: attr(data-plan); color: var(--ink-55); font-weight: 500; font-family: var(--font-sans); letter-spacing: 0; }
  .compare td.yes { color: var(--lime-deep); font-weight: 600; }
  .compare td.no { color: var(--ink-40); font-weight: 500; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.faq-q .sign { font-size: 1.4rem; transition: transform .3s var(--ease-out); flex: 0 0 auto; line-height: 1; color: var(--ink-40); }
.faq-q[aria-expanded="true"] .sign { transform: rotate(45deg); color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 26px; color: var(--ink-70); max-width: 64ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta-panel { text-align: center; padding: clamp(64px, 8vw, 120px) var(--gutter); position: relative; overflow: hidden; }
.cta-panel > * { position: relative; }
.cta-panel .display { max-width: 15ch; margin-inline: auto; }
.cta-panel .lede { margin: 22px auto 0; color: var(--paper-on-ink); }
.cta-panel .hero-ctas { justify-content: center; margin-top: 38px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 40px; }
.footer > .container-wide { position: relative; z-index: 1; }
.footer > .rails { z-index: 0; }
.footer-grid { display: grid; gap: 44px; grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr)); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand svg { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-55); font-size: .92rem; max-width: 34ch; }
.footer h3 { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { text-decoration: none; color: var(--ink-70); font-size: .96rem; }
.footer a:hover { color: var(--ink); }
.footer-base { margin-top: clamp(40px, 6vw, 60px); padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--ink-55); }
.footer-base .mono { display: inline-flex; align-items: center; gap: 8px; }
.footer-base .mono::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .07s; } .reveal-d2 { transition-delay: .14s; } .reveal-d3 { transition-delay: .21s; } .reveal-d4 { transition-delay: .28s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(34px, 4.2vw, 64px) clamp(22px, 3vw, 40px); position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 20px; }

/* Feature rows */
.feature-row { display: grid; gap: clamp(30px, 4.6vw, 70px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: clamp(44px, 6vw, 76px); border-top: 1px solid var(--line-soft); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.flip .feature-visual { order: -1; }
@media (max-width: 940px) { .feature-row, .feature-row.flip { grid-template-columns: minmax(0, 1fr); } .feature-row.flip .feature-visual { order: 0; } }
.feature-copy .h2 { margin-bottom: 16px; }
.feature-copy p { color: var(--ink-70); }
.feature-copy ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.feature-copy li { position: relative; padding-left: 22px; color: var(--ink-70); line-height: 1.55; }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-deep); }
.feature-copy li b { color: var(--ink); font-weight: 600; }

/* ---------- Misc ---------- */
.pill-tag { display: inline-flex; align-items: center; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 13px; color: var(--ink-55); font-weight: 600; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
  .insight-chip, .slack-msg { opacity: 1; transform: none; }
}

/* ---------- Live browser frame (real store recordings) ---------- */
.browser-frame { position: relative; z-index: 2; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); margin: 0; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-dots { display: flex; gap: 7px; flex: 0 0 auto; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-25); }
.browser-url { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 360px; margin: 0 auto; font-size: .82rem; color: var(--ink-55); font-weight: 500; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--pill); padding: 5px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--lime-deep); }
.browser-body { display: block; position: relative; background: var(--ink); line-height: 0; }
.browser-body video, .browser-body img { display: block; width: 100%; height: auto; }
figcaption.browser-cap, .browser-cap { margin: 16px auto 0; font-size: .92rem; color: var(--ink-55); text-align: center; max-width: 60ch; }
.browser-cap b { color: var(--ink); font-weight: 600; }

/* ---------- Keep exploring (next-page wayfinding) ---------- */
/* features hero: the product in one line, ask -> read -> tag -> alert, packets on the wire */
/* features hero: joined-cell capability panel (depth + inset, on-brand signature) */
.hero-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(28px, 3.4vw, 48px); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-process .hp-i { position: relative; background: var(--surface); padding: clamp(20px, 2vw, 30px); display: flex; flex-direction: column; gap: 11px; }
.hero-process .hp-i .hp-k { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--lime-deep); }
.hero-process .hp-i .hp-k::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); border: 1px solid rgba(21,23,28,.35); }
.hero-process .hp-i p { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--ink-80, var(--ink-70)); }
.hero-process .hp-i b { font-weight: 600; color: var(--ink); }
@media (max-width: 620px){ .hero-process { grid-template-columns: 1fr; } }

/* docs hero: the setup path, each stop a real anchor */
.doc-path { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; row-gap: 12px; margin-top: clamp(24px, 3vw, 34px); }
.doc-path a { font-family: var(--font-mono); font-size: .76rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; transition: all .18s var(--ease-out); }
.doc-path a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.doc-path .dp-w { width: 16px; border-top: 2px dashed var(--ink-25); flex: 0 0 auto; }
/* mobile/tablet: drop the path connectors so wrapped chips read as a clean cluster, not dangling dashes */
@media (max-width: 820px){ .doc-path .dp-w { display: none; } .doc-path { gap: 8px 10px; } }

/* drafting numerals on cell grids */
.cards.numbered { counter-reset: cell; }
.cards.numbered .card { position: relative; counter-increment: cell; }
.cards.numbered .card::before { content: counter(cell, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-25); }

/* editorial contents table: number · title · note · dot leader · action */
.toc { border-top: 1px solid var(--line); }
.toc-row { display: flex; align-items: baseline; gap: clamp(14px, 2.2vw, 26px); padding: clamp(20px, 2.8vw, 30px) 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding-left .25s var(--ease-out); }
.toc-row:hover { background: rgba(23, 21, 18, .025); padding-left: 14px; }
.toc-n { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-40); flex: 0 0 auto; }
.toc-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.72rem); letter-spacing: -0.018em; color: var(--ink); white-space: nowrap; line-height: 1.1; }
.toc-d { font-size: .95rem; color: var(--ink-55); flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-leader { flex: 1 1 40px; min-width: 30px; border-bottom: 2px dotted var(--ink-25); transform: translateY(-5px); }
.toc-go { font-weight: 600; font-size: .95rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: 0 0 auto; }
.toc-go em { font-style: normal; transition: transform .2s var(--ease-out); }
.toc-row:hover .toc-go em { transform: translateX(4px); }
@media (max-width: 700px) {
  .toc-d { display: none; }
  .toc-row { gap: 12px; }
}
.next-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.next-card .nc-t { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-top: 5px; }
.next-card .nc-go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .92rem; color: var(--lime-deep); display: inline-flex; align-items: center; gap: 7px; }
.next-card:hover .nc-go span { transform: translateX(4px); }

/* ================= Drafting-sheet details (inspo round) ================= */
/* hatched gutters: the zones outside the blueprint rails, hero + footer bookends */
@media (min-width: 1290px) {
  .hero::after, .page-hero::after, .footer::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    --gz: calc((100% - var(--container-wide)) / 2 - 12px);
    background-image:
      repeating-linear-gradient(-45deg, var(--grid-line) 0 1px, transparent 1px 8px),
      repeating-linear-gradient(-45deg, var(--grid-line) 0 1px, transparent 1px 8px);
    background-size: var(--gz) 100%, var(--gz) 100%;
    background-position: left top, right top;
    background-repeat: no-repeat;
  }
  /* same drafting texture inside dark slabs, outside their interior rails */
  .theme-ink.rounded::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    --gz: calc((100% - min(var(--container-wide), 100vw - 24px)) / 2);
    background-image:
      repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 8px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 8px);
    background-size: var(--gz) 100%, var(--gz) 100%;
    background-position: left top, right top;
    background-repeat: no-repeat;
  }
}

/* NPS hallmark lights up square by square on view */
.nps-mark span { opacity: .3; transform: scale(.72); transition: opacity .32s var(--ease-out), transform .32s var(--ease-out); }
.nps-mark.lit span { opacity: 1; transform: none; }
.nps-mark.lit span:nth-child(1) { transition-delay: 0s; }
.nps-mark.lit span:nth-child(2) { transition-delay: .05s; }
.nps-mark.lit span:nth-child(3) { transition-delay: .1s; }
.nps-mark.lit span:nth-child(4) { transition-delay: .15s; }
.nps-mark.lit span:nth-child(5) { transition-delay: .2s; }
.nps-mark.lit span:nth-child(6) { transition-delay: .25s; }
.nps-mark.lit span:nth-child(7) { transition-delay: .3s; }
.nps-mark.lit span:nth-child(8) { transition-delay: .35s; }
.nps-mark.lit span:nth-child(9) { transition-delay: .42s; }
.nps-mark.lit span:nth-child(10) { transition-delay: .5s; }

/* mobile menu: items cascade in */
@media (max-width: 900px) {
  .nav-mobile.open > a { opacity: 0; transform: translateY(-7px); animation: menuItemIn .32s var(--ease-out) forwards; }
  .nav-mobile.open > a:nth-child(1) { animation-delay: .02s; }
  .nav-mobile.open > a:nth-child(2) { animation-delay: .06s; }
  .nav-mobile.open > a:nth-child(3) { animation-delay: .1s; }
  .nav-mobile.open > a:nth-child(4) { animation-delay: .14s; }
  .nav-mobile.open > a:nth-child(5) { animation-delay: .18s; }
  .nav-mobile.open > a:nth-child(6) { animation-delay: .22s; }
  .nav-mobile.open > a:nth-child(7) { animation-delay: .26s; }
  .nav-mobile.open > a:nth-child(8) { animation-delay: .3s; }
}
@keyframes menuItemIn { to { opacity: 1; transform: none; } }

/* touch feedback */
.btn:active { transform: scale(.97); transition-duration: .08s; }

/* phones: tab strips become one scrollable row so the result stays right below the controls.
   left edge holds the content gutter; the row bleeds right with a partial tab + fade as the scroll cue */
@media (max-width: 620px) {
  .surface-tabs, .qx-cats {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: 0 calc(-1 * var(--gutter)); padding-inline: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent);
  }
  .surface-tabs::-webkit-scrollbar, .qx-cats::-webkit-scrollbar { display: none; }
  .surface-tab, .qx-cat { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .surface-tab { padding: 11px 13px; align-items: center; gap: 0; }
  .surface-tab .st-ico { display: none; }
  .qx-cat { padding: 12px 13px; }
  .surface-tabs { gap: 6px; padding-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .nps-mark span, .nav-mobile.open > a { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* 13-inch laptops: compact the tallest modules so single mocks do not tower past the fold */
@media (min-width: 941px) and (max-width: 1470px) {
  .surface-stage { min-height: 470px; }
  .surface-stage .device { zoom: .88; }
  .device-browser { max-width: 500px; }
  .device-browser .screen { padding: 16px; }
  .device-phone .pscreen { min-height: 420px; }
  .surface-caption { margin-top: 12px; }
  .uc { padding: clamp(20px, 2vw, 26px); }
  .bento { gap: 14px; }
  .section-head { margin-bottom: clamp(38px, 4.6vw, 60px); }
}

/* ================= UX craft (best-in-class round) ================= */
/* anchor targets land exactly under the sticky nav (offset lives in html scroll-padding-top) */

/* comparison table header stays visible while scanning (desktop; table fits, so no x-scroll needed) */
@media (min-width: 900px) {
  .compare-wrap { overflow-x: clip; }
  .compare thead th { position: sticky; top: 70px; z-index: 2; box-shadow: 0 1px 0 var(--line-soft); }
}

/* ---------- Cookie consent bar ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0 clamp(14px, 3vw, 28px) clamp(14px, 3vw, 24px); pointer-events: none; }
.cookie-bar-inner { pointer-events: auto; max-width: 1080px; margin-inline: auto; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px); transform: translateY(14px); opacity: 0; transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .32s ease; }
.cookie-bar.is-in .cookie-bar-inner { transform: none; opacity: 1; }
.cookie-copy { flex: 1 1 auto; }
.cookie-copy p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-55); }
.cookie-copy p:first-child { color: var(--ink); font-size: .95rem; margin-bottom: 3px; }
.cookie-actions { flex: 0 0 auto; display: flex; gap: 10px; }
@media (max-width: 640px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar-inner { transition: none; transform: none; opacity: 1; }
}
