/* Pliny waitlist. Same look as the app: Inter, ground #F4F5F7, ink #0F1720, accent #2F4BFF, white cards r=18. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ground: #F4F5F7; --ink: #0F1720; --accent: #2F4BFF; --accent-press: #2238CC; --accent-soft: #E8ECFF;
  --good: #0F6B4A; --good-soft: #E3F2EB; --warn: #C2410C; --warn-soft: #FBEDE5;
  --muted: #5B6472; --hairline: #E4E7EC; --card: #FFFFFF;
  --r-card: 18px; --r-field: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.spots { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--card); padding: 8px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.back { font-size: 15px; font-weight: 600; }

/* Type */
h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); margin-top: 18px; max-width: 34em; }
.section-lead { color: var(--muted); margin-top: 8px; }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.note { color: var(--muted); margin-top: 18px; max-width: 46em; }

.card { background: var(--card); border-radius: var(--r-card); padding: 22px; }
main > section { padding-block: clamp(44px, 7vw, 80px); }
main > section > h2 { margin-bottom: 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(20px, 4vw, 48px) !important; }
.join { margin-top: 30px; padding: 24px; max-width: 480px; box-shadow: 0 1px 0 var(--hairline), 0 18px 40px -24px rgba(15, 23, 32, 0.25); }
.join-title { font-size: 22px; letter-spacing: -0.02em; }
.join-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
.field {
  width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--ground); border: 1.5px solid transparent; border-radius: var(--r-field);
}
.field::placeholder { color: #8A93A0; }
.field:focus { outline: none; border-color: var(--accent); background: #fff; }
.field[aria-invalid="true"] { border-color: var(--warn); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 16px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.error { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14.5px; font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 16px; padding: 0 22px;
  font: inherit; font-weight: 600; font-size: 17px; color: #fff; background: var(--accent); border: 0; border-radius: var(--r-field);
  text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: var(--accent-press); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { width: auto; min-height: 52px; margin-top: 0; padding: 0 20px; flex: none; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #DCE2FF; color: var(--accent-press); }
.join .fine { margin-top: 14px; }
.link { margin-top: 16px; padding: 0; background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--warn); }

/* Result card */
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good); margin-bottom: 12px; }
.pill.early { background: var(--accent-soft); color: var(--accent); }
.place { font-size: 76px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.place-hash { color: var(--accent); margin-right: 2px; }
.copyrow { display: flex; gap: 8px; }
.copyrow .field { font-size: 15px; min-width: 0; }
#result:focus, #removed:focus { outline: none; }

/* Phone preview */
.phone-wrap { justify-self: center; text-align: center; }
.phone { width: min(320px, 100%); margin-inline: auto; padding: 10px; background: var(--ink); border-radius: 50px; box-shadow: 0 40px 70px -40px rgba(15, 23, 32, 0.55); }
.phone-screen { background: var(--ground); border-radius: 41px; padding: 34px 14px 16px; text-align: left; font-size: 12px; line-height: 1.35; overflow: hidden; }
.ph-date { color: var(--muted); font-weight: 500; font-size: 11px; }
.ph-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.ph-chips { display: flex; gap: 6px; margin: 12px 0; white-space: nowrap; overflow: hidden; }
.ph-chips span { background: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.ph-chips .on { background: var(--ink); color: #fff; }
.ph-chips i { font-style: normal; opacity: 0.55; }
.ph-clean { background: var(--accent); color: #fff; border-radius: 16px; padding: 14px; }
.ph-clean-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ph-clean-top span { background: rgba(255, 255, 255, 0.18); padding: 3px 8px; border-radius: 999px; font-weight: 600; font-size: 10px; }
.ph-clean-big { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 10px; }
.ph-clean-sub { opacity: 0.82; margin-top: 4px; font-size: 11px; }
.ph-clean-btn { background: #fff; color: var(--accent); font-weight: 600; text-align: center; padding: 10px; border-radius: 11px; margin-top: 12px; }
.ph-clean-fine { opacity: 0.75; font-size: 10px; margin-top: 8px; }
.ph-section { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; margin: 16px 4px 6px; }
.ph-list { background: #fff; border-radius: 16px; padding: 2px 12px; }
.ph-list p { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ph-list p + p { border-top: 1px solid var(--hairline); }
.ph-list i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.ph-list b { display: block; font-weight: 600; }
.ph-list small { color: var(--muted); font-size: 11px; }
.ph-ask { display: flex; align-items: center; gap: 9px; background: #fff; color: var(--muted); font-weight: 500; border-radius: 999px; padding: 7px 9px; margin-top: 14px; box-shadow: 0 8px 18px -10px rgba(15, 23, 32, 0.3); }
.ph-ask-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Queue stages */
.stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.stage-row p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.stage-row .num { color: var(--accent); margin-top: 0; }
.stage-row .count { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }

/* Pain + proof */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split h2 { margin-bottom: 18px; }
.ticks li { position: relative; padding: 12px 0 12px 30px; font-size: 19px; border-top: 1px solid var(--hairline); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.proof { padding: 28px; }
.proof-big { font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.proof .fine { margin-top: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.steps p, .trust p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.steps .ask { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.steps .ask p { color: #B9C0CB; }
.steps .ask h3::before { background: var(--accent); color: #fff; }
.bubbles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bubbles li { background: rgba(255, 255, 255, 0.1); padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.trust h3 { padding-left: 22px; position: relative; }
.trust h3::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); }

/* FAQ */
.faq details { padding: 0; margin-top: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; list-style: none; position: relative; border-radius: var(--r-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 46em; }

/* Closing + footer */
.closing { text-align: center; }
.closing p { color: var(--muted); margin-top: 10px; }
.closing .btn { width: auto; margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }

/* Privacy page */
.prose { max-width: 760px; padding-block: 24px 64px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); }
.prose .card { margin-top: 14px; }
.prose h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose > .fine { margin-top: 22px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .join { max-width: none; }
  .stage-row, .trust { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .phone-wrap { order: 2; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .spots { font-size: 13px; padding: 7px 12px; }
  .place { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
