/* ═══════════════════════════════════════════════════════════════
   AQUASTROKE — Theme layer
   The original look ("ocean") is defined inline in index.html and is
   left untouched. Each alternative theme sets the --x-* tokens below,
   and the shared rules (scoped to html.tx) map the whole interface
   onto those tokens. Selected with <html data-theme="…">.
   ═══════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts (SIL Open Font License, see /fonts/OFL-*.txt) ── */
@font-face { font-family:"IBM Plex Sans Arabic"; src:url("/fonts/plex-arabic-400.woff") format("woff"); font-weight:400; font-display:swap; }
@font-face { font-family:"IBM Plex Sans Arabic"; src:url("/fonts/plex-arabic-600.woff") format("woff"); font-weight:500 600; font-display:swap; }
@font-face { font-family:"IBM Plex Sans Arabic"; src:url("/fonts/plex-arabic-700.woff") format("woff"); font-weight:700 900; font-display:swap; }
@font-face { font-family:"Barlow Condensed"; src:url("/fonts/barlow-condensed-700.woff") format("woff"); font-weight:600 700; font-display:swap; }
@font-face { font-family:"Barlow Condensed"; src:url("/fonts/barlow-condensed-800.woff") format("woff"); font-weight:800 900; font-display:swap; }
@font-face { font-family:"Playfair Display"; src:url("/fonts/playfair-700.woff") format("woff"); font-weight:600 900; font-display:swap; }
@font-face { font-family:"Noto Naskh Arabic"; src:url("/fonts/naskh-arabic-700.woff") format("woff"); font-weight:600 900; font-display:swap; }

/* ── Icons (used by every theme, including the original) ── */
.ic { width:18px; height:18px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.sb-item .sb-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; }
.sb-item .sb-icon .ic { width:17px; height:17px; }
.val-icon .ic { width:22px; height:22px; }
.feat-nav-btn .ic { width:15px; height:15px; }
.preview-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; border-radius:10px; color:var(--brand); background:var(--brand-l); }
.preview-icon .ic { width:20px; height:20px; }

/* Original theme: keep it as it was, but make the coach-preview items readable
   (their titles inherited light text on a light background). */
#view-landing .preview-item { background:rgba(17,39,62,.92); border-color:rgba(122,190,232,.2); }
#view-landing .preview-item-title { color:#eef7ff; }
#view-landing .preview-item-desc { color:#a9bfd3 !important; }
#view-landing .preview-icon { color:#4cd7f6; background:rgba(76,215,246,.12); }
#view-dashboard .chart-svg text[fill="#0A1628"] { fill:var(--text); }
#view-dashboard .chart-svg line[stroke="#E4E9F0"] { stroke:var(--border); }

/* ── Theme picker ── */
.theme-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.theme-option { display:flex; flex-direction:column; gap:8px; padding:10px; border:1.5px solid var(--border); border-radius:12px; background:transparent; color:var(--text); text-align:start; font:inherit; cursor:pointer; transition:border-color .2s, transform .2s; }
.theme-option:hover { transform:translateY(-1px); }
.theme-option[aria-pressed="true"] { border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.theme-swatch { display:flex; height:34px; overflow:hidden; border-radius:10px; border:1px solid rgba(127,127,127,.25); }
.theme-swatch span { flex:1; }
.theme-option-name { font-size:13px; font-weight:700; }
.theme-option-note { font-size:12.5px; color:var(--text-3); line-height:1.4; }
.theme-dock { position:fixed; z-index:400; inset-inline-start:16px; bottom:16px; display:flex; align-items:center; gap:6px; padding:6px; border-radius:999px; background:rgba(12,18,26,.86); border:1px solid rgba(255,255,255,.14); box-shadow:0 10px 30px rgba(0,0,0,.25); backdrop-filter:blur(12px); }
.theme-dock-label { padding:0 6px 0 8px; color:#dfe7ee; font-size:12.5px; font-weight:700; white-space:nowrap; }
.theme-dock button { width:28px; height:28px; padding:0; border-radius:50%; border:2px solid transparent; cursor:pointer; overflow:hidden; display:flex; }
.theme-dock button span { flex:1; }
.theme-dock button[aria-pressed="true"] { border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.35); }
.theme-dock-close { width:24px !important; height:24px !important; background:transparent !important; color:#9fb0bf; border:0 !important; font-size:15px; align-items:center; justify-content:center; }
@media (max-width:600px) { .theme-dock-label { display:none; } .theme-dock { bottom:12px; inset-inline-start:12px; } }
@media print { .theme-dock { display:none; } }

/* ═══════════════════════════════════════
   THEME TOKENS
═══════════════════════════════════════ */
/* Ocean: the original AQUASTROKE colours on the shared theme layer. Light, readable content like the "How we build
   the plan" page, with the original navy sidebar. (Before, Ocean kept the old dark dashboard rules, and fields and
   headings became dark-on-dark once the content turned light.) */
:root[data-theme="ocean"] {
  --x-bg:#F4F7FB; --x-bg-alt:#FFFFFF; --x-surface:#FFFFFF; --x-surface-2:#F1F5FB;
  --x-line:#DBE3EE; --x-line-2:#C7D3E3;
  --x-ink:#0A1628; --x-ink-2:#2B3B52; --x-ink-3:#52627A;
  --x-accent:#0057FF; --x-accent-hover:#0346C8; --x-on-accent:#FFFFFF; --x-accent-soft:#E6EEFF; --x-accent-text:#0050EB;
  --x-hot:#F05A28; --x-hot-text:#C2410C; --x-hot-soft:#FDEBE3;
  --x-good:#0F7A55; --x-good-soft:#DCF3EA; --x-warn:#A65A06; --x-warn-soft:#FBEFD9; --x-bad:#BE3A2A; --x-bad-soft:#FBE4E0;
  --x-side-bg:#0A1628; --x-side-ink:#F3F7FC; --x-side-ink-2:#A9BBD1; --x-side-line:#16263D; --x-side-hover:#10294D; --x-side-active-bg:#0057FF; --x-side-active-ink:#FFFFFF;
  --x-nav-bg:rgba(255,255,255,.9);
  --x-hero-img:url("/images/themes/pool-lanes-light.svg");
  --x-hero-overlay:radial-gradient(ellipse 44% 40% at 50% 50%, rgba(244,247,251,.97) 0%, rgba(244,247,251,.95) 58%, rgba(244,247,251,.55) 80%, rgba(244,247,251,0) 100%);
  --x-hero-overlay-m:linear-gradient(180deg, rgba(244,247,251,.25) 0%, rgba(244,247,251,.95) 16%, rgba(244,247,251,.95) 84%, rgba(244,247,251,.4) 100%);
  --x-photo-shade:rgba(10,22,40,.5); --x-photo-shade-2:rgba(10,22,40,.7); --x-page-veil:rgba(244,247,251,.72);
  --x-hero-ink:#0A1628; --x-hero-ink-2:#2B3B52;
  --x-dark-band:#0A1628; --x-dark-band-ink:#FFFFFF; --x-dark-band-ink-2:#C9D8EE;
  --x-font:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --x-display:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif; --x-display-weight:800; --x-display-spacing:-.01em; --x-display-transform:none;
  --x-label-font:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --x-radius:12px; --x-shadow:0 6px 24px rgba(10,22,40,.05); --x-shadow-lg:0 18px 50px rgba(10,22,40,.18);
  --x-chart-a:#0057FF; --x-chart-b:#22D3EE; --x-chart-grid:#DBE3EE; --x-chart-bg:#F7FAFE;
  color-scheme:light;
}
:root[data-theme="daylight"] {
  --x-bg:#F4F7FB; --x-bg-alt:#FFFFFF; --x-surface:#FFFFFF; --x-surface-2:#EEF3F9;
  --x-line:#DDE5F0; --x-line-2:#C7D3E3;
  --x-ink:#0B1F3A; --x-ink-2:#3D4F66; --x-ink-3:#5E6F85;
  --x-accent:#0057FF; --x-accent-hover:#0346C8; --x-on-accent:#FFFFFF; --x-accent-soft:#E6EEFF; --x-accent-text:#0050EB;
  --x-hot:#F05A28; --x-hot-text:#C2410C; --x-hot-soft:#FDEBE3;
  --x-good:#0F7A55; --x-good-soft:#DCF3EA; --x-warn:#A65A06; --x-warn-soft:#FBEFD9; --x-bad:#BE3A2A; --x-bad-soft:#FBE4E0;
  --x-side-bg:#FFFFFF; --x-side-ink:#0B1F3A; --x-side-ink-2:#4E6079; --x-side-line:#E2E8F1; --x-side-hover:#F0F4FA; --x-side-active-bg:#E6EEFF; --x-side-active-ink:#0046CC;
  --x-nav-bg:rgba(255,255,255,.9);
  --x-hero-img:url("/images/themes/pool-lanes-light.svg");
  --x-hero-overlay:radial-gradient(ellipse 44% 40% at 50% 50%, rgba(244,247,251,.97) 0%, rgba(244,247,251,.95) 58%, rgba(244,247,251,.55) 80%, rgba(244,247,251,0) 100%), linear-gradient(180deg, rgba(244,247,251,.35) 0%, rgba(244,247,251,0) 30%, rgba(244,247,251,0) 85%, rgba(244,247,251,.7) 100%);
  --x-hero-ink:#0B1F3A; --x-hero-ink-2:#2F4560;
  --x-dark-band:#0A1A33; --x-dark-band-ink:#F3F7FC; --x-dark-band-ink-2:#B8C6DA;
  --x-font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --x-display:"IBM Plex Sans Arabic", system-ui, sans-serif; --x-display-weight:700; --x-display-spacing:-.02em; --x-display-transform:none;
  --x-label-font:"IBM Plex Sans Arabic", system-ui, sans-serif;
  --x-radius:12px; --x-shadow:0 1px 2px rgba(11,31,58,.05), 0 6px 18px rgba(11,31,58,.06); --x-shadow-lg:0 18px 48px rgba(11,31,58,.12);
  --x-chart-a:#0057FF; --x-chart-b:#F05A28; --x-chart-grid:#DDE5F0; --x-chart-bg:#F7FAFE;
  color-scheme:light;
}
:root[data-theme="pro"] {
  --x-bg:#0D0F12; --x-bg-alt:#121519; --x-surface:#171B20; --x-surface-2:#1E232A;
  --x-line:#272D35; --x-line-2:#353D47;
  --x-ink:#F3F5F7; --x-ink-2:#B7BFC9; --x-ink-3:#8C96A3;
  --x-accent:#C6F432; --x-accent-hover:#B3E01F; --x-on-accent:#0D0F12; --x-accent-soft:rgba(198,244,50,.12); --x-accent-text:#C6F432;
  --x-hot:#FF6B2C; --x-hot-text:#FF8A57; --x-hot-soft:rgba(255,107,44,.14);
  --x-good:#4ADE80; --x-good-soft:rgba(74,222,128,.13); --x-warn:#FBBF24; --x-warn-soft:rgba(251,191,36,.13); --x-bad:#F87171; --x-bad-soft:rgba(248,113,113,.14);
  --x-side-bg:#090B0D; --x-side-ink:#F3F5F7; --x-side-ink-2:#8C96A3; --x-side-line:#1C2127; --x-side-hover:#151A1F; --x-side-active-bg:#C6F432; --x-side-active-ink:#0D0F12;
  --x-nav-bg:rgba(13,15,18,.88);
  --x-hero-img:url("/images/themes/pool-lanes-dark.svg");
  --x-hero-overlay:linear-gradient(180deg, #0D0F12 0%, rgba(13,15,18,.97) 46%, rgba(13,15,18,.6) 74%, rgba(13,15,18,.35) 100%);
  --x-hero-ink:#FFFFFF; --x-hero-ink-2:#C4CCD5;
  --x-dark-band:#121519; --x-dark-band-ink:#F3F5F7; --x-dark-band-ink-2:#A8B1BC;
  --x-font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --x-display:"Barlow Condensed", "IBM Plex Sans Arabic", system-ui, sans-serif; --x-display-weight:800; --x-display-spacing:.005em; --x-display-transform:uppercase;
  --x-label-font:"Barlow Condensed", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --x-radius:12px; --x-shadow:0 1px 0 rgba(255,255,255,.03) inset, 0 10px 26px rgba(0,0,0,.28); --x-shadow-lg:0 24px 60px rgba(0,0,0,.45);
  --x-chart-a:#C6F432; --x-chart-b:#FF6B2C; --x-chart-grid:#272D35; --x-chart-bg:#12161A;
  color-scheme:dark;
}
:root[data-theme="classic"] {
  --x-bg:#F7F4EE; --x-bg-alt:#FFFDF9; --x-surface:#FFFFFF; --x-surface-2:#F2EEE5;
  --x-line:#E4DED1; --x-line-2:#D3CBB9;
  --x-ink:#13213A; --x-ink-2:#434C5E; --x-ink-3:#5A6072;
  --x-accent:#13213A; --x-accent-hover:#1E3157; --x-on-accent:#FFFFFF; --x-accent-soft:#E7EBF3; --x-accent-text:#1E3A6E;
  --x-hot:#B8892B; --x-hot-text:#8A6516; --x-hot-soft:#F6EDD8;
  --x-good:#286C4E; --x-good-soft:#E1F0E8; --x-warn:#9A5F0C; --x-warn-soft:#F7ECD8; --x-bad:#A33A31; --x-bad-soft:#F6E1DE;
  --x-side-bg:#13213A; --x-side-ink:#F7F4EE; --x-side-ink-2:#AEB5C4; --x-side-line:#22324F; --x-side-hover:#1B2B49; --x-side-active-bg:#FFFDF9; --x-side-active-ink:#13213A;
  --x-nav-bg:rgba(247,244,238,.92);
  --x-hero-img:url("/images/themes/pool-lanes-classic.svg");
  --x-hero-overlay:linear-gradient(180deg, #F7F4EE 0%, rgba(247,244,238,.97) 46%, rgba(247,244,238,.62) 74%, rgba(247,244,238,.32) 100%);
  --x-hero-ink:#13213A; --x-hero-ink-2:#434C5E;
  --x-dark-band:#13213A; --x-dark-band-ink:#F7F4EE; --x-dark-band-ink-2:#BFC5D2;
  --x-font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --x-display:"Playfair Display", "Noto Naskh Arabic", Georgia, serif; --x-display-weight:700; --x-display-spacing:-.01em; --x-display-transform:none;
  --x-label-font:"IBM Plex Sans Arabic", system-ui, sans-serif;
  --x-radius:12px; --x-shadow:0 1px 2px rgba(19,33,58,.05), 0 4px 14px rgba(19,33,58,.05); --x-shadow-lg:0 16px 40px rgba(19,33,58,.12);
  --x-chart-a:#13213A; --x-chart-b:#B8892B; --x-chart-grid:#E4DED1; --x-chart-bg:#FBF9F4;
  color-scheme:light;
}

/* Map the app's own tokens onto the theme tokens */
html.tx, html.tx #view-dashboard {
  --brand:var(--x-accent); --brand-d:var(--x-accent-hover); --brand-l:var(--x-accent-soft); --brand-text:var(--x-accent-text);
  --teal:var(--x-accent-text); --teal-l:var(--x-accent-soft);
  --ocean:var(--x-dark-band); --surface:var(--x-surface); --bg:var(--x-surface-2); --border:var(--x-line);
  --text:var(--x-ink); --text-2:var(--x-ink-2); --text-3:var(--x-ink-3);
  --green:var(--x-good); --green-l:var(--x-good-soft); --red:var(--x-bad); --red-l:var(--x-bad-soft); --amber:var(--x-warn); --amber-l:var(--x-warn-soft);
  --radius:var(--aq-r-lg, 16px); --shadow:var(--x-shadow); --shadow-md:var(--x-shadow-lg);
}
html.tx #view-landing {
  --landing-ink:var(--x-ink); --landing-muted:var(--x-ink-2); --landing-panel:var(--x-surface); --landing-panel-soft:var(--x-surface-2);
  --landing-line:var(--x-line); --landing-cyan:var(--x-accent-text); --landing-mint:var(--x-good);
}

/* ═══════════════════════════════════════
   SHARED THEME RULES
═══════════════════════════════════════ */
html.tx body, html.tx button, html.tx input, html.tx select, html.tx textarea { font-family:var(--x-font); }
html.tx body { background:var(--x-bg); color:var(--x-ink); }
html.tx body::before, html.tx body::after { display:none; }
html.tx .section-h2, html.tx .lp-hero h1, html.tx .lp-cta h2, html.tx .cockpit-heading h1,
html.tx #view-landing .poolside-feature-copy h3, html.tx .price-amount, html.tx .milestone-title {
  font-family:var(--x-display); font-weight:var(--x-display-weight); letter-spacing:var(--x-display-spacing); text-transform:var(--x-display-transform);
}
html.tx .section-label, html.tx .cockpit-kicker, html.tx .cockpit-section-kicker, html.tx .cockpit-stat-label, html.tx .sb-section,
html.tx .ps-label, html.tx .price-tier, html.tx #view-landing .visual-feature-kicker, html.tx .season-map-phase, html.tx .roster-table th,
html.tx .phase-chip-name, html.tx .tc-num, html.tx .ts-label, html.tx .cockpit-status {
  font-family:var(--x-label-font); font-weight:700; letter-spacing:.08em;
}
html.tx .cockpit-kicker, html.tx .cockpit-section-kicker, html.tx .sb-section, html.tx .cockpit-stat-label, html.tx .section-label { font-size:12.5px; }
html.tx .cockpit-section-kicker { font-size:12px; }
html.tx .cockpit-stat-value, html.tx .milestone-count, html.tx .readiness-ring span { font-family:var(--x-display); font-weight:var(--x-display-weight); }
html.tx .milestone-count span { font-family:var(--x-font); }
html.tx .btn, html.tx .price-btn, html.tx .social-btn { border-radius:var(--aq-r-pill, 999px); }
html.tx .btn-primary { background:var(--x-accent); color:var(--x-on-accent); box-shadow:none; }
html.tx .btn-primary:hover { background:var(--x-accent-hover); box-shadow:var(--x-shadow); }
html.tx .btn-outline { background:var(--x-surface); color:var(--x-ink); border-color:var(--x-line-2); }
html.tx .btn-outline:hover { color:var(--x-accent-text); border-color:var(--x-accent); }
html.tx :focus-visible { outline-color:var(--x-accent) !important; }

/* ── Landing ── */
html.tx #view-landing { background:var(--x-bg); color:var(--x-ink); }
html.tx #view-landing::before { background:var(--x-bg); }
html.tx #view-landing .lp-nav, html.tx #view-landing .lp-nav.solid { background:var(--x-nav-bg); border-bottom:1px solid var(--x-line); }
html.tx #view-landing .lp-logo-name, html.tx #view-landing .lp-nav.solid .lp-logo-name { color:var(--x-ink); }
html.tx .lp-logo-mark, html.tx .sb-logo-mark { background:var(--x-accent) !important; }
html.tx .lp-logo-mark svg path, html.tx .lp-logo-mark svg circle, html.tx .sb-logo-mark svg path { stroke:var(--x-on-accent); }
html.tx #view-landing .lp-nav-link, html.tx #view-landing .lp-nav.solid .lp-nav-link { color:var(--x-ink-2); }
html.tx #view-landing .lp-nav-link:hover { color:var(--x-accent-text); background:var(--x-accent-soft); }
html.tx #view-landing .lp-nav .btn-outline { color:var(--x-ink); background:transparent; border-color:var(--x-line-2); }
html.tx #view-landing .feature-nav { background:var(--x-nav-bg); border-bottom-color:var(--x-line); box-shadow:none; }
html.tx #view-landing .feat-nav-btn { color:var(--x-ink-2); background:var(--x-surface); border-color:var(--x-line); }
html.tx #view-landing .feat-nav-btn:hover { color:var(--x-accent-text); background:var(--x-accent-soft); border-color:var(--x-accent); transform:none; }
html.tx #view-landing .lp-hero { background:var(--x-bg); }
html.tx #view-landing .lp-hero-bg { background:var(--x-hero-overlay), var(--x-hero-img) center bottom/cover no-repeat; }
html.tx #view-landing .lp-hero-bg::after { content:""; position:absolute; inset:auto 0 0 0; height:90px; background:linear-gradient(180deg, transparent, var(--x-bg)); }
html.tx #view-landing .lp-hero-grid, html.tx #view-landing .lp-hero-glow { display:none; }
html.tx #view-landing .hero-eyebrow { color:var(--x-accent-text); background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow); }
html.tx #view-landing .hero-dot { background:var(--x-hot); }
html.tx #view-landing .lp-hero h1 { color:var(--x-hero-ink); line-height:1.08; }
html.tx #view-landing .lp-hero h1 .accent { color:var(--x-accent-text); }
html.tx #view-landing .lp-hero p { color:var(--x-hero-ink-2); }
html.tx #view-landing .lp-hero .btn-outline { color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line-2); backdrop-filter:none; }
html.tx #view-landing .stats-bar { background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow-lg); }
html.tx #view-landing .stat-item { border-color:var(--x-line); }
html.tx #view-landing .stat-num { color:var(--x-ink); font-family:var(--x-display); font-weight:var(--x-display-weight); font-size:34px; }
html.tx #view-landing .stat-item:last-child .stat-num { color:var(--x-hot-text); }
html.tx #view-landing .stat-lbl { color:var(--x-ink-3); }
html.tx #view-landing .lp-section { color:var(--x-ink); }
html.tx #view-landing .section-label, html.tx #view-landing .lp-section .section-label { color:var(--x-accent-text); }
html.tx #view-landing .section-label::before { background:var(--x-hot); }
html.tx #view-landing .section-h2 { color:var(--x-ink); }
html.tx #view-landing .section-sub { color:var(--x-ink-2); }
html.tx #view-landing .value-card { color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow); }
html.tx #view-landing .value-card:hover { border-color:var(--x-accent); box-shadow:var(--x-shadow-lg); }
html.tx #view-landing .val-icon { color:var(--x-accent-text); background:var(--x-accent-soft); }
html.tx #view-landing .val-title { color:var(--x-ink); }
html.tx #view-landing .val-desc { color:var(--x-ink-2); }
html.tx #view-landing main > div:has(> #sect-coaches) { background:var(--x-bg-alt) !important; border-color:var(--x-line) !important; }
html.tx #view-landing .preview-item { background:var(--x-surface) !important; border-color:var(--x-line) !important; box-shadow:var(--x-shadow); }
html.tx #view-landing .preview-item-title { color:var(--x-ink); }
html.tx #view-landing .preview-item-desc { color:var(--x-ink-2) !important; }
html.tx #view-landing .preview-icon { color:var(--x-accent-text); background:var(--x-accent-soft); }
html.tx #view-landing .product-screen { background:var(--x-surface); border:1px solid var(--x-line); box-shadow:var(--x-shadow-lg); }
html.tx #view-landing .ps-bar { background:var(--x-surface-2); }
html.tx #view-landing .ps-section { background:var(--x-surface-2); }
html.tx #view-landing .ps-label { color:var(--x-ink-3); }
html.tx #view-landing .ps-name { color:var(--x-ink); }
html.tx #view-landing .ps-val.good { color:var(--x-good); }
html.tx #view-landing .ps-val.warn { color:var(--x-warn); }
html.tx #view-landing .ps-val.muted { color:var(--x-ink-3); }
html.tx #view-landing .visual-feature, html.tx #view-landing .poolside-feature { background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow); }
html.tx #view-landing .visual-feature img { background:var(--x-surface-2); object-fit:cover; object-position:left top; border-bottom:1px solid var(--x-line); }
html.tx #view-landing .visual-feature h3, html.tx #view-landing .poolside-feature-copy h3 { color:var(--x-ink); }
html.tx #view-landing .visual-feature p, html.tx #view-landing .poolside-feature-copy p { color:var(--x-ink-2); }
html.tx #view-landing .visual-feature-kicker { color:var(--x-accent-text); }
html.tx #view-landing .poolside-feature img { object-fit:cover; object-position:left top; }
/* Sign-in band stays dark in every theme for contrast */
html.tx #view-landing .auth-section { background:var(--x-dark-band); border-color:transparent; }
html.tx #view-landing .auth-text .section-label { color:var(--x-dark-band-ink-2); }
html.tx #view-landing .auth-text .section-h2 { color:var(--x-dark-band-ink); }
html.tx #view-landing .auth-text .section-sub, html.tx #view-landing .auth-text .reveal > div { color:var(--x-dark-band-ink-2) !important; }
html.tx #view-landing .auth-box { background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow-lg); }
html.tx #view-landing .auth-title { color:var(--x-ink); }
html.tx #view-landing .auth-sub, html.tx #view-landing .auth-note, html.tx #view-landing .auth-divider span { color:var(--x-ink-3); }
html.tx #view-landing .auth-note a { color:var(--x-accent-text); }
html.tx #view-landing .auth-divider::before, html.tx #view-landing .auth-divider::after { background:var(--x-line); }
html.tx #view-landing .auth-email-input, html.tx #view-landing .cta-inp { color:var(--x-ink); background:var(--x-surface-2); border-color:var(--x-line-2); }
html.tx #view-landing .auth-email-input::placeholder, html.tx #view-landing .cta-inp::placeholder { color:var(--x-ink-3); }
html.tx .social-btn.apple { background:#000; color:#fff; }
html.tx[data-theme="pro"] .social-btn.apple { background:#fff; color:#000; }
html.tx #view-landing .pricing-wrap { background:var(--x-bg); border-color:var(--x-line); }
html.tx #view-landing .price-card { color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow); }
html.tx #view-landing .price-card.featured { background:var(--x-surface); border:2px solid var(--x-accent); box-shadow:var(--x-shadow-lg); }
html.tx #view-landing .price-tier { color:var(--x-accent-text); }
html.tx #view-landing .price-amount, html.tx #view-landing .price-card.featured .price-amount { color:var(--x-ink); }
html.tx #view-landing .price-period, html.tx #view-landing .price-feat,
html.tx #view-landing .price-card.featured .price-period, html.tx #view-landing .price-card.featured .price-feat { color:var(--x-ink-2); }
html.tx #view-landing .price-divider, html.tx #view-landing .price-card.featured .price-divider { background:var(--x-line); }
html.tx #view-landing .pck, html.tx #view-landing .price-card.featured .pck { color:var(--x-good); }
html.tx #view-landing .price-badge { color:var(--x-on-accent); background:var(--x-accent); }
html.tx #view-landing .price-btn { background:var(--x-surface); color:var(--x-ink); border-color:var(--x-line-2); }
html.tx #view-landing .price-card.featured .price-btn { background:var(--x-accent); color:var(--x-on-accent); box-shadow:none; }
html.tx #view-landing .lp-cta { background:var(--x-dark-band); border-color:transparent; }
html.tx #view-landing .lp-cta h2 { color:var(--x-dark-band-ink); }
html.tx #view-landing .lp-cta p { color:var(--x-dark-band-ink-2); }
html.tx #view-landing .lp-cta .cta-inp { background:rgba(255,255,255,.08); color:var(--x-dark-band-ink); border-color:rgba(255,255,255,.22); }
html.tx #view-landing .lp-cta .cta-inp::placeholder { color:var(--x-dark-band-ink-2); }
html.tx #view-landing .lp-footer { background:var(--x-bg); border-color:var(--x-line); }
html.tx #view-landing .footer-logo { color:var(--x-ink); }
html.tx #view-landing .footer-copy { color:var(--x-ink-3); }
html.tx #view-landing .footer-links a { color:var(--x-accent-text); }
/* In the light themes the dark band uses a light-on-accent button */
html.tx[data-theme="classic"] #view-landing .lp-cta .btn-primary { background:var(--x-hot); color:#13213A; }

/* ── Auth & member pages ── */
html.tx #view-auth > div { background:var(--x-dark-band) !important; }
html.tx #view-auth .auth-box { background:var(--x-surface); border:1px solid var(--x-line); box-shadow:var(--x-shadow-lg); }
html.tx #view-auth .auth-note, html.tx #view-auth .auth-divider span { color:var(--x-ink-3) !important; }
html.tx #view-auth .auth-divider::before, html.tx #view-auth .auth-divider::after { background:var(--x-line); }
html.tx #view-auth .auth-email-input { color:var(--x-ink); background:var(--x-surface-2); border-color:var(--x-line-2); }
html.tx #view-auth .auth-email-input::placeholder { color:var(--x-ink-3); }
html.tx #view-auth #authSubtitle { color:var(--x-dark-band-ink-2) !important; }
html.tx #view-auth .btn-ghost { color:var(--x-dark-band-ink-2) !important; }
html.tx .auth-role-choice { color:var(--x-ink-2); background:var(--x-surface-2); border-color:var(--x-line); }
html.tx .auth-role-choice[aria-pressed="true"] { color:var(--x-on-accent); background:var(--x-accent); border-color:var(--x-accent); }
html.tx .auth-demo-link { color:var(--x-accent-text); }
html.tx .member-page { background:var(--x-bg); }
html.tx .member-card { background:var(--x-surface); border-color:var(--x-line); }
html.tx .member-list-item { background:var(--x-surface-2); }

/* ── Dashboard shell ── */
html.tx #view-dashboard .app { background:var(--x-bg); color:var(--x-ink); }
html.tx #view-dashboard .sidebar { background:var(--x-side-bg); border-inline-end:1px solid var(--x-side-line); border-right-color:var(--x-side-line); }
html.tx #view-dashboard .sb-logo, html.tx #view-dashboard .sb-footer { border-color:var(--x-side-line); }
html.tx #view-dashboard .sb-logo-name { color:var(--x-side-ink); }
html.tx #view-dashboard .sb-section { color:var(--x-side-ink-2); opacity:.85; }
html.tx #view-dashboard .sb-item { color:var(--x-side-ink-2); }
html.tx #view-dashboard .sb-item:hover { color:var(--x-side-ink); background:var(--x-side-hover); }
html.tx #view-dashboard .sb-item.active { color:var(--x-side-active-ink); background:var(--x-side-active-bg); box-shadow:none; }
html.tx #view-dashboard .sb-item .sb-badge { color:inherit; background:color-mix(in srgb, currentColor 14%, transparent); }
html.tx #view-dashboard .sb-avatar { background:var(--x-accent); color:var(--x-on-accent); }
html.tx[data-theme="classic"] #view-dashboard .sb-avatar { background:var(--x-hot); color:#13213A; }
html.tx[data-theme="classic"] #view-dashboard .sb-logo-mark { background:var(--x-hot) !important; }
html.tx #view-dashboard .sb-logo-club, html.tx #view-dashboard .sb-user-club { color:var(--x-side-ink); }
html.tx #view-dashboard .sb-user-name { color:var(--x-side-ink); }
html.tx #view-dashboard .sb-user-plan { color:var(--x-side-ink-2); }
html.tx #view-dashboard .topbar { background:var(--x-nav-bg); border-bottom-color:var(--x-line); }
html.tx #view-dashboard .mobile-page-nav select { background:var(--x-surface); color:var(--x-ink); border-color:var(--x-line-2); }
html.tx #view-dashboard .card, html.tx #view-dashboard .stat-card, html.tx #view-dashboard .file-row, html.tx #view-dashboard .tc-box {
  color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow);
}
html.tx #view-dashboard .card:hover, html.tx #view-dashboard .stat-card:hover { border-color:var(--x-line-2); box-shadow:var(--x-shadow); }
html.tx #view-dashboard .card-header { border-bottom-color:var(--x-line); }
html.tx #view-dashboard .card-title { color:var(--x-ink); }
html.tx #view-dashboard .card-body { color:var(--x-ink-2); }
html.tx #view-dashboard .data-table th { color:var(--x-ink-3); border-color:var(--x-line); }
html.tx #view-dashboard .data-table td { color:var(--x-ink); border-color:var(--x-line); }
html.tx #view-dashboard .data-table tbody tr:hover td { background:var(--x-surface-2); }
html.tx #view-dashboard .form-input, html.tx #view-dashboard .form-select, html.tx .modal .form-input, html.tx .modal .form-select {
  color:var(--x-ink); background:var(--x-surface-2); border-color:var(--x-line-2);
}
html.tx #view-dashboard .form-input:focus, html.tx #view-dashboard .form-select:focus { background:var(--x-surface); border-color:var(--x-accent); }
html.tx #view-dashboard .btn-outline { color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line-2); }
html.tx #view-dashboard .btn-outline:hover { color:var(--x-accent-text); border-color:var(--x-accent); }
html.tx #view-dashboard .btn-ghost { color:var(--x-ink-2); }
html.tx #view-dashboard .btn-ghost:hover { color:var(--x-ink); background:var(--x-surface-2); }
html.tx #view-dashboard .empty-title { color:var(--x-ink); }
html.tx #view-dashboard .pill-gray { color:var(--x-ink-2); background:var(--x-surface-2); }
html.tx #view-dashboard .stat-val { color:var(--x-ink); }
html.tx #view-dashboard .stat-lbl { color:var(--x-ink-3); }
html.tx #view-dashboard .phase-chip { color:var(--x-ink); background:var(--x-surface-2) !important; border-color:var(--x-line); }
html.tx #view-dashboard .phase-chip.current { background:var(--x-accent-soft) !important; border-color:var(--x-accent); box-shadow:none; }
html.tx #view-dashboard .phase-chip-lbl, html.tx #view-dashboard .phase-chip-weeks { color:var(--x-ink-2); }
html.tx #view-dashboard .vol-slider { background:var(--x-line); }
html.tx #view-dashboard .chart-svg text { fill:var(--x-ink-2); }
html.tx #view-dashboard .chart-svg line[stroke="#E4E9F0"] { stroke:var(--x-chart-grid); }
html.tx #view-dashboard .season-week-nav { color:var(--x-ink); background:var(--x-surface); border-color:var(--x-line); }
html.tx #view-dashboard .season-week-subtitle, html.tx #view-dashboard .season-plan-note { color:var(--x-ink-3); }
html.tx #view-dashboard .season-day-row.selected td { background:var(--x-accent-soft); }
html.tx #view-dashboard .season-session-block { border-color:var(--x-line); }
html.tx #view-dashboard .season-session-block strong { color:var(--x-ink); }
html.tx #assistant-read-only-note { background:var(--x-warn-soft) !important; color:var(--x-ink) !important; }
html.tx .today-session { background:var(--x-dark-band); }
html.tx[data-theme="pro"] .today-session { background:linear-gradient(135deg,#1E232A,#14181D); border:1px solid var(--x-line-2); }
html.tx .adapt-btn { background:var(--x-accent); color:var(--x-on-accent); box-shadow:none; }

/* ── Overview "cockpit" ── */
html.tx .cockpit-kicker, html.tx .cockpit-section-kicker { color:var(--x-accent-text); }
html.tx .cockpit-heading h1 { color:var(--x-ink); font-size:clamp(26px,3.2vw,40px); }
html.tx .cockpit-heading p { color:var(--x-ink-3); font-size:13px; }
html.tx .cockpit-actions .btn { font-size:12px; }
html.tx .cockpit-status { color:var(--x-good); background:var(--x-good-soft); border-color:transparent; font-size:12px; }
html.tx .cockpit-status::before { background:var(--x-good); box-shadow:none; }
html.tx .cockpit-stat { background:var(--x-surface); border-color:var(--x-line); box-shadow:var(--x-shadow); border-radius:var(--aq-r-lg, 16px); }
html.tx .cockpit-stat::after { display:none; }
html.tx .cockpit-stat-label { color:var(--x-ink-3); font-size:12.5px; letter-spacing:.06em; }
html.tx .cockpit-stat-icon { color:var(--x-accent-text); }
html.tx .cockpit-stat-count { color:var(--x-good); font-size:12px; }
html.tx .cockpit-stat-value { color:var(--x-ink); font-size:clamp(26px,2.6vw,36px); }
html.tx .cockpit-stat-note { color:var(--x-ink-3); font-size:12px; }
html.tx .cockpit-stat-note strong { color:var(--x-good); }
html.tx .cockpit-section-title { color:var(--x-ink); font-size:14px; }
html.tx .season-map-phase { color:var(--x-ink-2); background:var(--x-surface-2); border-color:var(--x-line); font-size:12px; }
html.tx .season-map-phase.active { color:var(--x-on-accent); background:var(--x-accent); border-color:var(--x-accent); }
html.tx .season-chart { background:var(--x-chart-bg); border-color:var(--x-line); }
html.tx .season-chart stop { stop-color:var(--x-chart-a); }
html.tx .season-chart g[stroke] { stroke:var(--x-chart-grid); }
html.tx .season-chart path[stroke="#4ad3e2"] { stroke:var(--x-chart-a); }
html.tx .season-chart path[stroke="#4089ed"] { stroke:var(--x-chart-b); }
html.tx .season-chart g[fill] { fill:var(--x-ink-3); }
html.tx .season-chart circle { fill:var(--x-hot); stroke:var(--x-chart-bg); }
html.tx .season-map-note { color:var(--x-ink-3); font-size:12.5px; }
html.tx .roster-table { font-size:13px; }
html.tx .roster-table th { color:var(--x-ink-3); border-color:var(--x-line); font-size:12px; }
html.tx .roster-table td { color:var(--x-ink); border-color:var(--x-line); }
html.tx .roster-avatar { color:var(--x-accent-text); background:var(--x-accent-soft); border-color:transparent; font-size:12px; width:28px; height:28px; }
html.tx .roster-muted, html.tx .cockpit-empty, html.tx .cockpit-trial-count { color:var(--x-ink-3); font-size:12px; }
html.tx .cockpit-trial-count { border-color:var(--x-line); }
html.tx .cockpit-trial-count strong { color:var(--x-ink); }
html.tx .milestone-card { background:var(--x-dark-band); border-color:transparent; box-shadow:var(--x-shadow); }
html.tx[data-theme="pro"] .milestone-card { background:var(--x-accent); }
html.tx .milestone-card .cockpit-section-kicker { color:var(--x-dark-band-ink-2); }
html.tx .milestone-title { color:var(--x-dark-band-ink); font-size:18px; }
html.tx .milestone-sub { color:var(--x-dark-band-ink-2); font-size:12px; }
html.tx .milestone-count { color:var(--x-dark-band-ink); font-size:42px; }
html.tx .milestone-count span { color:var(--x-dark-band-ink-2); font-size:13px; }
html.tx[data-theme="daylight"] .milestone-count { color:#8DB4FF; }
html.tx[data-theme="classic"] .milestone-count { color:#E2BE6E; }
html.tx[data-theme="pro"] .milestone-card .cockpit-section-kicker,
html.tx[data-theme="pro"] .milestone-title, html.tx[data-theme="pro"] .milestone-sub,
html.tx[data-theme="pro"] .milestone-count, html.tx[data-theme="pro"] .milestone-count span { color:#0D0F12; }
html.tx .weekly-session { border-color:var(--x-line); }
html.tx .weekly-session-title { color:var(--x-ink); font-size:13px; }
html.tx .weekly-session-meta { color:var(--x-ink-3); font-size:12.5px; }
html.tx .readiness-ring { background:conic-gradient(var(--x-good) var(--readiness-angle,0deg), var(--x-line) 0); }
html.tx .readiness-ring::before { background:var(--x-surface); }
html.tx .readiness-ring span { color:var(--x-ink); }
html.tx .readiness-copy { color:var(--x-ink-3); font-size:12px; }
html.tx .readiness-copy strong { color:var(--x-ink); font-size:13px; }
html.tx .image-insight { background:var(--x-surface); border-color:var(--x-line); }
html.tx .image-insight img { opacity:1; object-fit:cover; object-position:left top; }
html.tx .image-insight-caption { color:var(--x-ink-3); font-size:12.5px; }
html.tx .image-insight-caption strong { color:var(--x-ink); font-size:12px; }

/* ── Modals, chat, owner, toasts ── */
html.tx .modal { background:var(--x-surface); color:var(--x-ink); border:1px solid var(--x-line); }
html.tx .modal-hd, html.tx .modal-ft { border-color:var(--x-line); }
html.tx .modal-close:hover { background:var(--x-surface-2); color:var(--x-ink); }
html.tx .chat-message.user { background:var(--x-accent); color:var(--x-on-accent); }
html.tx .chat-message.assistant { background:var(--x-surface-2); color:var(--x-ink); border-color:var(--x-line); }
html.tx .owner-stat { background:var(--x-surface); border-color:var(--x-line); }
html.tx .toast { background:var(--x-ink); color:var(--x-bg); }
html.tx .toast.success { background:var(--x-good); color:#fff; }
html.tx .toast.error { background:var(--x-bad); color:#fff; }
html.tx .upload-zone { border-color:var(--x-line-2); }
html.tx .theme-option[aria-pressed="true"] { border-color:var(--x-accent); }

/* Inline colours written by older markup/scripts */
html.tx #view-dashboard [style*="color:#0A1628"], html.tx .modal [style*="color:#0A1628"] { color:var(--x-ink) !important; }
html.tx #view-dashboard [style*="background:#F8FAFC"], html.tx .modal [style*="background:#F8FAFC"],
html.tx #view-dashboard [style*="background:#F7F9FC"], html.tx .modal [style*="background:#F7F9FC"],
html.tx #view-dashboard [style*="background:#F1F5F9"], html.tx .modal [style*="background:#F1F5F9"],
html.tx #view-dashboard [style*="background:#EFF6FF"], html.tx .modal [style*="background:#EFF6FF"] { background:var(--x-surface-2) !important; }

/* Arabic: the display faces fall back to Arabic-capable fonts */
html.tx[dir="rtl"] { --x-display-spacing:0; --x-display-transform:none; }
html.tx[dir="rtl"] .section-label, html.tx[dir="rtl"] .cockpit-kicker, html.tx[dir="rtl"] .cockpit-stat-label { letter-spacing:0; }

/* Classic: lining figures so numbers line up in data views */
html.tx[data-theme="classic"] .cockpit-stat-value, html.tx[data-theme="classic"] .milestone-count,
html.tx[data-theme="classic"] .readiness-ring span, html.tx[data-theme="classic"] .price-amount,
html.tx[data-theme="classic"] .stat-num, html.tx[data-theme="classic"] h1, html.tx[data-theme="classic"] h2,
html.tx[data-theme="classic"] .milestone-title { font-variant-numeric:lining-nums; font-feature-settings:"lnum" 1; }

/* Let form fields shrink inside two-column grids (wider fonts otherwise overflow the modal) */
.form-grid > *, .form-group { min-width:0; }
.form-grid .form-input, .form-grid .form-select { width:100%; min-width:0; max-width:100%; }

/* ── Simplified homepage (all themes) ── */
#view-landing .lp-hero { min-height:660px; padding-top:140px; padding-bottom:120px; }
#view-landing .lp-hero h1 { max-width:820px; }
#view-landing .lp-hero p { max-width:520px; }
#view-landing .product-shot { padding:0; overflow:hidden; }
#view-landing .product-shot img { display:block; width:100%; height:auto; aspect-ratio:2.1; object-fit:cover; object-position:left top; }
html.tx #view-landing .lp-hero h1 { font-size:clamp(36px,5.6vw,66px); }
html.tx #view-landing .lp-hero p { font-size:clamp(16px,1.6vw,19px); }
html.tx #view-landing .product-shot .ps-bar { border-bottom:1px solid var(--x-line); }
@media(max-width:768px) {
  #view-landing .lp-hero { min-height:540px; padding:120px 20px 80px; }
}
:root[data-theme="daylight"] { --x-hero-overlay-m:linear-gradient(180deg, rgba(244,247,251,.25) 0%, rgba(244,247,251,.95) 16%, rgba(244,247,251,.95) 84%, rgba(244,247,251,.4) 100%); }
:root[data-theme="pro"] { --x-hero-overlay-m:linear-gradient(180deg, rgba(13,15,18,.3) 0%, rgba(13,15,18,.94) 16%, rgba(13,15,18,.94) 84%, rgba(13,15,18,.5) 100%); }
:root[data-theme="classic"] { --x-hero-overlay-m:linear-gradient(180deg, rgba(247,244,238,.3) 0%, rgba(247,244,238,.95) 16%, rgba(247,244,238,.95) 84%, rgba(247,244,238,.45) 100%); }
@media(max-width:768px) {
  html.tx #view-landing .lp-hero-bg { background:var(--x-hero-overlay-m), var(--x-hero-img) center/cover no-repeat; }
}
@media(max-width:480px) {
  .lp-nav-right { gap:6px; }
  .lp-nav-right .btn { padding:7px 10px; font-size:12px; white-space:nowrap; }
  .lp-logo-name { font-size:14px; letter-spacing:1px; }
}

/* ═══════════════════════════════════════
   PHOTO BACKGROUNDS (alternative themes)
   Homepage sections and every app page get one of the academy's images.
═══════════════════════════════════════ */
:root[data-theme="daylight"] { --x-photo-shade:rgba(10,26,51,.5); --x-photo-shade-2:rgba(10,26,51,.7); --x-page-veil:rgba(244,247,251,.72); }
:root[data-theme="pro"]      { --x-photo-shade:rgba(13,15,18,.74);  --x-photo-shade-2:rgba(13,15,18,.88);  --x-page-veil:rgba(13,15,18,.78); }
:root[data-theme="classic"]  { --x-photo-shade:rgba(19,33,58,.74);  --x-photo-shade-2:rgba(19,33,58,.88);  --x-page-veil:rgba(247,244,238,.74); }

/* Homepage: photo bands with readable light headings */
html.tx #view-landing #sect-features,
html.tx #view-landing .coach-band,
html.tx #view-landing .pricing-wrap,
html.tx #view-landing .lp-cta { background-size:cover !important; background-position:center !important; background-attachment:fixed; border-color:transparent !important; }
html.tx #view-landing #sect-features { background:linear-gradient(180deg, var(--x-photo-shade), var(--x-photo-shade-2)), url("/images/bg/bg-problem.jpg") center/cover; }
html.tx #view-landing .coach-band { background:linear-gradient(180deg, var(--x-photo-shade-2), var(--x-photo-shade)), url("/images/bg/bg-coach.jpg") center/cover !important; }
html.tx #view-landing .pricing-wrap { background:linear-gradient(180deg, var(--x-photo-shade), var(--x-photo-shade-2)), url("/images/bg/bg-pricing.jpg") center/cover; }
html.tx #view-landing .lp-cta { background:linear-gradient(180deg, var(--x-photo-shade-2), var(--x-photo-shade-2)), url("/images/bg/bg-cta.jpg") center/cover; }
html.tx #view-landing #sect-features .section-label, html.tx #view-landing .coach-band .section-label, html.tx #view-landing .pricing-wrap .section-label { color:#9CC0FF; }
html.tx[data-theme="pro"] #view-landing #sect-features .section-label, html.tx[data-theme="pro"] #view-landing .coach-band .section-label, html.tx[data-theme="pro"] #view-landing .pricing-wrap .section-label { color:var(--x-accent); }
html.tx[data-theme="classic"] #view-landing #sect-features .section-label, html.tx[data-theme="classic"] #view-landing .coach-band .section-label, html.tx[data-theme="classic"] #view-landing .pricing-wrap .section-label { color:#E2BE6E; }
html.tx #view-landing #sect-features .section-h2, html.tx #view-landing .coach-band .section-h2, html.tx #view-landing .pricing-wrap .section-h2 { color:#FFFFFF; }
html.tx #view-landing #sect-features .section-sub, html.tx #view-landing .coach-band .section-sub, html.tx #view-landing .pricing-wrap .section-sub { color:#D4DEEC; }
html.tx #view-landing #sect-features .value-card, html.tx #view-landing .preview-item, html.tx #view-landing .price-card { box-shadow:0 16px 40px rgba(0,0,0,.25); }
@media (max-width:768px), (hover:none) {
  html.tx #view-landing #sect-features, html.tx #view-landing .coach-band, html.tx #view-landing .pricing-wrap, html.tx #view-landing .lp-cta { background-attachment:scroll; }
}

/* App: every page shows an image behind the content */
html.tx #view-dashboard .app-main { position:relative; isolation:isolate; background:var(--x-bg); }
html.tx #view-dashboard .app-main::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(var(--x-page-veil), var(--x-page-veil)), var(--x-page-img, url("/images/bg/app-overview.jpg")) center/cover no-repeat;
}
html.tx #view-dashboard .content { background:transparent; }
html.tx #view-dashboard .app-main[data-page="pg-overview"]       { --x-page-img:url("/images/bg/app-overview.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-season"]         { --x-page-img:url("/images/bg/app-season.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-athletes"],
html.tx #view-dashboard .app-main[data-page="pg-athlete-detail"] { --x-page-img:url("/images/bg/app-athletes.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-trials"]         { --x-page-img:url("/images/bg/app-trials.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-meets"]          { --x-page-img:url("/images/bg/app-meets.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-athlete-view"]   { --x-page-img:url("/images/bg/app-athletes.jpg"); }
html.tx #view-dashboard .app-main[data-page="pg-files"],
html.tx #view-dashboard .app-main[data-page="pg-settings"],
html.tx #view-dashboard .app-main[data-page="pg-coach-chat"],
html.tx #view-dashboard .app-main[data-page="pg-platform-owner"] { --x-page-img:url("/images/bg/app-season.jpg"); }
/* Text placed straight on the page (not in a card) keeps strong contrast */
html.tx #view-dashboard .cockpit-heading h1, html.tx #view-dashboard .pg > div[style*="font-size:22px"] { text-shadow:0 1px 0 color-mix(in srgb, var(--x-bg) 60%, transparent); }
html.tx #view-landing #sect-features { max-width:none; padding-left:max(48px, calc((100% - 1100px)/2)); padding-right:max(48px, calc((100% - 1100px)/2)); }
html.tx #view-landing main > div.coach-band:has(> #sect-coaches) {
  background:linear-gradient(180deg, var(--x-photo-shade-2), var(--x-photo-shade)), url("/images/bg/bg-coach.jpg") center/cover !important;
  border-color:transparent !important;
}
@media(max-width:768px) { html.tx #view-landing #sect-features { padding-left:20px; padding-right:20px; } }
html.tx #view-landing #sect-features .section-h2, html.tx #view-landing .coach-band .section-h2, html.tx #view-landing .pricing-wrap .section-h2, html.tx #view-landing .lp-cta h2,
html.tx #view-landing #sect-features .section-sub, html.tx #view-landing .coach-band .section-sub, html.tx #view-landing .pricing-wrap .section-sub, html.tx #view-landing .lp-cta p { text-shadow:0 2px 14px rgba(0,0,0,.45); }
html.tx #view-landing #sect-features .section-sub, html.tx #view-landing .coach-band .section-sub, html.tx #view-landing .pricing-wrap .section-sub, html.tx #view-landing .lp-cta p { color:#EAF1FA; }

/* Hero: the academy's own swimmer photo */
html.tx #view-landing .lp-hero-bg,
html.tx #view-landing .lp-hero-bg { background:linear-gradient(180deg, rgba(10,26,51,.45) 0%, rgba(10,26,51,.55) 55%, rgba(10,26,51,.75) 100%), url("/images/hero-swimmer.jpg") center 40%/cover no-repeat; }
html.tx #view-landing .lp-hero-bg::after { display:none; }
html.tx #view-landing .lp-hero h1 { color:#FFFFFF; text-shadow:0 2px 18px rgba(0,0,0,.35); }
html.tx #view-landing .lp-hero h1 .accent { color:#9CC0FF; }
html.tx[data-theme="pro"] #view-landing .lp-hero h1 .accent { color:var(--x-accent); }
html.tx[data-theme="classic"] #view-landing .lp-hero h1 .accent { color:#E2BE6E; }
html.tx #view-landing .lp-hero p { color:#EAF1FA; text-shadow:0 1px 12px rgba(0,0,0,.4); }
html.tx #view-landing .lp-hero .btn-outline { color:#FFFFFF; background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.55); backdrop-filter:blur(8px); }
html.tx #view-landing .lp-hero .btn-outline:hover { background:rgba(255,255,255,.22); color:#FFFFFF; }
@media(max-width:768px) {
  html.tx #view-landing .lp-hero-bg { background:linear-gradient(180deg, rgba(10,26,51,.55), rgba(10,26,51,.72)), url("/images/hero-swimmer.jpg") center/cover no-repeat; }
}

/* One fixed stage behind the whole landing page: slow-zooming photos (and an optional swimmer video)
   cross-fade into each other while the content scrolls in front of it. */
.lp-stage { position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; background:#0a1a33; }
.lp-slide { position:absolute; inset:0; opacity:0; transition:opacity 1.6s ease; background-size:cover; background-position:center; will-change:opacity; }
.lp-slide.on { opacity:1; }
.lp-slide video { width:100%; height:100%; object-fit:cover; object-position:50% 33%; display:block; }
.lp-slide.kb { animation:lp-zoom 14s ease-out both; }
.lp-slide:not(.on) { animation-play-state:paused; }
/* A light scrim only: the photo and the video stay clear. Text on them carries its own shadow. */
.lp-stage::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(4,12,26,.22) 0%, rgba(4,12,26,.34) 100%); }
:root[data-theme="pro"] .lp-stage::after { background:linear-gradient(180deg, rgba(6,8,12,.24) 0%, rgba(6,8,12,.38) 100%); }
@keyframes lp-zoom { from { transform:scale(1); } to { transform:scale(1.14); } }
@media (prefers-reduced-motion:reduce) { .lp-slide.kb { animation:none; } .lp-slide { transition:none; } }
html.tx #view-landing .lp-hero-bg,
html.tx #view-landing .lp-hero { background:transparent !important; }
html.tx #view-landing #sect-features,
html.tx #view-landing .coach-band,
html.tx #view-landing main > div.coach-band:has(> #sect-coaches),
html.tx #view-landing .pricing-wrap,
html.tx #view-landing .lp-cta { background:transparent !important; }
html.tx #view-landing .value-card, html.tx #view-landing .preview-item, html.tx #view-landing .price-card {
  background:color-mix(in srgb, var(--x-surface) 76%, transparent) !important;
  -webkit-backdrop-filter:blur(12px) saturate(1.1); backdrop-filter:blur(12px) saturate(1.1);
}

/* Coach dashboard section: the three cards and the dashboard picture are the same height and line up. */
@media (min-width:769px) {
  #view-landing .product-split { align-items:stretch; gap:40px; }
  #view-landing .product-split > div:first-child { display:flex; }
  #view-landing .product-split > div:first-child > div { flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:16px; }
  #view-landing .product-split .preview-item { flex:1; align-items:center !important; padding:22px 24px !important; }
  #view-landing .product-shot { display:flex; flex-direction:column; }
  #view-landing .product-shot img { flex:1; min-height:0; height:100%; aspect-ratio:auto; object-fit:cover; object-position:left top; }
}

/* Home page opening screen: the swimmer fills the middle of the screen; the headline, line and buttons
   sit together at the bottom, and a signed-in coach is greeted at the top. */
@media (min-width:769px) {
  #view-landing .lp-hero { justify-content:flex-end; padding-top:clamp(96px, 14vh, 130px); padding-bottom:clamp(40px, 9vh, 84px); }
  #view-landing .lp-hero h1 { font-size:clamp(34px,4.4vw,58px); margin-bottom:12px; }
  #view-landing .lp-hero > p { max-width:820px; margin-bottom:26px; line-height:1.5; }
  #view-landing .lp-hero #lpWelcome { order:-1; margin:0 auto auto; font-size:clamp(24px,2.6vw,34px) !important; text-shadow:0 2px 18px rgba(0,0,0,.45); }
}

/* About Us section sits on the photo like the other bands */
html.tx #view-landing #sect-about .section-label { color:#9CC0FF; }
html.tx[data-theme="pro"] #view-landing #sect-about .section-label { color:var(--x-accent); }
html.tx[data-theme="classic"] #view-landing #sect-about .section-label { color:#E2BE6E; }
html.tx #view-landing #sect-about .section-h2, html.tx #view-landing #sect-about .about-h { color:#FFFFFF; }
html.tx #view-landing #sect-about .section-sub { color:#D4DEEC; }
html.tx #view-landing #sect-about .value-card { box-shadow:0 16px 40px rgba(0,0,0,.25); }
html.tx #view-landing #sect-about { max-width:none; padding-left:max(48px, calc((100% - 1100px)/2)); padding-right:max(48px, calc((100% - 1100px)/2)); }
@media(max-width:768px) { html.tx #view-landing #sect-about { padding-left:20px; padding-right:20px; } }

/* One content width and one left edge for every section on the home page */
#view-landing .lp-section { width:min(1100px, calc(100% - 64px)) !important; max-width:none !important; padding-left:0 !important; padding-right:0 !important; margin-left:auto !important; margin-right:auto !important; }
@media(max-width:768px) { #view-landing .lp-section { width:calc(100% - 40px) !important; } }

/* Photo windows: a screen-height gap with one word, so the photos and the video are seen between the content blocks */
.lp-window { min-height:34vh; display:flex; align-items:flex-end; width:min(1100px, calc(100% - 64px)); margin:0 auto; padding-bottom:36px; pointer-events:none; }
.lp-window-word { font-size:clamp(40px,7vw,96px); font-weight:900; letter-spacing:-2px; line-height:1; color:#fff; text-shadow:0 4px 30px rgba(0,0,0,.45); }
@media(max-width:768px) { .lp-window { min-height:26vh; width:calc(100% - 40px); } }

/* Tighter vertical rhythm: smaller gaps between and inside the sections */
#view-landing .lp-section { padding-top:52px !important; padding-bottom:52px !important; }
#view-landing .value-grid { margin-top:28px; }
#view-landing .product-split { margin-top:28px; }
#view-landing .about-h { margin-top:32px; }
#view-landing .lp-cta { padding-top:64px; padding-bottom:64px; }

/* Landing footer: a compact bar that stays at the bottom of the screen while the page scrolls */
@media (min-width:769px) {
  #view-landing .lp-footer { position:fixed; z-index:300; left:50%; bottom:14px; transform:translateX(-50%); width:max-content; max-width:calc(100% - 120px); padding:9px 22px; border:1px solid rgba(255,255,255,.16); border-radius:26px; background:rgba(8,24,50,.95) !important; backdrop-filter:blur(14px); box-shadow:0 10px 30px rgba(0,0,0,.3); flex-wrap:wrap; justify-content:center; gap:4px 22px; }
  html.tx #view-landing .footer-logo { font-size:12px; color:#EAF5FF; white-space:nowrap; }
  html.tx #view-landing .footer-copy { font-size:12.5px; color:#A8C6E7; white-space:nowrap; }
  html.tx #view-landing .footer-links { gap:14px; white-space:nowrap; }
  html.tx #view-landing .footer-links a { color:#A8D7FF; }
  #landing-content { padding-bottom:72px; }
}

/* About headings readable in every theme (all photo bands use light text) */
#view-landing #sect-about .about-h { color:#FFFFFF; text-shadow:0 2px 14px rgba(0,0,0,.4); }
#view-landing .lp-hero-bg, #view-landing .lp-hero-grid, #view-landing .lp-hero-glow { background:transparent !important; background-image:none !important; }
#view-landing .lp-hero { background:transparent !important; }
html:not(.tx) #view-landing .price-amount, html:not(.tx) #view-landing .price-amount sup { color:#FFFFFF; }
html:not(.tx) #view-landing #sect-about .section-sub { color:#D4DEEC; }

/* Glass: the top bars and the cards are semi-transparent, so the page photo shows through. A blur keeps the
   text readable and keeps whatever scrolls underneath from showing sharply. */
html.tx #view-landing .lp-nav, html.tx #view-landing .lp-nav.solid, html.tx #view-dashboard .topbar {
  background:color-mix(in srgb, var(--x-nav-bg) 60%, transparent);
  -webkit-backdrop-filter:blur(18px) saturate(1.15); backdrop-filter:blur(18px) saturate(1.15);
}
html.tx #view-dashboard .card, html.tx #view-dashboard .stat-card, html.tx #view-dashboard .file-row, html.tx #view-dashboard .tc-box,
html.tx #view-dashboard .cockpit-stat, html.tx #view-dashboard .cockpit-card, html.tx #view-dashboard .season-plan-note-card {
  background:color-mix(in srgb, var(--x-surface) 62%, transparent);
  -webkit-backdrop-filter:blur(14px) saturate(1.1); backdrop-filter:blur(14px) saturate(1.1);
  border-color:color-mix(in srgb, var(--x-line) 75%, transparent);
}
html.tx #view-dashboard .card-header { background:transparent; }
@supports not (backdrop-filter:blur(1px)) {
  html.tx #view-landing .lp-nav, html.tx #view-dashboard .topbar { background:var(--x-nav-bg); }
  html.tx #view-dashboard .card, html.tx #view-dashboard .cockpit-stat, html.tx #view-dashboard .cockpit-card { background:var(--x-surface); }
}
html.tx #view-dashboard .season-chart { background:color-mix(in srgb, var(--x-surface) 38%, transparent); }
html.tx #view-dashboard .season-map-phase { background:color-mix(in srgb, var(--x-surface-2) 55%, transparent); }

/* Text that sits straight on the photo or video stays readable with a soft shadow instead of a heavy dark layer. */
#view-landing .lp-hero h1, #view-landing .lp-hero > p, #view-landing .lp-section .section-h2, #view-landing .lp-section .section-sub,
#view-landing .lp-section .section-label, #view-landing .about-h, #view-landing .lp-cta h2, #view-landing .lp-cta p, #view-landing .lp-window-word {
  text-shadow:0 2px 6px rgba(0,0,0,.55), 0 4px 26px rgba(0,0,0,.45);
}

/* ── Dark, when the device is set to dark (the owner, 2026-11-16) ──
   The dark colours of this theme with AQUASTROKE blue in place of lime, and the light theme's own type, so the app
   looks the same in the dark and the logo keeps its colours. */
:root[data-theme="pro"] {
  /* Buttons a deeper blue so white text on them reads (5.2:1); blue text on the dark a lighter blue (8:1). */
  --x-accent:#2563EB; --x-accent-hover:#1D4ED8; --x-on-accent:#FFFFFF; --x-accent-soft:rgba(59,130,246,.18); --x-accent-text:#8AB8FF;
  --x-side-bg:#0A1628; --x-side-line:#16263D; --x-side-hover:#10294D; --x-side-active-bg:#0057FF; --x-side-active-ink:#FFFFFF;
  --x-chart-a:#3B82F6; --x-chart-b:#22D3EE;
  --x-font:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  --x-display:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif; --x-display-weight:800; --x-display-spacing:-.01em; --x-display-transform:none;
  --x-label-font:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
}
html.tx[data-theme="pro"] .milestone-card .cockpit-section-kicker,
html.tx[data-theme="pro"] .milestone-title, html.tx[data-theme="pro"] .milestone-sub,
html.tx[data-theme="pro"] .milestone-count, html.tx[data-theme="pro"] .milestone-count span,
html:root[data-theme="pro"] #view-dashboard .milestone-card .cockpit-section-kicker { color:#FFFFFF; }
