/* Club Timer website (home, features, FAQ). Same Midnight & Cobalt palette as the app. */
:root {
  color-scheme: dark;
  --bg: #0a1120;
  --bg-2: #0c1424;
  --surface: #111b2e;
  --elevated: #16223a;
  --line: rgb(147 161 186 / 0.14);
  --line-strong: rgb(147 161 186 / 0.26);
  --ink: #e8eef8;
  --muted: #a3b0c6;
  --faint: #6f7d97;
  --accent: #3b82f6;
  --accent-ink: #93c5fd;
  --accent-soft: rgb(59 130 246 / 0.16);
  --on-accent: #ffffff;
  --green: #22c55e;
  --yellow: #f5b301;
  --red: #ef4444;
  --shadow: 0 24px 70px rgb(0 0 0 / 0.5);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f6fb;
    --bg-2: #e9eff8;
    --surface: #ffffff;
    --elevated: #ffffff;
    --line: rgb(11 19 37 / 0.09);
    --line-strong: rgb(11 19 37 / 0.16);
    --ink: #0b1325;
    --muted: #4f5b73;
    --faint: #7c88a0;
    --accent: #2563eb;
    --accent-ink: #1d4ed8;
    --accent-soft: rgb(37 99 235 / 0.1);
    --shadow: 0 24px 60px rgb(11 19 37 / 0.16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--accent-soft); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }
@media (max-width: 420px) { .top .wrap { gap: 8px; } .nav a { padding: 8px 7px; } .brand img { width: 28px; height: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgb(59 130 246 / 0.32); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 0.92rem; }
.nav .btn-sm { color: var(--on-accent); margin-left: 6px; }
.nav .btn-sm:hover { color: var(--on-accent); background: var(--accent); }

/* The three signal bars from the logo, used as a small motif. */
.bars { display: inline-flex; flex-direction: column; gap: 4px; }
.bars i { display: block; height: 6px; border-radius: 3px; }
.bars i:nth-child(1) { width: 18px; background: var(--green); }
.bars i:nth-child(2) { width: 28px; background: var(--yellow); }
.bars i:nth-child(3) { width: 38px; background: var(--red); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* "Coming soon" app badges (swap for the store badges once the apps are live). */
.soon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.closer .soon { justify-content: center; }
.soon-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 12px 5px 9px; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.82rem; line-height: 1.1; }
.soon-badge svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.soon-badge small { display: block; font-size: 0.6rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-ink); }

/* Hero */
.hero { padding-block: 56px 72px; background: radial-gradient(1100px 520px at 75% -10%, rgb(59 130 246 / 0.22), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; margin-block: 18px 18px; }
.hero .lede { font-size: 1.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores { margin-top: 18px; font-size: 0.9rem; color: var(--faint); }
.hero-shots { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-shots .phone { width: min(290px, 70%); }
.hero-shots .phone.back { position: absolute; width: min(240px, 56%); left: 4%; top: 70px; opacity: 0.55; transform: rotate(-6deg); }
.hero-shots .phone.front { position: relative; z-index: 1; margin-left: 22%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { min-height: 0; margin-top: 8px; }
  .hero-shots .phone.back { display: none; }
  .hero-shots .phone.front { margin-left: 0; width: min(280px, 78%); }
}

/* Phone frame around a screenshot */
.phone { border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #2a3550, #0d1424); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 390 / 844; }

/* Sections */
section { padding-block: 72px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); transition: transform 0.15s ease; }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.icon svg { width: 22px; height: 22px; }

/* Feature rows: text beside one or two screenshots */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; scroll-margin-top: 80px; }
.feature + .feature { margin-top: 96px; }
.feature.flip .copy { order: 2; }
.feature .copy { display: grid; gap: 16px; min-width: 0; }
.feature h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 750; }
.feature ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature li { position: relative; padding-left: 26px; color: var(--muted); }
.feature li strong { color: var(--ink); font-weight: 650; }
.feature li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.shots { display: flex; justify-content: center; gap: 20px; min-width: 0; }
.shots .phone { width: min(270px, 48%); }
.shots .phone:only-child { width: min(290px, 80%); }
.shots .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .copy { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

/* Signal timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 6px; }
.timeline div { padding: 12px 12px 14px; font-size: 0.86rem; color: var(--muted); background: var(--surface); }
.timeline div b { display: block; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline div::before { content: ''; display: block; height: 6px; border-radius: 3px; margin-bottom: 10px; background: var(--faint); }
.timeline .g::before { background: var(--green); }
.timeline .y::before { background: var(--yellow); }
.timeline .r::before { background: var(--red); }
.timeline .o::before { background: #7f1d1d; }

/* Watch with a nudge, drawn in CSS */
.watch-stage { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.watch { width: 230px; aspect-ratio: 0.84; border-radius: 58px; background: #000; padding: 16px; box-shadow: var(--shadow), 0 0 0 10px #1f2737, 0 0 0 11px rgb(255 255 255 / 0.08); position: relative; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.watch::after { content: ''; position: absolute; right: -19px; top: 34%; width: 9px; height: 46px; border-radius: 5px; background: #2a3448; }
.watch .app { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #9aa6bd; }
.watch .app img { width: 22px; height: 22px; border-radius: 6px; }
.watch .t { font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.watch .b { font-size: 0.92rem; color: #cbd5e1; line-height: 1.3; }
.watch .t.y { color: var(--yellow); }
.taps { display: grid; gap: 12px; }
.tap { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 220px; }
.tap .dots { display: flex; gap: 5px; }
.tap .dots span { width: 10px; height: 10px; border-radius: 50%; }
.tap.y .dots span { background: var(--yellow); }
.tap.r .dots span { background: var(--red); }
.tap.o .dots span { background: #b91c1c; }
.tap b { font-size: 0.98rem; }
.tap small { display: block; color: var(--faint); font-size: 0.84rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { list-style: none; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }
ol.steps { padding: 0; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--faint); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; }
.faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* Page title block for inner pages */
.page-head { padding-block: 56px 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-block: 14px 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { text-decoration: none; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 18px; color: var(--muted); font-size: 0.96rem; }

/* Closing call to action */
.closer { text-align: center; }
.closer .wrap { display: grid; justify-items: center; gap: 16px; }
.closer h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }

/* Footer */
footer.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 0.9rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
