/* ---------------------------------------------------------------------------------------------
   Convoo landing page. Standalone: no link to the app, login or Stripe yet (see LINKS in the script).
   Colors and fonts are the app's brand tokens (web/app/globals.css). Every color below is a token.
   --------------------------------------------------------------------------------------------- */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/site/fonts/PlusJakartaSans-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/site/fonts/Manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  /* brand */
  --brand: #5B5EF4;
  --brand-light: #7B7EFF;
  --brand-accent: #A5A8FF;
  --brand-shadow: rgba(91, 94, 244, 0.38);
  /* dark surfaces (the app's dark handoff) */
  --ink: #08070F;
  --ink-2: #111020;
  --ink-3: #1A1730;
  --on-ink: #FAFAFA;
  --on-ink-muted: rgba(255, 255, 255, 0.62);
  --line-ink: rgba(255, 255, 255, 0.08);
  /* light surfaces */
  --sheet: #F5F5FB;
  --paper: #FFFFFF;
  --card: #F4F4F6;
  --text: #111118;
  --muted: rgba(17, 17, 24, 0.62);
  --line: rgba(17, 17, 40, 0.08);
  /* meaning */
  --success: #16A34A;
  --success-soft: rgba(22, 163, 74, 0.12);
  --warn: #D97706;
  --warn-soft: rgba(217, 119, 6, 0.14);
  --danger: #DC2626;
  /* shape + depth */
  --r-btn: 10px;
  --r-card: 14px;
  --r-pill: 100px;
  --r-sheet: 48px;
  --card-shadow: 0 1px 2px rgba(20, 20, 70, 0.05), 0 18px 40px -22px rgba(40, 40, 140, 0.32);
  --sheet-shadow: 0 34px 70px -24px rgba(5, 4, 20, 0.55);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons: padding ratio 2:1, four states ------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--r-btn); border: 1px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #6C6FFF 0%, var(--brand) 100%); box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 10px 28px -8px var(--brand-shadow), 0 2px 6px rgba(91, 94, 244, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 16px 36px -8px var(--brand-shadow), 0 2px 8px rgba(91, 94, 244, 0.4); }
.btn-ghost { color: var(--on-ink); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.26); }
.btn-light { color: var(--text); background: var(--paper); border-color: var(--line); box-shadow: var(--card-shadow); }
.btn-light:hover { transform: translateY(-2px); border-color: rgba(91,94,244,0.4); }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn .ic { font-size: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }

/* ---- Layers: every section is a card resting on the next one ------------------------------- */
.layer { position: relative; border-radius: 0 0 var(--r-sheet) var(--r-sheet); box-shadow: var(--sheet-shadow); padding-block: 104px; }
.layer.under { margin-top: calc(var(--r-sheet) * -1); padding-top: calc(var(--r-sheet) + 104px); }
.layer.last { border-radius: 0; box-shadow: none; padding-bottom: 40px; }
.l-hero { z-index: 6; background: var(--ink); }
.l-light1 { z-index: 5; background: var(--sheet); color: var(--text); }
.l-dark { z-index: 4; background: var(--ink); color: var(--on-ink); }
.l-light2 { z-index: 3; background: var(--sheet); color: var(--text); }
.l-foot { z-index: 2; background: var(--ink); color: var(--on-ink); }

.label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.on-dark .label { color: var(--brand-accent); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-top: 16px; }
.lede { margin-top: 18px; font-size: 18.5px; color: var(--muted); max-width: 56ch; }
.on-dark .lede { color: var(--on-ink-muted); }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---- Reveal (fires once, staggered) --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---- Nav: one floating dark pill, same on every section ------------------------------------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-bar { pointer-events: auto; width: min(1120px, 100% - 28px); margin-inline: auto; display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(12, 11, 24, 0.55); border: 1px solid var(--line-ink); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--on-ink); transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled .nav-bar { background: rgba(10, 9, 20, 0.86); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; }
.brand svg { filter: drop-shadow(0 4px 12px var(--brand-shadow)); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--on-ink-muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14.5px; }
.nav-cta .login { padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--on-ink-muted); border-radius: 10px; }
.nav-cta .login:hover { color: #fff; }
.burger { display: none; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line-ink); background: rgba(255,255,255,0.05); align-items: center; justify-content: center; }
.burger .ic { font-size: 20px; }
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: rgba(8, 7, 15, 0.97); backdrop-filter: blur(10px); display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 28px 40px; color: var(--on-ink); }
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line-ink); }
.mobile-menu .btn { margin-top: 22px; }

/* ---- Hero ----------------------------------------------------------------------------------- */
.hero { padding-top: 150px; padding-bottom: 0; position: relative; display: flow-root; /* keeps the mock's negative margin inside the hero, so the next layer is not pulled up with it */ }
.hero-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-bg .g1 { width: 760px; height: 560px; left: 50%; top: -220px; margin-left: -380px; background: radial-gradient(closest-side, rgba(91,94,244,0.55), rgba(91,94,244,0)); animation: drift 16s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 520px; height: 420px; right: -120px; top: 180px; background: radial-gradient(closest-side, rgba(123,126,255,0.28), rgba(123,126,255,0)); animation: drift 21s ease-in-out infinite alternate-reverse; }
.hero-bg .g3 { width: 460px; height: 380px; left: -140px; top: 320px; background: radial-gradient(closest-side, rgba(91,94,244,0.22), rgba(91,94,244,0)); animation: drift 19s ease-in-out infinite alternate; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-ink) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); opacity: 0.55; }
.hero-bg .grain { position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, 30px, 0); } }
.hero-copy { position: relative; text-align: center; max-width: 880px; margin-inline: auto; color: var(--on-ink); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px; border-radius: var(--r-pill); background: rgba(123,126,255,0.14); border: 1px solid rgba(165,168,255,0.28); color: var(--brand-accent); font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 0 0 rgba(165,168,255,0.6); animation: ping 2.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(165,168,255,0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(165,168,255,0); } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.03; letter-spacing: -0.04em; margin-top: 26px; }
.grad { background: linear-gradient(100deg, #fff 0%, var(--brand-accent) 38%, var(--brand-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero .sub { margin: 24px auto 0; max-width: 46ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--on-ink-muted); }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* only one real button above the fold: the second action is a quiet text link */
.link-more { display: inline-flex; align-items: center; gap: 8px; padding: 17px 14px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--on-ink-muted); transition: color 0.2s; }
.link-more:hover { color: #fff; }
.link-more .ic { font-size: 16px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.link-more:hover .ic { transform: rotate(90deg) translateX(3px); }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--on-ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-note .ic { color: var(--brand-accent); font-size: 16px; }

/* ---- App mock (dark, brand handoff) --------------------------------------------------------- */
.stage { position: relative; margin-top: 72px; margin-bottom: -170px; z-index: 2; perspective: 1800px; }
.app { --bg: #0B0A16; position: relative; display: grid; grid-template-columns: 208px 1fr; width: min(1080px, 100%); margin-inline: auto; border-radius: 22px; background: var(--bg); color: var(--on-ink); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 70px 130px -40px rgba(30, 24, 120, 0.7), 0 40px 70px -30px rgba(0,0,0,0.8); overflow: hidden; text-align: left; transform: rotateX(4deg); transform-origin: 50% 0; font-size: 13px; line-height: 1.4; }
.app::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(165,168,255,0.7), transparent); z-index: 3; }
.app-side { background: var(--ink-2); border-right: 1px solid var(--line-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; }
.app-side .brand { font-size: 17px; padding: 2px 8px 14px; gap: 8px; }
.app-grp { padding: 14px 10px 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.app-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: rgba(255,255,255,0.62); font-weight: 600; font-size: 13.5px; }
.app-item .ic { font-size: 15px; }
.app-item.on { background: rgba(123,126,255,0.18); color: var(--brand-accent); }
.app-item .n { margin-left: auto; font-size: 10.5px; font-weight: 800; background: var(--brand-light); color: var(--ink); padding: 1px 7px; border-radius: 99px; }
.app-main { padding: 22px 24px 26px; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-top h3 { font-size: 20px; letter-spacing: -0.03em; }
.crumb { color: rgba(255,255,255,0.4); font-size: 12.5px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(74,222,128,0.13); color: #4ADE80; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping-g 2.4s infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
.app-actions { margin-left: auto; display: flex; gap: 8px; }
.mini-btn { padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--ink-3); border: 1px solid var(--line-ink); color: rgba(255,255,255,0.8); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.stat { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 14px; padding: 14px 15px; }
.stat .k { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.45); }
.stat .v { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; margin-top: 2px; }
.stat .v small { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0; }
.stat .bar { height: 5px; border-radius: 9px; background: var(--ink-3); margin-top: 9px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 35%; border-radius: 9px; background: linear-gradient(90deg, var(--brand), var(--brand-accent)); }
.tbl { margin-top: 12px; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.7fr; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line-ink); }
.tr:first-child { border-top: 0; }
.tr.th { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding-block: 10px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; font-weight: 700; font-size: 13.5px; }
.who span { color: rgba(255,255,255,0.42); font-size: 12px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; flex: none; background: linear-gradient(135deg, var(--h1, #5B5EF4), var(--h2, #A5A8FF)); }
/* in light preview rows the name sits above the handle (the dark table above uses the avatar + text pair) */
.lrow > .who, .thr > .who, .acct > .who { display: block; flex: 1 1 auto; min-width: 0; }
.lrow > .who span, .thr > .who span, .acct > .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.t-green { background: rgba(74,222,128,0.14); color: #4ADE80; }
.t-brand { background: rgba(123,126,255,0.2); color: var(--brand-accent); }
.t-sky { background: rgba(56,189,248,0.15); color: #38BDF8; }
.t-mute { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); }
.dim { color: rgba(255,255,255,0.42); font-size: 12px; }

.float { position: absolute; z-index: 5; background: rgba(26, 23, 48, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 14px 16px; color: var(--on-ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,0,0,0.3); animation: bob 7s ease-in-out infinite; }
.float.f1 { top: 54px; right: -34px; width: 276px; }
.float.f2 { bottom: 150px; left: -40px; width: 236px; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.float .row { display: flex; gap: 11px; align-items: center; }
.float b { font-size: 13.5px; display: block; line-height: 1.3; }
.float p { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 8px; line-height: 1.45; }
.float .reply-chip { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--brand); font-size: 12px; font-weight: 700; }
.float .ic { font-size: 14px; }
.ico-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(123,126,255,0.2); color: var(--brand-accent); flex: none; }
.ico-badge .ic { font-size: 17px; }
.count { font-family: var(--font-mono); font-weight: 700; color: var(--brand-accent); }

/* Hero demo: the mock plays a short story (follow, DM, reply). Classes are toggled by the script below. */
.tr.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgba(123,126,255,0.26); } 100% { background: transparent; } }
.tag { transition: background 0.4s, color 0.4s; }
.stat .v { transition: color 0.4s; }
.stat .v.tick-up { color: var(--brand-accent); }
.stat .bar i { transition: width 0.8s var(--ease); }
.float.f1 .swap { animation: swap 0.7s var(--ease); }
@keyframes swap { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.app-item .n { transition: transform 0.3s var(--ease); }
.app-item .n.bump { transform: scale(1.35); }

/* ---- Value strip ---------------------------------------------------------------------------- */
.layer.under.l-light1 { padding-top: calc(var(--r-sheet) + 170px + 56px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 22px 8px; }
.value .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; box-shadow: 0 10px 22px -8px var(--brand-shadow); flex: none; }
.value .ico .ic { font-size: 22px; }
.value h3 { font-size: 18px; letter-spacing: -0.02em; }
.value p { margin-top: 5px; font-size: 15.5px; color: var(--muted); }

/* ---- Problem -------------------------------------------------------------------------------- */
.problem { position: relative; margin-top: 90px; padding-top: 90px; border-top: 1px solid var(--line); text-align: center; }
.problem .wm { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); font-family: var(--font-head); font-weight: 800; font-size: clamp(240px, 36vw, 440px); line-height: 1; color: var(--brand); opacity: 0.06; pointer-events: none; user-select: none; text-shadow: 3px 3px 0 rgba(40,40,140,0.5), -2px -2px 0 rgba(40,40,140,0.25); }
.problem-lines { position: relative; margin: 36px auto 0; display: grid; gap: 14px; justify-items: center; }
.pline { position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: -0.02em; color: var(--muted); padding-inline: 4px; }
.pline::after { content: ''; position: absolute; left: 0; right: 0; top: 54%; height: 2.5px; border-radius: 3px; background: var(--danger); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 450ms + 500ms); }
.problem.visible .pline::after, .pline.visible::after { transform: scaleX(1); }
.payoff { position: relative; margin-top: 56px; font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.04; }
.payoff .grad { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-light) 100%); -webkit-background-clip: text; background-clip: text; }

/* ---- How it works --------------------------------------------------------------------------- */
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps::before { content: ''; position: absolute; top: 30px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, rgba(91,94,244,0.45) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num { position: relative; z-index: 1; width: 60px; height: 60px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--paper); color: var(--brand); font-family: var(--font-head); font-weight: 800; font-size: 24px; box-shadow: var(--card-shadow), 0 0 0 6px var(--sheet); }
.step h3 { margin-top: 22px; font-size: 22px; }
.step p { margin: 10px auto 0; max-width: 30ch; font-size: 16px; color: var(--muted); }

/* ---- Features (bento) ----------------------------------------------------------------------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.fcard { position: relative; display: flex; flex-direction: column; padding: 32px 32px 0; background: var(--paper); border-radius: 28px; box-shadow: var(--card-shadow); overflow: hidden; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,20,70,0.05), 0 28px 50px -22px rgba(40,40,140,0.4); }
.c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.fcard .kick { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.fcard .kick .ic { font-size: 16px; }
.fcard h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.fcard > p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.mock { position: relative; margin-top: 28px; margin-inline: -8px; padding: 18px 18px 0; border-radius: 18px 18px 0 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; flex: 1; min-height: 190px; }
.mock::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(to top, var(--card), transparent); pointer-events: none; border-radius: 0 0 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 6px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px var(--brand-shadow); }
.field { margin-top: 12px; display: flex; gap: 8px; }
.input { flex: 1; padding: 10px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.input .ic { color: var(--muted); font-size: 15px; }
.input .caret { display: inline-block; width: 1.5px; height: 15px; background: var(--brand); margin-left: -4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.input.num { flex: none; color: var(--brand); }
.lrow { margin-top: 8px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.lrow:first-of-type { margin-top: 12px; }
.lrow .who b { color: var(--text); font-size: 13.5px; }
.lrow .who span { color: var(--muted); }
.lrow .tags { margin-left: auto; display: flex; gap: 6px; }
.tl { background: rgba(91,94,244,0.1); color: var(--brand); }
.tg { background: var(--success-soft); color: var(--success); }
.tm { background: rgba(17,17,24,0.06); color: var(--muted); }
.flow { position: relative; display: grid; gap: 10px; padding-bottom: 20px; }
.flow::before { content: ''; position: absolute; left: 21px; top: 24px; bottom: 36px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(91,94,244,0.4) 0 5px, transparent 5px 10px); }
.fstep { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.fstep .fi { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: rgba(91,94,244,0.12); color: var(--brand); flex: none; padding: 0; width: 22px; height: 22px; }
.fstep .fi .ic { font-size: 13px; }
.fstep small { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.fstep.quote { font-weight: 600; color: var(--muted); font-size: 13px; }
.thr { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); margin-top: 8px; }
.thr:first-child { margin-top: 0; }
.thr .who b { color: var(--text); }
.thr .who span { color: var(--muted); display: block; max-width: 24ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr .tag { margin-left: auto; flex: none; }
.thr.hot { border-color: rgba(91,94,244,0.35); box-shadow: 0 8px 18px -10px var(--brand-shadow); }
.kan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kcol { background: rgba(17,17,40,0.04); border-radius: 12px; padding: 9px; display: grid; gap: 8px; align-content: start; }
.kcol h4 { font-family: var(--font-body); letter-spacing: 0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; padding: 2px 4px; }
.kcard { padding: 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 12px -10px rgba(20,20,70,0.4); }
.kcard .who b { color: var(--text); font-size: 13px; }
.kcard .who span { color: var(--muted); }
.kcard .tag { margin-top: 8px; font-size: 11px; }
.acct { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); margin-top: 8px; }
.acct:first-child { margin-top: 0; }
.acct .who b { color: var(--text); }
.acct .who span { color: var(--muted); }
.acct .tag { margin-left: auto; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 88px; padding-top: 6px; }
.bars i { flex: 1; border-radius: 7px 7px 0 0; background: linear-gradient(to top, rgba(91,94,244,0.3), rgba(91,94,244,0.12)); height: var(--h); transform-origin: bottom; }
.bars i.hi { background: linear-gradient(to top, var(--brand), var(--brand-light)); }
.js .bars i { transform: scaleY(0); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 300ms); }
.js .visible .bars i, .js .bars.visible i { transform: scaleY(1); }
.kpis { display: flex; gap: 26px; margin-bottom: 14px; }
.kpis b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.kpis span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---- Use cases ------------------------------------------------------------------------------ */
.cases { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case { padding: 28px 24px 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,20,70,0.05), 0 28px 50px -22px rgba(40,40,140,0.4); }
.case .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(91,94,244,0.1); color: var(--brand); }
.case .ico .ic { font-size: 22px; }
.case .who-for { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.case h3 { margin-top: 8px; font-size: 20px; letter-spacing: -0.025em; }
.case p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ---- Draft blocks (hidden on the live page; add ?draft to the address to look at them) ------- */
[data-draft] { display: none; }
.show-draft [data-draft] { display: block; }
.draft-badge { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.reviews { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { padding: 28px 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #F59E0B; }
.stars .ic { fill: currentColor; stroke: none; font-size: 18px; }
.review blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; line-height: 1.35; }
.review mark { background: linear-gradient(transparent 55%, rgba(91,94,244,0.22) 55%); color: inherit; padding: 0 2px; }
.review .on { align-self: flex-start; padding: 4px 11px; border-radius: 99px; background: rgba(91,94,244,0.1); color: var(--brand); font-size: 12.5px; font-weight: 800; }
.review .by { margin-top: auto; display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--muted); }
.review .by b { display: block; color: var(--text); font-size: 14.5px; }
.video { position: relative; margin: 48px auto 0; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, rgba(91,94,244,0.5), transparent 70%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid rgba(165,168,255,0.22); box-shadow: 0 40px 80px -34px rgba(40,34,140,0.6); display: grid; place-items: center; color: var(--on-ink); }
.video .play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #6C6FFF, var(--brand)); box-shadow: 0 16px 40px -8px var(--brand-shadow), 0 0 0 10px rgba(123,126,255,0.16); }
.video .play .ic { font-size: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.video .cap { position: absolute; left: 22px; bottom: 18px; font-size: 14px; font-weight: 700; color: var(--on-ink-muted); }

/* ---- Safety (dark) -------------------------------------------------------------------------- */
.l-dark { position: relative; overflow: visible; }
.safety-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.safety-bg::before { content: ''; position: absolute; width: 900px; height: 520px; left: 50%; top: 40%; margin-left: -450px; background: radial-gradient(closest-side, rgba(91,94,244,0.22), transparent); filter: blur(60px); }
.timeline { position: relative; margin-top: 56px; padding: 30px 28px 26px; border-radius: 22px; background: linear-gradient(180deg, rgba(26,23,48,0.7), rgba(17,16,32,0.7)); border: 1px solid var(--line-ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05); }
.timeline .tl-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.track { position: relative; height: 70px; margin-top: 14px; }
.track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(165,168,255,0.35) 8%, rgba(165,168,255,0.35) 92%, transparent); }
.tick { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 5px rgba(123,126,255,0.18), 0 0 22px rgba(123,126,255,0.7); left: var(--x); }
.tick.dm { background: #fff; width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 5px rgba(255,255,255,0.1), 0 0 18px rgba(255,255,255,0.5); }
.js .tick { transform: scale(0); transition: transform 0.55s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 200ms); }
.js .visible .tick, .js .tick.visible { transform: scale(1); }
.gap { position: absolute; top: 50%; margin-top: -34px; left: var(--x); width: var(--w); text-align: center; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.45); }
.gap::after { content: ''; display: block; height: 7px; margin: 6px 4px 0; border: 1.5px solid rgba(255,255,255,0.25); border-bottom: 0; border-radius: 3px 3px 0 0; }
.legend { margin-top: 10px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 600; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--brand-light); }
.legend i.w { background: #fff; }
.facts { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 26px 24px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-ink); transition: border-color 0.3s, transform 0.4s var(--ease); }
.fact:hover { border-color: rgba(165,168,255,0.35); transform: translateY(-3px); }
.fact .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: -0.045em; line-height: 1; background: linear-gradient(100deg, #fff, var(--brand-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact .big small { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 4px; }
.fact p { margin-top: 12px; font-size: 15px; color: var(--on-ink-muted); line-height: 1.5; }
.guards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guard { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line-ink); font-size: 15px; color: var(--on-ink-muted); }
.guard b { display: block; color: var(--on-ink); font-family: var(--font-head); font-size: 16.5px; letter-spacing: -0.02em; margin-bottom: 3px; }
.guard .ico-badge { width: 38px; height: 38px; }
.fine { margin-top: 26px; text-align: center; font-size: 14px; color: rgba(255,255,255,0.45); max-width: 70ch; margin-inline: auto; }

/* ---- Pricing -------------------------------------------------------------------------------- */
.plans { margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 32px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden; }
.plan.pro { background: radial-gradient(120% 70% at 85% -10%, rgba(91,94,244,0.5), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); color: var(--on-ink); border-color: rgba(165,168,255,0.28); box-shadow: 0 40px 80px -30px rgba(40,34,140,0.7), 0 0 0 1px rgba(0,0,0,0.3); }
.plan h3 { font-size: 24px; }
.plan .for { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.plan.pro .for { color: var(--on-ink-muted); }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-head); }
.price .amt { font-weight: 800; font-size: 64px; letter-spacing: -0.05em; line-height: 1; }
.price .cur { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; align-self: flex-start; margin-top: 8px; }
.price .per { font-size: 16px; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.plan.pro .price .per { color: var(--on-ink-muted); }
.limit { margin-top: 20px; display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 8px 15px; border-radius: 99px; background: rgba(91,94,244,0.1); color: var(--brand); font-weight: 800; font-size: 14.5px; }
.plan.pro .limit { background: rgba(165,168,255,0.16); color: var(--brand-accent); }
.limit .ic { font-size: 16px; }
.plan ul { list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15.5px; flex: 1; }
.plan.pro ul { border-top-color: var(--line-ink); }
.plan li { display: flex; gap: 11px; align-items: flex-start; }
.plan li .ic { margin-top: 5px; font-size: 15px; color: var(--success); stroke-width: 2.6; }
.plan.pro li .ic { color: #4ADE80; }
.plan .btn { margin-top: 32px; }
.plan .trial-note { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.plan.pro .trial-note { color: var(--on-ink-muted); }
.price-foot { margin-top: 30px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---- FAQ ------------------------------------------------------------------------------------ */
.faq { margin: 56px auto 0; max-width: 780px; display: grid; gap: 10px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow); overflow: hidden; transition: border-color 0.3s; }
.qa.open { border-color: rgba(91,94,244,0.35); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; padding: 22px 26px; background: none; border: 0; font-family: var(--font-head); font-weight: 700; font-size: 17.5px; letter-spacing: -0.02em; }
.qa .plus { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(91,94,244,0.1); color: var(--brand); flex: none; transition: transform 0.35s var(--ease), background 0.3s; }
.qa.open .plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.qa .ans p { padding: 0 26px 24px; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ---- Final CTA + footer --------------------------------------------------------------------- */
.final { position: relative; text-align: center; padding: 76px 28px; border-radius: 36px; overflow: hidden; background: radial-gradient(90% 120% at 50% -30%, rgba(91,94,244,0.65), transparent 65%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid rgba(165,168,255,0.22); box-shadow: 0 50px 90px -40px rgba(60,50,200,0.55); }
.final h2 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); letter-spacing: -0.04em; }
.final p { margin: 18px auto 0; max-width: 42ch; color: var(--on-ink-muted); font-size: 18px; }
.final .btn { margin-top: 32px; }
.final .hero-note { display: flex; justify-content: center; }
.foot { margin-top: 84px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot p { margin-top: 14px; max-width: 32ch; font-size: 14.5px; color: var(--on-ink-muted); }
.foot h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; }
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot ul a { color: var(--on-ink-muted); transition: color 0.2s; }
.foot ul a:hover { color: #fff; }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-ink); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.4); }

/* ---- Sticky mobile CTA ---------------------------------------------------------------------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(8,7,15,0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line-ink); transform: translateY(110%); transition: transform 0.4s var(--ease); display: none; }
.sticky.show { transform: none; }

/* ---- Responsive ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .float.f1 { right: -8px; } .float.f2 { left: -8px; }
}
@media (max-width: 960px) {
  :root { --r-sheet: 36px; }
  .layer { padding-block: 80px; }
  .layer.under { padding-top: calc(var(--r-sheet) + 80px); }
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app { transform: none; }
  .stage { margin-bottom: -120px; }
  .layer.under.l-light1 { padding-top: calc(var(--r-sheet) + 120px + 40px); }
  .float.f2 { display: none; }
  .values { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .bento .c7, .bento .c5, .bento .c6 { grid-column: span 12; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .guards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: span 2; }
  .sticky { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 112px; }
  .hero-actions .btn { width: 100%; }
  .stage { margin-top: 48px; margin-bottom: -90px; }
  .layer.under.l-light1 { padding-top: calc(var(--r-sheet) + 90px + 28px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: 1.6fr 1fr; }
  .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
  .tr:nth-child(n+4) { display: none; } /* two leads are enough on a phone; the reply card sits below them */
  .stage { margin-bottom: -60px; }
  .app-main { padding: 16px; }
  .app-actions { display: none; }
  .float.f1 { top: auto; bottom: -34px; right: 8px; left: 8px; width: auto; }
  .fcard { padding: 26px 22px 0; border-radius: 24px; }
  .mock { margin-inline: -4px; padding: 14px 14px 0; }
  .lrow .tags .tm, .lrow .tags .tl:nth-child(2) { display: none; }
  .thr .who span { max-width: 17ch; }
  .cases { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fact { padding: 20px 18px; }
  .fact p { font-size: 14px; }
  .kan { grid-template-columns: repeat(2, 1fr); }
  .kcol:nth-child(3) { display: none; } /* two pipeline columns fit a phone */
  .timeline { padding: 24px 16px 20px; }
  .timeline .tl-head span:last-child { display: none; }
  .gap { display: none; } /* the gap labels do not fit on a phone; the dots still show the uneven spacing */
  .plan { padding: 30px 24px; }
  .price .amt { font-size: 54px; }
  .qa button { padding: 18px 18px; font-size: 16.5px; }
  .qa .ans p { padding: 0 18px 20px; }
  .final { padding: 56px 20px; border-radius: 28px; }
  .foot { margin-top: 56px; }
  .layer.last { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .bars i, .js .tick { opacity: 1; transform: none; }
  .pline::after { transform: scaleX(1); }
}

/* ---- Sub pages (Impressum etc.): same nav pill and footer, one readable text card ----------- */
.nav-simple .nav-bar { justify-content: space-between; }
.nav-simple .nav-cta { display: flex; }
.doc { padding-top: 150px; }
.doc-card { max-width: 760px; margin-inline: auto; padding: 48px 44px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.doc-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.035em; }
.doc-card h2 { margin-top: 36px; font-size: 20px; letter-spacing: -0.02em; }
.doc-card p, .doc-card address { margin-top: 10px; font-style: normal; font-size: 16.5px; color: var(--text); }
.doc-card .muted { color: var(--muted); }
.doc-card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.todo { background: var(--warn-soft); color: var(--warn); padding: 1px 7px; border-radius: 6px; font-weight: 700; }
@media (max-width: 560px) { .doc { padding-top: 112px; } .doc-card { padding: 30px 22px; border-radius: 22px; } }

.doc-card h2 .en { font-weight: 600; font-size: 0.8em; color: var(--muted); }

/* ---- Legal text pages ----------------------------------------------------------------------- */
.doc-card ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16.5px; }
.doc-card li::marker { color: var(--brand); }
.doc-card strong { font-weight: 800; }
.doc-card .btn { text-decoration: none; color: #fff; margin-top: 6px; }
.tbl-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.legal-table th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--card); padding: 10px 14px; white-space: nowrap; }
.legal-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-card { max-width: 820px; }

/* ---- Cancel form ---------------------------------------------------------------------------- */
.form { margin-top: 22px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 700; }
.form input:not([type=radio]), .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 500; font-size: 16px; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(91,94,244,0.6); box-shadow: 0 0 0 3px rgba(91,94,244,0.14); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-size: 14.5px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.form .radio { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.form .radio input { width: 18px; height: 18px; accent-color: var(--brand); }
.form .btn { justify-self: start; border: 0; }
.done { margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--success-soft); border: 1px solid rgba(22,163,74,0.3); }
.done h2 { margin-top: 0; }
[hidden] { display: none !important; }

/* Language switch (DE | EN): the cookie is set by the script of the page, the server serves the matching file. */
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; margin-right: 10px; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }
.lang-switch button { background: none; border: 0; color: inherit; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; cursor: pointer; opacity: .6; }
.lang-switch button[aria-pressed="true"] { background: rgba(123, 126, 255, .28); opacity: 1; }
.mobile-menu .lang-switch { margin: 14px 0 0; }
