@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) 440px; 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; }
.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: 440px; 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); }
.switch { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 16px auto 0; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.switch button { height: 36px; padding: 0 16px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); background: transparent; border: 0; border-radius: 999px; }
.switch button[aria-selected="true"] { color: var(--ink); background: var(--white); }
.panel-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- 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; }
.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); }
.rng { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.rng .r1 { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.rng .r1 span:last-child { color: var(--muted); font-weight: 500; }
.rng input { width: 100%; margin: 8px 0 0; accent-color: var(--ink); }
.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: 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; } }

/* 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; }
