/* T75 Blitz Squash — brand system from the logo
   Blue #2A70A2 · Gold #E1AA11 · Navy #0F2B44 */
:root {
  --blue: #2a70a2;
  --blue-700: #1f5781;
  --navy: #0f2b44;
  --blue-50: #eef4f9;
  --bg: #f5f8fb;
  --gold: #e1aa11;
  --gold-hi: #f0b921;
  --rp-charcoal: #2e2e2e;  /* RallyPal brand */
  --rp-cream: #fffaf5;
  --ink: #142231;
  --muted: #5f6f80;
  --line: #e3e9f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 43, 68, .06), 0 12px 32px rgba(15, 43, 68, .08);
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(680px, 100% - 40px); }
.hidden { display: none !important; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.spacer { height: 72px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { font: 800 .76rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.eyebrow-blue { color: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 .95rem/1 var(--font-display); padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .7em 1.15em; font-size: .85rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-line { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-text { background: none; color: var(--muted); padding-inline: .6em; }
.btn-danger { background: #fff; color: #b42318; border-color: #f1c4bf; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--blue); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); flex: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.brand-text b { font-size: 1rem; font-weight: 900; letter-spacing: .32em; }
.brand-text small { font-size: .6rem; font-weight: 800; letter-spacing: .42em; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 11px; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current=page] { color: #fff; }
.nav-links a[aria-current=page]::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -2px; height: 3px; border-radius: 2px; background: var(--gold); }
.nav-links .nav-cta { margin-left: 10px; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 9px 18px; font-weight: 700; }
.nav-links .nav-cta:hover { background: var(--gold-hi); color: var(--navy); }
.nav-links .nav-cta[aria-current=page]::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--gold); margin: 4px 0; border-radius: 2px; }

/* parallel stroke texture echoing the logo */
.stripes, .hero-lines { position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background: repeating-linear-gradient(-56deg, transparent 0 40px, var(--gold) 40px 50px, transparent 50px 66px, var(--gold) 66px 76px, transparent 76px 200px);
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); }
.hero-lines { mask-image: none; -webkit-mask-image: none; opacity: .12; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue) 0%, #255f8a 100%); color: #fff; padding: 72px 0 140px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 900; }
.hero h1 .gold { display: block; }
.lead { font-size: 1.2rem; color: #d8e6f2; margin: 0 0 32px; max-width: 30em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-logo { width: 100%; max-width: 500px; height: auto; aspect-ratio: 2528 / 1696; border-radius: 20px; box-shadow: 0 0 0 4px var(--gold), 0 28px 60px rgba(8, 26, 42, .45); }

.lift { position: relative; margin-top: -88px; z-index: 2; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; display: flex; align-items: baseline; gap: 14px; }
.stat b { font: 900 2.8rem/1 var(--font-display); color: var(--blue); }
.stat span { color: var(--muted); font-weight: 600; }
.stat-gold { background: var(--gold); }
.stat-gold b, .stat-gold span { color: var(--navy); }

.section { padding: 88px 0; }
.lift + .section { padding-top: 32px; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.feature-rev { grid-template-columns: 1.2fr .8fr; }
.feature-copy h2 { margin-bottom: .5em; }
.feature-copy .muted { font-size: 1.1rem; max-width: 30em; margin: 0 0 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 500; }
.checks li::before { content: '✓'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.phone { justify-self: center; width: min(300px, 100%); padding: 10px; background: #0b1622; border-radius: 40px; box-shadow: 0 30px 60px rgba(15, 43, 68, .28); transform: rotate(-3deg); }
.phone img { border-radius: 30px; width: 100%; }
.rating-card { justify-self: center; width: min(320px, 100%); aspect-ratio: 1; border-radius: 28px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 30px 60px rgba(15, 43, 68, .25); position: relative; overflow: hidden; }
.rating-card::before { content: ''; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(-56deg, transparent 0 30px, var(--gold) 30px 38px, transparent 38px 120px); }
.rating-card span { position: relative; font: 800 .8rem var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.rating-card b { position: relative; font: 900 6rem/1 var(--font-display); margin: 8px 0; }
.rating-card small { position: relative; color: #b9cde0; font-weight: 600; }
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue) 0%, #255f8a 100%); color: #fff; padding: 64px 0 136px; }
.page-hero-tall { padding-bottom: 120px; min-height: 60vh; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 900; }
.page-hero .sub { margin: 0; color: #d8e6f2; font-size: 1.15rem; }
.page-hero .actions { margin-top: 28px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.card-title { font-size: 1.35rem; margin: 0 0 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head .card-title { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }

/* how to play */
.timeline { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr; gap: 12px; padding: 16px; }
.tl { display: flex; flex-direction: column; padding: 22px; border-radius: 12px; background: var(--blue-50); }
.tl small { font: 700 .75rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tl b { font: 900 1.9rem/1.2 var(--font-display); color: var(--blue); margin: 6px 0 2px; }
.tl span { font-size: .9rem; color: var(--muted); }
.tl-gold { background: var(--gold); }
.tl-gold small, .tl-gold b, .tl-gold span { color: var(--navy); }
.tl-line { background: #fff; border: 2px dashed #b8cde0; }
.step { padding-top: 28px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold); font: 900 1.05rem var(--font-display); margin-bottom: 16px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); }
.list li:first-child { border-top: 0; }

/* blitz rating */
.calc-card { text-align: center; padding: 40px 32px; }
.formula { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.formula span { font: 800 1.05rem var(--font-display); color: var(--blue); background: var(--blue-50); padding: 12px 20px; border-radius: 999px; }
.formula .formula-out { background: var(--gold); color: var(--navy); }
.formula i { font: 900 1.6rem var(--font-display); font-style: normal; color: var(--muted); }
.calc { max-width: 480px; margin: 0 auto; }
.calc label { font-weight: 600; color: var(--muted); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.calc input { font: 800 1.8rem var(--font-display); padding: 14px; border: 2px solid var(--line); border-radius: 14px; text-align: center; min-width: 0; color: var(--ink); }
.calc input:focus { border-color: var(--blue); outline: none; }
.calc output { display: grid; place-items: center; font: 900 2.2rem var(--font-display); color: #fff; background: var(--navy); border-radius: 14px; }
.ratings table { width: 100%; border-collapse: collapse; }
.ratings th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ratings td { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.ratings tr:last-child td { border-bottom: 0; }
.ratings .rank { width: 56px; }
.ratings .rank span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); font: 800 .85rem var(--font-display); color: var(--muted); }
.ratings tr:nth-child(-n+3) .rank span { background: var(--gold); color: var(--navy); }
.ratings .who { font-weight: 600; }
.ratings .team { color: var(--muted); font-size: .88rem; font-weight: 400; }
.ratings .num-col { text-align: right; color: var(--muted); }
.ratings .br { text-align: right; font: 900 1.3rem var(--font-display); color: var(--blue); }

/* strategy */
.plan { border-top: 5px solid var(--gold); }
.plan p { margin: 0; font-size: 1.05rem; }
.tag { display: inline-block; font: 800 .72rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }
.form-box { background: var(--blue-50); padding: 20px; border-radius: 12px; margin-bottom: 18px; }
.topic-list { display: grid; gap: 10px; }
.topic { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.topic-summary { width: 100%; text-align: left; background: #fff; border: 0; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font: inherit; color: inherit; }
.topic-summary:hover { background: var(--blue-50); }
.topic-title { font: 700 1rem/1.3 var(--font-display); }
.topic-meta { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.topic-count { flex: none; align-self: center; color: var(--muted); font-size: .82rem; background: var(--blue-50); padding: 4px 10px; border-radius: 999px; }
.pin { color: var(--gold); margin-right: 6px; }
.topic-body { padding: 0 18px 16px; border-top: 1px solid var(--line); }
.post-text { white-space: pre-wrap; margin: 12px 0; }
.reply { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin: 10px 0; }
.reply .post-text { margin: 2px 0 0; }
.reply-form { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; margin-top: 12px; align-items: start; }

/* gallery */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--blue-50); border-radius: 999px; margin-bottom: 24px; }
.tab { font: 700 .88rem var(--font-display); padding: 9px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 43, 68, .12); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gallery-grid figure { margin: 0; cursor: zoom-in; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--blue-50); transition: transform .2s; }
.gallery-grid figure:hover img { transform: translateY(-3px); }
.gallery-grid figcaption { padding: 10px 2px 0; font-size: .9rem; font-weight: 500; color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border-radius: 12px; background: var(--blue-50); color: var(--muted); margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 32, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 12px; }
.lb-cap { color: #fff; margin-top: 12px; }
.lb-close { position: absolute; top: 14px; right: 20px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input:not([type=radio]):not([type=file]), .form textarea, .form select, .reply-form input, .reply-form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus, .reply-form input:focus, .reply-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(42, 112, 162, .15); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-msg { font-weight: 600; font-size: .92rem; }
.form-msg.ok { color: #13795b; }
.form-msg.err { color: #b42318; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2.2rem; line-height: 1; color: #d5dee7; cursor: pointer; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-block; }
.chips span { display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; cursor: pointer; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); }

/* feedback */
.fb-stats { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fb-stats b { font: 900 2.6rem/1 var(--font-display); color: var(--blue); }
.fb-list { display: grid; gap: 12px; max-height: 520px; overflow: auto; }
.quote { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--blue-50); }
.quote p { margin: 4px 0; white-space: pre-wrap; }
.quote-stars { color: var(--gold); letter-spacing: 2px; }
.quote-by { font-size: .85rem; color: var(--muted); }
.feeling-tag { font-size: .78rem; font-weight: 700; color: var(--blue); margin-left: 8px; }

/* about */
.founder { text-align: center; padding: 40px 32px; }
.founder p.muted { margin: 0 auto; max-width: 34ch; }
.founder .role { color: var(--blue); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.avatar { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 900 2.1rem var(--font-display); overflow: hidden; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.li { display: inline-block; margin-top: 18px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.li:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #a9bdd0; font-size: .92rem; padding-top: 56px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; align-content: start; }
.footer-credits { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-credits p { margin: 0; }
.rp-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--rp-charcoal); color: var(--rp-cream) !important; padding: 10px 18px; border-radius: 12px; text-decoration: none; transition: background .15s, transform .15s; }
.rp-chip:hover { background: #1c1c1c; transform: translateY(-1px); }
.rp-chip small { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.rp-chip img { height: 22px; width: auto; }
.rp-chip-sm { padding: 7px 14px; border-radius: 999px; gap: 8px; }
.rp-chip-sm img { height: 18px; }
.btn-rp { background: var(--rp-charcoal); color: var(--rp-cream); gap: 10px; }
.btn-rp:hover { background: #1c1c1c; }
.btn-rp img { height: 18px; width: auto; }
.hero-credits { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; color: #c9dbea; font-size: .9rem; }
.hero-credits a:not(.rp-chip) { color: #fff; font-weight: 600; text-decoration: none; }
.hero-credits a:not(.rp-chip):hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-bottom a { color: #a9bdd0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--blue); padding: 8px 20px 20px; display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .15); }
  .nav-links.open { display: flex; }
  .nav-links a[aria-current=page]::after { left: 11px; right: auto; width: 24px; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
  .hero { padding: 48px 0 128px; }
  .hero-grid, .feature, .feature-rev, .split, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .hero-art { order: -1; }
  .hero-logo { max-width: 300px; }
  .feature { gap: 40px; }
  .phone { width: min(240px, 100%); }
  .feature-rev .rating-card { order: -1; }
  .grid-3, .stat-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .form-row, .reply-form { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .formula i { display: none; }
  .section { padding: 64px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
