/* Goalify site: the app's palette, type and the share card's night watercolour with grain. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface2: #eef1f7;
  --text: #131722;
  --muted: #5f6779;
  --line: #e3e7ef;
  --accent: #2f6bff;
  --wash: #e6edff;
  --ink: #1f49b3;
  --shadow: 0 1px 2px rgba(19, 23, 34, 0.04), 0 10px 30px rgba(19, 23, 34, 0.07);
}
/* Dark follows the device, unless the theme switch picked one (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --surface: #17171a;
    --surface2: #212125;
    --text: #f4f3f8;
    --muted: #a3a0b0;
    --line: #26262b;
    --wash: #172041;
    --ink: #9db8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 34px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #17171a;
  --surface2: #212125;
  --text: #f4f3f8;
  --muted: #a3a0b0;
  --line: #26262b;
  --wash: #172041;
  --ink: #9db8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 34px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wordmark { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.3px; }
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }

/* ---------- top bar ---------- */
.nav { position: relative; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: var(--surface2); }
@media (max-width: 520px) { .nav-links a.hide-sm { display: none; } }

/* ---------- night watercolour (hero and legal header) ---------- */
.night { position: relative; overflow: hidden; color: #fff6ee; background: linear-gradient(160deg, #120d1f 0%, #1a1433 45%, #2a1835 100%); }
.night::before { content: ''; position: absolute; inset: -20%; background:
  radial-gradient(40% 45% at 12% 92%, rgba(255, 123, 58, 0.55), transparent 70%),
  radial-gradient(35% 40% at 92% 70%, rgba(255, 79, 109, 0.42), transparent 70%),
  radial-gradient(38% 42% at 55% 25%, rgba(47, 107, 255, 0.5), transparent 70%),
  radial-gradient(30% 35% at 88% 6%, rgba(166, 77, 255, 0.45), transparent 70%); filter: blur(8px); }
.night::after { content: ''; position: absolute; inset: 0; background: url('/grain-tile.png'); opacity: 0.22; mix-blend-mode: overlay; pointer-events: none; }
.night > * { position: relative; z-index: 1; }

/* ---------- home: hero ---------- */
.hero { padding: 72px 0 0; }
.hero .wrap { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(44px, 8vw, 76px); line-height: 1.02; letter-spacing: -1px; margin: 18px 0 18px; }
.hero p.lead { font-size: 19px; line-height: 1.6; color: rgba(255, 246, 238, 0.78); max-width: 470px; margin: 0; }
.hero .copy { padding-bottom: 72px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; text-decoration: none; }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 11px; opacity: 0.7; line-height: 1.2; }
.store b { display: block; font-size: 15.5px; line-height: 1.25; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 13.5px; font-weight: 500; }
.chip img { width: 22px; height: 22px; border-radius: 6px; }

/* phones: real screenshots, rising from the bottom of the hero */
.phones { display: flex; justify-content: center; align-items: flex-end; }
.phone { width: 260px; flex: none; position: relative; z-index: 2; border-radius: 38px 38px 0 0; padding: 10px 10px 0; background: #0b0b0d; border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.phone .screen { border-radius: 29px 29px 0 0; overflow: hidden; height: 470px; background: #0b0b0d; }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone.side { width: 220px; z-index: 1; opacity: 0.9; transform: translateY(46px); }
.phone.side:first-child { margin-right: -44px; }
.phone.side:last-child { margin-left: -44px; }
.phone.side .screen { height: 400px; }
@media (max-width: 640px) { .phone.side { display: none; } }
.s-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.s-pill { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #17171a; font-weight: 600; }
.s-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #2f6bff); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 13px; }
.s-day { font-family: 'Fraunces', serif; font-size: 26px; line-height: 1; }
.s-date { color: #8e8b9b; font-size: 11px; margin: 4px 0 12px; }
.s-week { display: flex; justify-content: space-between; margin-bottom: 14px; }
.s-week span { width: 28px; text-align: center; font-family: 'Fraunces', serif; font-size: 15px; color: #8e8b9b; padding: 4px 0; border-radius: 10px; }
.s-week span small { display: block; font-family: 'Poppins', sans-serif; font-size: 8.5px; }
.s-week span.on { color: #fff; outline: 2px solid #f4f3f8; }
.s-card { background: #17171a; border-radius: 16px; padding: 11px 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.s-card.wash { background: #172041; }
.s-card .ic { width: 30px; height: 30px; border-radius: 10px; background: #212125; display: grid; place-items: center; font-size: 15px; flex: none; }
.s-card b { display: block; font-size: 12.5px; }
.s-card i { font-style: normal; color: #8e8b9b; font-size: 10.5px; }
.s-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #2e2e34; flex: none; }
.s-check.done { background: #2f6bff; border-color: #2f6bff; }
.s-coach { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9cc2ff, #2f6bff 70%); flex: none; position: relative; }
.s-coach::before, .s-coach::after { content: ''; position: absolute; top: 12px; width: 3px; height: 5px; border-radius: 2px; background: #0b0b0d; }
.s-coach::before { left: 11px; } .s-coach::after { right: 11px; }
.s-bubble { background: #17171a; border-radius: 14px 14px 14px 4px; padding: 9px 11px; margin: 0 0 8px; max-width: 88%; }
.s-bubble.me { background: #2f6bff; margin-left: auto; border-radius: 14px 14px 4px 14px; }
.s-step { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #26262b; font-size: 11.5px; }
.s-step span { width: 18px; height: 18px; border-radius: 50%; background: #172041; color: #9db8ff; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; flex: none; }

/* ---------- home: sections ---------- */
section.block { padding: 88px 0 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13.5px; letter-spacing: 1.2px; text-transform: uppercase; }
h2.big { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.5px; margin: 10px 0 14px; max-width: 640px; }
p.sub { color: var(--muted); font-size: 17.5px; max-width: 580px; margin: 0; }
.grid { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.tile h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.3; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 14px; background: var(--wash); color: var(--ink); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.cta { margin: 96px 0 0; border-radius: 32px; padding: 56px 28px; text-align: center; }
.cta h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.cta p { color: rgba(255, 246, 238, 0.78); margin: 0 auto; max-width: 460px; font-size: 17px; }
.cta .badge-row { justify-content: center; }

/* ---------- footer ---------- */
footer.site { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal-head { padding: 56px 0 64px; }
.legal-head h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(40px, 7vw, 60px); line-height: 1.05; margin: 10px 0 10px; letter-spacing: -0.5px; }
.legal-head p { color: rgba(255, 246, 238, 0.75); margin: 0; max-width: 560px; font-size: 17px; }
.glance { display: grid; gap: 12px; margin-top: -34px; position: relative; z-index: 2; }
@media (min-width: 720px) { .glance { grid-template-columns: repeat(4, 1fr); } }
.glance .tile { padding: 18px; }
.glance .tile h3 { font-size: 15.5px; margin: 12px 0 2px; }
.glance .tile p { font-size: 13.5px; line-height: 1.5; }
.legal { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .legal { grid-template-columns: 220px 1fr; } }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; display: none; }
@media (min-width: 900px) { .toc { display: block; } }
.toc b { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.prose { max-width: 680px; }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 10px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.note { background: var(--wash); border-radius: 18px; padding: 16px 18px; margin: 18px 0; color: var(--text); }
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--surface2); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; margin: 12px 0; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; margin-top: 1px; }

/* top bar on the night header: soft white links, the current page as a filled pill */
.night .nav-links a { color: rgba(255, 246, 238, 0.72); }
.night .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.night .nav-links a[aria-current] { color: #120d1f; background: #fff6ee; font-weight: 600; }

/* at-a-glance cards: a thin gradient rim and a soft neutral shadow, like the app's cards */
.glance .tile {
  padding: 22px 20px 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, rgba(47, 107, 255, 0.5), rgba(166, 77, 255, 0.22) 45%, var(--line) 75%) border-box;
  box-shadow: var(--shadow);
}
.glance .ico {
  width: 46px; height: 46px; border-radius: 15px;
  color: #fff;
  background: var(--accent);
}
.glance .tile h3 { font-size: 16.5px; margin: 16px 0 4px; letter-spacing: -0.1px; }
.glance .tile p { font-size: 14px; }

/* the section being read */
.toc a { transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; border-radius: 0 10px 10px 0; }
.toc a.active { color: var(--text); font-weight: 600; border-left-color: var(--accent); background: var(--wash); }

/* theme slider in the top bar: both choices show (sun, moon); the knob eases over the one in use */
.theme-toggle { appearance: none; position: relative; width: 62px; height: 32px; padding: 0; margin-left: 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); cursor: pointer; }
.theme-toggle .opt { position: absolute; top: 0; bottom: 0; width: 30px; display: grid; place-items: center; color: rgba(255, 246, 238, 0.55); }
.theme-toggle .opt.sun { left: 1px; }
.theme-toggle .opt.moon { right: 1px; }
.theme-toggle .opt svg, .theme-toggle .knob svg { width: 14px; height: 14px; }
.theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff6ee; color: #120d1f; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.theme-toggle[data-mode="dark"] .knob { transform: translateX(30px); }
.theme-toggle:hover .opt { color: rgba(255, 246, 238, 0.8); }
.theme-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* switching theme: every colour eases over at once */
html.theming, html.theming * { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important; }

/* sections ease in as they scroll into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .theme-toggle .knob, html.theming, html.theming * { transition: none !important; }
}
.nav-links { align-items: center; }

/* waitlist */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join-btn { display: inline-flex; align-items: center; padding: 0 22px; height: 50px; border-radius: 14px; background: #fff6ee; color: #120d1f; font-weight: 600; text-decoration: none; }
.join { max-width: 520px; margin: 28px auto 0; text-align: left; }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.join-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; padding: 0 12px; outline: none; }
.join-row input::placeholder { color: rgba(255, 246, 238, 0.5); }
.join-row button { border: 0; border-radius: 13px; padding: 0 20px; height: 46px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.join-row button:disabled { opacity: 0.6; cursor: default; }
.join-row:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.join-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.seg label { cursor: pointer; }
.seg input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255, 246, 238, 0.75); }
.seg input:checked + span { background: #fff6ee; color: #120d1f; }
.seg input:focus-visible + span, .check input:focus-visible + span::before { outline: 2px solid #fff; outline-offset: 2px; }
.check { display: inline-flex; align-items: center; cursor: pointer; font-size: 14.5px; }
.check span { display: inline-flex; align-items: center; gap: 10px; }
.check span::before { content: ''; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255, 246, 238, 0.55); flex: none; }
.check input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.join .hint { font-size: 13px; color: rgba(255, 246, 238, 0.6); margin: 10px 0 0; display: none; }
.join.beta .hint { display: block; }
.join .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join .msg { min-height: 24px; margin: 12px 0 0; font-weight: 500; font-size: 15px; text-align: center; }
.join .msg.ok { color: #9ff0c8; }
.join .msg.err { color: #ffb4a8; }
.cta .fine { font-size: 13px; color: rgba(255, 246, 238, 0.55); margin-top: 6px; }
.cta .fine a { color: inherit; }
.cta.done .join-row, .cta.done .join-opts { display: none; }

/* the waitlist box in the hero: left-aligned, under the lead */
.hero-join { margin: 28px 0 0; max-width: 470px; }
.hero-join .msg { text-align: left; min-height: 0; margin-top: 10px; }
.hero-join .msg:empty { display: none; }
.hero-join.sent .join-row { display: none; }
@media (max-width: 420px) { .join-row { flex-direction: column; } .join-row input { height: 46px; } }

/* Free and Pro */
.plans { display: grid; gap: 14px; margin-top: 36px; align-items: stretch; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.15fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 26px; box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 22px; }
.plan-sub { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--wash); color: var(--ink); }
.plan.pro { background: linear-gradient(160deg, #120d1f 0%, #1a1433 45%, #2a1835 100%); position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -30px rgba(47, 107, 255, 0.55); color: #fff6ee; }
.plan.pro .plan-sub { color: rgba(255, 246, 238, 0.7); }
.plan.pro li svg { background: rgba(255, 255, 255, 0.14); color: #fff; }
.plan.pro li b { color: #fff; }
.plan-head { display: flex; align-items: center; gap: 8px; }
.plan-head h3 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.3px; }
.pro-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(180deg, #0d1a3d, #10204f 55%, #1d3c8f); border: 1px solid #7ea2ff; box-shadow: 0 0 14px rgba(47, 107, 255, 0.6); }
.price { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.price b { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 34px; }
.price .or { color: rgba(255, 246, 238, 0.65); font-size: 14.5px; }
.trial { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: #fff6ee; color: #120d1f; font-size: 13px; font-weight: 600; }
.plans-note { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }

/* both plans: the price sits at the bottom, so the cards line up */
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan ul { flex: 1; align-content: start; width: 100%; }
.plan .price { width: 100%; }
/* Basic: the app's card, with a thin accent rim and a soft wash at the top */
.plan.basic {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--wash), var(--surface) 42%) padding-box,
    linear-gradient(160deg, rgba(47, 107, 255, 0.4), var(--line) 55%) border-box;
}
.plan.basic li b { color: var(--text); }
.plan.basic .price { border-top-color: var(--line); }
.plan.basic .trial { background: var(--wash); color: var(--ink); }
.basic-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }

/* plans, flat: no glow, no gradients. Pro is a solid night card, Basic the plain app card */
.plans .plan { box-shadow: none; }
.plan.pro { background: #15112a; border-color: rgba(255, 255, 255, 0.1); }
.plan.pro::before { display: none; }
.plan.basic { background: var(--surface); border: 1px solid var(--line); }
.pro-badge { background: #2f6bff; border: 0; box-shadow: none; }
.basic-badge { border-color: var(--line); }
/* Pro follows the theme like Basic; a 2px neutral ring marks it instead of a dark fill */
.plan.pro { background: var(--surface); color: var(--text); border: 2px solid var(--text); }
.plan.pro .plan-sub, .plan.pro .price .or { color: var(--muted); }
.plan.pro li svg { background: var(--wash); color: var(--ink); }
.plan.pro li b { color: var(--text); }
.plan.pro .price { border-top-color: var(--line); }
.plan.pro .trial { background: var(--text); color: var(--bg); }
/* Pro ring: a soft light travels slowly round the outline */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan.pro {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ring),
      color-mix(in srgb, var(--text) 28%, transparent) 0deg,
      color-mix(in srgb, var(--text) 28%, transparent) 230deg,
      var(--accent) 290deg,
      var(--text) 330deg,
      color-mix(in srgb, var(--text) 28%, transparent) 360deg) border-box;
  animation: ring 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes ring { to { --ring: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .plan.pro { animation: none; background: var(--surface); border-color: var(--text); }
}
/* Pro ring, brighter: a blue-violet-pink comet with a soft glow that travels with it */
.plan.pro {
  overflow: visible;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ring),
      color-mix(in srgb, var(--text) 18%, transparent) 0deg,
      color-mix(in srgb, var(--text) 18%, transparent) 200deg,
      #2f6bff 260deg, #8b5cff 305deg, #ff4f8b 340deg,
      color-mix(in srgb, var(--text) 18%, transparent) 360deg) border-box;
  animation: ring 5s linear infinite;
}
.plan.pro::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ring), transparent 0deg, transparent 220deg, #2f6bff 265deg, #8b5cff 305deg, #ff4f8b 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(10px); opacity: 0.85;
  animation: ring 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .plan.pro::after { display: none; } }

/* waitlist on phones: the field stacks above the button, so give both room */
@media (max-width: 560px) {
  .join-row { flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; }
  .join-row input { flex: none; height: 56px; padding: 0 16px; font-size: 17px; }
  .join-row button { height: 54px; width: 100%; border-radius: 14px; font-size: 16px; }
}

/* "On this page" on phones: a sticky row of section chips that scrolls sideways */
@media (max-width: 899px) {
  .legal { gap: 20px; margin-top: 0; }
  .toc { display: flex; gap: 6px; position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
  .toc::-webkit-scrollbar { display: none; }
  .toc b { display: none; }
  .toc a { flex: none; white-space: nowrap; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .toc a:hover { border-color: var(--line); }
  .toc a.active { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
  .legal h2[id] { scroll-margin-top: 72px; }
}
/* the legal column never grows wider than the phone; the services table scrolls inside its own box */
.legal { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .legal { grid-template-columns: 220px minmax(0, 1fr); } }
.prose { min-width: 0; overflow-wrap: break-word; }
/* hero on phones: the column is never wider than the screen, whatever the phone's text size */
.hero .wrap { grid-template-columns: minmax(0, 1fr); }
/* side by side only when both fit: the copy keeps room for the form, the phones keep their full width */
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1180px) { .hero .wrap { grid-template-columns: minmax(520px, 1.05fr) minmax(min-content, 1fr); } }
.hero .copy { min-width: 0; max-width: 100%; }
.hero .join { min-width: 0; max-width: min(470px, 100%); }

/* menu: three lines on phones, opening a side menu from the right */
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-left: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn:hover { background: var(--surface2); }
.night .menu-btn { color: #fff6ee; }
.night .menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav .wrap > .nav-links { margin-left: auto; }
@media (max-width: 640px) {
  .nav-links > a { display: none; }
  .menu-btn { display: inline-flex; }
}
.drawer-shade { position: fixed; inset: 0; z-index: 40; background: rgba(8, 6, 16, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(300px, 84vw); display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 24px; background: var(--surface); color: var(--text); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s; }
.menu-open .drawer-shade { opacity: 1; pointer-events: auto; }
.menu-open .drawer { transform: none; visibility: visible; transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.menu-open, .menu-open body { overflow: hidden; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 10px; }
.drawer-top b { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer a { display: block; padding: 13px 14px; border-radius: 14px; border: 2px solid transparent; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 500; }
.drawer a:hover { background: var(--surface2); }
.drawer a[aria-current] { border-color: var(--text); font-weight: 600; }
.drawer a.small { margin-top: auto; font-size: 14.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .drawer, .menu-open .drawer, .drawer-shade { transition: none; } }

/* platform choice: a light pill slides to the chosen phone */
.seg { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; }
.seg label { flex: 1; }
.seg span { text-align: center; transition: color 0.3s ease; }
.seg input:checked + span { background: transparent; }
.seg::before { content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #fff6ee; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) { .seg::before { transition: none; } }

/* phones: the choice spans the form, the beta box sits under it with room to breathe */
@media (max-width: 560px) {
  .join-opts { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 16px; }
  .seg { display: grid; padding: 4px; }
  .seg::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); }
  .seg span { padding: 12px 14px; font-size: 15.5px; }
  .check { padding: 2px 4px; font-size: 15.5px; }
  .join .hint { margin-top: 14px; }
}

/* unsubscribe page */
.unsub { max-width: 560px; margin: 40px 0 64px; }
.unsub .note { padding: 22px; font-size: 16px; line-height: 1.6; }
.unsub-btn { border: 0; border-radius: 14px; height: 50px; padding: 0 22px; background: var(--text); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.unsub-btn:disabled { opacity: 0.6; cursor: default; }
.unsub-msg { margin: 14px 0 0; font-weight: 500; }
.unsub-msg:empty { display: none; }
.unsub [data-state="done"] .unsub-btn, .unsub [data-state="bad"] .unsub-btn { display: none; }
.unsub [data-state="bad"] .unsub-ask { display: none; }
