/* Sideline marketing site. Same brand green as the app (#0b5d3b); gold is the player accent.
   Tokens first, light is the default, dark follows the device. */
:root {
  color-scheme: light;
  --brand: #0b5d3b;
  --brand-deep: #08432b;
  --brand-ink: #062d1e;
  --brand-soft: #e6f1ec;
  --gold: #ffb545;
  --gold-ink: #9a6200;
  --bg: #ffffff;
  --bg-2: #f5f7f6;
  --bg-3: #eaeeec;
  --line: #e2e7e4;
  --text: #121a16;
  --muted: #5b6862;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(10, 30, 20, .06), 0 12px 32px -16px rgba(10, 30, 20, .25);
  --radius: 16px;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: Inter, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #4cc38a;
    --brand-deep: #0b5d3b;
    --brand-ink: #062d1e;
    --brand-soft: #14261d;
    --bg: #0e1411;
    --bg-2: #141c18;
    --bg-3: #1c2620;
    --line: #26332c;
    --text: #e8ede9;
    --muted: #93a19a;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-family: var(--display); letter-spacing: .005em; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; text-transform: uppercase; }
.h2, h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 26px; font-weight: 700; }
h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 620px; }
.eyebrow { display: inline-block; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.muted { color: var(--muted); }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--bg-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: 0 8px 20px -10px rgba(8, 67, 43, .7); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--text); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #f1f5f3; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.mark rect:first-child { fill: var(--brand-deep); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--bg-3); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .nav-mobile { display: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.login { color: var(--text); font-weight: 600; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1040px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 17px; }
  .menu-btn { display: flex; }
  .login, .topbar-actions .btn { display: none; }
  .nav .nav-mobile { display: block; }
  .nav .btn.nav-mobile { display: inline-flex; margin-top: 8px; justify-content: center; color: #fff; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* hero */
.hero { position: relative; background: var(--brand-ink); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 15% 0%, rgba(76, 195, 138, .28), transparent 60%),
  radial-gradient(700px 400px at 90% 100%, rgba(255, 181, 69, .16), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .045) 119px 121px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.hero-note b { color: rgba(255, 255, 255, .85); font-weight: 600; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

/* screenshot frame */
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #0d1512; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1a2420; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.shot-bar i { margin-left: 10px; font: 500 11px/1 var(--body); color: rgba(255, 255, 255, .45); font-style: normal; background: rgba(255, 255, 255, .06); padding: 5px 10px; border-radius: 6px; flex: 1; text-align: center; max-width: 320px; }
.shot img { width: 100%; }
.shot.tilt { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 900px) { .shot.tilt { transform: none; } }

/* proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.proof-item { display: flex; gap: 12px; align-items: flex-start; }
.proof-item svg { flex: none; width: 24px; height: 24px; color: var(--brand); margin-top: 2px; }
.proof-item b { display: block; font-weight: 600; }
.proof-item span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .proof-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proof-in { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip .feature-media { order: -1; }
.feature h2 { font-size: clamp(32px, 4vw, 46px); }
.feature p { color: var(--muted); }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.feature li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5d3b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 10px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; }
.card.link { transition: transform .15s, border-color .15s; }
.card.link:hover { transform: translateY(-3px); border-color: var(--brand); text-decoration: none; }
.card.link .more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--brand); }
a.card { color: inherit; display: block; }

/* award chips */
.stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.sticker.gold { background: #fdf3e2; border-color: #e6cb9b; color: var(--gold-ink); }
@media (prefers-color-scheme: dark) { .sticker.gold { background: #2b2313; border-color: #6b5320; color: var(--gold); } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--brand); display: block; margin-bottom: 12px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience .card { padding: 32px 28px; }
.audience .who { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .06em; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

/* quote / photo band */
.band { position: relative; background: var(--brand-ink); color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 45, 30, .94) 0%, rgba(6, 45, 30, .78) 42%, rgba(6, 45, 30, .15) 100%); }
.band .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .band::after { background: rgba(6, 45, 30, .8); } }
.photo-fig { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-fig img { width: 100%; }
.band-in { position: relative; padding: clamp(72px, 10vw, 140px) 0; max-width: 760px; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--gold); }
.band p { color: rgba(255, 255, 255, .8); font-size: 19px; }

/* cta band */
.cta-band { background: var(--brand-deep); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(48px, 6vw, 80px) 0; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .cta-in { flex-direction: column; align-items: flex-start; } }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--brand); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--muted); max-width: 720px; }
.faq-a p:last-child { margin-bottom: 0; }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.ok { background: var(--brand-soft); color: var(--brand); }
.form-status.err { background: rgba(198, 40, 40, .1); color: #c62828; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }

/* prose (legal, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; font-family: var(--body); font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; }
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); max-width: 900px; }
.page-head .lead { margin-top: 16px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table td:first-child { font-weight: 600; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer .fh { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer a:not(.logo) { display: block; color: var(--text); padding: 5px 0; font-size: 15px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 16px; }
.footer-contact a { display: inline !important; color: var(--brand) !important; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; } }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* login page */
.login-card { max-width: 440px; margin: 0 auto; text-align: center; }
.login-card .mark { margin: 0 auto 18px; }
.login-card h1 { font-size: 40px; }
.login-card p { color: var(--muted); }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-links { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* 404 */
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 20vw, 200px); line-height: .9; color: var(--brand-soft); }

/* help center */
.help-card { display: block; color: inherit; }
.help-card:hover { text-decoration: none; border-color: var(--brand); }
.help-card h3 { margin: 6px 0 8px; }
.help-h { font-size: 30px; margin-bottom: 6px; }
.help-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.help-list li a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: inherit; }
.help-list li a:hover { text-decoration: none; border-color: var(--brand); }
.help-t { display: block; font-weight: 600; margin-bottom: 4px; }
.help-d { display: block; color: var(--muted); font-size: 14px; }
.help-head .crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.help-head h1 { font-size: clamp(34px, 5vw, 56px); }
.help-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 56px; align-items: start; }
.help-side { position: sticky; top: 88px; }
.help-side .fh { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.help-side .fh + .help-toc { margin-bottom: 26px; }
.help-toc { list-style: none; padding: 0; margin: 0; }
.help-toc li a { display: block; padding: 5px 0; font-size: 14px; color: var(--text); }
.help-article h2 { font-size: 26px; margin: 40px 0 10px; scroll-margin-top: 90px; }
.help-article h2:first-child { margin-top: 0; }
.help-article ol { padding-left: 22px; }
.help-article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0 22px; }
.help-article th, .help-article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-article th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.help-article .table-wrap { overflow-x: auto; }
.help-article code { font-family: Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-3); padding: 1px 6px; border-radius: 5px; }
.help-article kbd { font-family: var(--body); font-size: .85em; font-weight: 600; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: var(--bg-2); white-space: nowrap; }
.help-article .tip { border-left: 4px solid var(--gold); background: var(--bg-2); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.help-article .tip p { margin: 0; }
.help-ask { margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font-size: 15px; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 32px; }
  .help-side { position: static; }
  .help-list { grid-template-columns: 1fr; }
}

/* Help opened from the phone app (site.js): nothing that leads to signing up or paying. */
.from-app .nav, .from-app .topbar-actions,
.from-app .footer-in > div:nth-child(2), .from-app .footer-in > div:nth-child(3),
.from-app a[href*="/pilot"], .from-app a[href*="#/start"], .from-app a[href$="/login"] { display: none !important; }

/* /app: store buttons (pages/app.mjs). The visitor's own phone's store goes first (site.js). */
.hero-in.solo { grid-template-columns: 1fr; max-width: 760px; }
.store-btn { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn .store-sub { font-size: 13px; font-weight: 500; opacity: .75; }
.is-android .store-btn[data-store="android"], .is-ios .store-btn[data-store="ios"] { order: -1; }
