/* ---------------------------------------------------------------------------
   Wasl — public site.
   Tokens, type and surfaces are lifted from the app's src/styles.css so the
   site and the app read as one product. No web fonts, no external requests:
   the app ships system fonts only and the site matches it.
   --------------------------------------------------------------------------- */

:root {
  /* — from the app, unchanged — */
  --bg: #140c1c;
  --bg-2: #1d1128;
  --ink: #f6eef4;
  --ink-dim: #c3b0c4;
  --ink-faint: #ab9bb1;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --rose: #e8697f;
  --blush: #f5b393;
  --gold: #d9a441;
  --sage: #7fb98a;
  --violet: #a481cf;
  --sky: #6f9fd8;
  --danger: #ef6b6b;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --serif: ui-serif, Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);

  /* — site-only additions — */
  --measure: 62ch;
  --wrap: 1080px;
  --wrap-narrow: 760px;
  --gutter: 20px;
  --head-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- the app's signature aurora, slowed for a page you read ---------- */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); opacity: 0.44;
  animation: drift 40s ease-in-out infinite;
}
.aurora i:nth-child(1) { width: 62vmax; height: 62vmax; left: -24vmax; top: -26vmax; background: #7a2350; }
.aurora i:nth-child(2) { width: 48vmax; height: 48vmax; right: -18vmax; top: 6vmax; background: #3d2270; animation-delay: -12s; }
.aurora i:nth-child(3) { width: 54vmax; height: 54vmax; left: -14vmax; bottom: -30vmax; background: #a04a3f; animation-delay: -23s; opacity: 0.3; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, transparent 34%, rgba(12, 6, 18, 0.88) 100%);
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(5vmax, 3vmax, 0) scale(1.1); }
  66% { transform: translate3d(-3vmax, 5vmax, 0) scale(0.95); }
}

/* ---------- layout scaffolding ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: var(--wrap-narrow); }

main { display: block; }

section { padding-block: clamp(52px, 8vw, 96px); }
section.tight { padding-block: clamp(36px, 5vw, 60px); }

.stack-y { display: flex; flex-direction: column; }
.stack-y.g8 { gap: 8px; }
.stack-y.g12 { gap: 12px; }
.stack-y.g20 { gap: 20px; }
.stack-y.g32 { gap: 32px; }

/* ---------- typography ---------- */

.eyebrow {
  font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.16; letter-spacing: -0.01em; }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; }

p { margin: 0; max-width: var(--measure); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-dim); line-height: 1.58; }
.sub { color: var(--ink-dim); }
.muted { color: var(--ink-faint); font-size: 14px; }
.serif { font-family: var(--serif); }
.arabic { font-size: 0.95em; color: var(--blush); }

a { color: var(--blush); text-decoration-color: rgba(245, 179, 147, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.section-head p { color: var(--ink-dim); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

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

.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(20, 12, 28, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-head .bar {
  height: var(--head-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 32px; height: 32px; flex: none; display: block; margin-inline-end: -3px; }
.brand b { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }
.brand .arabic { font-size: 16px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 11px; text-decoration: none;
  color: var(--ink-faint); font-size: 14px; font-weight: 600;
  transition: color 0.18s, background 0.18s;
}
.site-nav a:hover { color: var(--ink); background: var(--glass); }
.site-nav a[aria-current='page'] { color: var(--ink); background: var(--glass-2); }

.nav-toggle { display: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: scale(0.975); }
.btn.primary { background: linear-gradient(135deg, var(--rose), #c9506d); border-color: transparent; color: #fff; }
.btn.primary:hover { background: linear-gradient(135deg, #ee7589, #d2576f); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 9px 15px; font-size: 13.5px; border-radius: 11px; }
.btn.full { width: 100%; }
.btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.btn .sup { font-size: 11.5px; font-weight: 500; color: var(--ink-faint); }
.btn.primary .sup { color: rgba(255, 255, 255, 0.78); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- surfaces ---------- */

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card.lift { box-shadow: var(--shadow); }
.card.tight { padding: 18px; border-radius: var(--r-md); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-dim); white-space: nowrap;
}
.pill.tone { border-color: currentColor; }

.tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--ink-dim);
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid.decks { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(44px, 7vw, 82px) clamp(52px, 8vw, 92px); }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
.hero h1 { margin-top: 14px; }
.hero .lede { margin-top: 18px; }
.hero .btn-row { margin-top: 28px; }
.hero .assurance { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- question card stack (the app's core mechanic, live) ---------- */

.demo { position: relative; }
.demo .stack {
  position: relative; height: 430px; perspective: 1200px; margin-bottom: 30px;
}
.qcard {
  position: absolute; inset: 0;
  border-radius: 30px; padding: 26px 24px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}
.qcard::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 50% -10%, var(--tone, var(--rose)), transparent 70%);
  opacity: 0.32; pointer-events: none;
}
.qcard .deck-tag { position: relative; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-dim); }
.qcard .deck-tag .ico { font-size: 17px; }
.qcard .qtext {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.28;
  font-weight: 500; margin: auto 0; position: relative; max-width: none;
}
.qcard .deeper { position: relative; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.qcard .deeper .lbl { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 9px; }
.qcard .deeper ul { margin: 0; padding-left: 18px; }
.qcard .deeper li { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 7px; line-height: 1.45; }
.qcard.behind { transform: scale(0.95) translateY(26px); opacity: 0.5; }
.qcard.behind2 { transform: scale(0.9) translateY(50px); opacity: 0.26; }
.qcard.gone { transform: translateX(-46%) rotate(-11deg); opacity: 0; }

.demo .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo .controls .muted { margin: 0; }

/* ---------- numbered steps (a real sequence: the nightly loop) ---------- */

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .n {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 18px; color: var(--ink-dim);
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 5px; }

/* ---------- deck tiles, exactly the app's treatment ---------- */

.deck {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 18px 16px 16px;
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--line);
  text-align: left;
}
.deck::before {
  content: ''; position: absolute; inset: -40% -30% auto auto; width: 140px; height: 140px;
  background: var(--tone); filter: blur(38px); opacity: 0.5;
}
.deck .icon { font-size: 25px; position: relative; }
.deck .name { font-family: var(--serif); font-size: 18px; line-height: 1.2; position: relative; margin-top: 10px; }
.deck .blurb { font-size: 13px; color: var(--ink-dim); position: relative; margin-top: 6px; line-height: 1.45; }
.deck .meta { font-size: 11.5px; color: var(--ink-faint); position: relative; margin-top: 8px; }

/* ---------- comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { color: var(--ink-dim); }
table.compare td.yes { color: var(--sage); font-weight: 600; }
table.compare td.no { color: var(--ink-faint); }

/* ---------- feature rows ---------- */

.feature { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: center; }
.feature + .feature { margin-top: clamp(40px, 6vw, 72px); }
.feature .art {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  padding: 20px; position: relative; overflow: hidden;
}
.feature .art::before {
  content: ''; position: absolute; inset: -30% auto auto -10%; width: 190px; height: 190px;
  background: var(--tone, var(--rose)); filter: blur(52px); opacity: 0.4;
}

/* Small in-app mock rows used inside .art */
.mock { position: relative; display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.26); border: 1px solid var(--line);
}
.mock-row .ico { font-size: 18px; flex: none; }
.mock-row .t { font-size: 14px; }
.mock-row .t small { display: block; color: var(--ink-faint); font-size: 12px; }
.mock-row .r { margin-left: auto; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.mock .count-big { font-family: var(--serif); font-size: 34px; line-height: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-faint); margin-top: 14px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ---------- honest-note callout ---------- */

.note {
  border-radius: var(--r-md); padding: 18px 20px;
  background: rgba(217, 164, 65, 0.10); border: 1px solid rgba(217, 164, 65, 0.28);
  color: #f0d8a8;
}
.note h4 { color: #f6e3bc; margin-bottom: 6px; }
.note p { color: #e6cfa4; font-size: 14.5px; }
.note.plain { background: var(--glass); border-color: var(--line); color: var(--ink-dim); }
.note.plain h4 { color: var(--ink); }
.note.plain p { color: var(--ink-dim); }

/* ---------- prose (legal pages, blog posts) ---------- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { margin-top: 1.7em; font-size: 18.5px; font-family: var(--sans); font-weight: 650; letter-spacing: 0.005em; }
.prose p, .prose li { color: var(--ink-dim); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--rose);
  font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink);
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: rgba(0, 0, 0, 0.3); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.prose .toc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; }
.prose .toc ol { margin: 10px 0 0; }
.prose .toc li { color: var(--ink-dim); }

.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.doc-head h1 { font-size: clamp(30px, 4.6vw, 44px); }
.doc-head .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* ---------- blog ---------- */

.post-list { display: grid; gap: 14px; }
.post-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  padding: 22px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.post-card:hover { background: var(--glass-2); border-color: var(--line-strong); }
.post-card .when { font-size: 12px; color: var(--ink-faint); line-height: 1.4; }
.post-card .when b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink-dim); }
.post-card h3 { margin-bottom: 7px; }
.post-card p { font-size: 14.5px; color: var(--ink-dim); }
.post-card .tag { margin-top: 12px; display: inline-block; }

.post-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- forms ---------- */

.field { display: block; }
.field > span {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 7px; font-weight: 600;
}
input[type='text'], input[type='email'], textarea, select {
  width: 100%; padding: 13px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line); border-radius: 13px;
  color: var(--ink); font: inherit; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--rose); background: rgba(0, 0, 0, 0.35); }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
select { appearance: none; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-status { font-size: 14px; margin-top: 4px; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--danger); }

.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 240px; }

/* ---------- link tree ---------- */

.links { display: grid; gap: 12px; max-width: 560px; margin-inline: auto; }
.link-row {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 20px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.link-row:hover { background: var(--glass-2); border-color: var(--line-strong); }
.link-row:active { transform: scale(0.99); }
.link-row .ico { font-size: 21px; flex: none; width: 26px; text-align: center; }
.link-row .t { font-weight: 600; font-size: 15px; }
.link-row .t small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-faint); }
.link-row .go { margin-left: auto; color: var(--ink-faint); font-size: 17px; }
.link-row.todo { border-style: dashed; }

.links-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.links-head .mark {
  width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 18px;
  display: block; box-shadow: 0 16px 40px -14px rgba(200, 60, 90, 0.7);
}
.links-head p { margin-inline: auto; }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 32px; padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(232, 105, 127, 0.16), rgba(164, 129, 207, 0.12) 60%, rgba(255, 255, 255, 0.03));
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: auto -10% -60% auto; width: 300px; height: 300px;
  background: var(--rose); filter: blur(70px); opacity: 0.22;
}
.cta-band > * { position: relative; }

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

.site-foot { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 20px; background: rgba(0, 0, 0, 0.22); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.foot-grid > .foot-col:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-grid > .foot-col:first-child { grid-column: auto; } }
.foot-col h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.foot-bottom .arabic { color: var(--ink-faint); }

/* ---------- chat ---------- */

.chat-launch {
  position: fixed; z-index: 70;
  right: max(18px, calc(50vw - var(--wrap) / 2)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 19px 13px 15px; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #b8455f); color: #fff;
  border: none; font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 16px 38px -10px rgba(200, 60, 90, 0.65);
  transition: transform 0.14s ease, box-shadow 0.2s;
}
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch:active { transform: scale(0.97); }
.chat-launch .ico { font-size: 17px; }

.chat-panel {
  position: fixed; z-index: 71;
  right: max(14px, calc(50vw - var(--wrap) / 2)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(392px, calc(100vw - 28px));
  max-height: min(660px, calc(100vh - 88px));
  display: flex; flex-direction: column;
  background: #1c1226; border: 1px solid var(--line-strong);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  animation: chat-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head .avatar {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: block;
}
.chat-head .who { font-weight: 650; font-size: 14.5px; }
.chat-head .who small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-faint); }
.chat-head .x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer; display: grid; place-items: center;
}

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; }
.msg.bot { background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 7px; align-self: flex-start; color: var(--ink-dim); }
.msg.bot strong { color: var(--ink); }
.msg.me { background: linear-gradient(135deg, var(--rose), #c9506d); color: #fff; border-bottom-right-radius: 7px; align-self: flex-end; }
.msg p { max-width: none; }
.msg p + p { margin-top: 0.7em; }
.msg a { color: var(--blush); }
.msg.me a { color: #fff; }
.msg.typing { display: flex; gap: 5px; align-self: flex-start; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blip 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.16s; }
.msg.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes blip { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; }
.chat-chips button {
  padding: 8px 13px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink-dim); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.chat-chips button:hover { background: var(--glass-2); color: var(--ink); }

.chat-form { display: flex; gap: 9px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; padding: 12px 16px; }
.chat-form button {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--rose), #c9506d); color: #fff;
  font-size: 16px; cursor: pointer; display: grid; place-items: center;
}
.chat-form button:disabled { opacity: 0.45; cursor: default; }

.chat-foot { padding: 0 18px 14px; font-size: 11.5px; color: var(--ink-faint); text-align: center; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo { max-width: 480px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--glass-2); border: 1px solid var(--line);
    color: var(--ink); font: inherit; font-size: 17px; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; margin: 0;
    background: rgba(24, 14, 33, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .post-card { grid-template-columns: 1fr; gap: 12px; }
  .post-card .when { display: flex; align-items: baseline; gap: 8px; }
  .post-card .when b { display: inline; font-size: 18px; }
  .chat-launch { right: 16px; }
  .chat-panel { right: 12px; left: 12px; width: auto; max-height: calc(100vh - 68px); }
  .demo .stack { height: 400px; }
  .step { grid-template-columns: 38px 1fr; gap: 13px; }
  .step .n { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); padding: 26px 24px;
  background: var(--glass); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.plan.best { border-color: rgba(232, 105, 127, 0.45); background: rgba(232, 105, 127, 0.07); }
.plan.follower { border-color: rgba(217, 164, 65, 0.35); background: rgba(217, 164, 65, 0.06); }
.plan .eyebrow { display: flex; align-items: center; gap: 9px; }
.plan .price {
  font-family: var(--serif); font-size: clamp(34px, 4vw, 44px); line-height: 1;
  margin: 14px 0 10px; font-variant-numeric: tabular-nums;
}
.plan .price span { font-family: var(--sans); font-size: 14px; color: var(--ink-faint); margin-left: 7px; font-variant-numeric: normal; white-space: nowrap; }
.plan .eyebrow { flex-wrap: wrap; row-gap: 6px; }
.plan .sub { font-size: 14.5px; }
.plan-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.plan-list li { font-size: 14px; color: var(--ink-dim); padding-left: 20px; position: relative; }
.plan-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--sage); font-size: 12px; }
.plan .btn { margin-top: auto; }

/* ---------- claim: verification step ---------- */

.verify { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; }
.verify .choice { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.verify .choice label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 14px; cursor: pointer; transition: border-color 0.18s, background 0.18s;
}
.verify .choice label:has(input:checked) { border-color: var(--rose); background: rgba(232, 105, 127, 0.12); }
.verify .choice input { accent-color: var(--rose); }
.otp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.otp-row input { flex: 1 1 150px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.verify-state {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-faint); margin-top: 12px;
}
.verify-state.ok { color: var(--sage); }
.verify-state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- claim: multi-step registration ---------- */

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

.phone-row { display: flex; gap: 9px; }
.phone-row select { flex: 0 0 auto; width: 44%; max-width: 210px; }
.phone-row input { flex: 1 1 auto; min-width: 0; }

.redeem-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(34px, 7vw, 46px); font-weight: 700;
  letter-spacing: 0.16em; text-align: center;
  padding: 20px 10px; margin: 0 0 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-strong);
  color: var(--blush); font-variant-numeric: tabular-nums;
}

.plan .tag.save {
  background: rgba(127, 185, 138, 0.16);
  border-color: rgba(127, 185, 138, 0.42);
  color: #bfe0c6; font-weight: 650;
}

/* Four plans need a tighter track than three did. */
.plans { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* ---------- v2 home: lighter, visual ---------- */

.center { text-align: center; margin-inline: auto; }
h2.center { margin-bottom: 26px; }
.hero-copy .lede { max-width: 30ch; }
.phone-wrap { display: flex; justify-content: center; }
.phone {
  margin: 0; width: min(300px, 78vw); aspect-ratio: 600 / 1298;
  border-radius: 38px; padding: 9px; background: #0b0710;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone.sm { width: 100%; border-radius: 30px; padding: 7px; }
.phone.sm img { border-radius: 24px; }

.how { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.how li { text-align: center; padding: 22px 16px; border-radius: var(--r-lg, 22px); background: var(--glass); border: 1px solid var(--line); }
.how h3 { font-size: 21px; margin: 12px 0 4px; }
.how p { margin: 0; color: var(--ink-dim); font-size: 16px; }
.how-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(232,105,127,0.14); flex: none; }
.how-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blush, #F5B393); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.strip-hint { font-size: 14px; margin: -14px auto 14px; }
.shots {
  list-style: none; margin: 0; padding: 4px var(--gutter) 16px;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.shots li { flex: 0 0 min(220px, 62vw); scroll-snap-align: center; text-align: center; }
.shots p { margin: 12px 0 0; font-size: 16px; color: var(--ink-dim); line-height: 1.4; }
@media (min-width: 1240px) {
  .shots { justify-content: center; overflow: visible; }
  .strip-hint { display: none; }
}

.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 16px; border-radius: 999px; font-size: 15.5px;
  background: color-mix(in srgb, var(--tone) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
}

.privacy-strip { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.ps-item p { margin: 0; font-size: 16px; line-height: 1.45; }

.price-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 20px; border-radius: 20px; text-decoration: none; color: var(--ink); text-align: center;
  background: rgba(245,179,147,0.08); border: 1px solid rgba(245,179,147,0.3); font-size: 17px;
}
.price-teaser b { color: var(--blush, #F5B393); }

@media (max-width: 900px) {
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
}
@media (max-width: 720px) {
  .how { grid-template-columns: 1fr; }
  .how li { display: grid; grid-template-columns: 48px 1fr; text-align: left; gap: 2px 14px; padding: 16px; }
  .how li .how-ico { grid-row: span 2; }
  .how h3 { margin: 0; font-size: 19px; }
  .privacy-strip { grid-template-columns: 1fr; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  table.compare { min-width: 0; font-size: 14px; }
  table.compare th, table.compare td { padding: 10px 8px; }
  .btn { min-height: 44px; }
}
.brand { min-height: 44px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.btn-row > a:not(.btn), .blog-links a { min-height: 44px; display: inline-flex; align-items: center; }
.meta a[href$="feed.xml"], .meta a[href*="links"] { min-height: 44px; display: inline-flex; align-items: center; }

/* Home: who it is for */
ul.who { list-style: none; padding: 0; margin: 22px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
ul.who li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 18px; color: var(--ink); line-height: 1.5; text-align: center; }
