/* Sidekick — design system
   Editorial serif (Fraunces) over a calm sans (Inter); warm paper and ink with an apricot spark.
   Light and dark from the same tokens. Phone-first; every layout holds at 320px. */

@import url("/static/fonts.css");

:root {
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --surface: #ffffff;
  --surface-2: #fdfbf8;
  --ink: #141a26;
  --ink-2: #2a3242;
  --muted: #5f6879;
  --faint: #8b93a3;
  --line: #e8e2d7;
  --line-2: #ddd5c7;
  --spark: #f2643a;
  --spark-2: #ff9a5a;
  --spark-soft: #fde9df;
  --spark-ink: #b8401c;
  --sage: #2f7a68;
  --sage-soft: #e3f1ec;
  --warn: #9a5410;
  --warn-soft: #fdf0de;
  --bad: #b3261e;
  --bad-soft: #fbe6e3;
  --tg: #2aabee;
  --tg-2: #229ed9;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(20, 26, 38, .05), 0 1px 1px rgba(20, 26, 38, .03);
  --shadow-2: 0 2px 4px rgba(20, 26, 38, .04), 0 12px 28px -8px rgba(20, 26, 38, .12);
  --shadow-3: 0 4px 10px rgba(20, 26, 38, .05), 0 30px 60px -18px rgba(20, 26, 38, .25);
  --glow: 0 10px 30px -10px rgba(242, 100, 58, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1118;
    --paper-2: #121824;
    --surface: #161d2a;
    --surface-2: #1a2231;
    --ink: #eef1f6;
    --ink-2: #d4d9e3;
    --muted: #a1a9b8;
    --faint: #7c8596;
    --line: #253043;
    --line-2: #2f3b51;
    --spark: #ff7a4f;
    --spark-2: #ffab6e;
    --spark-soft: #3a2119;
    --spark-ink: #ffb595;
    --sage: #6cc7ac;
    --sage-soft: #16302a;
    --warn: #f2b06b;
    --warn-soft: #34261a;
    --bad: #f3968c;
    --bad-soft: #3a1d1b;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .25), 0 14px 30px -10px rgba(0, 0, 0, .55);
    --shadow-3: 0 6px 14px rgba(0, 0, 0, .3), 0 34px 70px -20px rgba(0, 0, 0, .75);
    --glow: 0 10px 34px -10px rgba(255, 122, 79, .5);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before {   /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--spark-soft); color: var(--spark-ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--spark-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 0; font-variation-settings: "opsz" 96, "SOFT" 30; }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.1rem); line-height: 1.04; font-weight: 560; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.22rem; line-height: 1.3; font-variation-settings: "opsz" 24; }
h1 em, h2 em { font-style: italic; font-weight: 450; color: var(--spark); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); line-height: 1.55; max-width: 38rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-family: var(--mono); font-size: .82rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--spark-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
hr.soft { border: 0; height: 1px; background: var(--line); margin: 28px 0; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 640px; }
.wrap.mid { max-width: 880px; }
main { flex: 1; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.tight { padding: clamp(36px, 6vw, 64px) 0; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid.four { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ header / footer */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font: 600 1.32rem/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 48; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav button.link { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav button.link:hover { background: var(--paper-2); }
.nav a.btn { color: var(--paper); background: var(--ink); padding: 0 18px; margin-left: 4px; }
.nav a.btn:hover { background: var(--ink-2); color: var(--paper); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .9rem; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ buttons */
.btn { --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.spark { --bg: linear-gradient(135deg, var(--spark), var(--spark-2)); --fg: #fff; background: var(--bg); box-shadow: var(--glow); }
.btn.spark:hover { box-shadow: 0 14px 34px -10px rgba(242, 100, 58, .65); }
.btn.tg { background: linear-gradient(135deg, var(--tg), var(--tg-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 158, 217, .6); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink-2); box-shadow: none; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.quiet { background: var(--paper-2); color: var(--ink); }
.btn.lg { min-height: 58px; padding: 0 30px; font-size: 1.06rem; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 30px); box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.raised { box-shadow: var(--shadow-2); }
.card.lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card + .card { margin-top: 16px; }
.card h3 + p { margin-top: 8px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--spark-soft); color: var(--spark-ink); }
.icon-tile.sage { background: var(--sage-soft); color: var(--sage); }
.icon-tile.ink { background: var(--paper-2); color: var(--ink); }
.icon-tile svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ pills, notices */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--sans); letter-spacing: .02em;
  border-radius: 999px; padding: 6px 11px; background: var(--sage-soft); color: var(--sage); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live::before { box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.pill.warn, .pill.paused, .pill.provisioning, .pill.bot_created, .pill.telegram_linked, .pill.persona_done, .pill.new { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.failed, .pill.bot_lost, .pill.deleted { background: var(--bad-soft); color: var(--bad); }
.pill.plain { background: var(--paper-2); color: var(--ink-2); }
.pill.plain::before { display: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 14px 16px; margin: 16px 0;
  background: var(--sage-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--sage) 22%, transparent); font-size: .95rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--sage); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.warn svg { color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice.bad svg { color: var(--bad); }

/* ------------------------------------------------------------------ forms */
.field { margin: 0 0 22px; }
.label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.hint { font-size: .85rem; color: var(--faint); margin-top: 7px; }
.input, input[type=text], input[type=email], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; min-height: 52px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b93a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--spark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 18%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.err { color: var(--bad); font-size: .88rem; margin-top: 7px; font-weight: 500; }
.choices { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 380px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border-radius: 16px;
  border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.choice:hover { border-color: var(--faint); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; transition: all .15s; background: var(--surface); }
.choice input[type=checkbox] + .mark { border-radius: 7px; }
.choice .mark svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s var(--ease); }
.choice input:checked + .mark { background: var(--spark); border-color: var(--spark); }
.choice input:checked + .mark svg { opacity: 1; transform: scale(1); }
.choice:has(input:checked) { border-color: var(--spark); background: color-mix(in srgb, var(--spark-soft) 55%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--spark); outline-offset: 2px; }
.choice strong { display: block; font-weight: 600; font-size: .98rem; }
.choice span.sub { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.counter { float: right; font-size: .8rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ landing */
.hero { position: relative; overflow-x: clip; overflow-y: visible; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 560px; height: 560px; right: -160px; top: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--spark-2) 55%, transparent), transparent 70%); }
.hero::after { width: 480px; height: 480px; left: -240px; bottom: -60px; background: radial-gradient(circle, color-mix(in srgb, var(--sage) 30%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }
.hero h1 { margin: 20px 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--sage); }

/* phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: min(340px, 86vw); aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2b3343, #0f141e 60%); box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotate(-2.5deg); }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #05070b; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
  background: #dfe9ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none' stroke='%23b9cbd6' stroke-width='1.2' opacity='.55'%3E%3Ccircle cx='14' cy='16' r='5'/%3E%3Cpath d='M48 10l8 8m0-8l-8 8M28 52c4-6 10-6 14 0M60 54l6 6M66 54l-6 6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .screen { background-color: #0f1722; background-image: none; } }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font: 600 1rem/1 var(--serif);
  background: linear-gradient(135deg, var(--spark), var(--spark-2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 2.1rem; }
.chat-top b { display: block; font-size: .95rem; line-height: 1.2; }
.chat-top span { font-size: .75rem; color: var(--sage); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px 16px; }
.bubble { max-width: 82%; padding: 9px 13px 8px; border-radius: 18px; font-size: .88rem; line-height: 1.42; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble.me { align-self: flex-end; background: #e2ffc7; color: #10210a; border-bottom-right-radius: 6px; }
.bubble.it { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; }
@media (prefers-color-scheme: dark) { .bubble.me { background: #2b5278; color: #eef4fb; } }
.bubble time { display: block; text-align: right; font-size: .66rem; opacity: .55; margin-top: 2px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat .seq { opacity: 0; transform: translateY(8px) scale(.98); animation: pop .5s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat .seq { animation: none; opacity: 1; transform: none; } .bubble.typing { display: none; } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: .85rem; }
.float-card svg { width: 22px; height: 22px; color: var(--spark-ink); }
.float-card b { display: block; font-size: .88rem; }
.float-card.a { left: -4px; top: 18%; transform: rotate(-3deg); animation: bob 6s ease-in-out infinite; }
.float-card.b { right: -6px; bottom: 16%; transform: rotate(2deg); animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 520px) { .float-card { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* features, steps */
.section-head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head h2 { margin: 14px 0 14px; }
.feature p { color: var(--muted); margin: 8px 0 0; }
.quote { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.02rem; background: var(--paper-2); border-radius: 14px; padding: 12px 14px; margin-top: 16px; }
.steps { counter-reset: s; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 2.6rem/1 var(--serif); color: var(--spark); font-variation-settings: "opsz" 144; margin-bottom: 18px; letter-spacing: -.03em; }
.steps p { color: var(--muted); margin: 8px 0 0; }

/* plans */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-3); }
@media (min-width: 900px) { .plan.featured { transform: translateY(-10px); } }
.plan.featured h3, .plan.featured .price { color: var(--paper); }
.plan.featured .muted, .plan.featured li { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.plan .ribbon { position: absolute; top: -12px; left: 30px; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--spark), var(--spark-2)); color: #fff; box-shadow: var(--glow); }
.price { font: 560 3rem/1 var(--serif); letter-spacing: -.03em; margin: 16px 0 4px; font-variation-settings: "opsz" 144; }
.price sup { font-size: 1.1rem; vertical-align: top; position: relative; top: .5em; margin-right: 2px; font-weight: 500; }
.price small { font: 500 .95rem var(--sans); color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--sage); }
.plan.featured .checks svg { color: var(--spark-2); }
.plan.featured .btn.ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }

/* privacy band */
.band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); }
@media (prefers-color-scheme: dark) { .band { background: var(--surface); border: 1px solid var(--line); } }
.band h2 { color: var(--paper); }
@media (prefers-color-scheme: dark) { .band h2 { color: var(--ink); } }
.band .lead { color: color-mix(in srgb, var(--paper) 72%, transparent); }
@media (prefers-color-scheme: dark) { .band .lead { color: var(--muted); } }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 90, .28), transparent 65%); pointer-events: none; }
.band-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
@media (min-width: 900px) { .band-grid { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.assure { display: grid; gap: 14px; }
@media (min-width: 620px) { .assure { grid-template-columns: 1fr 1fr; } }
.assure div { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .09); }
@media (prefers-color-scheme: dark) { .assure div { background: var(--paper-2); border-color: var(--line); } }
.assure svg { width: 22px; height: 22px; color: var(--spark-2); margin-bottom: 12px; }
.assure b { display: block; font-size: 1rem; margin-bottom: 4px; }
.assure p { margin: 0; font-size: .9rem; color: color-mix(in srgb, var(--paper) 70%, transparent); }
@media (prefers-color-scheme: dark) { .assure p { color: var(--muted); } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px;
  font: 600 1.06rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { color: var(--muted); padding: 0 2px 22px; margin: 0; max-width: 46rem; }
.final-cta { text-align: center; }
.final-cta h2 { max-width: 640px; margin: 0 auto 16px; }
.final-cta .lead { margin: 0 auto 28px; }

/* ------------------------------------------------------------------ flow pages */
.flow { padding: clamp(28px, 6vw, 64px) 0 40px; }
.flow-head { margin-bottom: 28px; }
.flow-head h1 { font-size: clamp(2rem, 5.6vw, 3rem); margin: 16px 0 12px; }
.stepper { display: flex; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: .8rem; font-weight: 600; color: var(--faint); }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 22px; height: 1.5px; background: var(--line-2); margin-right: 2px; }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: .74rem; }
.stepper .on { color: var(--ink); }
.stepper .on .n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepper .done { color: var(--sage); }
.stepper .done .n { background: var(--sage); color: #fff; border-color: var(--sage); }
@media (max-width: 420px) { .stepper .t { display: none; } .stepper li.on .t { display: inline; } }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; } .split .side { position: sticky; top: 96px; } }
.plan-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--paper-2); margin-bottom: 26px; }
.plan-chip b { font-family: var(--serif); font-size: 1.1rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); gap: 2px; flex-wrap: wrap; }
.seg a { padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.illus { display: grid; place-items: center; margin: 4px 0 26px; }
.illus svg { width: 132px; height: auto; }

/* persona preview */
.preview { padding: 0; overflow: hidden; }
.preview .chat-top { padding: 16px 18px; border-radius: 0; }
.preview .chat { padding: 18px 16px 22px; min-height: 230px; background: var(--paper-2); }
.preview .bubble { font-size: .92rem; max-width: 90%; }

/* connect */
.big-cta { display: grid; gap: 12px; margin: 8px 0 18px; }
.qr-card { display: none; align-items: center; gap: 20px; padding: 18px; border-radius: 20px; border: 1px dashed var(--line-2); margin-top: 8px; }
.qr-card svg { width: 132px; height: 132px; border-radius: 12px; flex: none; background: #fff; padding: 6px; }
@media (min-width: 760px) and (hover: hover) { .qr-card { display: flex; } }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; }
.timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--sage); }
.timeline .dot { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1.5px solid var(--line-2); color: var(--faint); transition: all .3s var(--ease); }
.timeline .dot svg { width: 16px; height: 16px; }
.timeline li.done .dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.timeline li.active .dot { border-color: var(--spark); color: var(--spark); background: var(--spark-soft); }
.timeline li.active .dot::after { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--spark); border-top-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .timeline li.active .dot::after { animation: none; } }
.timeline b { display: block; font-size: .98rem; margin-top: 5px; }
.timeline span { display: block; font-size: .86rem; color: var(--muted); }
.timeline li.pending b { color: var(--faint); }
.ready { text-align: center; padding: clamp(26px, 5vw, 40px); }
.ready .avatar { margin: 0 auto 16px; }
.ready h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); margin-bottom: 8px; }

/* account */
.hello { display: flex; align-items: center; gap: 18px; margin: 10px 0 26px; }
.hello h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.meter { margin: 14px 0 8px; height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), color-mix(in srgb, var(--sage) 60%, var(--spark-2))); transition: width .8s var(--ease); }
.meter.full > span { background: linear-gradient(90deg, var(--spark), var(--bad)); }
.stat { font: 560 2rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { font: 500 .9rem var(--sans); color: var(--muted); letter-spacing: 0; }
.actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .actions { grid-template-columns: 1fr 1fr; } }
.action { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.action:hover { border-color: var(--line-2); background: var(--surface); transform: translateY(-1px); }
.action[disabled] { opacity: .45; pointer-events: none; }
.action svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.action b { display: block; font-size: .96rem; }
.action span { display: block; font-size: .82rem; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.planpick { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 620px) { .planpick { grid-template-columns: repeat(3, 1fr); } }
.planpick .choice { flex-direction: column; gap: 4px; }
.planpick .choice .mark { position: absolute; top: 14px; right: 14px; }
.planpick .choice b { font-family: var(--serif); font-size: 1.15rem; }

/* admin */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.tile { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tile .k { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tile .v { font: 560 1.9rem/1.1 var(--serif); margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
td.wrap-ok { white-space: normal; min-width: 200px; }
th { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 150px; }

/* message page */
.message { text-align: center; padding: clamp(48px, 10vw, 110px) 0; }
.message .illus svg { width: 120px; }
.message h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 8px 0 14px; }
.message .lead { margin: 0 auto 28px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
.inline-ico { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.timeline .dot { position: relative; }
.show-xs { display: none !important; }
@media (max-width: 560px) { .hide-xs { display: none !important; } .show-xs { display: flex !important; } }
@media (max-width: 560px) {
  .hero .cta .btn { width: 100%; }
  .phone { transform: none; width: min(320px, 82vw); }
}
