/*
 * Whoone website styles. These mirror the app's design tokens (src/theme/theme.ts) so the website and the app look
 * like one product: same colors, same warm gradient backdrop, same frosted-glass surfaces, same pill buttons,
 * same system font, and the same tinted glow instead of grey shadows. Keep the two in step.
 * The app is light-only, so the website is too.
 */
:root {
  /* Colors (theme.ts: colors) */
  --bg: #FBF4EC;
  --surface: #FFFFFF;
  --surface-muted: #F1ECE6;
  --ink: #252B3B;
  --ink-2: #646B7D;
  --ink-3: #9AA1B2;
  --accent: #CF6F52;        /* "coral": a muted terracotta */
  --accent-2: #E9906C;
  --accent-soft: #F9E9E0;
  --teal: #2B8C7B;
  --teal-soft: #DCEFEA;
  --gold-soft: #FBF0D9;
  --line: #EBE3DB;
  --danger: #C23B3B;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.9);

  /* Gradients (theme.ts: gradients) */
  --backdrop: linear-gradient(135deg, #FDEEE2 0%, #F6F0EA 50%, #E3ECF3 100%);
  --primary: linear-gradient(110deg, #E9906C 0%, #CF6F52 100%);

  /* Tinted glow (theme.ts: shadow, shadowFloat, shadowButton): a warm terracotta glow, never grey */
  --glow-card: 0 8px 22px rgba(207, 111, 82, 0.18), 0 2px 6px rgba(207, 111, 82, 0.08);
  --glow-float: 0 10px 26px rgba(207, 111, 82, 0.22), 0 2px 8px rgba(207, 111, 82, 0.1);
  --glow-button: 0 8px 18px rgba(207, 111, 82, 0.36), 0 2px 6px rgba(207, 111, 82, 0.18);

  /* Radii (theme.ts: radii) */
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* The phone's own system font, like the app */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--backdrop);
  background-attachment: fixed;
  line-height: 1.5;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 56px; }
.wrap.wide { max-width: 760px; }

/* ---- Header and footer: minimal. The logo always goes home. ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 28px; }
.brand { font-weight: 700; font-size: 24px; letter-spacing: -0.6px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.brand:hover { opacity: 0.85; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 4px; }
.site-header nav a:hover { color: var(--accent); }
.site-footer { margin-top: 48px; color: var(--ink-3); font-size: 12px; text-align: center; line-height: 1.6; }
.site-footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Hero ---- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: var(--r-pill); margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; }
.cities { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.city {
  display: inline-flex; align-items: center; gap: 8px; background: var(--glass-strong); border: 1px solid var(--glass-border);
  padding: 9px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dot.soon { background: var(--ink-3); }

/* ---- Frosted-glass cards, with the tinted glow ---- */
.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 22px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--glow-card);
}
.card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.4px; }
.card .pitch { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.card p.sub { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend, label.field { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--glass-border);
  background: var(--glass-strong); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .15s, background .15s;
}
.choice input:checked + span { background: var(--primary); border-color: transparent; color: #fff; font-weight: 600; box-shadow: var(--glow-card); }
input[type="email"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--glass-strong); outline: none;
}
input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { margin-bottom: 14px; }

button.submit {
  width: 100%; margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; letter-spacing: 0.1px;
  color: #fff; padding: 16px 18px; border-radius: var(--r-pill); background: var(--primary); box-shadow: var(--glow-button);
  position: relative; overflow: hidden;
}
button.submit:active { opacity: 0.85; }
button.submit:disabled { cursor: default; }

/* ---- Skeleton loaders (no spinners): a calm placeholder with a soft light sweeping across ---- */
.skeleton, button.submit.loading { background: var(--surface-muted); position: relative; overflow: hidden; }
.skeleton::after, button.submit.loading::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.75), rgba(255,255,255,0));
  animation: sweep 1.3s ease-in-out infinite;
}
button.submit.loading { color: transparent; box-shadow: none; }
@keyframes sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after, button.submit.loading::after { animation: none; } }

.msg { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.msg.err { color: var(--danger); }
.done { display: none; text-align: center; padding: 10px 0 4px; }
.done .tick {
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin: 0 auto 12px; font-size: 26px; font-weight: 700;
}
.done h2 { margin-bottom: 6px; }
.fine { color: var(--ink-3); font-size: 12px; margin: 14px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- How it works ---- */
.how { margin: 36px 0 0; display: grid; gap: 12px; }
.how h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--glow-card); }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.step b { display: block; margin-bottom: 2px; font-weight: 600; }
.step span { color: var(--ink-2); font-size: 14px; }

/* ---- Inner pages (support, legal) ---- */
.page h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0 0 12px; }
.page .lede { font-size: 17px; margin-bottom: 22px; }
.page h2 { font-size: 22px; letter-spacing: -0.3px; margin: 34px 0 8px; line-height: 1.25; font-weight: 700; }
.page h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 600; letter-spacing: -0.2px; }
.page p, .page li { color: var(--ink); font-size: 16px; }
.page p { margin: 0 0 14px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 16px; }
.page li { margin-bottom: 7px; }
.card.plain { padding: 18px 20px; margin: 0 0 14px; background: var(--glass-strong); }
.card.plain h3 { margin-top: 0; }
.card.plain p:last-child { margin-bottom: 0; }
.banner { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; margin: 0 0 24px; }
.toc { background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 14px 18px; margin: 0 0 8px; box-shadow: var(--glow-card); }
.toc b { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 4px; font-size: 14px; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.version { color: var(--ink-3); font-size: 13px; margin: 0 0 20px; }
mark.todo { background: var(--gold-soft); color: #7A5A14; padding: 1px 5px; border-radius: 5px; font-weight: 600; }
.mail { font-weight: 600; }
.notfound { text-align: center; padding: 60px 0; }
