/* Team Picker public home page (served at /). Same look as the app: the Clubhouse direction. */

@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/fredoka-latin-600-normal.woff2") format("woff2")}

:root{
  --bg:#f5f6f8;
  --surface:#fff;
  --line:#e4e6eb;
  --text:#16181d;
  --muted:#5b6170;
  --blue:#1f5fbf;
  --blue-dark:#174a96;
  --blue-soft:#e8f0fc;
  --tile-line:#dce6f7;
  --red:#d63b2f;
  --chip:#eef0f3;
  --chip-text:#3d4350;
  --radius:14px;
  --max:1120px;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-head:"Space Grotesk","Inter",system-ui,sans-serif;
  --font-brand:"Fredoka","Space Grotesk",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{margin:0;font:400 17px/1.6 var(--font-body);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:var(--blue)}
h1,h2,h3{font-family:var(--font-head);font-weight:700;line-height:1.12;letter-spacing:-.02em;margin:0;text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section--white{background:var(--surface)}
.section-head{max-width:640px;margin:0 0 48px}
.section-head h2{font-size:clamp(28px,4vw,38px)}
.section-head p{margin-top:14px;color:var(--muted);font-size:18px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:15px 26px;border-radius:var(--radius);background:var(--blue);color:#fff;font:600 17px/1.2 var(--font-body);text-decoration:none;border:1px solid var(--blue);cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s}
.btn:hover{background:var(--blue-dark);border-color:var(--blue-dark);box-shadow:0 6px 18px rgba(31,95,191,.28)}
.btn:active{transform:translateY(1px)}
.btn--small{padding:9px 18px;font-size:15px;border-radius:12px}
.btn--ghost{background:#fff;color:var(--blue);border-color:var(--tile-line)}
.btn--ghost:hover{background:var(--blue-soft);border-color:var(--blue);box-shadow:none}
.btn--light{background:#fff;color:var(--blue);border-color:#fff}
.btn--light:hover{background:var(--blue-soft);border-color:var(--blue-soft);box-shadow:0 6px 18px rgba(0,0,0,.18)}

/* Brand */
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.brand svg{width:36px;height:36px}
.brand-word{font:600 24px/1 var(--font-brand);letter-spacing:.005em}
.brand-word .t{color:var(--red)}
.brand-word .p{color:var(--blue)}

/* Header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}
.nav{display:flex;align-items:center;gap:28px}
.nav a.nav-link{color:var(--muted);font-weight:500;font-size:15px;text-decoration:none}
.nav a.nav-link:hover{color:var(--text)}
.nav-actions{display:flex;align-items:center;gap:10px}

/* Hero */
.hero{position:relative;overflow:hidden;padding:72px 0 88px;background:
  radial-gradient(900px 420px at 88% -8%,var(--blue-soft),transparent 70%),
  var(--bg)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
/* Plain label, not a pill: a bordered rounded shape reads as a button. */
.badge{display:inline-flex;align-items:center;gap:8px;margin-top:20px;color:var(--blue-dark);font-weight:600;font-size:13.5px;letter-spacing:.09em;text-transform:uppercase}
.badge svg{width:16px;height:16px}
.hero h1{font-size:clamp(38px,6vw,60px)}
.hero .lead{margin-top:14px;max-width:520px;font-size:19px;color:var(--muted)}
.hero-cta{margin-top:34px;display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.ticks{margin-top:26px;display:flex;flex-wrap:wrap;gap:10px 22px;color:var(--chip-text);font-size:15px;font-weight:500}
.ticks li{display:flex;align-items:center;gap:8px}
.ticks svg{width:18px;height:18px;color:var(--blue);flex:none}
.ticks--col{flex-direction:column;gap:12px;font-size:16.5px}
.hero-login{margin-top:22px;font-size:15px;color:var(--muted)}
.hero-login a{font-weight:600;text-decoration:none}
.hero-login a:hover{text-decoration:underline}

/* Illustrative pick card (mirrors the app's picked-teams screen; made-up players) */
.pick-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 24px 60px rgba(22,24,29,.10),0 2px 6px rgba(22,24,29,.04);max-width:440px;margin-left:auto;width:100%}
.pick-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}
.pick-title{font:700 18px/1.2 var(--font-head);letter-spacing:-.01em}
.pick-teams{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.team{border-radius:14px;padding:14px 14px 10px;border:1px solid var(--line)}
.team h3{display:flex;align-items:center;gap:8px;font:600 15px/1.2 var(--font-body);letter-spacing:0;margin-bottom:8px}
.team h3 b{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}
.team h3 i{width:12px;height:12px;border-radius:50%;display:inline-block}
.team--red{background:#fff7f6;border-color:#f6d6d2}
.team--red h3 i{background:var(--red)}
.team--blue{background:var(--blue-soft);border-color:var(--tile-line)}
.team--blue h3 i{background:var(--blue)}
.team li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;font-size:15px;font-weight:500;border-top:1px solid rgba(22,24,29,.06)}
.team li span{font-size:14px;font-weight:600;color:var(--chip-text);font-variant-numeric:tabular-nums}
.team li:first-child{border-top:0}
.balance{margin-top:20px}
.balance-labels{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin-bottom:8px}
.balance-labels .mid{color:var(--muted);font-weight:500}
.balance-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;background:var(--blue)}
.balance-bar span{display:block;height:100%;background:var(--red)}
.pick-actions{margin-top:20px;display:grid;grid-template-columns:1fr 1.2fr 1.1fr;gap:8px}
.fake-btn{text-align:center;padding:12px 6px;border-radius:12px;font-weight:600;font-size:14.5px;border:1px solid var(--line);background:#fff;color:var(--chip-text)}
/* Softer than the real .btn on purpose: this is a picture of the app's Accept button, not a button to press. */
.fake-btn--primary{background:#dbe7fa;border-color:#c5d8f6;color:var(--blue-dark)}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.step{position:relative;padding:28px;border-radius:18px;background:var(--bg);border:1px solid var(--line)}
.step-num{width:40px;height:40px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font:700 18px/1 var(--font-head);margin-bottom:18px}
.step h3{font-size:21px;letter-spacing:-.01em}
.step p{margin-top:10px;color:var(--muted);font-size:16px}

/* Features */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feature{padding:28px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.icon{width:46px;height:46px;border-radius:12px;background:var(--blue-soft);border:1px solid var(--tile-line);display:grid;place-items:center;margin-bottom:18px}
.icon svg{width:24px;height:24px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feature h3{font-size:19px;letter-spacing:-.01em}
.feature p{margin-top:8px;color:var(--muted);font-size:16px}

/* Rating chart (example data; the colours are the app's rank chart colours) */
.chart-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:center}
.chart-copy h2{font-size:clamp(28px,4vw,38px)}
.chart-copy>p{margin-top:16px;color:var(--muted);font-size:18px}
.chart-copy .ticks{margin-top:24px}
.chart-card{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px 22px 18px;box-shadow:0 24px 60px rgba(22,24,29,.08),0 2px 6px rgba(22,24,29,.04);min-width:0}
.chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.chart-title{font:700 18px/1.2 var(--font-head);letter-spacing:-.01em}
.chart-sub{font-size:13.5px;color:var(--muted);margin-bottom:10px}
.chart-wrap{position:relative;touch-action:pan-y;border-radius:12px}
.chart-svg{width:100%;height:auto;overflow:visible}
.chart-svg--narrow{display:none}
.chart-svg .grid{stroke:var(--line);stroke-width:1}
.chart-svg .axis{fill:var(--muted);font:500 12.5px var(--font-body)}
.chart-svg .band{fill:#7d8594;opacity:.14}
.chart-svg .avg{fill:none;stroke:#7d8594;stroke-width:1.5;stroke-dasharray:5 4}
.chart-svg .line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart-svg .dot{stroke:#fff;stroke-width:2}
.chart-svg .end{font:600 13px var(--font-body);fill:var(--text)}
.chart-svg .end .v{font-weight:500;fill:var(--muted)}
.chart-svg .end--avg{font-weight:500;fill:var(--muted)}
.chart-svg .xhair{stroke:#9aa0aa;stroke-width:1;display:none}
.chart-svg .hot{display:none}
.chart-wrap.is-on .xhair,.chart-wrap.is-on .hot{display:block}
.chart-tip{position:absolute;top:6px;z-index:2;min-width:150px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 30px rgba(22,24,29,.14);font-size:13px;pointer-events:none;display:none}
.chart-wrap.is-on .chart-tip{display:block}
.chart-tip .when{color:var(--muted);font-weight:500;margin-bottom:6px}
.chart-tip .row{display:flex;align-items:center;gap:8px;padding:2px 0}
.chart-tip .key{width:14px;height:0;border-top:2px solid;flex:none;border-radius:2px}
.chart-tip .key--avg{border-top-style:dashed}
.chart-tip .val{font-weight:600;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.chart-tip .who{color:var(--muted)}
.chart-keys{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 2px 0;font-size:13.5px;color:var(--chip-text);font-weight:500}
.chart-keys li{display:flex;align-items:center;gap:7px}
.chart-keys .swatch{width:14px;height:0;border-top:2px solid;border-radius:2px;flex:none}
.chart-keys .swatch--band{height:10px;border:0;background:#7d8594;opacity:.28;border-radius:2px;width:14px}
.chart-keys .swatch--avg{border-top-style:dashed}
.chart-table summary{cursor:pointer;display:inline-block;margin-top:10px;font-size:13px;font-weight:600;color:var(--blue)}
.chart-table .scroll{overflow-x:auto;margin-top:10px;max-height:260px;border:1px solid var(--line);border-radius:10px}
.chart-table table{border-collapse:collapse;width:100%;font-size:12.5px;font-variant-numeric:tabular-nums}
.chart-table th,.chart-table td{padding:6px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--line)}
.chart-table th:first-child,.chart-table td:first-child{text-align:left}
.chart-table thead th{position:sticky;top:0;background:#fff;color:var(--muted);font-weight:600}

/* Sports */
.sports{display:flex;flex-wrap:wrap;gap:10px}
.sports li{padding:9px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-weight:500;font-size:15.5px;color:var(--chip-text)}
.sports li.more{background:var(--blue-soft);border-color:var(--tile-line);color:var(--blue-dark);font-weight:600}

/* Quotes */
.quotes{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.quote{margin:0;padding:32px;border-radius:18px;background:var(--bg);border:1px solid var(--line)}
.quote blockquote{margin:0;font:500 19px/1.55 var(--font-body);color:var(--text)}
.quote figcaption{margin-top:18px;font-size:15px;color:var(--muted);font-weight:500}
.quote .mark{font:700 54px/0.6 var(--font-head);color:var(--blue);margin-bottom:10px;display:block}

/* FAQ */
.faq-layout{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:64px;align-items:start}
.faq-layout .section-head{margin:0}
.faq{min-width:0}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:22px 40px 22px 0;font:600 18px/1.4 var(--font-body);position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:6px;top:50%;width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq details p{padding:0 40px 24px 0;color:var(--muted)}

/* Final call to action */
.cta{background:var(--blue);color:#fff;text-align:center;padding:84px 0}
.cta h2{font-size:clamp(32px,5vw,48px)}
.cta p{margin:16px auto 32px;max-width:480px;font-size:19px;color:#dbe7fb;text-wrap:balance}

/* Footer */
.site-footer{padding:40px 0 48px;background:var(--surface);border-top:1px solid var(--line)}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:20px 40px;align-items:center;justify-content:space-between}
.site-footer .brand svg{width:30px;height:30px}
.site-footer .brand-word{font-size:20px}
.foot-links{display:flex;flex-wrap:wrap;gap:10px 26px;font-size:15px}
.foot-links a{color:var(--muted);text-decoration:none;font-weight:500}
.foot-links a:hover{color:var(--text);text-decoration:underline}

/* Responsive */
/* Streaks example (mirrors the app's Streaks table and result chips; made-up players) */
.streak-layout .chart-copy{order:2}
.streak-layout{grid-template-columns:1.2fr .8fr}
.streak-card{max-width:560px;width:100%}
.scroll{overflow-x:auto}
.streak-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.streak-table th,.streak-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:right;font-size:15.5px}
.streak-table thead th{font-size:12.5px;line-height:1.3;color:var(--muted);font-weight:600;vertical-align:bottom}
.streak-table th:first-child,.streak-table td:first-child{text-align:left;padding-left:0}
.streak-table tbody th{font-weight:600;color:var(--text)}
.streak-table td.up{color:#1e7d3c;font-weight:600}
.streak-table td.down{color:#c0392b;font-weight:600}
.form-guide{margin:18px 0 4px}
.form-label{font-size:13px;color:var(--muted);font-weight:600;margin-bottom:8px}
.form-chips{display:flex;gap:6px;flex-wrap:wrap}
.form-chip{width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff}
.form-chip.W{background:#1e7d3c}
.form-chip.L{background:#c0392b}
.form-chip.D{background:#6b7280}
#how .section-head{max-width:780px}
/* A section on the white background has chips and cards in the page grey, and the reverse */
.section--white .sports li{background:var(--bg)}
.section:not(.section--white) .quote{background:var(--surface)}

@media (max-width:900px){
  .streak-layout{grid-template-columns:1fr}
  .streak-layout .chart-copy{order:0}
  .hero{padding:48px 0 64px}
  .hero .wrap{grid-template-columns:1fr;gap:44px}
  .pick-card{margin:0 auto}
  .steps,.features{grid-template-columns:1fr 1fr}
  .quotes{grid-template-columns:1fr}
  .faq-layout{grid-template-columns:1fr;gap:28px}
  .chart-layout{grid-template-columns:1fr;gap:36px}
}
@media (max-width:640px){
  .form-chips{gap:4px}
  .form-chip{width:26px;height:26px;font-size:12px}
  body{font-size:16.5px}
  .section{padding:60px 0}
  .section-head{margin-bottom:34px}
  .wrap{padding:0 20px}
  .nav .nav-link{display:none}
  .site-header .wrap{height:62px}
  .brand-word{font-size:21px}
  .brand svg{width:32px;height:32px}
  .nav-actions{gap:8px}
  .nav-actions .btn--small{padding:8px 13px;font-size:14.5px}
  .hero .lead{font-size:18px}
  .hero-cta .btn{width:100%}
  .steps,.features{grid-template-columns:1fr}
  .step,.feature,.quote{padding:24px}
  .quote blockquote{font-size:17.5px}
  .chart-card{padding:18px 14px 14px}
  .chart-svg--wide{display:none}
  .chart-svg--narrow{display:block}
  .pick-card{padding:18px}
  .cta{padding:64px 0}
  .cta .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
