@font-face { font-family: "Ionicons"; src: url("/fonts/Ionicons.ttf") format("truetype"); font-display: block; }

:root {
  --bg: #FFFDF9; --ink: #1E293B; --ink-2: #334155; --gold: #D4AF37; --muted: #6B7280; --line: #ECE6DA; --white: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- page ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; height: 28px; width: auto; }
.bar-link { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 12px; color: var(--white); background: var(--ink); }
.bar-link:hover { background: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 580px; gap: 64px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
h1 { margin: 0; font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin: 20px 0 0; max-width: 30em; font-size: 18px; line-height: 28px; color: var(--ink-2); }

.join { margin-top: 32px; max-width: 460px; }
.join-row { display: flex; gap: 8px; }
.join input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.join input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.join button { height: 48px; padding: 0 20px; font-size: 16px; font-weight: 600; color: var(--white); background: var(--ink); border: 0; border-radius: 12px; white-space: nowrap; }
.join button:hover { background: var(--ink-2); }
.join button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.joined { margin-top: 32px; max-width: 460px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.joined[hidden] { display: none; }
.joined:focus { outline: none; }
.joined-title { margin: 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.joined-line { margin: 8px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.joined .fine { margin-top: 12px; }
.join-status { min-height: 22px; margin: 10px 0 0; font-size: 14px; line-height: 22px; }
.join-status.ok { color: #15803D; }
.join-status.err { color: #B91C1C; }
.fine { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.features h2 { margin: 0 0 8px; font-size: 18px; line-height: 26px; font-weight: 700; }
.features p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.foot { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }


.panel { width: 100%; max-width: 580px; justify-self: end; padding: 20px; border-radius: 24px; background: var(--ink); color: var(--white); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel-head .a { padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.12); }
.panel-head .b { color: rgba(255,255,255,.7); }
.panel-hint { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: rgba(255,255,255,.7); }
.panel-hint mark { padding: 0 8px; border-radius: 8px; background: var(--gold); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.panel-hint strong { display: block; margin-bottom: 2px; font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -0.01em; color: var(--white); }
.panel-hint strong + span { display: block; margin-top: 10px; }
.switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 340px; margin: 16px auto 0; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.switch button { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; font-size: 14px; font-weight: 600; line-height: 1; text-align: center; white-space: nowrap; color: rgba(255,255,255,.8); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.switch button:hover { color: var(--white); background: rgba(255,255,255,.12); }
.switch button[aria-selected="true"] { color: var(--ink); background: var(--white); }
.switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.panel-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.6); }

.stage { position: relative; }
/* Phrases beside the phone, one at a time: each pops in, stays about three
   seconds, then drifts up and away before the next one appears. Taps pass through. */
.pops { margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pop { position: absolute; z-index: 5; width: 102px; padding: 10px 12px; border-radius: 18px; background: var(--white); color: var(--ink); font-size: 13px; line-height: 17px; font-weight: 700; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); opacity: 0; transform: rotate(var(--r)); animation: pop-cycle 16s ease-in-out infinite both; animation-delay: var(--d); }
.p1 { --r: -4deg; --d: 0s; left: 0; top: 150px; }
.p2 { --r: 3deg; --d: 4s; right: 0; top: 250px; }
.p3 { --r: -3deg; --d: 8s; left: 0; top: 340px; }
.p4 { --r: 4deg; --d: 12s; right: 0; top: 190px; }
@keyframes pop-cycle {
  0% { opacity: 0; transform: rotate(var(--r)) scale(.4); translate: 0 0; animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
  3% { opacity: 1; transform: rotate(var(--r)) scale(1); translate: 0 0; animation-timing-function: ease-in-out; }
  21% { opacity: 1; transform: rotate(var(--r)) scale(1); translate: 0 -6px; animation-timing-function: ease-in; }
  25% { opacity: 0; transform: rotate(calc(var(--r) * -1)) scale(.96); translate: 0 -34px; }
  100% { opacity: 0; transform: rotate(calc(var(--r) * -1)) scale(.96); translate: 0 -34px; }
}

/* ---------- phone frame ---------- */
.phone { position: relative; width: min(340px, 100%); height: 640px; margin: 0 auto; padding: 8px; border-radius: 44px; background: #0F172A; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 36px; background: var(--bg); color: var(--ink); line-height: 1.4; font-size: 16px; }
.screen .ion { font-family: "Ionicons"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; }
.screen :where(button) { border: 0; background: none; padding: 0; text-align: inherit; }
.screen, .screen * { touch-action: pan-y; }
.screen { user-select: none; -webkit-user-select: none; }
.screen input { user-select: text; -webkit-user-select: text; }
.track { display: flex; width: 300%; height: 100%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pane { position: relative; flex: none; width: 33.3333%; height: 100%; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.status { height: 44px; flex: none; display: flex; align-items: flex-end; padding: 0 24px 4px; font-size: 15px; font-weight: 600; }
.scroll { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 8px 16px 28px; }
.scroll::-webkit-scrollbar { display: none; }
.kicker { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.title { margin: 2px 0 16px; font-size: 24px; line-height: 32px; font-weight: 700; }
.pods { display: flex; flex-direction: column; gap: 12px; }
.pod-card { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.pod-card .top { display: flex; align-items: center; justify-content: space-between; }
.pod-card .who { display: flex; align-items: center; gap: 8px; }
.pod-card .emoji { font-size: 24px; line-height: 32px; }
.pod-card .name { font-weight: 600; }
.pod-card .type { font-size: 12px; font-weight: 500; text-transform: capitalize; }
.lock { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white) !important; font-size: 16px; }
.pod-card .bal { margin-top: 12px; font-size: 18px; line-height: 28px; font-weight: 700; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.bar-fill { height: 8px; border-radius: 999px; transition: width .25s; }
.prog { margin-top: 8px; }
.cap { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.hint { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }
.field { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.field.bad { border-color: #EF4444; }
.field span { font-size: 30px; line-height: 36px; font-weight: 700; }
.field input { flex: 1; min-width: 0; padding: 10px 8px; border: 0; outline: 0; background: none; font-size: 30px; line-height: 1.2; font-weight: 700; }
.err { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: #DC2626; }
.chips { display: flex; gap: 8px; margin-top: 8px; }
.chips button { flex: 1; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: 600; text-align: center !important; white-space: nowrap; }
.chips button.on { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lines { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.line { padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.line .t { display: flex; align-items: center; gap: 8px; }
.line .t .emoji { font-size: 20px; line-height: 28px; }
.line .t .n { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .t .v { font-size: 16px; font-weight: 700; }
.line .why { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.cta { width: 100%; display: block; margin-top: 12px; padding: 12px 0; border-radius: 12px; background: var(--ink) !important; color: var(--white); font-size: 16px; font-weight: 600; text-align: center !important; }
.cta.ghost { background: var(--white) !important; color: var(--ink); border: 1px solid var(--line) !important; }
.box { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.box .row { display: flex; align-items: center; justify-content: space-between; }
.box .row b { font-size: 14px; line-height: 20px; font-weight: 600; }
.alert-scrim { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.alert { width: 262px; overflow: hidden; border-radius: 14px; background: rgba(250,250,250,.98); text-align: center; }
.alert .b { padding: 18px 16px 16px; }
.alert h5 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.alert p { margin: 4px 0 0; font-size: 13px; line-height: 18px; }
.alert .btns { display: flex; border-top: 1px solid rgba(60,60,67,.29); }
.alert .btns button { flex: 1; padding: 11px 8px; font-size: 17px; color: #007AFF; text-align: center !important; }
.alert .btns button + button { border-left: 1px solid rgba(60,60,67,.29); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 16px; }
  .panel { justify-self: center; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 620px) {
  /* No room beside the phone: the phrase appears in a clear strip above it instead. */
  .stage { padding-top: 52px; }
  .pop, .p1, .p2, .p3, .p4 { top: 0; left: 0; right: 0; width: max-content; max-width: 100%; margin: 0 auto; font-size: 13px; padding: 9px 14px; border-radius: 999px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .join-row { flex-direction: column; }
  .join input[type="email"] { flex: none; width: 100%; }
  .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .pop { animation: none; opacity: 1; }
  .p2, .p3, .p4 { display: none; }
}

/* confirm / remove pages */
.action { max-width: 560px; padding-top: 48px; padding-bottom: 96px; }
.action h1 { font-size: clamp(32px, 6vw, 44px); }
.action-btn { margin-top: 28px; height: 48px; padding: 0 24px; font-size: 16px; font-weight: 600; color: var(--white); background: var(--ink); border: 0; border-radius: 12px; }
.action-btn:hover { background: var(--ink-2); }
.action-btn:disabled { opacity: .6; cursor: default; }
