/* CricSim website. Sun & Turf 2.0: tokens and components mirror
   design/cricsim.css and design/REDESIGN_SPEC.md in the app repo. */

:root {
  --ink: #1F261C;
  --ink-soft: #4A5145;
  --parchment: #F4EFE4;
  --body: #EFE9DC;
  --card: #FBF8F0;
  --sunken: #E8E1D1;
  --pitch: #2E6B3C;
  --pitch-band: #234D2E;
  --turf: #1B2A1E;
  --tab-bar: #27332A;
  --outfield: #57A766;
  --outfield-text: #3F8A4F;
  --willow: #E0A52E;
  --willow-deep: #D08B1E;
  --willow-text: #94650F;
  --willow-ink: #3A2807;
  --leather: #B14530;
  --leather-on-dark: #E4775F;
  --muted: #646C5C;
  --muted4: #A9AE9F;
  --muted-green: #9FC3A8;
  --tab-inactive: #7C9A82;
  --tint-green: #EEF4EE;
  --tint-green-b: #D4E4D6;
  --tint-amber: #FBF1E0;
  --tint-amber-b: #EBD9B4;
  --meter: #E7DFCD;
  --turf-grass: #22432B;
  --turf-stripe: #264A30;
  --turf-stand: #16231A;
  --clay-far: #C4AC7E;
  --clay-near: #DCC9A0;
  --hair: rgba(31, 38, 28, .07);
  --e1: 0 1px 2px rgba(31, 38, 28, .04), 0 2px 8px rgba(31, 38, 28, .06);
  --e3: 0 18px 48px rgba(27, 42, 30, .30);
  --stripes: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 30px, rgba(255, 255, 255, 0) 30px 60px);
  --saira: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --hanken: 'Hanken Grotesk', system-ui, sans-serif;
  --nav-h: 68px;
  --gutter: 16px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--body); color: var(--ink); font-family: var(--hanken); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--willow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--willow); color: var(--willow-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
/* Clip, not hidden: tilted phones may poke past the edge, and the over tracker must stay sticky. */
main { overflow-x: clip; }
.dark { background-color: var(--turf); background-image: var(--stripes); color: var(--parchment); }

/* ---------- Type roles ---------- */
.eyebrow { margin: 0; font-family: var(--saira); font-weight: 800; font-size: 14px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--willow-text); }
.dark .eyebrow { color: var(--willow); }
.h1, .h2, .h3 { margin: 0; font-family: var(--saira); text-transform: uppercase; text-wrap: balance; }
.h1 { font-weight: 900; font-size: clamp(52px, 6.9vw, 100px); line-height: .86; letter-spacing: .5px; }
.h2 { font-weight: 900; font-size: clamp(42px, 5.2vw, 70px); line-height: .9; letter-spacing: .4px; }
.h3 { font-weight: 800; font-size: clamp(36px, 3.6vw, 50px); line-height: .92; letter-spacing: .4px; }
.lead { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.dark .lead { color: #C9D6CB; }
.t-label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.dark .t-label { color: var(--muted-green); }
.t-stat { font-family: var(--saira); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.c-willow { color: var(--willow); }

.section-head { display: grid; gap: 16px; max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; justify-items: center; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn { height: 52px; border-radius: 14px; border: none; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--saira); font-weight: 800; font-size: 17px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.sm { height: 40px; font-size: 15px; border-radius: 11px; padding: 0 16px; letter-spacing: 1.2px; }
.btn.willow { background: var(--willow); color: var(--willow-ink); box-shadow: 0 6px 16px rgba(224, 165, 46, .32); }
.btn.willow:hover { background: #E8B03F; box-shadow: 0 10px 22px rgba(224, 165, 46, .4); }
.btn.on-dark-ghost { background: rgba(255, 255, 255, .07); color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn.on-dark-ghost:hover { background: rgba(255, 255, 255, .12); }
.icon-btn { width: 48px; height: 48px; border-radius: 14px; border: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background-color .15s ease; }
.icon-btn:hover { background: rgba(255, 255, 255, .14); }

/* Official store badges: same visual height, Apple's artwork carries its own border. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-block; border-radius: 10px; transition: transform .18s ease, filter .18s ease; }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
/* Stands in for the badges until launch, at the same height (README, Store links). */
.soon { margin: 0; height: 54px; padding: 0 20px; border-radius: 12px; display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); line-height: 1.1; }
.soon-title { font-family: var(--saira); font-weight: 800; font-size: 19px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--willow); }
.soon-sub { font-size: 13px; font-weight: 600; color: var(--muted-green); }

/* ---------- Pills, balls, chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; white-space: nowrap; }
.pill.pos { background: var(--tint-green); color: var(--pitch); box-shadow: inset 0 0 0 1px var(--tint-green-b); }
.pill.warn { background: var(--tint-amber); color: var(--willow-text); box-shadow: inset 0 0 0 1px var(--tint-amber-b); }
.pill.neu { background: var(--sunken); color: var(--muted); }
.pill.dark { background: rgba(255, 255, 255, .09); color: var(--parchment); }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.6; }

.ball { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--saira); font-weight: 800; font-size: 15px; background: var(--sunken); color: var(--ink-soft); flex: none; font-style: normal; }
.ball.b4 { background: var(--outfield); color: #fff; }
.ball.b6 { background: var(--willow); color: var(--willow-ink); }
.ball.bw { background: var(--leather); color: #fff; }
.ball.bx { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted4); color: var(--muted); font-size: 12px; }
.ball.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31, 38, 28, .14); color: transparent; }
.dark .ball { background: rgba(255, 255, 255, .1); color: var(--parchment); }
.dark .ball.b4 { background: var(--outfield); }
.dark .ball.b6 { background: var(--willow); color: var(--willow-ink); }
.dark .ball.bw { background: var(--leather); }
.dark .ball.bx { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(244, 239, 228, .4); color: var(--muted-green); }
.dark .ball.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(244, 239, 228, .16); }
.ball.pop { animation: ball-pop .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ball-pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }

/* Nation crest (NationCrest): base colour, bottom stripe, highlight dot. */
.crest { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); color: var(--fg, #fff); }
.crest::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 29%; background: var(--st); }
.crest::before { content: ''; position: absolute; top: 12%; left: 12%; width: 10%; height: 10%; background: rgba(255, 255, 255, .55); z-index: 1; }
.crest b { position: relative; z-index: 1; font-family: var(--saira); font-weight: 800; font-size: 13px; letter-spacing: .3px; margin-bottom: 9%; }
.crest.s24 { width: 24px; height: 24px; border-radius: 6px; } .crest.s24 b { font-size: 8.5px; } .crest.s24::before { display: none; }
.crest.s32 { width: 32px; height: 32px; border-radius: 8px; } .crest.s32 b { font-size: 11px; }
.crest.s72 { width: 72px; height: 72px; border-radius: 17px; } .crest.s72 b { font-size: 24px; }

/* Segmented control on turf */
.seg { display: flex; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; height: 38px; border: none; border-radius: 9px; background: transparent; font-family: var(--saira); font-weight: 700; font-size: 14.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--tab-inactive); padding: 0 8px; transition: background-color .18s ease, color .18s ease; }
.seg button[aria-checked="true"] { background: var(--parchment); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 11px; background: var(--sunken); color: var(--ink-soft); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.chip.on { background: var(--pitch); color: var(--parchment); box-shadow: 0 4px 10px rgba(46, 107, 60, .22); }

/* Stop slider (StopSlider) as a native range input */
.stop-slider { display: grid; gap: 6px; }
.stop-slider .head { display: flex; justify-content: space-between; align-items: baseline; }
.stop-slider output { font-family: var(--saira); font-weight: 800; font-size: 19px; color: var(--pitch); }
.stop-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.stop-slider input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--outfield), var(--willow), var(--leather)); }
.stop-slider input::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--outfield), var(--willow), var(--leather)); }
.stop-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 0 2px 6px rgba(31, 38, 28, .22); transition: transform .15s ease; }
.stop-slider input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 0 2px 6px rgba(31, 38, 28, .22); }
.stop-slider input:active::-webkit-slider-thumb { transform: scale(1.12); }
.stop-slider .ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--muted); }
.stop-slider .effect { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); min-height: 1.5em; }

/* Quality meter */
.meter { position: relative; height: 8px; border-radius: 6px; background: var(--meter); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }

/* ---------- Phone frame ---------- */
.phone { position: relative; margin: 0; width: var(--w, 300px); padding: calc(var(--w, 300px) * .03); border-radius: calc(var(--w, 300px) * .15); background: #0D130E; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 30px 60px rgba(10, 18, 12, .45), 0 8px 18px rgba(10, 18, 12, .3); flex: none; }
.phone img { width: 100%; aspect-ratio: 720 / 1568; border-radius: calc(var(--w, 300px) * .125); background: var(--body); }
.phone::after { content: ''; position: absolute; top: calc(var(--w, 300px) * .05); left: 50%; width: calc(var(--w, 300px) * .035); aspect-ratio: 1; border-radius: 50%; background: #070A07; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.on-light .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 26px 50px rgba(27, 42, 30, .26), 0 6px 14px rgba(27, 42, 30, .16); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .25s ease, box-shadow .25s ease; }
.nav.scrolled { background-color: var(--pitch-band); background-image: var(--stripes); box-shadow: 0 6px 20px rgba(10, 18, 12, .25); }
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parchment); }
.brand img { width: 36px; height: 36px; }
.wordmark { font-family: var(--saira); font-weight: 900; font-size: 26px; letter-spacing: 1px; line-height: 1; }
.wordmark span { color: var(--willow); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-family: var(--saira); font-weight: 700; font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; color: var(--muted-green); position: relative; padding: 6px 0; transition: color .15s ease; }
.nav-links a::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 3px; border-radius: 3px 3px 0 0; background: var(--willow); transform: scaleX(0); transition: transform .22s ease; }
.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-links a.on { color: var(--parchment); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 96px; background-image: var(--stripes), radial-gradient(ellipse 70% 60% at 72% 40%, #264A30 0%, rgba(27, 42, 30, 0) 70%); }
.hero-ground { position: absolute; left: 50%; top: 50%; width: 1500px; max-width: none; transform: translate(-28%, -46%); pointer-events: none; opacity: .9; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero .h1 .line { display: block; white-space: nowrap; }
.flip { display: block; perspective: 600px; color: var(--willow); height: .86em; white-space: nowrap; }
.flip-word { display: inline-block; transform-origin: 50% 60%; backface-visibility: hidden; }
.flip-word.out { animation: flip-out .26s ease-in forwards; }
.flip-word.in { animation: flip-in .34s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes flip-out { to { transform: rotateX(90deg); opacity: 0; } }
@keyframes flip-in { from { transform: rotateX(-90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
.hero .lead { max-width: 540px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promises .ic { color: var(--willow); }

.hero-stage { position: relative; height: 660px; }
.hero-stage .phone { position: absolute; left: 50%; top: 50%; }
.phone-front { --w: 300px; transform: translate(-50%, -50%); z-index: 3; }
.phone-back { --w: 250px; z-index: 2; opacity: .96; }
.phone-back.left { transform: translate(-128%, -46%) rotate(-9deg); }
.phone-back.right { transform: translate(28%, -46%) rotate(9deg); }

.float { position: absolute; z-index: 4; animation: bob 4.2s ease-in-out infinite; }
.float.ball { width: 52px; height: 52px; font-size: 26px; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
.float.f1 { left: 4%; top: 18%; animation-delay: -1.2s; }
.float.f2 { right: 2%; top: 10%; animation-delay: -2.4s; }
.float.f3 { left: 10%; bottom: 10%; animation-delay: -.4s; }
.pom-card { right: -2%; bottom: 14%; width: max-content; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--tint-amber); color: var(--ink); box-shadow: inset 0 0 0 1px var(--tint-amber-b), 0 16px 34px rgba(0, 0, 0, .3); animation-delay: -3s; }
.pom-card .star { grid-row: span 3; width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: grid; place-items: center; color: var(--willow-deep); box-shadow: inset 0 0 0 1px var(--tint-amber-b); }
.pom-card .eb { white-space: nowrap; font-family: var(--saira); font-weight: 800; font-size: 11.5px; letter-spacing: 1.8px; color: var(--willow-text); text-transform: uppercase; }
.pom-card .who { font-family: var(--saira); font-weight: 800; font-size: 20px; line-height: 1; }
.pom-card .fig { font-size: 13px; color: var(--muted); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--tab-bar); color: var(--parchment); overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .06); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 28px; padding: 14px 14px; margin: 0; list-style: none; }
.ticker-group li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--saira); font-weight: 700; font-size: 16px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.ticker-group li.live { color: var(--willow); }
.ticker-group .dim { color: var(--muted-green); }
.ticker-group .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--willow); opacity: .7; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leather-on-dark); box-shadow: 0 0 0 0 rgba(228, 119, 95, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(228, 119, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 119, 95, 0); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- The over (features) ---------- */
.over { position: relative; padding: 120px 0 80px; }
.over .section-head { margin-bottom: 40px; }
.over-tracker { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 20; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 18px; background: rgba(251, 248, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--e1), 0 10px 26px rgba(27, 42, 30, .1); border: 1px solid var(--hair); }
.over-tracker .t-label { white-space: nowrap; }
.over-tracker .balls { display: flex; gap: 6px; }
.over-tracker .total { font-family: var(--saira); font-weight: 800; font-size: 17px; white-space: nowrap; min-width: 66px; text-align: right; }
.features { display: grid; gap: 140px; padding-top: 90px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 20px; justify-items: start; max-width: 500px; }
.feature:nth-child(even) .feature-copy { justify-self: end; }
.feature-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.kicker { display: flex; align-items: center; gap: 12px; }
.ball-no { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--sunken); font-family: var(--saira); font-weight: 800; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.feature-media { position: relative; display: flex; justify-content: center; min-height: 600px; }
.feature-media .phone { --w: 290px; z-index: 2; }
.feature-media .phone.tuck { --w: 240px; position: absolute; top: 70px; z-index: 1; transform: rotate(7deg); left: calc(50% + 40px); }
.feature:nth-child(even) .phone.tuck { left: auto; right: calc(50% + 40px); transform: rotate(-7deg); }
.feature-media .phone:not(.tuck) { transform: translateX(-36px); }
.feature:nth-child(even) .feature-media .phone:not(.tuck) { transform: translateX(36px); }
.mini-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--e1); border: 1px solid var(--hair); display: grid; gap: 12px; }
.scale-row { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 12px; font-size: 14px; }
.scale-row b { font-family: var(--saira); font-weight: 800; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.scale-row.potential { grid-template-columns: 84px 1fr auto; }
.scale-row .pill { padding: 0 9px; }
/* One quality scale: Strong >= 70, Good 60-69 (spec section 5). */
i.q-strong { background: var(--pitch); } b.q-strong { color: var(--pitch); }
i.q-good { background: var(--outfield); } b.q-good { color: var(--outfield-text); }
.pot { background: repeating-linear-gradient(135deg, rgba(46, 107, 60, .3) 0 3px, rgba(46, 107, 60, .12) 3px 6px); }
.js .meter i { transform: scaleX(0); transform-origin: left; transition: transform .32s ease-out .1s; }
.js .meter.in i { transform: none; }
.tiers.start { justify-content: flex-start; }
.moment { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.moment.milestone { background: var(--tint-amber); box-shadow: inset 0 0 0 1px var(--tint-amber-b); font-weight: 700; }
.moment.milestone .ic { color: var(--willow-deep); }
.moment.wicket { background: #FAE9E4; box-shadow: inset 0 0 0 1px #E8C4B9; color: #7A2E1F; }
.moment .no { flex: none; min-width: 42px; height: 28px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--leather); color: #fff; font-family: var(--saira); font-weight: 800; font-size: 13px; }
.target { display: flex; gap: 10px; align-items: center; }
.target > span:first-of-type { flex: 1; font-weight: 700; }
.target.met .ic { color: var(--pitch); }
.target.missed .ic { color: var(--leather); }

/* ---------- Bowl an over ---------- */
.bowl { position: relative; padding: 120px 0; overflow: hidden; }
.bowl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.bowl-copy { display: grid; gap: 22px; align-content: start; }
.field-pick { display: grid; gap: 8px; max-width: 440px; }
.field-pick p { margin: 0; font-size: 14px; color: var(--muted-green); min-height: 1.5em; }
.score-card { background-color: var(--tab-bar); background-image: var(--stripes); border-radius: 18px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .05); max-width: 520px; }
.score-row { display: flex; align-items: center; gap: 14px; }
.score { font-family: var(--saira); font-weight: 900; font-size: 46px; line-height: .9; font-variant-numeric: tabular-nums; }
.score .wk { color: var(--willow); font-size: .62em; }
.score-meta { margin-left: auto; text-align: right; }
.score-meta .t-stat { font-size: 22px; }
.this-over { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.comm { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 132px; }
.comm li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: #DDE6DE; animation: comm-in .3s ease; }
.comm li .no { min-width: 40px; height: 26px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .09); font-family: var(--saira); font-weight: 800; font-size: 13px; color: var(--parchment); }
.comm li.k-four .no, .comm li.k-six .no { background: var(--willow); color: var(--willow-ink); }
.comm li.k-wkt .no { background: var(--leather); color: #fff; }
.comm li.k-wkt { color: #F6D5CC; }
.comm li.hint { color: var(--muted-green); grid-template-columns: 1fr; }
.comm li:nth-child(n+4) { opacity: .5; }
@keyframes comm-in { from { opacity: 0; transform: translateY(-6px); } }
.over-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.over-end[hidden] { display: none; }
.over-end .verdict { flex: 1 1 220px; margin: 0; padding-top: 12px; }
.over-end .verdict b { display: block; font-family: var(--saira); font-weight: 800; font-size: 22px; letter-spacing: .5px; color: var(--parchment); }
.over-end .verdict span { font-size: 14px; color: var(--muted-green); }
.over-end .btn { margin-top: 12px; }
.board { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.board svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.board .cell { fill: transparent; stroke: rgba(58, 40, 7, .14); stroke-width: 1; cursor: pointer; transition: fill .12s ease; outline: none; }
.board .cell:focus-visible { fill: rgba(224, 165, 46, .38); stroke: var(--willow); stroke-width: 2; }
@media (hover: hover) { .board .cell:hover { fill: rgba(224, 165, 46, .38); stroke: var(--willow); stroke-width: 2; } }
.board.busy .cell { pointer-events: none; }
.board .lbl { font-family: var(--saira); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; fill: rgba(244, 239, 228, .78); text-transform: uppercase; }
.board .lbl.side { font-size: 12px; fill: rgba(159, 195, 168, .8); letter-spacing: 1.6px; }
.board .try-here .pulse { fill: none; stroke: var(--willow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: try-pulse 1.6s ease-out infinite; }
.board .hint-lbl { fill: var(--willow-ink); font-size: 12px; }
@keyframes try-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.board-tip { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted-green); }
.board canvas { position: absolute; inset: -10% -10% 0; width: 120%; height: 110%; pointer-events: none; }

/* ---------- Nations ---------- */
.nations { padding: 120px 0; }
.crest-wall { list-style: none; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
.nation { width: 100%; border: none; background: var(--card); border-radius: 18px; padding: 16px 6px 12px; display: grid; justify-items: center; gap: 10px; box-shadow: var(--e1); outline-offset: 2px; position: relative; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s ease, background-color .2s ease; }
.nation:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 12px 24px rgba(27, 42, 30, .14); }
.nation .crest { width: 60px; height: 60px; border-radius: 14px; }
.nation .crest b { font-size: 20px; }
.nation-name { font-family: var(--saira); font-weight: 700; font-size: 15px; line-height: 1.05; text-align: center; min-height: 2.1em; display: flex; align-items: center; }
.nation[aria-pressed="true"] { background: var(--tint-green); box-shadow: inset 0 0 0 1.5px var(--pitch), 0 10px 22px rgba(46, 107, 60, .18); }
.nation[aria-pressed="true"]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--pitch) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EFE4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 2px var(--card); animation: ball-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.nation-pick { margin: 32px auto 0; max-width: 640px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 20px; border-radius: 18px; text-align: left; }
.nation-pick.picked { background: var(--card); box-shadow: var(--e1); border: 1px solid var(--hair); }
.nation-pick .t-row { display: block; font-family: var(--saira); font-weight: 800; font-size: 22px; line-height: 1.1; }
.nation-pick .t-sub { font-size: 15px; color: var(--muted); }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* ---------- Reel ---------- */
.reel { padding: 110px 0 100px; overflow: hidden; }
.reel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.reel-head .section-head { max-width: 680px; }
.reel-nav { display: flex; gap: 10px; }
.reel-track { display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100vw - 1200px) / 2 + 32px)); padding: 56px max(32px, calc((100vw - 1200px) / 2 + 32px)) 30px; scrollbar-width: none; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-item { margin: 0; scroll-snap-align: start; display: grid; gap: 18px; justify-items: start; }
.reel-item .phone { --w: 250px; transition: transform .3s cubic-bezier(.2, 1.2, .4, 1); }
.reel-item:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.reel-item figcaption { display: grid; gap: 4px; max-width: 250px; }
.reel-item figcaption b { font-family: var(--saira); font-weight: 800; font-size: 21px; letter-spacing: .4px; }
.reel-item figcaption span { font-size: 14.5px; color: var(--muted-green); line-height: 1.45; }

/* ---------- Maiden over ---------- */
.maiden { padding: 120px 0; }
.maiden-balls { list-style: none; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; max-width: 1000px; }
.maiden-balls li { display: grid; justify-items: center; gap: 14px; text-align: center; }
.maiden-balls .ball { width: 88px; height: 88px; font-size: 36px; background: var(--card); color: var(--ink); box-shadow: var(--e1), inset 0 0 0 1px var(--hair); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.maiden-balls li:hover .ball { transform: translateY(-6px) rotate(-8deg); }
.maiden-balls b { font-family: var(--saira); font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: .4px; }
.maiden-balls small { display: block; font-family: var(--hanken); font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 500; letter-spacing: 0; }
.js .maiden-balls li .ball { opacity: 0; transform: translateY(-40px); }
.js .maiden-balls.in li .ball { animation: drop .55s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.maiden-balls li:nth-child(2) .ball { animation-delay: .09s; } .maiden-balls li:nth-child(3) .ball { animation-delay: .18s; } .maiden-balls li:nth-child(4) .ball { animation-delay: .27s; } .maiden-balls li:nth-child(5) .ball { animation-delay: .36s; } .maiden-balls li:nth-child(6) .ball { animation-delay: .45s; }
@keyframes drop { to { opacity: 1; transform: none; } }
.figures { margin: 48px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.figures .t-stat { font-size: 40px; }
.figures span:last-child { font-size: 16px; color: var(--ink-soft); }

/* ---------- Download ---------- */
.download { position: relative; overflow: hidden; padding: 130px 0 120px; text-align: center; background-image: var(--stripes), radial-gradient(ellipse 60% 70% at 50% 30%, #2A5535 0%, rgba(27, 42, 30, 0) 70%); }
.download-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.download .stores { justify-content: center; margin-top: 8px; }
.app-icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.app-icon.stamp { animation: stamp .6s cubic-bezier(.2, 1.5, .35, 1) both; }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.download .h1 { font-size: clamp(52px, 7vw, 96px); }
.download .lead { max-width: 560px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* ---------- Footer ---------- */
.stumps { background: var(--tab-bar); color: var(--parchment); }
.stumps .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding-block: 16px; font-family: var(--saira); font-weight: 700; font-size: 16px; letter-spacing: 1.6px; text-transform: uppercase; text-align: center; }
.stumps .dim { color: var(--muted-green); }
.footer { background: var(--turf); color: var(--muted-green); padding: 48px 0 40px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { gap: 12px; }
.footer .brand small { display: block; font-family: var(--saira); font-weight: 700; font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted-green); margin-top: 4px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--parchment); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--willow); }
.fine { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(244, 239, 228, .08); display: grid; gap: 8px; font-size: 12.5px; color: #7C8A7F; }
.fine p { margin: 0; }

/* ---------- Legal pages ---------- */
/* The nav stays a solid band here: there is no hero image to sit over. */
.legal-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
.legal-hero .wrap, .legal .wrap { max-width: 840px; }
.legal-hero .wrap { display: grid; gap: 20px; justify-items: start; }
.legal-hero .promises { justify-content: flex-start; }
.legal { padding: 56px 0 96px; }
.legal-card { background: var(--card); border-radius: 18px; border: 1px solid var(--hair); box-shadow: var(--e1); padding: 40px; display: grid; gap: 30px; }
.legal-card section { display: grid; gap: 8px; }
.legal-card h2 { margin: 0; font-family: var(--saira); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: .4px; text-transform: uppercase; }
.legal-card p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.legal-card a { color: var(--pitch); font-weight: 600; }
.legal-card ol, .legal-card ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.legal-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--sunken); color: var(--ink); border-radius: 6px; padding: 1px 6px; }
.legal-card td:first-child { white-space: nowrap; }
.legal-card td + td code { overflow-wrap: anywhere; }
.legal-card .table-wrap { overflow-x: auto; }
.legal-card table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-card th, .legal-card td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); color: var(--ink-soft); }
.legal-card th { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.legal-hero .btn { margin-top: 4px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .crest-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 620px; }
  .pom-card { right: 0; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .hero-stage { height: 600px; }
  .phone-front { --w: 260px; }
  .phone-back { --w: 212px; }
  .phone-back.left { transform: translate(-116%, -46%) rotate(-9deg); }
  .phone-back.right { transform: translate(16%, -46%) rotate(9deg); }
}
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero .stores, .promises { justify-content: center; }
  .hero-stage { height: 560px; }
  .hero-ground { transform: translate(-50%, -20%); width: 1100px; }
  .features { gap: 96px; padding-top: 64px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-child(even) .feature-copy { order: 0; justify-self: start; }
  .feature-copy { max-width: none; }
  .feature-media { min-height: 0; }
  .bowl-grid { grid-template-columns: 1fr; gap: 22px; }
  /* Pitch before the score card, so the commentary sits right under your tap. */
  .bowl-copy { display: contents; }
  .field-pick { order: 1; }
  .board { order: 2; max-width: 460px; }
  .score-card { order: 3; justify-self: center; width: 100%; max-width: 460px; }
  .maiden-balls { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; max-width: 520px; }
  .reel-head { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .wrap { padding: 0 var(--gutter); }
  .wordmark { font-size: 23px; }
  .brand img { width: 32px; height: 32px; }
  .store img { height: 48px; }
  .soon { height: 48px; padding: 0 16px; }
  .hero-stage { height: 470px; }
  .phone-front { --w: 224px; }
  .phone-back { --w: 180px; }
  .phone-back.left { transform: translate(-112%, -44%) rotate(-9deg); }
  .phone-back.right { transform: translate(12%, -44%) rotate(9deg); }
  .float.ball { width: 42px; height: 42px; font-size: 21px; }
  .float.f1 { left: 0; top: 8%; }
  .float.f2 { right: 0; top: 4%; }
  .float.f3 { left: 2%; bottom: 4%; }
  .pom-card { right: 0; bottom: 2%; padding: 10px 12px; }
  .pom-card .star { width: 34px; height: 34px; }
  .pom-card .who { font-size: 17px; }
  .pom-card .eb { font-size: 10.5px; letter-spacing: 1.2px; }
  .over { padding-top: 88px; }
  .over-tracker { gap: 10px; padding: 8px 10px 8px 14px; }
  .over-tracker .t-label { display: none; }
  .over-tracker .ball { width: 26px; height: 26px; font-size: 13px; }
  .over-tracker .total { font-size: 15px; min-width: 56px; }
  .feature-media .phone { --w: 236px; }
  .feature-media .phone.tuck { --w: 190px; top: 46px; left: calc(50% + 6px); }
  .feature:nth-child(even) .phone.tuck { right: calc(50% + 6px); }
  .feature-media .phone:not(.tuck) { transform: translateX(-52px); }
  .feature:nth-child(even) .feature-media .phone:not(.tuck) { transform: translateX(52px); }
  .bowl, .nations, .maiden { padding: 88px 0; }
  .score { font-size: 40px; }
  .crest-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
  .nation { padding: 12px 4px 10px; border-radius: 16px; }
  .nation .crest { width: 48px; height: 48px; border-radius: 12px; }
  .nation .crest b { font-size: 16px; }
  .nation-name { font-size: 13px; }
  .reel-track { gap: 24px; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .reel-item .phone { --w: 220px; }
  .maiden-balls .ball { width: 72px; height: 72px; font-size: 30px; }
  .maiden-balls b { font-size: 17px; }
  .download { padding: 100px 0 90px; }
  .app-icon { width: 120px; height: 120px; border-radius: 28px; }
  .stumps .wrap { flex-direction: column; gap: 2px; font-size: 14px; }
  .stumps .dot { display: none; }
  .legal-hero { padding: calc(var(--nav-h) + 36px) 0 40px; }
  .legal { padding: 24px 0 64px; }
  .legal-card { padding: 24px 20px; gap: 26px; border-radius: 16px; }
}
@media (max-width: 380px) {
  .crest-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
