/* ==========================================================================
   ReachCrew landing page
   Tokens → base → layout → components → sections → responsive
   ========================================================================== */

:root {
  /* Colour */
  --paper: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --ink: #05143B;            /* brand navy */
  --ink-2: #45507A;          /* body copy */
  --ink-3: #6A728F;          /* captions, meta */
  --line: #E2E5EE;
  --line-2: #EDEFF5;
  --indigo: #5852FB;         /* brand accent */
  --indigo-ink: #4A43E6;     /* hover / text on light */
  --indigo-soft: #EEEDFF;
  --indigo-deep: #3B35C9;
  --sky: #64AEFF;
  --blue: #2680FF;
  --royal: #1543CF;
  --green: #0F7F55;
  --green-soft: #E2F5EC;
  --amber: #9A5B00;
  --amber-soft: #FDF1DC;

  /* Type */
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.75rem;     /* 12 */
  --t-sm: 0.8125rem;   /* 13 */
  --t-base: 1rem;      /* 16 */
  --t-md: 1.0625rem;   /* 17 */
  --t-lg: 1.25rem;     /* 20 */
  --t-xl: 1.625rem;    /* 26 */
  --t-h2: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --t-h1: clamp(2.6rem, 1.1rem + 5.6vw, 5.75rem);

  /* Shape & depth */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-window: 0 1px 0 rgba(5, 20, 59, .04), 0 24px 60px -24px rgba(5, 20, 59, .28), 0 8px 20px -12px rgba(5, 20, 59, .14);
  --shadow-soft: 0 1px 2px rgba(5, 20, 59, .05), 0 6px 18px -10px rgba(5, 20, 59, .16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 11vw, 152px);
  --nav-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
small { font-size: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0 0; }
.muted { color: var(--ink-3); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.035em; color: var(--ink); }
.brand-word span { color: var(--indigo); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 11px;
  font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 38px; padding: 0 15px; font-size: .875rem; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; border-radius: 13px; }

.btn-primary { background: var(--indigo); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(5,20,59,.18), 0 6px 16px -6px rgba(88,82,251,.55); }
.btn-primary:hover { background: var(--indigo-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(5,20,59,.2), 0 10px 22px -8px rgba(88,82,251,.6); }

.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(5,20,59,.04); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #C9CEDD, 0 2px 8px -4px rgba(5,20,59,.12); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--indigo-soft); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); background: rgba(255,255,255,.06); }

/* ---------- Shared UI atoms (used inside mockups) ---------- */
.av {
  --c: var(--blue);
  width: 28px; height: 28px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--c); color: #fff;
  background: color-mix(in srgb, var(--c) 15%, #fff);
  color: color-mix(in srgb, var(--c) 72%, #05143B);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.av.sq { border-radius: 8px; }
.stack { display: inline-flex; }
.stack .av { width: 24px; height: 24px; font-size: 9px; box-shadow: 0 0 0 2px var(--surface); }
.stack .av + .av { margin-left: -7px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-indigo { background: var(--indigo-soft); color: var(--indigo-deep); }
.pill-muted { background: #EFF1F5; color: var(--ink-3); }

.meter { display: block; height: 6px; border-radius: 99px; background: #EBEDF3; overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--indigo); border-radius: inherit; transform-origin: left; }
.bar { display: inline-block; width: 92px; height: 6px; border-radius: 99px; background: #EBEDF3; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink); border-radius: inherit; }

.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--ink); color: #fff;
}
.btn-mini .icon { width: 14px; height: 14px; }
.btn-mini.is-primary { background: var(--indigo); }

.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.who b { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-inline { display: inline-flex; align-items: center; gap: 10px; }
.who-inline > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.who-inline b { font-size: 13.5px; font-weight: 600; }
.who-inline small { font-size: 12px; color: var(--ink-3); }
.via { font-size: 11.5px; color: var(--ink-3); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; }

.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.bubble.out { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; }
.bubble.in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); border-bottom-left-radius: 5px; }
.event { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 99px; }
.event .icon { width: 14px; height: 14px; }
.composer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink-3); background: var(--surface); }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #EEF0F5; }
.seg > * { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.seg > * .icon { width: 14px; height: 14px; }
.seg > .is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(5,20,59,.08), 0 0 0 1px rgba(5,20,59,.04); }

/* Windows & mock panels */
.window {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-window);
  border: 1px solid rgba(5, 20, 59, .07);
  overflow: hidden;
}
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.nav-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 56px; padding: 0 8px 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 0 0 1px rgba(5, 20, 59, .06), 0 1px 2px rgba(5, 20, 59, .04);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled .nav-bar {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(5, 20, 59, .08), 0 12px 32px -16px rgba(5, 20, 59, .24);
}
.nav .brand-mark { width: 28px; height: 28px; }
.nav .brand-word { font-size: 1.125rem; }
.nav-links { justify-self: center; display: flex; gap: 2px; }
.nav-links a, .nav-login {
  padding: 7px 12px; border-radius: 9px;
  font-size: .90625rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover, .nav-login:hover { color: var(--ink); background: rgba(5, 20, 59, .045); }
.nav-links a.is-current { color: var(--ink); background: rgba(5, 20, 59, .06); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-actions .btn-sm { margin-left: 4px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; color: var(--ink); }
.nav-toggle:hover { background: rgba(5, 20, 59, .05); }
.nav-toggle .icon { width: 22px; height: 22px; }

.btn-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(5, 20, 59, .2); }
.btn-dark:hover { background: #102559; }

.nav > .container { position: relative; }
.mobile-menu {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; padding: 6px 16px 16px;
  border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(5, 20, 59, .07), 0 24px 48px -24px rgba(5, 20, 59, .3);
  animation: menu-in .25s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav > a { padding: 14px 4px; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero-top { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 6vw, 80px); }

/* Converging lines: drawn by main.js, flowing into the action dock */
.waves { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(5, 20, 59, .04);
  font-size: .84375rem; font-weight: 500; color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.5rem, 1.15rem + 4.3vw, 4.75rem);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.046em;
  max-width: 11em;
  text-wrap: balance;
}
.hero-lede { margin-top: 24px; max-width: 33em; font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Action dock: the converging lines meet here */
.dock {
  --glow: 0;
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 40px; padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1.5px var(--ink),
    0 0 0 calc(var(--glow) * 7px) rgba(88, 82, 251, .14),
    0 14px 34px -16px rgba(5, 20, 59, .3);
}
.dock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: 12px;
  font-size: .96875rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.dock-btn .icon { width: 17px; height: 17px; }
.dock-btn:active { transform: scale(.98); }
.dock-ghost { color: var(--ink); }
.dock-ghost:hover { background: #EEF0F5; }
.dock-primary { background: var(--indigo); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.dock-primary:hover { background: var(--indigo-ink); }
.dock-btn:focus-visible { outline-offset: 2px; }
.dock-hint { margin-top: 16px; font-size: .875rem; color: var(--ink-3); }

.dock-dark { background: #0D1C48; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 0 calc(var(--glow) * 7px) rgba(100, 174, 255, .16); margin-top: 36px; }
.dock-dark .dock-ghost { color: #fff; }
.dock-dark .dock-ghost:hover { background: rgba(255, 255, 255, .08); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Product preview under the hero: quiet frame that fades out at the bottom */
.hero-stage {
  position: relative;
  padding: clamp(14px, 2.6vw, 32px) clamp(12px, 2.6vw, 32px) 0;
  border-radius: var(--r-xl);
  background: #E9ECF2;
  box-shadow: inset 0 0 0 1px rgba(5, 20, 59, .05);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.board { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 18px;
  border-bottom: 1px solid var(--line-2);
}
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.crumbs strong { font-weight: 600; white-space: nowrap; }
.crumb-muted { color: var(--ink-3); white-space: nowrap; }
.crumb-sep { color: #C4C9D6; }

.board-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 250px; min-height: 384px; }
.board-senders, .board-inbox { padding: 18px 16px; background: var(--surface-2); }
.board-senders { border-right: 1px solid var(--line-2); }
.board-inbox { border-left: 1px solid var(--line-2); }

.board-senders li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; row-gap: 7px; align-items: center; padding: 10px 0; }
.board-senders li + li { border-top: 1px solid var(--line-2); }
.board-senders .meter { grid-column: 1 / -1; height: 4px; }
.board-senders .meter i { transition: width .6s var(--ease); }
.board-senders .who small b { font-weight: 600; color: var(--ink-2); font-size: inherit; }

.board-pipeline { padding: 16px 16px 20px; min-width: 0; }
.stage-head, .lane { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stage-head { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.stage-head span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.stage-head .icon { width: 14px; height: 14px; }
.stage-head b { margin-left: 2px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage-head span:last-child b { color: var(--green); }

.lanes-grid { display: flex; flex-direction: column; }
.lane { padding: 10px 0; min-height: 76px; border-bottom: 1px dashed var(--line-2); }
.lane:last-child { border-bottom: 0; }
.cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 2px; border-radius: 10px; }
.cell:last-child { background: rgba(15, 127, 85, .04); }

.chip {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 5px; min-width: 0;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(5, 20, 59, .05);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  will-change: transform;
}
.chip .av { width: 20px; height: 20px; font-size: 8px; }
.chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.chip.is-replied { border-color: rgba(15, 127, 85, .3); background: #F5FCF8; }
.chip.is-leaving { opacity: 0; transform: scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease); }

.board-inbox ul { display: flex; flex-direction: column; gap: 8px; }
.inbox-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px;
  padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(5, 20, 59, .04);
}
.inbox-item .who b { font-size: 12.5px; }
.inbox-item p { grid-column: 2; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.inbox-item .tag { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--green); }
.inbox-item .tag .icon { width: 12px; height: 12px; }
.inbox-item.is-new { animation: inbox-in .6s var(--ease); }
.inbox-item:nth-child(n+4) { display: none; }
@keyframes inbox-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* Hero load sequence: one orchestrated moment */
.hero-eyebrow, .hero-title, .hero-lede, .hero-top .dock, .dock-hint, .hero-stage { animation: rise .9s var(--ease) both; }
.hero-title { animation-delay: .05s; }
.hero-lede { animation-delay: .12s; }
.hero-top .dock { animation-delay: .2s; }
.dock-hint { animation-delay: .26s; }
.hero-stage { animation-delay: .34s; animation-duration: 1.1s; }
.waves { animation: fade-in 1.6s ease .3s both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ==========================================================================
   Lead sources and account safeguards
   ========================================================================== */
.proof { padding: clamp(56px, 7vw, 88px) 0 0; }
.proof-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.proof-title { font-size: var(--t-md); font-weight: 500; line-height: 1.45; color: var(--ink-2); max-width: 26em; letter-spacing: -0.005em; }
.logo-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.logo-slots li {
  height: 56px; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink-2); text-align: center;
}
.logo-slots .icon { width: 16px; height: 16px; color: var(--indigo); }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2, .faq-intro h2 {
  font-size: var(--t-h2); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em;
  text-wrap: balance; max-width: 15em;
}
.section-head p { font-size: var(--t-md); color: var(--ink-2); max-width: 30em; }

/* ==========================================================================
   How it works: sticky stage on desktop, inline visuals on mobile
   ========================================================================== */
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.how-steps { counter-reset: step; }
.how-step {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px;
  min-height: 56vh; padding: 28px 0;
  align-content: center;
}
.how-step::before {
  content: ""; position: absolute; left: 19.5px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.how-step:first-child::before { top: 50%; }
.how-step:last-child::before { bottom: 50%; }
.step-num {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.how-step.is-active .step-num { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.step-text h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0 12px; }
.step-text p { color: var(--ink-2); max-width: 30em; transition: color .35s var(--ease); }
.how-step:not(.is-active) .step-text { opacity: .5; transition: opacity .35s var(--ease); }
.how-step.is-active .step-text { opacity: 1; transition: opacity .35s var(--ease); }
.step-visual { display: none; }

.how-stage {
  position: sticky; top: calc(var(--nav-h) + 40px);
  height: min(560px, calc(100vh - var(--nav-h) - 80px));
  align-self: start;
  margin-top: 6vh;
  border-radius: var(--r-xl);
  background: var(--indigo-soft);
  overflow: hidden;
}
.how-stage::before {
  /* faint lane lines echo the hero */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 63px, rgba(88, 82, 251, .1) 63px 64px);
}
.how-stage .step-visual {
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 40px;
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.how-stage .step-visual.is-active { opacity: 1; transform: none; }
.how-stage .mock { width: min(440px, 100%); }

/* Step mockups */
.mock-import { padding: 14px; }
.mock-import .seg { margin-bottom: 10px; }
.import-rows li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; }
.import-rows li + li { border-top: 1px solid var(--line-2); }
.import-rows li.is-dropped .who b { text-decoration: line-through; text-decoration-color: rgba(106, 114, 143, .6); color: var(--ink-3); }
.import-foot { display: flex; justify-content: space-between; padding: 12px 4px 2px; margin-top: 4px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }

.mock-flow { padding: 18px; display: flex; flex-direction: column; align-items: center; }
.flow-node {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(5, 20, 59, .04);
}
.flow-node > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.flow-node b { font-size: 13px; font-weight: 600; }
.flow-node small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--indigo-soft); color: var(--indigo-deep); }
.node-ic .icon { width: 16px; height: 16px; }
.flow-wait .node-ic { background: var(--amber-soft); color: var(--amber); }
.flow-end .node-ic { background: #EFF1F5; color: var(--ink-3); }
.flow-line { display: block; width: 1px; height: 16px; background: #CDD2DF; }
.flow-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; position: relative; padding-top: 14px; }
.flow-split::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 14px; border: 1px solid #CDD2DF; border-bottom: 0; border-radius: 10px 10px 0 0; }
.flow-branch { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-branch .flow-node { padding: 8px 10px; }
.branch-label { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.branch-label.is-yes { background: var(--green-soft); color: var(--green); }
.branch-label.is-no { background: #EFF1F5; color: var(--ink-3); }

.mock-senders { padding: 16px; }
.mock-senders li { display: grid; grid-template-columns: 28px 1fr 84px; gap: 12px; align-items: center; padding: 10px 0; }
.mock-senders li + li { border-top: 1px solid var(--line-2); }

.mock-thread { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   Product showcase
   ========================================================================== */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border-top: 1px solid var(--line); }
.tab {
  position: relative;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 20px 24px 18px 0;
  color: var(--ink-3);
  transition: color .25s var(--ease);
}
.tab::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 24px; height: 2px;
  background: var(--indigo); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.tab-title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.tab-desc { font-size: .9375rem; color: var(--ink-3); padding-left: 26px; }
.tab:focus-visible { outline-offset: -2px; }

.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 520px; }
.app-side { display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; background: var(--surface-2); border-right: 1px solid var(--line-2); }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.app-brand .brand-mark { width: 24px; height: 24px; }
.app-brand .brand-word { font-size: 15.5px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background-color .25s var(--ease), color .25s var(--ease); }
.app-nav li .icon { width: 16px; height: 16px; color: var(--ink-3); transition: color .25s var(--ease); }
.app-nav li.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(5, 20, 59, .06), 0 0 0 1px var(--line-2); }
.app-nav li.is-on .icon { color: var(--indigo); }
.app-ws { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.app-ws > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.app-ws b { font-size: 12.5px; font-weight: 600; }
.app-ws small { font-size: 11.5px; color: var(--ink-3); }

.app-main { min-width: 0; padding: 22px 26px 26px; }
.panel { animation: panel-in .45s var(--ease); outline: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.app-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.app-head p { font-size: 13px; }
.app-head-actions { display: flex; align-items: center; gap: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; }
.table { font-size: 13px; min-width: 640px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .2s var(--ease); }
.table tbody tr:hover { background: #FAFAFD; }
.table td b { display: block; font-weight: 600; }
.table td small { display: block; font-size: 12px; color: var(--ink-3); }
.table td small.muted { display: inline; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.inbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; min-height: 400px; }
.inbox-list { border-right: 1px solid var(--line-2); padding: 12px; }
.chips { display: flex; gap: 6px; margin-bottom: 10px; }
.chips span { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px; color: var(--ink-3); border: 1px solid var(--line-2); }
.chips span.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.inbox-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; }
.inbox-list li.is-on { background: var(--indigo-soft); }
.inbox-list time { font-size: 11.5px; color: var(--ink-3); align-self: start; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.thread-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.inbox-thread .composer { margin: 0 14px 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 16px; }
.kpis > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpis > div + div { border-left: 1px solid var(--line-2); }
.kpis small { font-size: 12px; color: var(--ink-3); }
.kpis b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.chart { position: relative; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 16px 10px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; }
.lg-a { background: var(--indigo); }
.lg-b { background: var(--green); }
.chart svg { width: 100%; height: 220px; overflow: visible; }
.chart .grid line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .area { fill: rgba(88, 82, 251, .1); }
.chart .line-a { fill: none; stroke: var(--indigo); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .line-b { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s; }
.chart.is-hover .cursor { opacity: .35; }
.chart-tip {
  position: absolute; top: 44px; transform: translateX(-50%);
  padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 12px; line-height: 1.4; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(5, 20, 59, .5);
}
.chart-tip b { font-weight: 600; }
.chart-tip span { display: block; color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Features
   ========================================================================== */
.feat h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.feat p { color: var(--ink-2); margin-top: 12px; max-width: 32em; }

.feat-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.feat-split h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); }
.feat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo-deep); margin-bottom: 22px; }
.ticks { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.ticks .icon { width: 18px; height: 18px; color: var(--indigo); margin-top: 2px; }

.feat-visual { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--indigo-soft); }
.mock-editor { padding: 16px; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.seg-toggle button:not(.is-on):hover { color: var(--ink); }
.lead-pick { display: flex; gap: 6px; }
.lead-pick .av { width: 30px; height: 30px; opacity: .45; transition: opacity .2s var(--ease), box-shadow .2s var(--ease); }
.lead-pick .av.is-on, .lead-pick .av:hover { opacity: 1; }
.lead-pick .av.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.lead-pick.is-disabled .av { pointer-events: none; }
.editor-label { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.editor-body {
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  min-height: 132px;
}
.var {
  display: inline-block; padding: 0 5px; border-radius: 6px; line-height: 1.5;
  background: var(--indigo-soft); color: var(--indigo-deep); font-weight: 600; font-size: .92em;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.is-preview .var { background: transparent; color: var(--ink); font-weight: 600; padding: 0; margin: 0; font-size: 1em; }
.var.is-swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(3px); } }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12.5px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--indigo-deep); padding: 6px 10px; border-radius: 8px; background: var(--indigo-soft); }
.ai-chip .icon { width: 14px; height: 14px; }

.feat-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 20px; }
.feat-wide, .feat-narrow {
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
}
.feat-wide { background: var(--surface); border: 1px solid var(--line); }
.feat-narrow { background: var(--ink); color: #fff; }
.feat-narrow h3 { color: #fff; }
.feat-narrow p { color: rgba(255, 255, 255, .72); }

.mock-schedule { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; padding: 18px; margin-top: auto; }
.sched-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 12px; }
.sched-grid { display: grid; grid-template-columns: 30px repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; }
.sched-grid .d { font-size: 11px; color: var(--ink-3); }
.sched-grid .h { height: 18px; border-radius: 4px; background: #EEF0F5; }
.sched-grid .h.on { background: var(--indigo); transform-origin: left; }
[data-animate]:not(.is-in) .sched-grid .h.on { opacity: 0; }
.is-in .sched-grid .h.on { animation: cell-on .5s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes cell-on { from { opacity: 0; transform: scaleX(.3); } }
.sched-axis { display: grid; grid-template-columns: 30px repeat(16, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.sched-axis span { grid-column: span 3; }
.sched-axis span:last-child { grid-column: span 1; }
.sched-axis::before { content: ""; }
.limits { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-left: 22px; border-left: 1px solid var(--line-2); }
.limit { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--ink-3); }
.limit b { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.limit b small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.limit .meter { grid-column: 1 / -1; }
.is-in .meter i { animation: fill 1.1s var(--ease) both .2s; }
@keyframes fill { from { transform: scaleX(0); } }

.mock-timeline { margin-top: auto; padding: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
.mock-timeline li { position: relative; display: flex; gap: 12px; padding: 8px 0; color: #fff; }
.mock-timeline li::before { content: ""; position: absolute; left: 5.5px; top: 22px; bottom: -8px; width: 1px; background: rgba(255, 255, 255, .18); }
.mock-timeline li:last-child::before { display: none; }
.mock-timeline li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.mock-timeline b { font-size: 13.5px; font-weight: 600; }
.mock-timeline small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 4px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.tl-reply .tl-dot { background: #4CD69B; box-shadow: 0 0 0 4px rgba(76, 214, 155, .18); }
.tl-reply b { color: #7BE8B8; }
.tl-cancel { opacity: .55; }
.tl-cancel b { text-decoration: line-through; }
.tl-cancel .tl-dot { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .6); }
.is-in .tl-reply .tl-dot { animation: ping 1.8s var(--ease) .5s 2; }
@keyframes ping { 50% { box-shadow: 0 0 0 9px rgba(76, 214, 155, 0); } }

.feat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
.duo { padding: clamp(28px, 3vw, 40px) clamp(0px, 3vw, 40px) 0 0; }
.duo + .duo { padding-left: clamp(24px, 3vw, 40px); padding-right: 0; border-left: 1px solid var(--line); }
.duo h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; margin-top: 26px; }
.duo p { color: var(--ink-2); margin-top: 8px; max-width: 30em; }
.duo-visual { padding: 8px; max-width: 360px; }
.ws-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.ws-row.is-on { background: var(--indigo-soft); }
.ws-row .icon { width: 16px; height: 16px; color: var(--indigo); }
.mock-clean { padding: 6px 14px; }
.clean-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clean-row + .clean-row { border-top: 1px solid var(--line-2); }
.clean-row b { font-weight: 600; color: var(--ink); }
.clean-row.is-minus b { color: var(--ink-3); font-weight: 500; }
.clean-row.is-total { border-top: 1px solid var(--ink) !important; color: var(--ink); font-weight: 600; }
.clean-row.is-total b { color: var(--green); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.billing { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.seg-billing > * { height: 36px; padding: 0 14px; font-size: .875rem; }
.seg-billing .save { margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(5, 20, 59, .04);
}
.plan h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; }
.plan-desc { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; }
.amount { font-size: clamp(2.5rem, 2rem + 1.2vw, 3.125rem); line-height: 1; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.amount.is-swap { animation: swap .4s var(--ease); }
.per { font-size: .875rem; color: var(--ink-3); }
.bill-note { margin-top: 8px; font-size: .8125rem; color: var(--ink-3); }
.plan-cta { margin-top: 24px; width: 100%; }
.plan-cta.is-loading { opacity: .7; cursor: progress; }
.plan-error { margin-top: 10px; font-size: .8125rem; color: #B42E2E; }
.plan-error a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.plan-features { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 11px; }
.plan-features li { display: flex; gap: 10px; font-size: .90625rem; line-height: 1.45; color: var(--ink-2); }
.plan-features .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--indigo); }

.plan-featured { background: var(--ink); color: #fff; box-shadow: 0 24px 50px -24px rgba(5, 20, 59, .55); }
.plan-featured h3 { color: #fff; }
.plan-featured .plan-desc { color: rgba(255, 255, 255, .7); }
.plan-featured .per, .plan-featured .bill-note { color: rgba(255, 255, 255, .6); }
.plan-featured .plan-features { border-top-color: rgba(255, 255, 255, .12); }
.plan-featured .plan-features li { color: rgba(255, 255, 255, .84); }
.plan-featured .plan-features .icon { color: #9CC8FF; }
.plan-featured .plan-error { color: #FFB4B4; }

.plans-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; padding: 18px 18px 18px 24px;
  border-radius: var(--r-lg); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
}
.plans-foot p { color: var(--ink-2); font-size: .9375rem; }
.plans-foot b { color: var(--ink); font-weight: 600; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: .84375rem; color: var(--ink-3); }
.secure-note .icon { width: 16px; height: 16px; }

/* Checkout return notice */
.notice-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: .9375rem;
  box-shadow: 0 20px 44px -18px rgba(5, 20, 59, .6);
  animation: toast-in .5s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.notice-bar button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: rgba(255, 255, 255, .7); }
.notice-bar button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ==========================================================================
   Why teams switch
   ========================================================================== */
.voices-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 20px; }
.quote {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quote-lg { grid-row: span 2; background: var(--surface); }
.quote blockquote p { font-size: var(--t-lg); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-2); }
.quote-lg blockquote p { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); max-width: 22em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.quote figcaption b { font-size: .9375rem; font-weight: 600; }
.quote figcaption small { font-size: 13px; color: var(--ink-3); }
.quote .av { width: 40px; height: 40px; }
.quote .av .icon { width: 18px; height: 18px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq-intro p { margin-top: 18px; color: var(--ink-2); max-width: 24em; }
.faq-intro a { color: var(--indigo-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-intro a:hover { text-decoration-thickness: 2px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--indigo-ink); }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--ink-3); transition: transform .35s var(--ease), color .2s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--indigo); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }
.faq-list details[open] .faq-a { animation: faq-open .35s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta { padding: var(--section-y) 0; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: var(--ink); color: #fff;
}
.cta-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-card > :not(canvas) { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); line-height: 1; font-weight: 650; letter-spacing: -0.045em; max-width: 11em; text-wrap: balance; }
.cta-card > p { margin-top: 20px; font-size: var(--t-md); color: rgba(255, 255, 255, .72); max-width: 30em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 0 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); font-size: .9375rem; max-width: 22em; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.socials a:hover { color: var(--indigo); border-color: #C9CEDD; background: var(--surface); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: .9375rem; color: var(--ink-3); width: fit-content; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: clamp(48px, 7vw, 96px) 0 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-ink); }
.legal h1 { margin-top: 10px; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); line-height: 1.02; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
.legal-meta { margin-top: 16px; font-size: .875rem; color: var(--ink-3); }
.legal-lede { margin-top: 24px; font-size: var(--t-md); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.legal-body { margin-top: 4px; }
.legal-body section { padding-top: 36px; }
.legal-body h2 { font-size: 1.375rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; }
.legal-body h3 { margin-top: 22px; font-size: 1.0625rem; font-weight: 600; }
.legal-body p, .legal-body li { margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.legal-body ul { margin-top: 4px; padding-left: 22px; list-style: disc; }
.legal-body li { padding-left: 4px; }
.legal-body li::marker { color: var(--ink-3); }
.legal-body a { color: var(--indigo-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-thickness: 2px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(5, 20, 59, .06); }
.legal-footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-footer-links a { transition: color .2s var(--ease); }
.legal-footer-links a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .board-body { grid-template-columns: 180px minmax(0, 1fr); }
  .board-inbox { display: none; }
  .app { grid-template-columns: 64px minmax(0, 1fr); }
  .app-side { padding: 18px 10px; align-items: center; }
  .app-brand .brand-word, .app-nav li { font-size: 0; }
  .app-nav li { justify-content: center; padding: 10px; }
  .app-nav li .icon { width: 18px; height: 18px; }
  .app-ws > span:last-child, .app-brand .brand-word { display: none; }
  .app-ws { padding: 6px; border: 0; background: none; }
}

@media (max-width: 960px) {
  .nav-links, .nav-login { display: none; }
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-grid; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan-desc { min-height: 0; }
  .plans-foot { max-width: 560px; }

  .stage-head span { flex-direction: column; gap: 2px; font-size: 11px; align-items: center; }
  .stage-head .icon { display: none; }
  .stage-head b { margin-left: 0; }

  .proof-inner { grid-template-columns: 1fr; gap: 20px; }
  .logo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .section-head { grid-template-columns: 1fr; gap: 16px; }

  .how-grid { display: block; }
  .how-stage { display: none; }
  .how-step { min-height: 0; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px; padding: 0 0 48px; align-content: start; }
  .how-step::before { left: 15.5px; top: 32px; bottom: 0; }
  .how-step:first-child::before { top: 32px; }
  .how-step:last-child::before { display: none; }
  .how-step:last-child { padding-bottom: 0; }
  .step-num { width: 32px; height: 32px; font-size: 13px; background: var(--indigo); border-color: var(--indigo); color: #fff; }
  .how-step .step-text, .how-step:not(.is-active) .step-text { opacity: 1; }
  .step-text h3 { margin-top: 2px; }
  .step-visual { display: block; grid-column: 2; margin-top: 22px; padding: 20px; border-radius: var(--r-lg); background: var(--indigo-soft); }

  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { padding-right: 12px; }
  .tab::before { right: 12px; }
  .tab-desc { display: none; }
  .table { min-width: 0; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }

  .feat-split { grid-template-columns: 1fr; gap: 36px; }
  .feat-row { grid-template-columns: 1fr; }
  .feat-duo { grid-template-columns: 1fr; }
  .duo { padding-right: 0; }
  .duo + .duo { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 40px; }

  .voices-grid { grid-template-columns: 1fr; }
  .quote-lg { grid-row: auto; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .nav-bar { padding-left: 12px; height: 54px; }
  .billing { flex-wrap: wrap; }
  .plans-foot { flex-direction: column; align-items: flex-start; padding: 18px; }
  .plans-foot .btn { width: 100%; }
  .dock { width: 100%; }
  .dock-btn { flex: 1 1 0; padding: 0 12px; }
  .hero-eyebrow { margin-bottom: 22px; }
  .hero-title { letter-spacing: -0.042em; line-height: 1.02; }

  .hero-stage { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; padding: 12px 10px 0; }
  .window-bar { padding: 0 12px; height: 46px; }
  .crumb-muted, .crumb-sep { display: none; }
  .board-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .board-senders { display: none; }
  .board-pipeline { padding: 12px 10px 14px; }
  .stage-head, .lane { gap: 4px; }
  .stage-head span { flex-direction: column; gap: 2px; font-size: 10.5px; align-items: center; }
  .stage-head .icon { display: none; }
  .stage-head b { margin-left: 0; }
  .lane { min-height: 64px; }
  .chip { justify-content: center; padding: 4px; }
  .chip span:last-child { display: none; }
  .lane-label { display: none; }

  .logo-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-slots li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .step-visual { padding: 12px; margin-left: -48px; }
  .flow-branch .flow-node { padding: 8px; gap: 8px; }
  .flow-branch .node-ic { width: 26px; height: 26px; }
  .mock-senders li { grid-template-columns: 28px 1fr 56px; }

  .tab { padding: 16px 8px 14px 0; }
  .tab-title { font-size: 1rem; gap: 6px; }
  .tab-title .icon { width: 16px; height: 16px; }

  .app { display: block; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 16px 14px 18px; }
  .app-head { flex-direction: column; gap: 10px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .inbox-list li:nth-child(n+3) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .chart svg { height: 160px; }

  .feat-split { padding: 22px; border-radius: var(--r-lg); }
  .feat-visual { padding: 12px; margin: 0 -10px; }
  .editor-top { flex-wrap: wrap; }
  .editor-body { font-size: 1rem; }
  .mock-schedule { grid-template-columns: 1fr; }
  .limits { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
  .sched-grid, .sched-axis { gap: 2px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .table { min-width: 0; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .table th, .table td { padding: 12px; }
  .feat-wide, .feat-narrow { border-radius: var(--r-lg); }

  .cta-card { border-radius: var(--r-lg); }
  .legal { padding-top: 40px; }
  .legal-body section { padding-top: 28px; }
  .legal-body p, .legal-body li { font-size: .96875rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .waves { animation: none; }
}
