/* ==========================================================================
   Chatvoxo — design system
   Paper + ink + signal teal. Archivo (slightly expanded) for display,
   IBM Plex Sans for text, IBM Plex Mono for technical labels.
   ========================================================================== */

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  interpolate-size: allow-keywords;
  --font-display: Archivo, ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Chatvoxo orange. Buttons and text use the deeper shades so white and body text stay readable (WCAG AA). */
  --brand: #f26a21;
  --btn: #c94e0c;
  --btn-press: #a63f09;
  --signal: #ffa15c;
  --ember: #d9a21b;
  --on-accent: #ffffff;

  --n-bg: #061014;
  --n-bg-2: #0a1a1f;
  --n-ink: #eaf4f2;
  --n-muted: #8fa5a6;
  --n-line: rgba(234, 244, 242, 0.1);

  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1eb;
  --bg-2: #ebe8df;
  --surface: #fbfaf6;
  --surface-2: #ffffff;
  --ink: #0b1a1e;
  --ink-2: #2a3c40;
  --muted: #5d6d70;
  --line: rgba(11, 26, 30, 0.1);
  --line-2: rgba(11, 26, 30, 0.2);
  --brand-ink: #b4470d;
  --danger: #b42318;
  --shadow: 0 1px 0 rgba(11, 26, 30, 0.04), 0 24px 48px -24px rgba(11, 26, 30, 0.18);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070e10;
  --bg-2: #0b1619;
  --surface: #0e1a1e;
  --surface-2: #122227;
  --ink: #e8f0ee;
  --ink-2: #c1cfcd;
  --muted: #8a9c9e;
  --line: rgba(232, 240, 238, 0.09);
  --line-2: rgba(232, 240, 238, 0.18);
  --brand-ink: #ff9b5a;
  --danger: #ff9a8a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    color-scheme: dark;
    --bg: #070e10;
    --bg-2: #0b1619;
    --surface: #0e1a1e;
    --surface-2: #122227;
    --ink: #e8f0ee;
    --ink-2: #c1cfcd;
    --muted: #8a9c9e;
    --line: rgba(232, 240, 238, 0.09);
    --line-2: rgba(232, 240, 238, 0.18);
    --brand-ink: #ff9b5a;
    --danger: #ff9a8a;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

/* Sections that are always dark, whatever the theme. */
.night {
  --bg: var(--n-bg);
  --surface: rgba(234, 244, 242, 0.04);
  --surface-2: rgba(234, 244, 242, 0.07);
  --ink: var(--n-ink);
  --ink-2: #c6d6d4;
  --muted: var(--n-muted);
  --line: var(--n-line);
  --line-2: rgba(234, 244, 242, 0.2);
  --brand-ink: #ff9b5a;
  color: var(--ink);
  background: var(--n-bg);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }
em { font-style: normal; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--n-bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); }

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(700px, calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- eyebrow / tags ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--brand-ink); }
.eyebrow .num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: .5;
}
.eyebrow.on-night {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
}
i.live { background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 161, 92, .6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 161, 92, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 161, 92, 0); }
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--signal) 16%, transparent);
  color: var(--brand-ink);
  border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent);
}

.lead { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.pt-0 { padding-top: 0 !important; }

/* ---------- buttons ---------- */

.btn {
  --h: 44px;
  position: relative;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }

.btn-solid { background: var(--btn); color: var(--on-accent); }
.btn-solid:hover { background: var(--btn-press); }

.btn-glow {
  box-shadow: 0 0 0 1px rgba(255, 161, 92, .35), 0 12px 40px -10px rgba(255, 161, 92, .7);
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255, 161, 92, .6), 0 16px 50px -8px rgba(255, 161, 92, .85); }

.btn-ghost {
  color: var(--ink);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: color-mix(in srgb, currentColor 50%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); }

.btn-outline, .btn-quiet { color: var(--ink); border-color: var(--line-2); background: transparent; }
.btn-outline:hover, .btn-quiet:hover { border-color: var(--ink); }

.btn-text { color: var(--ink); padding: 0 12px; }
.btn-text:hover { color: var(--brand-ink); }

/* ---------- header ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.topbar.hide { transform: translateY(-100%); }

.bar { height: 100%; display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .logo-light { display: none !important; }
  [data-theme="system"] .logo-dark { display: block !important; }
}

/* Header floating over the dark hero */
.night-top .topbar:not(.scrolled) {
  --bg: var(--n-bg);
  --ink: var(--n-ink);
  --ink-2: #c6d6d4;
  --muted: var(--n-muted);
  --line: var(--n-line);
  --line-2: rgba(234, 244, 242, 0.2);
  --surface: rgba(234, 244, 242, 0.05);
  --brand-ink: #ff9b5a;
  color: var(--ink);
}
.night-top .topbar:not(.scrolled) .logo-light { display: none !important; }
.night-top .topbar:not(.scrolled) .logo-dark { display: block !important; }

.topnav { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
.topnav > a {
  position: relative;
  padding: 8px 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.topnav > a:hover { color: var(--ink); background: var(--surface); }
.topnav-foot { display: none; }
.topnav > a { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) {
  .topnav { margin-left: 12px; }
  .topnav > a { padding: 8px 8px; font-size: 14px; }
  .top-switches { margin-right: 2px; padding-right: 6px; }
}

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-switches { display: flex; align-items: center; gap: 2px; margin-right: 8px; padding-right: 10px; border-right: 1px solid var(--line); }

/* theme: one morphing sun/moon icon */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .25s, transform .5s var(--ease);
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle:active { transform: scale(.9); }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.tt-core { fill: currentColor; r: 5px; transition: r .6s var(--ease); }
.tt-cut { cx: 24px; cy: 4px; transition: cx .6s var(--ease), cy .6s var(--ease); }
.tt-rays { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle:hover .tt-rays { transform: rotate(45deg); }
[data-theme="dark"] .tt-core { r: 8.5px; }
[data-theme="dark"] .tt-cut { cx: 17px; cy: 7px; }
[data-theme="dark"] .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .tt-core { r: 8.5px; }
  [data-theme="system"] .tt-cut { cx: 17px; cy: 7px; }
  [data-theme="system"] .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* language: globe + native names */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px 0 11px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  user-select: none;
  transition: background-color .25s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface); }
.lm-globe { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .8s var(--ease); }
.lang-menu summary:hover .lm-globe { transform: rotate(-35deg); }
.lm-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .4s var(--ease); }
.lang-menu[open] .lm-chev { transform: rotate(180deg); }
.lang-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 190px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -18px rgba(6, 16, 20, .45);
  transform-origin: top right;
  animation: popin .35s var(--ease);
}
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lang-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s, color .2s;
}
.lang-pop a:hover { background: var(--surface); color: var(--ink); }
.lang-pop small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lang-pop a.on { color: var(--ink); }
.lang-pop a.on::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 2px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topnav-foot .lang-pop { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; transform-origin: bottom left; }
.topnav-foot .theme-toggle, .topnav-foot .lang-menu summary { border: 1px solid var(--line-2); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- reveal system ---------- */

.js [data-in] { opacity: 0; transform: translateY(18px); }
.js [data-in].in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.js .hero-title .line > [data-in] { opacity: 0; transform: translateY(.35em); filter: blur(8px); }
.js .hero-title .line > [data-in].in { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 0;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero-title {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.cta h2 em,
.auth-art-title em { color: var(--signal); }
.hero-lead { margin: 0; max-width: 50ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- hero product picture ---------- */

.demo { position: relative; padding: 0 0 56px; }
.browser {
  position: relative;
  border-radius: 16px;
  background: #f6f4ef;
  color: #0b1a1e;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(15, 27, 30, .35);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(11, 26, 30, .08);
}
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11, 26, 30, .14); }
.url {
  margin-left: 14px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(11, 26, 30, .05);
  font-size: 11.5px;
  color: #5d6d70;
}
.browser-body { padding: 20px; height: 360px; }
.sk { border-radius: 8px; background: rgba(11, 26, 30, .07); }
.sk-nav { height: 14px; width: 60%; margin-bottom: 26px; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sk-img { height: 200px; border-radius: 12px; background: rgba(11, 26, 30, .09); }
.sk-col { display: grid; gap: 12px; align-content: start; padding-top: 8px; }
.sk-h { height: 22px; width: 90%; }
.sk-t { height: 10px; }
.sk-t.short { width: 60%; }
.sk-btn { height: 34px; width: 55%; margin-top: 12px; border-radius: 10px; background: rgba(11, 26, 30, .18); }

.widget {
  position: absolute;
  right: 20px;
  bottom: -40px;
  width: min(330px, 80%);
  border-radius: 18px;
  background: #ffffff;
  color: #0b1a1e;
  border: 1px solid rgba(11, 26, 30, .08);
  box-shadow: 0 24px 50px -24px rgba(15, 27, 30, .35);
  overflow: hidden;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: #c94e0c;
  color: #fff;
}
.widget-head strong { display: block; font-size: 14px; line-height: 1.2; }
.widget-head span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .9; }
.widget-head i.live { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #7ee2a1; }
.avatar { width: 32px; height: 32px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.avatar img { width: 100%; height: 100%; }
.widget-body {
  height: 236px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 20%);
  background: #fbfaf8;
}
.bubble {
  margin: 0;
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  flex: none;
}
.bubble.in { align-self: flex-start; background: #eeece6; color: #0b1a1e; border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #c94e0c; color: #fff; border-bottom-right-radius: 4px; }
.bubble-who { align-self: flex-end; font-size: 10.5px; color: #6b777a; margin-top: 4px; flex: none; }
.bubble-sys { align-self: center; margin: 4px 0; padding: 3px 10px; border-radius: 999px; background: #eeece6; font-size: 11px; color: #5d6d70; flex: none; }
.pop { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #5d6d70; animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.widget-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 12px;
  height: 40px;
  padding: 0 5px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 26, 30, .1);
  font-size: 13px;
  color: #5d6d70;
}
.send { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #c94e0c; }
.send svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- what you get, in one line ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust .ico { width: 18px; height: 18px; color: var(--brand-ink); }

/* ---------- line icons (Services/Icons.cs, flows.js, desk.js) ---------- */

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-face { stroke-width: 1.7; }
.ico-face-1 { color: #d64545; }
.ico-face-2 { color: #e8833a; }
.ico-face-3 { color: #c99a14; }
.ico-face-4 { color: #4f9d62; }
.ico-face-5 { color: #1f9a5c; }
.post-end-mark { display: inline-flex; gap: 8px; }
.post-end-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .75; }

/* ---------- flow: a message's journey under the hero ---------- */

.flow {
  position: relative;
  z-index: 3;
  padding: 34px 0 30px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(242, 106, 33, .16), transparent 70%),
    var(--n-bg);
  color: var(--n-ink);
  border-top: 1px solid var(--n-line);
  border-bottom: 1px solid var(--n-line);
  overflow: hidden;
  --flow: 9s;
}
.flow-track { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
/* The wire runs between the first and last icon centres; the packet rides along it. */
.flow-line { position: absolute; z-index: 0; left: 10%; right: 10%; top: 25px; height: 2px; background: linear-gradient(90deg, rgba(255, 161, 92, .12), rgba(255, 161, 92, .35), rgba(255, 161, 92, .12)); border-radius: 2px; }
.flow-packet {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--signal) 40%, var(--brand) 70%);
  box-shadow: 0 0 0 4px rgba(242, 106, 33, .18), 0 0 24px 6px rgba(242, 106, 33, .55);
  animation: flow-ride var(--flow) linear infinite;
}
.flow-packet::after { content: ""; position: absolute; right: 7px; top: 50%; width: 70px; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, rgba(255, 161, 92, .8)); border-radius: 2px; }
@keyframes flow-ride {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  80% { left: 100%; opacity: 1; }
  88%, 100% { left: 100%; opacity: 0; }
}
.flow-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; }
.flow-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--n-bg-2); border: 1px solid var(--n-line); color: var(--n-muted);
  animation: flow-lit var(--flow) var(--ease) infinite;
  /* The packet crosses at a steady pace, reaching step i at i x 20% of the loop; each step lights just then. */
  animation-delay: calc(var(--flow) * (var(--i) * .2 - .01));
}
.flow-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flow-lit {
  0% { color: var(--n-muted); background: var(--n-bg-2); border-color: var(--n-line); box-shadow: none; transform: none; }
  4% { color: #fff; background: var(--brand); border-color: var(--signal); box-shadow: 0 0 0 6px rgba(242, 106, 33, .18), 0 12px 30px -8px rgba(242, 106, 33, .8); transform: translateY(-3px) scale(1.06); }
  14% { color: var(--signal); background: rgba(242, 106, 33, .14); border-color: rgba(255, 161, 92, .45); box-shadow: none; transform: none; }
  60%, 100% { color: var(--n-muted); background: var(--n-bg-2); border-color: var(--n-line); box-shadow: none; transform: none; }
}
.flow-step strong { font-family: var(--font-display); font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.flow-step small { font-size: 12.5px; color: var(--n-muted); line-height: 1.4; max-width: 18ch; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding: clamp(72px, 8.5vw, 124px) 0; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2, .install h2, .faq-side h2 {
  font-size: clamp(38px, 4.8vw, 68px);
  max-width: 16ch;
  margin-bottom: 20px;
}
.sec-head.center { text-align: center; }
.sec-head.center h2, .sec-head.center .lead { margin-inline: auto; }
.sec-head.row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

/* ---------- providers ---------- */

.providers { display: flex; gap: 12px; height: 380px; }
.provider {
  --tone: var(--brand);
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: flex-grow .8s var(--ease), border-color .4s;
  outline: none;
}
.provider.tone-a, .tone-a { --tone: #f26a21; }
.provider.tone-b, .tone-b { --tone: #d97757; }
.provider.tone-c, .tone-c { --tone: #4c8df6; }
.provider.tone-d, .tone-d { --tone: #ff8a1f; }
.provider.is-open { flex-grow: 2.6; border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); }
.provider-idx { font-size: 12px; color: var(--muted); }
.provider h3 {
  margin-top: auto;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 650;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.provider-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .8s var(--ease), opacity .5s;
}
.provider-more > * { min-height: 0; overflow: hidden; }
.provider-more p { margin: 14px 0 0; color: var(--ink-2); max-width: 36ch; font-size: 15px; }
.provider-more code {
  justify-self: start;
  margin-top: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
}
.provider.is-open .provider-more { grid-template-rows: 1fr 1fr; opacity: 1; transition-delay: 0s, .15s; }
.provider-orb {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 55%, transparent), transparent 65%);
  opacity: .35;
  transition: opacity .6s, transform 1.2s var(--ease);
}
.provider.is-open .provider-orb { opacity: .8; transform: translate(-40px, 40px) scale(1.2); }

/* ---------- how / sticky story ---------- */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-stage { position: sticky; top: calc(var(--header-h) + 40px); }
.stage-card {
  position: relative;
  height: 440px;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 80% 0%, rgba(242, 106, 33, .35), transparent 60%), var(--n-bg);
  color: var(--n-ink);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stage-progress { position: absolute; left: 28px; right: 28px; top: 24px; height: 2px; background: var(--n-line); border-radius: 2px; }
.stage-progress i { display: block; height: 100%; width: 33%; background: var(--signal); border-radius: 2px; transition: width .8s var(--ease); }
.scene {
  position: absolute;
  inset: 64px 36px 36px;
  display: grid;
  align-content: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s;
  pointer-events: none;
}
.scene.is-on { opacity: 1; transform: none; filter: none; }

.sc-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(234, 244, 242, .06);
  border: 1px solid var(--n-line);
}
.sc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--n-bg);
  background: linear-gradient(135deg, var(--signal), var(--brand));
}
.sc-account b { display: block; font-size: 16px; }
.sc-account .mono { font-size: 12px; color: var(--n-muted); }
.sc-badge {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: var(--signal);
  color: var(--n-bg);
  animation: pop .6s var(--ease) .4s both;
}
.sc-lines { display: grid; gap: 10px; padding: 0 6px; }
.sc-lines i { height: 10px; border-radius: 6px; background: rgba(234, 244, 242, .08); }
.sc-lines i.short { width: 55%; }

.sc-field { display: grid; gap: 10px; }
.sc-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--n-muted); }
.sc-input {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 161, 92, .45);
  box-shadow: 0 0 0 4px rgba(255, 161, 92, .1);
  background: rgba(234, 244, 242, .04);
  font-size: 14px;
}
.caret { width: 2px; height: 20px; margin-left: 2px; background: var(--signal); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sc-vault {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 161, 92, .08);
  color: var(--signal);
  font-size: 13px;
}
.sc-vault svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.sc-code {
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--n-line);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.sc-mini { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.sc-mini i {
  order: 2;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--btn) url("/img/mark.svg") center / 100%;
  box-shadow: 0 10px 30px -6px rgba(255, 161, 92, .6);
}
.sc-mini .bubble { max-width: 70%; }

.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.story-step {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 32px;
  opacity: .28;
  transition: opacity .6s var(--ease);
}
.story-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--line-2);
  border-radius: 2px;
}
.story-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 80%;
  width: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: bottom .8s var(--ease);
}
.story-step.is-on { opacity: 1; }
.story-step.is-on::after { bottom: 20%; }
.step-num { font-size: 13px; color: var(--brand-ink); margin-bottom: 18px; }
.story-step h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 16px; }
.story-step p { margin: 0; color: var(--muted); font-size: 18px; max-width: 44ch; }

/* ---------- promises / film ---------- */

.promises .sec-head { margin-bottom: 28px; }
.film {
  position: relative;
  min-height: clamp(520px, 62vw, 680px);
  margin-bottom: 20px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  color: var(--n-ink);
  background: var(--n-bg);
  display: flex;
  align-items: flex-end;
}
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); }
.film-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 20, .92) 0%, rgba(6, 16, 20, .7) 38%, rgba(6, 16, 20, .1) 70%),
    linear-gradient(0deg, rgba(6, 16, 20, .6), transparent 50%);
}
.film-flip .film-shade {
  background:
    linear-gradient(270deg, rgba(6, 16, 20, .92) 0%, rgba(6, 16, 20, .72) 40%, rgba(6, 16, 20, .15) 72%),
    linear-gradient(0deg, rgba(6, 16, 20, .6), transparent 50%);
}
.film-copy { position: relative; max-width: 560px; padding: clamp(28px, 5vw, 64px); }
.film-flip .film-copy { margin-left: auto; }
.film-copy .tag { color: var(--signal); }
.film-copy h2 { margin: 18px 0 18px; font-size: clamp(34px, 4vw, 58px); }
.film-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #c6d6d4; }

.receipt {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  top: clamp(24px, 5vw, 64px);
  width: 280px;
  padding: 22px 22px 18px;
  background: #f6f3ea;
  color: #0b1a1e;
  border-radius: 6px;
  transform: rotate(3deg);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .7);
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  padding-bottom: 28px;
  transition: transform .8s var(--ease);
}
.film:hover .receipt { transform: rotate(0deg) translateY(-6px); }
.receipt-title { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #5d6d70; padding-bottom: 12px; border-bottom: 1px dashed rgba(11, 26, 30, .25); }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(11, 26, 30, .25); font-size: 14px; }
.receipt-row b { font-weight: 600; }
.receipt-row b.mono { font-size: 22px; color: #b4470d; }
.receipt-tape { margin-top: 12px; font-size: 10.5px; color: #5d6d70; text-align: center; }

.decrypt {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  top: clamp(24px, 5vw, 64px);
  width: min(360px, calc(100% - 48px));
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(6, 16, 20, .66);
  border: 1px solid rgba(255, 161, 92, .25);
  backdrop-filter: blur(14px);
  cursor: crosshair;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.decrypt:hover, .decrypt:focus-visible { border-color: var(--signal); box-shadow: 0 0 0 6px rgba(255, 161, 92, .1); }
.decrypt-hint { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--n-muted); margin-bottom: 10px; }
.decrypt-text { margin: 0; font-family: var(--font-mono); font-size: 15px; line-height: 1.5; color: var(--signal); min-height: 3em; word-break: break-all; }

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 40px; align-items: center; }
.tile-full .tile-art { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.tile-full h3 { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 32px); }
.tile-full p { grid-column: 1; grid-row: 2; align-self: start; }
.tile h3 { font-size: 22px; letter-spacing: -0.03em; margin: auto 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.tile-art {
  position: relative;
  height: 160px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.art-widget { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; padding: 20px 90px 20px 24px; }
.art-widget .bubble { max-width: 70%; transition: transform .6s var(--ease); }
.art-widget .bubble.in { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.tile:hover .art-widget .bubble.in { transform: translateX(6px); }
.tile:hover .art-widget .bubble.out { transform: translateX(-6px); }
.fab {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 30px -8px rgba(242, 106, 33, .7);
  animation: float 4s var(--ease-in-out) infinite alternate;
}
.fab img { width: 100%; height: 100%; }
@keyframes float { to { transform: translateY(-8px); } }

.art-key svg { width: 110px; height: 110px; fill: none; stroke: var(--brand-ink); stroke-width: 2.4; stroke-linecap: round; transition: transform 1s var(--ease); }
.tile:hover .art-key svg { transform: rotate(-24deg) translateX(8px); }

.art-hex {
  place-items: stretch;
  padding: 14px 16px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--brand-ink);
  opacity: .9;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  white-space: pre;
  overflow: hidden;
}
.art-hex > div { animation: hexscroll 14s linear infinite; }
@keyframes hexscroll { to { transform: translateY(-50%); } }

.art-models { display: flex; justify-content: center; gap: 0; }
.art-models span {
  width: 64px;
  height: 64px;
  margin: 0 -10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  background: var(--tone);
  border: 3px solid var(--bg-2);
  transition: margin .7s var(--ease), transform .7s var(--ease);
}
.tile:hover .art-models span { margin: 0 5px; }
.tile:hover .art-models span:nth-child(odd) { transform: translateY(-8px); }

.art-team { display: flex; justify-content: center; }
.art-team span {
  width: 56px;
  height: 56px;
  margin-left: -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  border: 3px solid var(--bg-2);
  background: var(--surface-2);
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.art-team span:nth-child(1) { background: #d7ece9; color: #0b1a1e; }
.art-team span:nth-child(2) { background: #f3d9cc; color: #0b1a1e; }
.art-team span:nth-child(3) { background: #dfe4f6; color: #0b1a1e; }
.art-team span.more { background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 13px; }
.tile:hover .art-team span { transform: translateY(-6px); }
.tile:hover .art-team span:nth-child(2) { transition-delay: .05s; }
.tile:hover .art-team span:nth-child(3) { transition-delay: .1s; }
.tile:hover .art-team span:nth-child(4) { transition-delay: .15s; }

.art-look { display: flex; gap: 32px; place-items: center; justify-content: center; --c: #f26a21; }
.swatches { display: grid; gap: 8px; }
.swatches button {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.swatches button.on { transform: scale(1.2); box-shadow: 0 0 0 2px var(--ink); }
.look-widget { width: 220px; border-radius: 16px; overflow: hidden; background: #fff; color: #0b1a1e; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45); }
.lw-head { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--c); color: #fff; font-size: 13px; transition: background-color .5s; }
.lw-head i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .85); }
.lw-bubble { display: block; margin: 12px; padding: 8px 11px; border-radius: 12px 12px 4px 12px; background: var(--c); color: #fff; font-size: 12px; line-height: 1.4; transition: background-color .5s; }

/* ---------- install ---------- */

.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.terminal {
  border-radius: 22px;
  background: #0a1518;
  color: #d9ecea;
  box-shadow: 0 50px 90px -40px rgba(6, 16, 20, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.terminal-bar > i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.terminal-bar > i:nth-child(1) { background: #ff5f57; }
.terminal-bar > i:nth-child(2) { background: #febc2e; }
.terminal-bar > i:nth-child(3) { background: #28c840; }
.terminal-bar > span { margin-left: 10px; font-size: 12px; color: #8fa5a6; }
.copy {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: #d9ecea;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy:hover { border-color: var(--signal); }
.copy.done { background: var(--signal); color: #061014; border-color: var(--signal); }
.terminal pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; font-size: 13.5px; line-height: 1.85; }
.terminal code { font-family: inherit; }
.ln { display: inline-block; width: 2.4em; color: #3d5559; user-select: none; }
.t { color: #ffa15c; }
.k { color: #f3d38a; }
.s { color: #b6e3a1; }
.c { color: #5b7478; font-style: italic; }
.js .terminal[data-reveal] code > * { opacity: 0; }
.js .terminal.is-in code > * { opacity: 1; transition: opacity .4s; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-inline: auto; }
.plan {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price > span { font-family: var(--font-display); font-size: clamp(40px, 3.6vw, 54px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.plan li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23b4470d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.plan li.no::before {
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%238a9c9e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

.plan-mark {
  --bg: var(--n-bg);
  --ink: var(--n-ink);
  --muted: var(--n-muted);
  --line: var(--n-line);
  --line-2: rgba(234, 244, 242, .2);
  --bg-2: rgba(234, 244, 242, .08);
  color: var(--n-ink);
  border: 1.5px solid transparent;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(242, 106, 33, .35), transparent 70%) padding-box,
    linear-gradient(var(--n-bg), var(--n-bg)) padding-box,
    conic-gradient(from var(--ang), rgba(255, 161, 92, .1), var(--signal), rgba(255, 161, 92, .1) 30%, rgba(255, 161, 92, .1) 70%, var(--brand), rgba(255, 161, 92, .1)) border-box;
  animation: spin 6s linear infinite;
  transform: translateY(-12px);
  box-shadow: 0 40px 80px -30px rgba(6, 16, 20, .6);
}
.plan-mark:hover { transform: translateY(-18px); }
.plan-mark li::before { background-color: rgba(255, 161, 92, .16); }
@keyframes spin { to { --ang: 360deg; } }
.plan-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--signal);
  color: var(--n-bg);
  letter-spacing: .02em;
}

/* ---------- compare ---------- */

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.compare thead th.us { color: var(--ink); }
.compare thead th.us img { display: inline-block; width: 22px; height: 22px; border-radius: 6px; margin-right: 8px; vertical-align: -6px; }
.compare tbody th { font-weight: 550; width: 30%; }
.compare .us { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.compare tbody tr { transition: background-color .2s; }
.compare tbody tr:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.compare td { color: var(--muted); white-space: nowrap; }
.compare td.v-y { color: var(--ink); }
.compare td.us { font-weight: 600; color: var(--brand-ink); }
.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: -2px 8px 0 0; border-radius: 50%; vertical-align: middle; font-size: 11px; font-weight: 700; line-height: 1; }
.v-y .mark { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.v-y .mark::before { content: "✓"; color: var(--brand-ink); }
.v-n .mark { background: var(--bg-2); }
.v-n .mark::before { content: "✕"; color: var(--muted); font-size: 9px; }
.v-l .mark { background: color-mix(in srgb, var(--ember) 14%, transparent); }
.v-l .mark::before { content: "~"; color: var(--ember); }
.v-u .mark { background: var(--bg-2); }
.v-u .mark::before { content: "?"; color: var(--muted); }

/* ---------- faq ---------- */

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-side .btn { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand-ink); }
.faq-list summary .mono { font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.faq-list summary i {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s;
}
.faq-list summary i::before, .faq-list summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.faq-list summary i::after { rotate: 90deg; }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--bg); }
.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }
.faq-list details p { margin: 0; padding: 0 52px 28px 40px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

/* ---------- journal ---------- */

.journal { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); }
.story-card { display: block; text-decoration: none; color: inherit; }
.story-img { display: block; overflow: hidden; border-radius: 20px; background: var(--bg-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.story-card:hover .story-img img, .feature-post:hover .story-img img { transform: scale(1.05); }
.story-lead .story-img { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.story-meta { display: block; font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; }
.story-card h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; margin-bottom: 10px; transition: color .2s; }
.story-card:hover h3 { color: var(--brand-ink); }
.story-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.story-list { display: grid; gap: 22px; align-content: start; }
.story-row { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.story-row:last-child { border-bottom: 0; }
.story-row .story-img { aspect-ratio: 4 / 3; border-radius: 14px; }
.story-row h3 { font-size: 20px; }

/* ---------- final CTA ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 16vw, 200px) 0 clamp(90px, 12vw, 150px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; filter: saturate(.6); }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(6, 16, 20, .55), var(--n-bg) 90%); }
.cta h2 { font-size: clamp(46px, 7.6vw, 118px); font-weight: 700; font-stretch: 112%; letter-spacing: -0.05em; line-height: .95; max-width: 13ch; margin: 0 auto 28px; }
.cta p { margin: 0 auto; max-width: 46ch; font-size: 19px; color: var(--ink-2); }
.cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { position: relative; padding: 72px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { margin: 0 0 24px; color: var(--muted); max-width: 30ch; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.site-footer nav a:hover { color: var(--ink); background-size: 100% 1px; }
.foot-mark {
  margin: 56px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(80px, 19vw, 300px);
  letter-spacing: -0.06em;
  line-height: .8;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(234, 244, 242, .16), rgba(234, 244, 242, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base p { margin: 0; }
.to-top { color: var(--ink-2); text-decoration: none; }
.to-top:hover { color: var(--signal); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); }
.page-title { font-size: clamp(42px, 5.6vw, 84px); font-weight: 700; font-stretch: 112%; letter-spacing: -0.045em; line-height: .98; margin-bottom: 22px; }
.page-title em { color: var(--brand); }

.back-link { display: inline-flex; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.back-link:hover { color: var(--ink); transform: translateX(-3px); }

.feature-post {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.feature-post .story-img { aspect-ratio: 16 / 10; border-radius: 28px; }
.feature-copy { display: grid; gap: 18px; justify-items: start; }
.feature-copy h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.045em; transition: color .2s; }
.feature-post:hover h2 { color: var(--brand-ink); }
.feature-copy p { margin: 0; color: var(--muted); font-size: 18px; }
.feature-copy .story-meta { margin: 0; }
.read-link { display: inline-flex; gap: 8px; font-weight: 600; color: var(--brand-ink); }
.read-link .arr { transition: transform .35s var(--ease); }
.feature-post:hover .read-link .arr { transform: translateX(5px); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.post-grid .story-img { aspect-ratio: 16 / 10; margin-bottom: 20px; }

.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--signal)); transform-origin: 0 50%; transform: scaleX(0); }

.post-head { max-width: 980px; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); text-align: center; }
.post-head .back-link { margin-bottom: 36px; }
.post-head .story-meta { margin-bottom: 18px; }
.post-head .page-title { font-size: clamp(40px, 5.4vw, 80px); }
.post-dek { margin: 0 auto; max-width: 56ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }
.post-cover { margin-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); border-radius: 32px; overflow: hidden; }
.post-cover img { width: 100%; height: clamp(300px, 52vw, 640px); object-fit: cover; transform: scale(1.1); will-change: transform; }

.prose p { margin: 0 0 1.4em; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.8; color: var(--ink-2); }
.post-page .prose > p:first-child::first-letter {
  float: left;
  margin: .06em .12em 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 115%;
  font-size: 4.4em;
  line-height: .82;
  color: var(--brand);
}
.post-end { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 64px 0 24px; color: var(--muted); letter-spacing: .6em; }
.more-posts { border-top: 1px solid var(--line); }
.more-posts h2 { font-size: clamp(32px, 3.6vw, 48px); }

/* ---------- legal ---------- */

.legal-hero { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--muted); }
.legal-meta span::before { content: "— "; opacity: .5; }
.legal-meta span:first-child::before { content: none; }
.linkish { padding: 0; border: 0; background: none; color: var(--brand-ink); cursor: pointer; font: inherit; }
.doc-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.doc-tabs a { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .3s; }
.doc-tabs a:hover { color: var(--ink); }
.doc-tabs a.on { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 56px; padding-bottom: 120px; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
.toc-title { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  transition: color .2s, border-color .3s;
}
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--font-mono); font-size: 11px; opacity: .6; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--brand); font-weight: 550; }

.legal-doc { max-width: 720px; }
.legal-doc > p:first-child { font-size: 20px; }
.clause { padding: 8px 0 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.clause + .clause { border-top: 1px solid var(--line); padding-top: 36px; }
.clause h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; margin-bottom: 18px; }
.clause-num { font-size: 13px; color: var(--brand-ink); letter-spacing: 0; font-weight: 400; }
.legal-doc p { font-size: 17px; line-height: 1.8; }
.legal-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-ask strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.legal-ask p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.error-page { min-height: 70vh; }
.error-page .btn { margin-top: 32px; }

/* ==========================================================================
   AUTH
   ========================================================================== */

.auth-body { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.auth-pane { display: flex; flex-direction: column; padding: 24px clamp(20px, 4vw, 56px); }
.auth-top, .auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-top .top-switches { margin: 0; padding: 0; border: 0; }
.auth-foot { flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.auth-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.auth-foot nav a { color: var(--muted); text-decoration: none; }
.auth-foot nav a:hover { color: var(--ink); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 48px 0; }

.auth-form { width: min(420px, 100%); }
.auth-form-wide { width: min(540px, 100%); }
.auth-form h1 { font-size: clamp(38px, 3.8vw, 54px); font-weight: 700; letter-spacing: -0.05em; margin-bottom: 10px; }
.auth-lead { margin: 0 0 30px; color: var(--muted); font-size: 16px; }
.js [data-reveal-auth] > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.js [data-reveal-auth] > *:nth-child(2) { animation-delay: .06s; }
.js [data-reveal-auth] > *:nth-child(3) { animation-delay: .12s; }
.js [data-reveal-auth] > *:nth-child(4) { animation-delay: .18s; }
.js [data-reveal-auth] > *:nth-child(5) { animation-delay: .22s; }
.js [data-reveal-auth] > *:nth-child(6) { animation-delay: .28s; }
.js [data-reveal-auth] > *:nth-child(7) { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.btn-google {
  --h: 52px;
  width: 100%;
  border-radius: 14px;
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--ink);
  gap: 12px;
}
.btn-google:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-google svg { width: 18px; height: 18px; flex: none; }

.auth-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 22px 0; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; height: 1px; background: var(--line-2); }

.form-stack { display: grid; gap: 16px; }
.form-stack > .btn { width: 100%; margin-top: 8px; border-radius: 14px; }
.form-step { display: flex; align-items: center; gap: 10px; margin: 10px 0 -2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form-step .mono { font-size: 11px; font-weight: 400; color: var(--brand-ink); padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.form-step:first-of-type { margin-top: 0; }

.field { display: grid; gap: 7px; }
.field-label { font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.field-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 6px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: border-color .2s, box-shadow .3s var(--ease), background-color .2s;
}
.field-box:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.field-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); background: var(--surface-2); }
.field-box:has(.input-validation-error) { border-color: var(--danger); }
.field-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  font-size: 15.5px;
}
.field-box input:focus { outline: none; }
.field-box input, textarea, select { font-weight: 400; }
.field-box input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; transition: stroke .2s; }
.field-box:focus-within .field-icon { stroke: var(--brand); }
.field-prefix { color: var(--muted); font-size: 14px; }
.peek {
  flex: none;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
}
.peek:hover { color: var(--ink); background: var(--bg-2); }
.field-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--surface) inset; -webkit-text-fill-color: var(--ink); }

.strength { display: flex; align-items: center; gap: 12px; margin-top: -4px; font-size: 12.5px; color: var(--muted); }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; flex: 1; max-width: 220px; }
.strength-bars i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .3s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--ember); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--brand); }
.strength[data-level="4"] i { background: #16a34a; }

.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.recaptcha-slot { min-height: 78px; }
.recaptcha-slot .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 420px) {
  .recaptcha-slot .g-recaptcha { transform: scale(.9); }
}
.consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.consent-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.consent-box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
.consent input:checked + .consent-box { background: var(--btn); border-color: var(--btn); }
.consent input:checked + .consent-box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.consent:active .consent-box { transform: scale(.9); }
.consent a { color: var(--brand-ink); font-weight: 550; text-underline-offset: 3px; }

.auth-switch { margin: 26px 0 0; text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 550; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.auth-switch a:hover { color: var(--brand-ink); border-color: var(--brand); }

.auth-art {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 12px;
  background: var(--bg);
}
.auth-art > * { border-radius: 28px; }
.auth-art::before { content: ""; position: absolute; inset: 12px; border-radius: 28px; background: var(--n-bg); z-index: 0; }
.auth-video, .auth-art-shade, .auth-art .grain { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); z-index: 1; }
.auth-video { object-fit: cover; opacity: .55; }
.auth-art-shade { background: linear-gradient(180deg, rgba(6, 16, 20, .35), rgba(6, 16, 20, .92) 70%), radial-gradient(80% 50% at 80% 0%, rgba(242, 106, 33, .45), transparent 70%); }
.auth-art-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 4vw, 56px); color: var(--n-ink); }
.cipher-card {
  align-self: flex-start;
  width: min(360px, 100%);
  margin-bottom: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(6, 16, 20, .6);
  border: 1px solid rgba(255, 161, 92, .22);
  backdrop-filter: blur(14px);
  animation: float 5s var(--ease-in-out) infinite alternate;
}
.cipher-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 11px; color: var(--n-muted); }
.cipher-plain { margin: 0 0 8px; font-size: 15px; color: var(--n-ink); }
.cipher-text { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--signal); word-break: break-all; min-height: 3em; }
.auth-art-title { font-size: clamp(34px, 3.4vw, 54px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 40px 0 26px; }
.auth-art-title span, .auth-art-title em { display: block; }
.auth-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; color: #c6d6d4; font-size: 15px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }
.auth-providers { font-size: 12px; letter-spacing: .08em; color: var(--n-muted); padding-top: 22px; border-top: 1px solid var(--n-line); }

/* ---------- validation / misc forms (auth + dashboard) ---------- */

label { display: grid; gap: 6px; font-size: 14px; font-weight: 550; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
textarea { min-height: 96px; font-family: var(--font-mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type="color"] { padding: 4px; height: 44px; }
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--btn); }
.field-validation-error, .form-error, .flash-bad { color: var(--danger); font-weight: 550; font-size: 13px; }
.form-error:empty, .validation-summary-valid { display: none; }
.form-error ul { margin: 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0; padding: 14px; display: grid; gap: 8px; }
legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

.flash { color: var(--brand-ink); font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-mark { transform: none; }
  .plan-mark:hover { transform: translateY(-6px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 40px; align-items: center; }
.tile-full .tile-art { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.tile-full h3 { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 32px); }
.tile-full p { grid-column: 1; grid-row: 2; align-self: start; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .wrap { width: calc(100% - 32px); }

  .nav-toggle { display: block; }
  .top-switches, .btn-text { display: none; }
  .topnav {
    position: fixed;
    inset: 0;
    z-index: 55;
    margin: 0;
    padding: calc(var(--header-h) + 32px) 24px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav-open .topnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .topnav > a {
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .6s var(--ease);
  }
  .topnav > a:hover { background: none; }
  .nav-open .topnav > a { opacity: 1; transform: none; }
  .nav-open .topnav > a:nth-child(2) { transition-delay: .05s; }
  .nav-open .topnav > a:nth-child(3) { transition-delay: .1s; }
  .nav-open .topnav > a:nth-child(4) { transition-delay: .15s; }
  .nav-open .topnav > a:nth-child(5) { transition-delay: .2s; }
  .nav-open .topnav > a:nth-child(6) { transition-delay: .25s; }
  .topnav-foot { display: flex; gap: 8px; margin-top: auto; }
  .nav-open .topbar { --ink: var(--ink); }
  .nav-open.night-top .topbar:not(.scrolled) .nav-toggle { background: var(--surface); }
  .brand, .top-actions { position: relative; z-index: 60; }
  .top-actions .btn-solid { --h: 40px; padding: 0 14px; font-size: 14px; }

  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .demo { max-width: 560px; }
  .widget { right: 12px; }

  .sec-head.row { flex-direction: column; align-items: start; }
  .providers { flex-direction: column; height: auto; }
  .provider { min-height: 0; }
  .provider h3 { margin-top: 36px; }
  .provider .provider-more { grid-template-rows: 1fr 1fr; opacity: 1; }

  .story { grid-template-columns: 1fr; }
  .story { gap: 0; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding: 28px 0 28px 28px; opacity: 1; }
  .story-step::after { bottom: 20%; }

  .film { min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-end; padding-top: 240px; }
  .film-shade, .film-flip .film-shade { background: linear-gradient(0deg, rgba(6, 16, 20, .95) 45%, rgba(6, 16, 20, .2)); }
  .film-flip .film-copy { margin-left: 0; }
  .receipt { top: 24px; right: 24px; width: 230px; }
  .decrypt { top: 24px; left: 24px; }

  .install, .faq, .journal, .feature-post { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .legal-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .toc { position: static; max-height: none; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

@media (max-width: 760px) {
  .flow { padding: 26px 0; }
  .flow-track { grid-template-columns: 1fr; gap: 18px; padding-left: 4px; }
  .flow-line { left: 30px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(255, 161, 92, .12), rgba(255, 161, 92, .35), rgba(255, 161, 92, .12)); }
  .flow-packet { left: 50%; top: 0; margin: -7px 0 0 -7px; animation-name: flow-ride-down; }
  .flow-packet::after { right: auto; left: 50%; top: auto; bottom: 7px; width: 2px; height: 50px; margin: 0 0 0 -1px; background: linear-gradient(180deg, transparent, rgba(255, 161, 92, .8)); }
  .flow-step { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; align-items: center; }
  .flow-icon { grid-row: span 2; }
  .flow-step small { max-width: none; }
}
@keyframes flow-ride-down {
  0% { top: 0; opacity: 0; }
  6% { opacity: 1; }
  80% { top: 100%; opacity: 1; }
  88%, 100% { top: 100%; opacity: 0; }
}

@media (max-width: 640px) {
  .plans, .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-full { display: flex; }
  .tile-full .tile-art { margin-bottom: 26px; }
  .name-row { grid-template-columns: 1fr !important; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .trust { flex-direction: column; justify-content: flex-start; }
  .widget { right: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .widget { width: 80%; }
  .demo { padding-bottom: 48px; }
  .browser-body { height: 300px; }
  .sk-img { height: 150px; }
  .story-row { grid-template-columns: 1fr; }
  .receipt { display: none; }
  .decrypt { position: relative; top: auto; left: auto; margin: 0 20px 20px; width: auto; order: 2; }
  .film { padding-top: 200px; }
  .faq-list details p { padding: 0 0 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; }
  .top-actions .btn-solid { display: none; }
  .art-look { gap: 18px; }
  .look-widget { width: 180px; }
}

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-in], .js [data-reveal], .js .hero-title .line > [data-in] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .flow-packet { display: none; }
  .flow-icon { animation: none; color: var(--signal); background: rgba(242, 106, 33, .14); border-color: rgba(255, 161, 92, .45); }
}

@media print {
  .topbar, .site-footer, .toc, .doc-tabs, .read-progress, .legal-ask, .linkish { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-layout { display: block; padding: 0; }
  .page-hero { padding: 0 0 16px; }
  .js [data-in] { opacity: 1; transform: none; }
}
.auth-forgot { justify-self: end; margin-top: -6px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.auth-forgot:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- email code page ---------- */

.flash-ok { color: #15803d; font-weight: 550; font-size: 13.5px; margin: 0 0 14px; }
.flash-bad { margin: 0 0 14px; }
.code-input { font-size: 26px !important; letter-spacing: .45em; text-align: center; }
.verify-resend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.verify-resend .linkish:disabled { color: var(--muted); cursor: default; }
.verify-change { margin-top: 14px; font-size: 14px; }
.verify-change summary { cursor: pointer; color: var(--brand-ink); }
.verify-change form { margin-top: 12px; }

/* ---------- AI price comparison ---------- */

.ai-cost { margin-top: 56px; }
.ai-cost-head { margin-bottom: 18px; max-width: 64ch; }
.ai-cost-head h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; margin-bottom: 8px; }
.ai-cost-head p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.compare-ai { min-width: 900px; }
.compare-ai tbody th { width: 14%; white-space: nowrap; }
.compare-ai tbody th img { display: inline-block; width: 20px; height: 20px; border-radius: 6px; margin-right: 8px; vertical-align: -5px; }
.compare-ai td { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.compare-ai td:nth-child(3) { white-space: nowrap; color: var(--ink); font-weight: 550; }
.compare-ai .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare-ai tr.us > * { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.compare-ai tr.us strong { color: var(--brand-ink); font-size: 16px; }
.ai-bars { display: grid; gap: 10px; margin-top: 28px; max-width: 760px; }
.ai-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px; gap: 12px; align-items: center; font-size: 14px; }
.ai-bar span { color: var(--ink-2); }
.ai-bar i { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--line-2) var(--w), transparent var(--w)); }
.ai-bar.us i { background: linear-gradient(90deg, var(--brand) var(--w), transparent var(--w)); }
.ai-bar b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ai-bar.us span, .ai-bar.us b { color: var(--brand-ink); }
.ai-cost-diff { margin: 22px 0 8px; font-size: 17px; font-weight: 550; max-width: 62ch; line-height: 1.5; }
@media (max-width: 640px) {
  .ai-bar { grid-template-columns: 76px minmax(0, 1fr) 60px; gap: 8px; font-size: 13px; }
}
.compare-ai th, .compare-ai td { white-space: normal; }
.compare-ai td:nth-child(4) { min-width: 300px; }
.compare-ai thead th { white-space: nowrap; }

/* ---------- blog formatting (Services/Prose.cs) ---------- */

.prose h2 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.02em; margin: 1.5em 0 .5em; }
.prose ul { margin: 0 0 1.4em; padding-left: 1.2em; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.8; color: var(--ink-2); }
.prose li { margin-bottom: .3em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.story-img:empty { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--bg-2)), var(--bg-2)); min-height: 180px; }

/* Anything marked hidden stays hidden, whatever display its own class sets. */
[hidden] { display: none !important; }
