/* Cornhole i/o — brand system ported from the iOS app's DesignTokens.swift + print ad.
   No teal anywhere: accent is warm gold. */
:root {
  --gold: #A97B2F;          /* accentBrand */
  --gold-bright: #C69F66;
  --gold-deep: #8A6F4D;
  --team-a: #1C519C;        /* deep blue  */
  --team-b: #C93232;        /* warm red   */
  --ink: #1B1611;           /* espresso   */
  --ink-2: #292219;
  --paper: #F2EAD9;         /* warm paper */
  --paper-2: #FBF7EE;       /* cream card */
  --line: #E4D8C2;
  --muted: #6B6354;
  --muted-2: #8A8272;
  --success: #2EB056;
  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-chip: 999px;
  --shadow-sm: 0 1px 2px rgba(27,22,17,.06), 0 4px 14px rgba(27,22,17,.06);
  --shadow-lg: 0 24px 60px -20px rgba(27,22,17,.35);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 8px 22px -8px rgba(169,123,47,.7); }
.btn-primary:hover { background: #b98a3d; }
.btn-ghost { background: transparent; border-color: rgba(27,22,17,.22); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(242,234,217,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand .io { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-weight: 700 !important; color: var(--gold-deep) !important; }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  position: relative; color: var(--paper);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(169,123,47,.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(28,81,156,.20), transparent 55%),
    linear-gradient(160deg, #241d15 0%, var(--ink) 60%, #120e0a 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); color: #fff; }
.hero h1 .accent { color: var(--gold-bright); }
.hero-sub { font-size: clamp(1.06rem, 1.7vw, 1.3rem); color: #E4D8C2; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 20px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: #cbbfa7; font-weight: 600; font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }
.chess-tag {
  display: inline-block; margin-top: 26px; font-size: .8rem; letter-spacing: .04em;
  color: #b7ab92; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px;
}
.chess-tag b { color: var(--gold-bright); letter-spacing: .12em; }

/* Phone frame */
.phone {
  position: relative; width: min(310px, 78vw); margin: 0 auto;
  border-radius: 42px; padding: 12px; background: #0c0906;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.06) inset;
  border: 1px solid rgba(255,255,255,.08);
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0c0906; border-radius: 999px; z-index: 2;
}
.phone img { border-radius: 32px; width: 100%; }
.hero-visual { position: relative; }
.float-badge {
  position: absolute; z-index: 3; background: var(--paper-2); color: var(--ink);
  border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-lg); font-weight: 700;
  display: flex; align-items: center; gap: 10px; font-size: .92rem;
}
.float-badge .n { font-size: 1.35rem; font-weight: 800; }
.badge-a { left: -6%; top: 20%; }
.badge-a .n { color: var(--team-a); }
.badge-b { right: -4%; bottom: 16%; }
.badge-b .n { color: var(--team-b); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub, .trust { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .badge-a { left: 2%; } .badge-b { right: 2%; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.step {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--gold); margin-bottom: 18px; font-size: 1.05rem;
}
.step .pts { font-weight: 800; color: var(--gold-deep); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.step p { color: var(--muted); margin-bottom: 0; }

/* Features */
.features { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.feat {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius-card);
  background: var(--paper); border: 1px solid var(--line);
}
.feat .ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(169,123,47,.12); color: var(--gold-deep);
}
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--muted); margin: 0; font-size: .96rem; }

/* App showcase */
.shots { display: flex; gap: 20px; margin-top: 46px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; scroll-snap-align: center; width: 216px; text-align: center; }
.shot img {
  width: 100%; border-radius: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: #000;
}
.shot span { display: block; margin-top: 14px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* Kit vs Pro */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; }
.tier {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.tier.pro { background: linear-gradient(165deg, #241d15, var(--ink)); color: var(--paper); border-color: #3a2f20; }
.tier .kicker { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.tier.pro .kicker { color: var(--gold-bright); }
.tier .name { font-size: 1.7rem; font-weight: 800; margin: 6px 0 4px; }
.tier .tagline { color: var(--muted); margin-bottom: 20px; }
.tier.pro .tagline { color: #cbbfa7; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-weight: 600; }
.tier.pro .price .per { color: #cbbfa7; }
.earlybird { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--gold-deep); background: rgba(169,123,47,.14); padding: 4px 11px; border-radius: 999px; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 26px; }
.tier li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: .96rem; }
.tier.pro li { border-color: rgba(255,255,255,.1); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 15px; height: 9px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
.tier.pro li::before { border-color: var(--gold-bright); }
.tier .btn { width: 100%; }
.flag { position: absolute; top: 22px; right: 24px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); }
@media (max-width: 820px) { .steps, .feat-grid, .tiers { grid-template-columns: 1fr; } }

/* Waitlist */
.cta-band { background: linear-gradient(160deg, #241d15, var(--ink) 70%, #120e0a); color: var(--paper); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 80% 120%, rgba(169,123,47,.3), transparent 60%);
}
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #d8ccb6; }
.wl-form { display: flex; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; justify-content: center; }
.wl-form input[type=email] {
  flex: 1 1 260px; min-width: 0; padding: 15px 18px; border-radius: var(--radius-btn);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1rem;
}
.wl-form input::placeholder { color: #b7ab92; }
.wl-form input:focus { outline: none; border-color: var(--gold-bright); background: rgba(255,255,255,.1); }
.tier-pick { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; flex-wrap: wrap; }
.tier-pick label {
  font-size: .86rem; font-weight: 600; color: #d8ccb6; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer; transition: .15s;
}
.tier-pick input { position: absolute; opacity: 0; }
.tier-pick input:checked + label { background: var(--gold); border-color: var(--gold); color: #fff; }
.wl-note { font-size: .82rem; color: #b7ab92; margin-top: 14px; }
.wl-msg { min-height: 24px; font-weight: 700; margin-top: 8px; }
.wl-msg.ok { color: #7ed99b; }
.wl-msg.err { color: #f0a5a5; }
.wl-success { display: none; }
.wl-success.show { display: block; animation: pop .4s ease; }
.wl-form.hide, .tier-pick.hide { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* App-store (coming soon) */
.stores { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
}
.store-badge svg { width: 24px; height: 24px; }
.store-badge .s1 { font-size: .68rem; color: #b7ab92; display: block; line-height: 1; }
.store-badge .s2 { font-weight: 700; font-size: 1rem; }
.store-badge.soon { opacity: .78; }

/* FAQ */
.faq { max-width: 800px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Footer */
.footer { background: var(--ink); color: #cbbfa7; padding: 54px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer-cols { display: flex; gap: 54px; flex-wrap: wrap; }
.footer-cols h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 12px; }
.footer-cols a { display: block; color: #cbbfa7; padding: 5px 0; font-size: .94rem; }
.footer-cols a:hover { color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #9a8f7c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
