@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-ExtraBold.ttf'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-Light.ttf'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Light.ttf'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Medium.ttf'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-SemiBold.ttf'); font-weight: 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --ink: #0b0d11; --ink2: #101217; --panel: #161a21; --line: rgba(227,234,240,0.09); --ice: #9db8cc; --ice-rgb: 157,184,204; --frost: #e3eaf0; --cream: #f4f1ec; --muted: rgba(244,241,236,0.58); --good: #8fe0b0; --bad: #e79a8a; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--cream); font-family: 'Poppins', sans-serif; font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--ice); }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.logo { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; line-height: .86; white-space: nowrap; text-decoration: none; color: var(--cream); }
.logo b { font-weight: 800; } .logo span { font-weight: 400; } .logo em { font-style: normal; font-weight: 300; color: var(--ice); }

.top { padding-block: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top .logo { font-size: 24px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--cream); border: 1px solid rgba(244,241,236,0.2); padding: 10px 14px; border-radius: 3px; }
.nav a:hover { border-color: var(--ice); color: var(--ice); }
.sample-note { background: var(--frost); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; padding: 10px 16px; }

.label { font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--ice); }
.title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; line-height: .95; }
.title .thin { font-weight: 300; }

/* HERO */
.hero { text-align: center; padding: 56px 0 48px; position: relative; }
.hero::before { content: ''; position: absolute; inset: -120px 0 auto; height: 560px; background: radial-gradient(circle at 50% 30%, rgba(var(--ice-rgb),0.16), transparent 62%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(76px, 15vw, 170px); margin-top: 14px; }
.hero h1 .ol { color: transparent; -webkit-text-stroke: 1.5px var(--ice); filter: drop-shadow(0 0 16px rgba(var(--ice-rgb),0.6)); font-weight: 800; }
.hero .tag { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: 4px; color: var(--frost); margin-top: 8px; }
.hero p.sub { max-width: 580px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.pool-box { margin-top: 44px; }
.pool-amt { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(96px, 18vw, 190px); line-height: .9; color: var(--frost); filter: drop-shadow(0 0 26px rgba(var(--ice-rgb),0.45)); font-variant-numeric: tabular-nums; margin-top: 6px; }
.pool-sub { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 40px; }
.stat { background: var(--ink2); padding: 20px 10px; text-align: center; }
.stat b { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; text-decoration: none; padding: 17px 32px; border-radius: 3px; border: 0; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--ice); color: var(--ink); box-shadow: 0 0 36px rgba(var(--ice-rgb),0.32); }
.btn-primary:hover { background: var(--cream); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(244,241,236,0.25); background: transparent; }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* RULES */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px 22px; }
.rule .n { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--ice); }
.rule h3 { font-size: 15.5px; font-weight: 500; margin: 10px 0 6px; }
.rule p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* FRIEND */
.friend { margin-top: 18px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid rgba(var(--ice-rgb),0.4); border-radius: 8px; overflow: hidden; background: linear-gradient(120deg, rgba(var(--ice-rgb),0.12), transparent 60%), var(--ink2); }
.friend > div { padding: 34px 32px; }
.friend h2 { font-size: clamp(38px, 5vw, 56px); }
.friend p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.friend .math { border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.math-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.math-row:last-child { border-bottom: 0; }
.math-row b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; color: var(--frost); }

/* FORMS */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; min-width: 0; scroll-margin-top: 20px; }
.card.main { border-color: rgba(var(--ice-rgb),0.45); box-shadow: 0 0 60px rgba(var(--ice-rgb),0.07); }
.card h2 { font-size: 40px; }
.card p.help { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }
.ref-note { margin-top: 12px; font-size: 13px; color: var(--good); }
.pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pay-pick a { display: block; text-align: center; text-decoration: none; border: 1px solid rgba(var(--ice-rgb),0.45); border-radius: 4px; padding: 12px 10px; color: var(--cream); font-size: 13px; font-weight: 500; line-height: 1.35; }
.pay-pick a small { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ice); margin-bottom: 2px; }
.pay-pick a:hover { border-color: var(--frost); background: rgba(var(--ice-rgb),0.08); }
.pay-pick.hl a { border-color: var(--ice); box-shadow: 0 0 24px rgba(var(--ice-rgb),0.2); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 10.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(244,241,236,0.62); }
input { width: 100%; background: var(--ink); border: 1px solid rgba(244,241,236,0.18); color: var(--cream); font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 4px; color-scheme: dark; }
input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(var(--ice-rgb),0.22); }
form .btn { grid-column: 1 / -1; width: 100%; }
button:disabled { opacity: .5; cursor: wait; }
.msg { grid-column: 1 / -1; font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: 4px; }
.msg.ok { background: rgba(143,224,176,0.08); color: var(--good); border: 1px solid rgba(143,224,176,0.3); }
.msg.err { background: rgba(231,154,138,0.08); color: var(--bad); border: 1px solid rgba(231,154,138,0.35); }
.msg a { color: var(--frost); font-weight: 500; }
.invite { grid-column: 1 / -1; display: none; gap: 8px; }
.invite.show { display: grid; grid-template-columns: 1fr auto; }
.invite input { font-size: 13px; }
.invite .btn { padding: 12px 18px; width: auto; }

/* BOARD */
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.board-head h2 { font-size: clamp(46px, 7vw, 74px); margin-top: 8px; }
.board-head input { max-width: 260px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.tbl-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 14px; background: var(--ink2); border-bottom: 1px solid var(--line); }
td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; color: var(--muted); width: 48px; }
td.name { font-weight: 500; white-space: nowrap; }
td.name small { display: block; font-weight: 300; font-size: 12px; color: var(--muted); }
td.num { text-align: right; font-weight: 500; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.pill.perfect { background: rgba(143,224,176,0.08); color: var(--good); border: 1px solid rgba(143,224,176,0.32); }
.pill.out { color: var(--muted); border: 1px solid rgba(244,241,236,0.15); }
.pill.owes { background: rgba(231,154,138,0.08); color: var(--bad); border: 1px solid rgba(231,154,138,0.35); }
.dots { display: grid; grid-template-columns: repeat(15, 10px); gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(244,241,236,0.15); }
.dots i.y { background: var(--ice); border-color: var(--ice); }
.dots i.n { border-color: var(--bad); position: relative; }
.dots i.n::after { content: ''; position: absolute; inset: 3px; background: var(--bad); border-radius: 50%; }
.today-tag { color: var(--good); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.updated { text-align: center; font-size: 12px; color: rgba(244,241,236,0.3); margin-top: 12px; }

.fine { margin-top: 64px; padding-block: 40px 80px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fine h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ice); letter-spacing: .5px; }
.fine p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin-top: 6px; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
  .friend { grid-template-columns: 1fr; }
  .friend .math { border-left: 0; border-top: 1px solid var(--line); }
  .forms { grid-template-columns: 1fr; }
  .fine { grid-template-columns: 1fr; }
  .board-head input { max-width: none; }
}
@media (max-width: 460px) { .nav a { padding: 8px 10px; font-size: 10px; letter-spacing: 1.4px; } .nav a:last-child { display: none; } .rules { grid-template-columns: 1fr; } form { grid-template-columns: 1fr; } .card { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 10K site additions ---------- */
.nav a.cta { background: var(--ice); color: var(--ink); border-color: var(--ice); font-weight: 600; }
.nav a.cta:hover { background: var(--cream); color: var(--ink); }
.pool-sub b { color: var(--cream); font-weight: 500; }
.section { margin-top: 88px; }
.section-head { text-align: center; }
.section-head h2 { font-size: clamp(44px, 7vw, 76px); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 560px; margin: 14px auto 0; }

/* JOIN: three clear steps */
.join { margin-top: 40px; max-width: 760px; margin-inline: auto; display: grid; gap: 12px; scroll-margin-top: 20px; }
.jstep { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; transition: opacity .2s, border-color .2s; }
.jstep .num { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(var(--ice-rgb),0.5); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: var(--ice); }
.jstep h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1.05; }
.jstep .hint { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; }
.jstep .body { grid-column: 2; }
.jstep form { margin-top: 18px; }
.jstep.active { border-color: rgba(var(--ice-rgb),0.55); box-shadow: 0 0 60px rgba(var(--ice-rgb),0.08); }
.jstep.active .num { background: var(--ice); color: var(--ink); border-color: var(--ice); }
.jstep.locked { opacity: .45; }
.jstep.locked .reveal { display: none; }
.jstep.done .num { background: transparent; color: var(--good); border-color: var(--good); font-size: 0; }
.jstep.done .num::after { content: ''; width: 14px; height: 8px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg) translate(1px, -2px); }
.jstep.done form { display: none; }
.done-line { display: none; color: var(--good); font-size: 14px; margin-top: 6px; }
.jstep.done .done-line { display: block; }
.pay-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pay-big a { display: block; text-decoration: none; border: 1px solid rgba(var(--ice-rgb),0.5); border-radius: 8px; padding: 18px 18px 16px; color: var(--cream); transition: all .2s; background: var(--ink2); }
.pay-big a:hover { border-color: var(--frost); background: rgba(var(--ice-rgb),0.08); transform: translateY(-2px); }
.pay-big small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ice); }
.pay-big b { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 6px 0 2px; }
.pay-big span { font-size: 13px; color: var(--muted); }
.pay-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.invite { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.next-up { margin-top: 16px; font-size: 14px; color: var(--muted); }
.next-up a { font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 26px; color: var(--ice); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }

.footer { margin-top: 96px; padding: 56px 0 72px; border-top: 1px solid var(--line); text-align: center; }
.footer p { color: var(--muted); font-size: 14px; }
.footer .wa { display: inline-block; margin-top: 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.footer small { display: block; margin-top: 36px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(244,241,236,0.3); }

/* TRACKER */
.log-wrap { max-width: 640px; margin: 8px auto 0; }
.buyback-box { margin-top: 14px; padding: 14px 16px; border: 1px dashed rgba(var(--ice-rgb),0.4); border-radius: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.buyback-box b { color: var(--cream); font-weight: 500; }

@media (max-width: 640px) {
  .pay-big { grid-template-columns: 1fr; }
  .jstep { grid-template-columns: 34px 1fr; padding: 22px 18px; gap: 0 14px; }
  .jstep .num { width: 34px; height: 34px; font-size: 18px; }
  .jstep h3 { font-size: 25px; }
  .nav a:last-child { display: inline-block; }
  .nav a.hide-sm { display: none; }
}

/* extra sign-up fields */
select, textarea { width: 100%; background: var(--ink); border: 1px solid rgba(244,241,236,0.18); color: var(--cream); font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 4px; color-scheme: dark; resize: vertical; }
select:focus, textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(var(--ice-rgb),0.22); }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cream); border: 1px solid rgba(244,241,236,0.18); border-radius: 100px; padding: 9px 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ice); background: rgba(var(--ice-rgb),0.12); }
.choice input, .consent input { accent-color: var(--ice); width: auto; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; }
.pay-big a.pick { border-color: var(--ice); background: rgba(var(--ice-rgb),0.12); box-shadow: 0 0 30px rgba(var(--ice-rgb),0.2); }
.pay-big a.pick small::after { content: ' · This one'; color: var(--frost); }

.jstep.done .reveal { display: none; }

/* ---------- iPhone polish ---------- */
select { -webkit-appearance: none; appearance: none; min-height: 48px; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(135deg, var(--ice) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input, select, textarea { min-height: 48px; }
textarea { min-height: 72px; }
.consent input { width: 22px; height: 22px; min-height: 0; flex-shrink: 0; margin-top: 0; }
.consent { align-items: center; }
.choice label { min-height: 44px; }
.choice input { width: 18px; height: 18px; min-height: 0; }
.top { padding-top: max(18px, env(safe-area-inset-top)); }
@media (max-width: 640px) {
  .nav a { padding: 13px 14px; }
  .btn { padding: 18px 24px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .invite { grid-template-columns: 1fr; }
  .invite .btn { width: 100%; }
  .choice { flex-direction: column; }
  .choice label { width: 100%; }
  /* leaderboard fits the screen: hide streak dots and daily average */
  table { min-width: 0; }
  th:nth-child(4), td:nth-child(4), th:nth-child(6), td:nth-child(6) { display: none; }
  th, td { padding: 12px 8px; font-size: 14px; }
  td.rank { width: 28px; font-size: 20px; }
  td.name { white-space: normal; }
  .pill { font-size: 9.5px; padding: 4px 8px; }
  .board-head input { max-width: none; width: 100%; }
  .stats .stat b { font-size: 32px; }
}

@media (max-width: 360px) { th:nth-child(7), td:nth-child(7) { display: none; } .stats .stat b { font-size: 28px; } }

/* Join step 2: app setup list */
.app-steps { margin-top: 14px; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.app-steps b { color: var(--cream, #fff); font-weight: 600; }
