/* Openside app site. Tokens, base and shared pieces follow openside.club's stylesheets
   (rugby-saas-product/app/assets/stylesheets) so the two sites read as one product. */

/* ---------- Tokens ---------- */
:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --navy-line: #2d4669;
  --night: #06152a;

  --ground: #f4f7fb;
  --surface: #ffffff;
  --surface-tint: #e7edf5;
  --line: #dbe3ee;

  --text: #0b2545;
  --text-body: #33445e;
  --text-muted: #4a5b74;

  --on-navy: #ffffff;
  --on-navy-body: #d3dceb;
  --on-navy-muted: #c3cfe1;
  --on-navy-eyebrow: #9fb4d4;
  --on-night: #c3cede;
  --on-night-muted: #8d9bb2;

  --lime: #c6f432;
  --lime-hover: #b2e01c;
  --lime-soft: #f1fbd2;
  --lime-ink: #3f6800;

  --action: #0b2545;
  --action-hover: #06152a;
  --on-action: #ffffff;
  --action-ink: #4a7a00;
  --accent: var(--lime);
  --violet: #5b3fd6;
  --violet-ink: #3a2aa8;
  --violet-soft: #f4f1fb;
  --pitch: #1d5a34;
  --pitch-deep: #133f24;
  --chalk: rgb(255 255 255 / 0.16);
  --ok: #2f7d4f;
  --ok-on-navy: #7ee0a4;
  --ok-soft: #dff1e6;
  --ok-ink: #1f5c38;
  --warn-soft: #fdebd3;
  --warn-ink: #8a4200;
  --card-yellow: #f5c518;

  --pride: linear-gradient(90deg, #e40303 0 16.67%, #ff8c00 0 33.33%, #ffed00 0 50%, #008026 0 66.67%, #24408e 0 83.33%, #732982 0);

  --font-display: "Kanit", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --radius: 10px;
  --radius-small: 6px;
  --tap: 44px;
  --cut: clamp(36px, 6vw, 88px);
  --shadow-card: 0 1px 2px rgb(11 37 69 / 0.08);
  --shadow-raised: 0 10px 30px rgb(11 37 69 / 0.10);
}

.on-navy, .site-header, .site-footer, .section-pitch {
  --action: var(--lime);
  --action-hover: var(--lime-hover);
  --on-action: var(--navy);
}

@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h3 { font-size: 19px; }
p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--action-ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-small); font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Japanese and Traditional Chinese: system CJK faces after the Latin ones. */
:lang(ja) {
  --font-body: "Manrope", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --font-display: "Kanit", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
:lang(zh-Hant) {
  --font-body: "Manrope", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Kanit", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html:lang(ja) body, html:lang(zh-Hant) body { line-height: 1.8; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; line-height: 1.35; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { line-height: 1.35; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh-Hant) h1, html:lang(zh-Hant) h2 { font-style: normal !important; }
:lang(ja) p, :lang(ja) li { line-break: strict; }

/* ---------- Shared pieces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px; border: 0; border-radius: var(--radius-small);
  background: var(--action); color: var(--on-action);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--action-hover); color: var(--on-action); }
.btn-small { min-height: var(--tap); padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.btn-ghost:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn-dark { background: var(--navy); color: var(--on-navy); }
.btn-dark:hover { background: var(--night); color: var(--on-navy); }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; color: var(--text); }
.text-link svg { flex: none; }

.eyebrow { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--action-ink); }
.on-navy .eyebrow, .site-header .eyebrow { color: var(--on-navy-eyebrow); }
:lang(ja) .eyebrow, :lang(zh-Hant) .eyebrow { letter-spacing: 0.08em; }

.section { position: relative; padding-block: 96px; }
.section-tight { padding-block: 72px; }
.section-white { background: var(--surface); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-pitch { background: var(--pitch); color: var(--on-navy); }
@media (max-width: 640px) { .section { padding-block: 64px; } .section-tight { padding-block: 48px; } }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--text-muted); }
.section-head-center { margin-inline: auto; text-align: center; }
.on-navy .section-head p:not(.eyebrow) { color: var(--on-navy-muted); }
.grad-text { color: var(--lime); }
.ink-text { color: var(--action-ink); }

.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 4px; color: var(--ok); }
.on-navy .check-list svg { color: var(--ok-on-navy); }

.chip-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--lime); }
.chip-icon svg { width: 26px; height: 26px; }
.chip-icon.is-pitch { background: var(--pitch); color: var(--on-navy); }
.chip-icon.is-violet { background: var(--violet); color: var(--on-navy); }
.chip-icon.is-lime { background: var(--lime); color: var(--navy); }

.hoops { height: 9px; background: var(--lime); }

/* Angled edges between sections (as openside.club's DesignHelper#cut). */
.cut { display: block; width: 100%; height: var(--cut); margin-top: -1px; }
.cut-flip { transform: scaleX(-1); }
.cut-ground { fill: var(--ground); }
.cut-surface { fill: var(--surface); }
.cut-navy { fill: var(--navy); }
.cut-night { fill: var(--night); }
.cut-pitch { fill: var(--pitch); }
.cut-lime { fill: var(--lime); }
.section:has(> .cut:last-child) { padding-bottom: 0; }
.section:has(> .cut:last-child) > .wrap { padding-bottom: 72px; }

.sticker {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--lime); color: var(--navy); font-weight: 800; font-size: 14px; line-height: 1.2;
  box-shadow: 0 8px 20px rgb(4 10 22 / 0.35); rotate: -4deg;
}
.sticker svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { --pride-inset: clamp(20px, 2.6vw, 44px); position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.site-header::before, .site-footer::after {
  content: ""; position: absolute; top: 0; right: var(--pride-inset); z-index: 2;
  width: clamp(150px, 30vw, 432px); height: 9px; background: var(--pride); pointer-events: none;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; position: relative; z-index: 3; }
.site-brand { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--on-navy); text-decoration: none; }
.site-brand img { height: 42px; width: auto; }
@media (max-width: 640px) { .site-brand img { height: 34px; } }

.site-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-menu a:not(.btn) { display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap); color: var(--on-navy-body); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-menu a:not(.btn):hover, .site-menu a[aria-current] { color: var(--on-navy); }
.site-menu a[aria-current]:not(.btn) { box-shadow: inset 0 -2px 0 var(--accent); }
.site-menu .ext { width: 12px; height: 12px; opacity: 0.7; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.site-menu .lang-switch a { min-height: 34px; padding: 0 11px; border-radius: 999px; font-size: 14px; }
.site-menu .lang-switch a[aria-current] { background: var(--navy-deep); box-shadow: none; color: var(--lime); }
.lang-switch svg { width: 16px; height: 16px; margin-left: 6px; color: var(--on-navy-eyebrow); }

.site-menu-button { display: none; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; border: 0; border-radius: var(--radius-small); background: transparent; color: var(--on-navy); cursor: pointer; }
@media (max-width: 900px) {
  .site-menu-button { display: inline-flex; }
  .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .site-menu > a:not(.btn) { border-top: 1px solid var(--navy-line); }
  .site-menu .lang-switch { align-self: flex-start; margin-top: 12px; }
  .site-menu .btn { margin-top: 12px; }
  .is-menu-open .site-menu { display: flex; }
}

.site-pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.08; stroke: var(--on-navy); stroke-width: 3; pointer-events: none; }
.site-pitch-lines .is-dashed { stroke-width: 2; stroke-dasharray: 24 18; }
.site-header > .cut { position: relative; z-index: 1; }

.page-band { position: relative; z-index: 1; padding-block: 32px 40px; }
.page-band h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; max-width: 820px; }
.page-band p:not(.eyebrow) { margin-top: 18px; max-width: 640px; font-size: 19px; color: var(--on-navy-body); }

/* A suggestion to switch language, from the browser's preferences (never a redirect). */
.lang-hint { position: relative; z-index: 4; background: var(--lime); color: var(--navy); font-size: 15px; font-weight: 600; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding-block: 8px; }
.lang-hint a { font-weight: 800; }
.lang-hint button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; min-height: 36px; padding: 0 8px; text-decoration: underline; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: 10px; background: #000; color: #fff; text-decoration: none; line-height: 1.1;
  box-shadow: inset 0 0 0 1.5px #a6a6a6; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #fff, 0 10px 24px rgb(0 0 0 / 0.3); }
.store-badge svg { flex: none; width: 28px; height: 28px; }
.store-badge-small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.store-badge-big { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", var(--font-body); }
.store-badge[data-soon]::after {
  content: attr(data-soon); position: absolute; top: -9px; right: -8px; padding: 2px 8px; border-radius: 999px;
  background: var(--lime); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; rotate: 4deg;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
}
.store-note { margin-top: 14px; font-size: 14px; color: var(--on-navy-muted); }
.store-note a { color: var(--on-navy); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 40px 40px; }
.hero > * { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-style: italic; font-weight: 800; line-height: 1.04; }
.hero-lede { margin-top: 24px; max-width: 560px; font-size: 19px; color: var(--on-navy-body); }
.hero-actions { margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--on-navy-muted); }
.hero-note a { color: var(--on-navy); font-weight: 700; }
.hero-note a:hover { color: var(--lime); }
.hero-visual { position: relative; display: flex; justify-content: center; gap: 24px; padding-block: 12px; }
.hero-visual .phone { z-index: 1; rotate: -3deg; }
/* The calendar peeks out from behind the board on wide screens. */
.hero-visual .phone + .phone { z-index: 0; rotate: 5deg; margin: 72px 0 0 -110px; }
.hero-visual .sticker { position: absolute; top: 0; left: max(0px, calc(50% - 260px)); z-index: 2; }
@media (max-width: 1150px) {
  .hero-visual .phone + .phone { display: none; }
  .hero-visual .sticker { left: max(0px, calc(50% - 190px)); }
}
@media (max-width: 760px) {
  .hero-visual .phone { rotate: none; }
  .hero-visual .sticker { left: 8px; top: -12px; }
}

/* ---------- Phone mock-ups (HTML, so they translate and stay sharp) ---------- */
.phone {
  --club: #8ac43f; --club-ink: #10210a;
  position: relative; flex: none; width: min(300px, 82vw); aspect-ratio: 9 / 19.2; padding: 11px;
  border-radius: 46px; background: #10161f;
  box-shadow: inset 0 0 0 2px #2d3644, 0 30px 60px rgb(4 10 22 / 0.5);
}
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: #f6f7f9; color: #15181d; font-family: -apple-system, "SF Pro Text", Roboto, var(--font-body); font-size: 12px; line-height: 1.3; }
.phone-island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 99px; background: #000; z-index: 2; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 0; font-weight: 700; font-size: 12px; }
.phone-status svg { width: 14px; height: 14px; }
.phone-status span:last-child { display: inline-flex; gap: 4px; align-items: center; }
.phone-body { padding: 14px 14px 0; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-title { font-size: 17px; font-weight: 700; }
.phone-sync { display: inline-flex; align-items: center; gap: 4px; color: #4a7a00; font-weight: 700; font-size: 11px; white-space: nowrap; }
.phone-sync svg { width: 14px; height: 14px; }
.phone-sync.is-sent { color: #2f7d4f; }
.board-teams { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.board-us { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: var(--club); color: var(--club-ink); font-weight: 800; font-size: 12px; }
.board-us i { width: 10px; height: 10px; border-radius: 50%; background: var(--club-ink); }
.board-them { font-weight: 700; color: #5a6270; font-size: 12px; }
.board-score { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.board-score span { transition: color 0.3s; }
.board-score .is-bump { color: #4a7a00; }
.board-clock { display: flex; gap: 8px; margin-top: 12px; }
.board-clock > div:first-child { flex: 1; padding: 8px 12px; border-radius: 14px; background: #e6e8ec; }
.board-clock strong { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.board-clock small { color: #2f7d4f; font-weight: 600; font-size: 10px; }
.board-clock > div:last-child { display: grid; place-items: center; padding: 0 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px #c8ccd3; font-weight: 600; font-size: 11px; color: #3a404a; text-align: center; }
.board-bin { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 9px; border-radius: 99px; background: #e6e8ec; font-size: 11px; font-weight: 600; }
.board-bin i { width: 8px; height: 11px; border-radius: 2px; background: var(--card-yellow); }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.board-grid b { display: grid; place-items: center; min-height: 44px; padding: 4px; border-radius: 14px; font-size: 14px; font-weight: 800; text-align: center; line-height: 1.15; }
.board-grid .is-us { background: var(--club); color: var(--club-ink); }
.board-grid .is-them { box-shadow: inset 0 0 0 1px #c8ccd3; color: #15181d; }
.board-grid .is-tap { animation: tap 0.4s ease; }
@keyframes tap { 40% { transform: scale(0.94); filter: brightness(0.9); } }
.board-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 7px; }
.board-tools b { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 30px; border-radius: 10px; box-shadow: inset 0 0 0 1px #c8ccd3; font-size: 11px; font-weight: 700; }
.board-tools i { width: 7px; height: 10px; border-radius: 2px; background: var(--card-yellow); }
.board-last { display: flex; gap: 6px; margin-top: 7px; }
.board-last span:first-child { flex: 1; padding: 8px 10px; border-radius: 12px; background: #e6e8ec; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-last span:last-child { display: grid; place-items: center; padding: 0 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #c8ccd3; font-size: 11px; font-weight: 600; }

.cal-head { display: flex; align-items: center; gap: 8px; }
.cal-crest { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--club); color: var(--club-ink); font-weight: 900; font-size: 13px; }
.cal-day { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #4a7a00; }
.cal-item { display: flex; gap: 10px; margin-top: 6px; padding: 10px 11px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.cal-item > i { flex: none; width: 4px; border-radius: 4px; background: var(--club); }
.cal-item.is-training > i { background: #2b6cb0; }
.cal-item.is-tournament > i { background: var(--violet); }
.cal-item.is-off { opacity: 0.6; }
.cal-item.is-off strong { text-decoration: line-through; }
.cal-item strong { display: block; font-size: 13px; }
.cal-item span { display: block; color: #5a6270; font-size: 11px; }
.cal-item em { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 99px; background: #eef6f0; color: #1f5c38; font-style: normal; font-size: 10px; font-weight: 700; }
.phone-tabs { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 10px 18px; background: rgb(246 247 249 / 0.95); border-top: 1px solid #e3e6eb; font-size: 10px; font-weight: 600; text-align: center; color: #5a6270; }
.phone-tabs span { display: grid; justify-items: center; gap: 2px; }
.phone-tabs svg { width: 20px; height: 20px; }
.phone-tabs .is-on { color: #4a7a00; }

/* ---------- Home sections ---------- */
.tabs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.tab-card { display: flex; flex-direction: column; gap: 14px; }
.tab-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.tab-card p { color: var(--text-muted); }
.tab-card .check-list { margin-top: 4px; font-size: 16px; color: var(--text-body); }
.tab-card-who { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text-muted); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: "0" counter(step); display: grid; place-items: center; width: 72px; height: 64px; border-radius: 8px;
  background: var(--night); color: var(--lime); font-family: var(--font-mono); font-weight: 700; font-size: 34px;
  box-shadow: inset 0 0 0 2px var(--navy-line);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 84px; right: -16px; border-top: 2px dashed var(--navy-line); }
@media (max-width: 1000px) { .steps li::after { display: none; } }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--on-navy-muted); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-reverse { flex-direction: row-reverse; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); }
.split-body { margin-top: 20px; font-size: 18px; color: var(--text-body); }
.split .check-list { margin-top: 24px; }
.on-navy .split-body { color: var(--on-navy-body); }
.split-visual { display: flex; justify-content: center; }

/* The offline promise: taps queue on the phone, then go when there's signal. */
.sync-demo { width: 100%; max-width: 520px; padding: 26px; border-radius: 16px; background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-raised); }
.sync-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.sync-signal { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: var(--navy-deep); color: var(--on-navy-eyebrow); font-size: 13px; transition: background 0.3s, color 0.3s; }
.sync-signal svg { width: 15px; height: 15px; }
.sync-demo.is-online .sync-signal { background: var(--lime); color: var(--navy); }
.sync-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.sync-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--navy-deep); font-size: 15px; box-shadow: inset 0 0 0 1px var(--navy-line); }
.sync-list li span:first-child { font-family: var(--font-mono); color: var(--lime); font-size: 13px; min-width: 3ch; }
.sync-list li span:nth-child(2) { flex: 1; }
.sync-state { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: rgb(255 255 255 / 0.08); color: var(--on-navy-muted); white-space: nowrap; }
.sync-state.is-sent { background: var(--ok-on-navy); color: var(--navy); }
.sync-demo-foot { margin-top: 16px; font-size: 14px; color: var(--on-navy-muted); }

.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.privacy-points li { display: grid; gap: 12px; align-content: start; }
.privacy-points h3 { font-size: 19px; }
.privacy-points p { color: var(--text-muted); }
.privacy-more { margin-top: 32px; text-align: center; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.langs span { padding: 12px 22px; border-radius: 999px; background: var(--navy-deep); box-shadow: inset 0 0 0 1.5px var(--navy-line); font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); }
.langs span:nth-child(2) { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.langs span:nth-child(3) { font-family: "PingFang TC", "Noto Sans TC", sans-serif; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.platform { display: grid; gap: 14px; align-content: start; border-top: 6px solid var(--navy); }
.platform.is-android { border-top-color: var(--pitch); }
.platform-head { display: flex; align-items: center; gap: 14px; }
.platform-head svg { width: 34px; height: 34px; }
.platform h3 { font-family: var(--font-display); font-size: 26px; }
.platform p { color: var(--text-muted); }
.platform dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 4px 0 0; font-size: 15px; }
.platform dt { font-weight: 700; }
.platform dd { margin: 0; color: var(--text-body); }
.platform .store-badges { margin-top: 8px; }

.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details { border-radius: var(--radius); background: var(--ground); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tap); padding: 18px 22px; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: 22px; font-weight: 700; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 22px 20px; color: var(--text-body); max-width: 68ch; }
.faq-list details a { color: var(--violet-ink); font-weight: 700; }

/* News and sign-up, both on openside.club. */
.club-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.club-link { display: grid; gap: 12px; align-content: start; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.club-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-raised); }
.club-link h3 { font-family: var(--font-display); font-size: 24px; }
.club-link p { color: var(--text-muted); }
.club-link .text-link { color: var(--action-ink); }

.cta-band {
  position: relative; margin-top: calc(-1 * var(--cut)); padding-block: calc(64px + var(--cut)) 72px;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(-55deg, transparent 0 46px, rgb(11 37 69 / 0.06) 46px 92px), var(--lime);
  color: var(--navy);
}
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 640px; font-size: clamp(28px, 3.6vw, 40px); font-style: italic; font-weight: 800; line-height: 1.2; }
.cta-band p { margin-top: 10px; max-width: 600px; font-weight: 600; }
.cta-band .btn { background: var(--navy); color: var(--on-navy); }
.cta-band .btn:hover { background: var(--night); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.cta-band .btn-outline:hover { background: var(--navy); color: var(--on-navy); }

/* Reveal on scroll, only when JS is on and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.6s ease, translate 0.6s ease; }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
}

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; font-size: 15px; color: var(--text-muted); }
.legal-meta a { color: var(--violet-ink); font-weight: 700; }
.legal-draft, .legal-translation { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius); }
.legal-draft { background: var(--warn-soft); color: var(--warn-ink); }
.legal-translation { background: var(--violet-soft); color: var(--violet-ink); }
.legal-toc { margin-bottom: 36px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.legal-toc p { font-weight: 800; }
.legal-toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { color: var(--text-body); }
.prose { color: var(--text-body); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-family: var(--font-body); font-size: 24px; font-weight: 800; color: var(--text); scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--violet-ink); }
.prose a:hover { color: var(--action-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--text); }
.legal-table { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.legal-table dt, .legal-table dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.legal-table dt { font-weight: 700; background: var(--surface-tint); color: var(--text); }
@media (max-width: 560px) {
  .legal-table { grid-template-columns: 1fr; }
  .legal-table dt { border-bottom: 0; padding-bottom: 4px; }
  .legal-table dd { padding-top: 4px; }
}

/* ---------- Footer ---------- */
.site-footer { --pride-inset: var(--gutter); position: relative; background: var(--night); color: var(--on-night); padding-block: 56px 40px; font-size: 15px; }
.site-footer-hoops { position: absolute; inset: 0 0 auto; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); text-decoration: underline; }
.site-footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer-about { max-width: 360px; }
.site-footer-about > * + * { margin-top: 12px; }
.site-footer-about img { height: 46px; width: auto; }
.site-footer-about a { color: var(--on-navy); font-weight: 700; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.site-footer-links div { display: grid; align-content: start; gap: 2px; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer-head { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); }
.site-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.site-footer-company img { width: 122px; height: auto; }
.site-footer-small { font-size: 13px; color: var(--on-night-muted); }
.site-footer-small a { color: var(--on-night); font-weight: 700; }
.site-footer address { font-style: normal; font-size: 13px; color: var(--on-night-muted); }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .board-score { justify-content: center; gap: 0.4em; color: var(--lime); font-size: clamp(80px, 14vw, 140px); }
.not-found ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Small layout helpers (kept out of style attributes for the CSP). */
.site-footer-tm { margin-top: 16px; }
.section-head-tight { margin-bottom: 28px; }
.download-badges { display: flex; justify-content: center; margin-top: 40px; }
.not-found h1, .not-found p { margin-inline: auto; }
.phone-status .i-battery { width: 22px; }
