:root {
  --ink: #111111;
  --body: #3f3f46;
  --muted: #71717a;
  --page: #f7f7f8;
  --card: #ffffff;
  --soft: #f1f1f3;
  --line: #e4e4e7;
  --accent: #2f6bff;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --nav: #111111;
  --nav-ink: #d4d4d8;
  --warn: #c2410c;
  --good: #15803d;
  --field: #ffffff;
  --glow: rgba(47, 107, 255, .16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --body: #d4d4d8;
    --muted: #a1a1aa;
    --page: #09090b;
    --card: #18181b;
    --soft: #222226;
    --line: #2e2e33;
    --accent: #5b8cff;
    --accent-ink: #ffffff;
    --accent-soft: #1c2747;
    --nav: #1c1c1f;
    --nav-ink: #d4d4d8;
    --warn: #fb923c;
    --good: #4ade80;
    --field: #111113;
    --glow: rgba(91, 140, 255, .22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand, .countdown, .big-num { color: var(--ink); }

/* ---- Announcement bar + floating nav ------------------------------------ */
.announce {
  background: var(--accent); color: #fff; text-align: center;
  font-size: 14px; font-weight: 500; padding: 8px 16px;
}
.bar-wrap { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 10px 26px; min-height: 64px;
  background: var(--nav); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: #fff !important;
  text-decoration: none !important;
}
.brand svg { width: 22px; height: 22px; }
.bar nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.bar nav a { white-space: nowrap; }
.bar nav a:not(.btn) { color: var(--nav-ink); }
.bar nav a:not(.btn):hover { color: #fff; text-decoration: none; }
/* The pill button sits closer to the bar's rounded end than plain links do. */
.bar:has(nav .btn) { padding-right: 10px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 17px/1 Inter, -apple-system, sans-serif; cursor: pointer;
  text-decoration: none !important; transition: transform .15s ease, filter .15s ease;
}
.btn:hover, button:hover { filter: brightness(1.08); }
.btn:active, button:active { transform: scale(.98); }
.btn.big { min-height: 58px; padding: 0 38px; font-size: 19px; }
.btn.small { min-height: 40px; padding: 0 20px; font-size: 15px; }
.btn.quiet, button.quiet { background: var(--soft); color: var(--ink); }
button.danger { background: var(--warn); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions.center { justify-content: center; }

/* ---- Page frame --------------------------------------------------------- */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 96px; }
main.home { max-width: 1232px; padding-top: 16px; }

h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; margin: 28px 0 14px; text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; margin: 0 0 14px; text-wrap: balance;
}
main:not(.home) h2 { font-size: 26px; letter-spacing: -.02em; margin: 52px 0 12px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 6px; }
.lede { font-size: 20px; color: var(--muted); text-wrap: balance; margin: 0 0 26px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.panel {
  background: var(--card); border-radius: 24px; padding: 28px; margin: 20px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel .btn.quiet, .panel button.quiet { background: var(--soft); }

label { display: block; font-weight: 600; color: var(--ink); margin: 18px 0 7px; font-size: 15px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background-color: var(--field);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; min-height: 50px;
}
/* Safari draws its own small select and ignores the padding; drawn here instead. */
select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 110px; }
.hint { font-size: 14px; color: var(--muted); margin: 7px 0 0; }
.notice { background: var(--accent-soft); color: var(--ink); border-radius: 16px; padding: 14px 18px; }

/* ---- Apple / Google ----------------------------------------------------- */
.social { display: grid; gap: 10px; }
a.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
}
a.social-btn svg { width: 18px; height: 18px; flex: none; }
a.social-btn.apple { background: #000; color: #fff; }
a.social-btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }
a.social-btn:hover { text-decoration: none; filter: brightness(.96); }
@media (prefers-color-scheme: dark) { a.social-btn.apple { background: #fff; color: #000; } }
.or { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social + label, .social ~ label:first-of-type { margin-top: 14px; }

/* ---- Signed-in pages ---------------------------------------------------- */
.devices { list-style: none; padding: 0; margin: 24px 0; }
.devices li { margin: 0 0 12px; }
.devices a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--card); border-radius: 22px; padding: 20px 24px; color: var(--ink);
  text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.devices a:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
.state { font-size: 14px; font-weight: 600; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.state.locked { color: var(--good); }
.state.pending { color: var(--warn); }
.state.released { color: var(--muted); }

.big-state { font-size: 15px; font-weight: 700; }
.countdown { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.035em; margin: 4px 0; }
.code {
  font: 700 clamp(26px, 6vw, 40px)/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink); letter-spacing: .04em; margin: 8px 0; word-break: break-all;
}
.token { font: 700 34px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); letter-spacing: .12em; }
#qr { display: inline-block; background: #fff; padding: 12px; border-radius: 16px; margin: 8px 0; }
#qr img, #qr canvas { display: block; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 0 0 14px; }
.log { list-style: none; padding: 0; font-size: 15px; }
.log li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.log time { color: var(--muted); white-space: nowrap; }

/* ---- Home --------------------------------------------------------------- */
.sheet { background: var(--card); border-radius: 32px; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); margin: 16px 0; position: relative; overflow: clip; }
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.hero { text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(900px, 120%); height: 420px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero > * { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -.045em; line-height: .98; margin: 26px auto 22px; max-width: 980px; }
.hero .lede { max-width: 620px; margin: 0 auto 30px; font-size: clamp(18px, 1.8vw, 21px); }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--soft); border-radius: 32px; padding: clamp(32px, 6vw, 72px);
}
.split > * { min-width: 0; }
.split h2 { font-size: clamp(32px, 4vw, 52px); }
.split p { font-size: 18px; margin: 0 0 22px; }

/* The phone drawn in CSS: what someone sees mid-countdown. */
.phone {
  width: min(300px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; background: #0c0c0e;
  border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.phone-screen {
  height: 100%; border-radius: 36px; background: #f7f7f8; color: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px 20px; text-align: center; position: relative;
}
.phone-screen::before { content: ""; position: absolute; top: 10px; width: 92px; height: 26px; background: #0c0c0e; border-radius: 20px; }
.phone .lock-badge { width: 64px; height: 64px; border-radius: 50%; background: #fff4ec; color: #c2410c; display: grid; place-items: center; margin-bottom: 14px; }
.phone .lock-badge svg { width: 30px; height: 30px; }
.phone .p-label { font-size: 13px; font-weight: 700; color: #c2410c; }
.phone .p-time { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 4px; color: #111; }
.phone .p-sub { font-size: 12px; color: #71717a; margin-bottom: 22px; }
.phone .p-btn { background: #2f6bff; color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 600; width: 100%; }
.phone .p-note { font-size: 11px; color: #71717a; margin-top: 12px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border-radius: 24px; overflow: clip; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.step .art { height: 190px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), var(--soft)); }
.step .art svg { width: 84px; height: 84px; color: var(--accent); }
.step .txt { padding: 22px 24px 26px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.promise { text-align: center; }
.promise::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 700px; height: 360px; max-width: 120%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.promise > * { position: relative; }
.badge { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 26px; box-shadow: 0 10px 30px var(--glow); }
.badge svg { width: 32px; height: 32px; }
.promise p { max-width: 640px; margin: 0 auto 12px; font-size: 19px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 24px; overflow: clip; font-size: 16px; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-weight: 700; color: var(--ink); font-size: 15px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.compare .us { background: var(--accent-soft); }
.compare th.us { color: var(--accent); }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--accent); color: #fff; }
.no { background: var(--soft); color: var(--muted); }
.yes svg, .no svg { width: 14px; height: 14px; }
.table-wrap { overflow-x: auto; border-radius: 24px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 20px; margin: 0 0 12px; padding: 0 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-weight: 600; font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--body); }

.closer { background: var(--nav); color: #d4d4d8; border-radius: 32px; padding: clamp(56px, 8vw, 96px) 24px; text-align: center; margin-top: clamp(64px, 9vw, 112px); position: relative; overflow: clip; }
.closer::before { content: ""; position: absolute; left: 50%; top: 0; width: 800px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(47, 107, 255, .45), transparent); }
.closer > * { position: relative; }
.closer h2 { color: #fff; }
.closer p { font-size: 19px; max-width: 560px; margin: 0 auto 30px; }

.foot { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; padding: 32px 16px 48px; }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .grid6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bar-wrap { padding: 10px 10px 0; }
  .bar { padding: 8px 18px; gap: 10px; min-height: 56px; }
  .bar:has(nav .btn) { padding-right: 8px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand svg { width: 19px; height: 19px; }
  .bar nav { gap: 12px; font-size: 14px; }
  .bar nav .btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .bar nav .wide { display: none; }
  .grid6 { grid-template-columns: 1fr; }
  .devices a { flex-direction: column; align-items: flex-start; gap: 8px; }
  .log li { flex-direction: column; gap: 0; }
  .compare th, .compare td { padding: 14px 10px; font-size: 14px; }
}
