/* ================================================================
   ONOGolf — editorial landing page
   System: Playfair Display (display) + Inter (UI)
   Palette: olive / amber / orange on sand/cream, with dark mode
   ================================================================ */

:root {
  /* Neutrals */
  --ink: 26 26 24;
  --ink-2: 58 58 52;
  --muted: 107 107 100;
  --muted-2: 154 154 144;
  --line: 224 223 216;
  --line-2: 212 212 204;
  --cream: 250 250 248;
  --sand: 246 245 240;
  --sand-2: 238 241 232;
  --paper: 255 255 255;

  /* Brand */
  --olive: 92 107 58;
  --olive-deep: 42 48 32;
  --olive-soft: 170 175 152;
  --gold: 191 154 56;
  --orange: 196 112 58;
  --wine: 160 64 64;
  --sea: 58 107 122;
  --navy: 74 94 138;

  /* Accent (tweakable) */
  --accent: var(--olive);
  --accent-deep: var(--olive-deep);

  /* Semantic */
  --bg: var(--cream);
  --bg-2: var(--sand);
  --bg-3: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --fg-faint: var(--muted-2);
  --border: var(--line);
  --border-2: var(--line-2);

  /* Type scale */
  --font-display: "Playfair Display", "Tiempos", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1280px;

  /* Radii + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-card: 0 1px 0 rgb(0 0 0 / 0.02), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-lifted: 0 2px 0 rgb(0 0 0 / 0.03), 0 12px 32px -8px rgb(0 0 0 / 0.12);
}

[data-theme="dark"] {
  --bg: 18 20 15;
  --bg-2: 26 28 22;
  --bg-3: 34 36 29;
  --fg: 240 238 228;
  --fg-muted: 170 170 160;
  --fg-faint: 120 120 112;
  --border: 52 54 44;
  --border-2: 68 70 58;
  --paper: 26 28 22;
  --sand: 22 24 18;
  --sand-2: 32 36 26;
  --ink: 240 238 228;
  --shadow-card: 0 1px 0 rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-lifted: 0 2px 0 rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
}

[data-accent="amber"] {
  --accent: var(--gold);
  --accent-deep: 120 95 30;
}
[data-accent="orange"] {
  --accent: var(--orange);
  --accent-deep: 130 72 36;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: rgb(var(--fg));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--fg));
  line-height: 0.98;
}
.display-xl { font-size: clamp(54px, 8.5vw, 136px); }
.display-lg { font-size: clamp(42px, 5vw, 78px); line-height: 1.02; }
.display-md { font-size: clamp(32px, 3vw, 48px); line-height: 1.08; }
.display-sm { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }

.italic-ink { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: rgb(var(--accent));
  display: inline-block;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
}

.lede {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgb(var(--fg-muted));
  max-width: 58ch;
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-wide { max-width: 1440px; }

.section {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  position: relative;
}
.section-tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.divider {
  border: 0;
  border-top: 1px solid rgb(var(--border));
  margin: 0;
}

.divider-dotted {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgb(var(--border)) 50%, transparent 0%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(var(--bg) / 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgb(var(--border));
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgb(var(--fg));
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgb(var(--accent));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  box-shadow: inset 0 -8px 14px rgb(0 0 0 / 0.15);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgb(255 255 255 / 0.5);
  border-radius: 999px;
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 13px;
  color: rgb(var(--fg-muted));
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-links a:hover { background: rgb(var(--border) / 0.6); color: rgb(var(--fg)); }
.nav-links a.active { background: rgb(var(--accent) / 0.1); color: rgb(var(--accent)); }

.nav-cta { display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: rgb(var(--accent));
  color: white;
  border-color: rgb(var(--accent));
}
.btn-primary:hover { background: rgb(var(--accent-deep)); border-color: rgb(var(--accent-deep)); }
.btn-ghost {
  background: transparent;
  color: rgb(var(--fg));
  border-color: rgb(var(--border));
}
.btn-ghost:hover { background: rgb(var(--border) / 0.4); }
.btn-dark {
  background: rgb(var(--fg));
  color: rgb(var(--bg));
  border-color: rgb(var(--fg));
}
.btn-dark:hover { opacity: 0.9; }
.btn-lg { padding: 14px 26px; font-size: 14px; }
.btn-xl { padding: 18px 30px; font-size: 15px; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
  border-color: rgb(var(--border-2));
}

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgb(var(--sand-2));
  color: rgb(var(--olive));
  border: 1px solid rgb(var(--olive) / 0.15);
}
.chip-gold { background: rgb(var(--gold) / 0.1); color: rgb(var(--gold)); border-color: rgb(var(--gold) / 0.3); }
.chip-orange { background: rgb(var(--orange) / 0.1); color: rgb(var(--orange)); border-color: rgb(var(--orange) / 0.3); }
.chip-neutral { background: rgb(var(--sand)); color: rgb(var(--fg-muted)); border-color: rgb(var(--border)); }

.chip-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgb(var(--accent) / 0.08), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgb(var(--gold) / 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title .word-stroke {
  -webkit-text-stroke: 1.5px rgb(var(--fg));
  color: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero-title .word-gold {
  color: rgb(var(--gold));
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgb(var(--border));
  padding-top: 24px;
  margin-top: 40px;
}
.hero-meta > div { padding-right: 16px; border-right: 1px solid rgb(var(--border)); }
.hero-meta > div:last-child { border-right: 0; padding-right: 0; padding-left: 0; }
.hero-meta > div + div { padding-left: 16px; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgb(var(--fg));
}
.hero-meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--fg-muted));
  margin-top: 10px;
}

/* ---------- Full-bleed hero ---------- */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 36px;
  color: white;
}
.hero-full-photo {
  position: absolute; inset: 0;
  background-color: rgb(var(--olive-deep));
  background-image: url("./assets/course-aerial.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  /* Anchor to width so the full frame (incl. the golfer on the right) always
     shows; height auto stops the cover-driven zoom that cropped her off. */
  background-size: 100% auto;
  filter: saturate(0.88) contrast(1.03) brightness(0.88);
  z-index: -2;
}
.hero-full-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,26,24,0.44) 0%,
      rgba(26,26,24,0.12) 30%,
      rgba(26,26,24,0.20) 55%,
      rgba(42,48,32,0.68) 100%),
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(0,0,0,0.28), transparent 75%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(191,154,56,0.22), transparent 60%);
  z-index: -1;
}
/* Desktop: centered absolute overlay (original design). */
.hero-full-logo {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
}
/* Tablet & below: drop into flow above the headline so it never overlaps. */
@media (max-width: 1024px) {
  .hero-full-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: clamp(160px, 30vw, 260px);
    margin: 0 0 18px;
  }
}
.hero-full-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.hero-full-inner {
  text-align: left;
  padding-top: clamp(48px, 10vw, 140px);
  padding-bottom: clamp(40px, 8vw, 100px);
  padding-left: calc(var(--gutter) + 50px) !important;
  max-width: 720px !important;
  margin-left: 0 !important;
}
.hero-full-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 32px 0 0;
  color: white;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.italic-ink-white {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.word-gold { color: rgb(var(--gold)); }
.hero-full-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 58ch;
  margin: 36px 0 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-full-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-full-bottom > div { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.18); }
.hero-full-bottom > div:last-child { border-right: 0; }
.hero-full-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: white;
}
.hero-full-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}
.hero-full-corner {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  z-index: 1;
  pointer-events: none;
}
.hero-full-corner.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-full-corner.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-full-corner.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hero-full-corner.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

/* Legacy hero (kept for safety if referenced) */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  box-shadow: var(--shadow-lifted);
}
.hero-photo {
  position: absolute; inset: 0;
  background: url("./assets/course-aerial.jpg") center / cover no-repeat;
  /* tone it toward the palette without over-filtering */
  filter: saturate(0.88) contrast(1.02);
}
[data-theme="dark"] .hero-photo { filter: saturate(0.85) contrast(1.05) brightness(0.85); }

.hero-photo-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,26,24,0.28) 0%,
      rgba(26,26,24,0) 35%,
      rgba(26,26,24,0) 55%,
      rgba(42,48,32,0.55) 100%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(191,154,56,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(196,112,58,0.12), transparent 60%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  top: 20px;
  left: 22px;
  max-width: 220px;
  z-index: 2;
}

.hero-corner {
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.45);
  pointer-events: none;
}
.hero-corner-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hero-corner-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* Floating stat cards */
.hero-float {
  position: absolute;
  padding: 16px 18px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.04);
  font-size: 12px;
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgb(var(--bg-3) / 0.96);
}
.hero-float-tr { top: 24px; right: 20px; width: 190px; }
.hero-float-bl { bottom: 26px; left: 20px; width: 240px; }

/* ---------- Marquee / tournament ticker ---------- */
.marquee-row {
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  overflow: hidden;
  background: rgb(var(--bg-3));
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: rgb(var(--fg));
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  background: rgb(var(--accent));
  border-radius: 999px;
}
.marquee-item .tag {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
  font-weight: 500;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 8-Phase Journey ---------- */
.journey {
  background: rgb(var(--bg-2));
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background-image:
    linear-gradient(to right, rgb(var(--border) / 0.4) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}
.journey > * { position: relative; }

.phase-path {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 56px;
  position: relative;
}

.phase-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  position: relative;
  cursor: pointer;
  background: rgb(var(--bg));
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.phase-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.18);
}

.phase-img {
  flex: 1;
  width: 100%;
  min-height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgb(var(--bg-3));
}

.phase-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgb(var(--bg));
}
.phase-roman {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: rgb(var(--olive-deep));
  letter-spacing: -0.02em;
  line-height: 1;
}
.phase-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgb(var(--fg));
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.phase-goal {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
}

.phase-col.current {
  box-shadow: 0 0 0 2px rgb(var(--gold)), 0 18px 36px -10px rgba(0,0,0,0.2);
}
.phase-col.done::after {
  content: "✓";
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: rgb(var(--orange));
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  z-index: 2;
}

@media (max-width: 900px) {
  .phase-path { grid-template-columns: repeat(4, 1fr); gap: 24px 0; }
  .phase-path::before { display: none; }
}
@media (max-width: 560px) {
  .phase-path { grid-template-columns: repeat(2, 1fr); }
}

/* Detail card below path */
.phase-detail {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 40px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
}
@media (max-width: 860px) {
  .phase-detail { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

.phase-detail-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(120px, 14vw, 220px);
  line-height: 0.8;
  color: rgb(var(--accent) / 0.9);
  letter-spacing: -0.04em;
}

.phase-gate {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(var(--border));
}
.phase-gate:last-child { border-bottom: 0; }
.phase-gate .marker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgb(var(--fg-muted));
  min-width: 32px;
}
.phase-gate .g-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: rgb(var(--fg));
}
.phase-gate .g-desc {
  font-size: 13px;
  color: rgb(var(--fg-muted));
  margin-top: 2px;
}

/* ---------- Archetypes ---------- */
.archetypes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgb(var(--border));
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
}
@media (max-width: 960px) { .archetypes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .archetypes { grid-template-columns: 1fr; } }

.archetype {
  background: rgb(var(--bg));
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 440px;
  transition: background 0.2s;
}
.archetype:hover { background: rgb(var(--bg-3)); }
.archetype-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgb(var(--fg-muted));
}
.archetype-sigil {
  width: 100%;
  aspect-ratio: 1;
  max-height: 160px;
  display: grid;
  place-items: center;
  background: rgb(var(--bg-2));
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.archetype-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgb(var(--fg));
}
.archetype-kind {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgb(var(--accent));
}
.archetype-desc {
  font-size: 13px;
  color: rgb(var(--fg-muted));
  line-height: 1.5;
  flex: 1;
}
.archetype-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 10px;
  border-top: 1px solid rgb(var(--border));
  padding-top: 12px;
}
.archetype-stats .k { text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--fg-muted)); }
.archetype-stats .v { font-family: var(--font-mono); color: rgb(var(--fg)); font-weight: 600; margin-top: 2px; }

/* ---------- Tournament map ---------- */
.tourney-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .tourney-grid { grid-template-columns: 1fr; } }

.track-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  overflow: hidden;
}
.track-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgb(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgb(var(--bg-2));
}
.track-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.track-sub { font-size: 12px; color: rgb(var(--fg-muted)); margin-top: 4px; }

.track-body { padding: 0; }
.tour-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgb(var(--border));
  gap: 16px;
}
.tour-row:last-child { border-bottom: 0; }
.tour-row:hover { background: rgb(var(--bg-2) / 0.5); }
.tour-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: rgb(var(--fg));
}
.tour-meta { font-size: 12px; color: rgb(var(--fg-muted)); margin-top: 3px; display: flex; gap: 12px; }
.tour-meta span { display: flex; gap: 4px; align-items: center; }

/* ---------- Money hub ---------- */
.money {
  background: rgb(var(--olive-deep));
  color: rgb(245 245 240);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.money::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgb(var(--gold) / 0.3), transparent 40%),
    radial-gradient(circle at 0% 100%, rgb(var(--orange) / 0.2), transparent 50%);
  pointer-events: none;
}
.money > * { position: relative; }

.money-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: rgb(var(--gold));
}
.money-title .frac {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255 255 255 / 0.85);
  font-weight: 400;
}

.money-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-top: 48px;
}
@media (max-width: 860px) { .money-grid { grid-template-columns: 1fr; } }

.ledger {
  background: rgba(255 255 255 / 0.05);
  border: 1px solid rgba(255 255 255 / 0.1);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(255 255 255 / 0.15);
  font-size: 14px;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .k { color: rgba(255 255 255 / 0.75); }
.ledger-row .v { font-family: var(--font-mono); color: rgb(var(--gold)); font-weight: 500; }
.ledger-row.total .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: white;
}
.ledger-row.total .k { color: white; font-size: 16px; }

.ledger-meter {
  position: relative;
  margin-top: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(255 255 255 / 0.1);
}
.ledger-meter .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255 255 255 / 0.1);
  overflow: hidden;
  position: relative;
}
.ledger-meter .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 24%;
  background: rgb(var(--orange));
  border-radius: 999px;
}
.ledger-meter .fill-gold {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgb(var(--orange)), rgb(var(--gold)));
  border-radius: 999px;
}
.roi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgb(var(--gold));
}
.roi-num .x {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgb(255 255 255 / 0.6);
}

/* ---------- Spanish / MobSync ---------- */
.mobsync {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 860px) { .mobsync { grid-template-columns: 1fr; } }

.mobsync-side {
  padding: 40px 36px;
  position: relative;
}
.mobsync-side + .mobsync-side { border-left: 1px solid rgb(var(--border)); }
@media (max-width: 860px) {
  .mobsync-side + .mobsync-side { border-left: 0; border-top: 1px solid rgb(var(--border)); }
}
.mobsync-side h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}
.mobsync-side p { color: rgb(var(--fg-muted)); font-size: 14px; line-height: 1.55; }

.transcript {
  background: rgb(var(--bg-2));
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  border: 1px solid rgb(var(--border));
}
.transcript-en .en { color: rgb(var(--fg)); }
.transcript-en .es { color: rgb(var(--fg-faint)); font-style: italic; }
.transcript-es .es { color: rgb(var(--fg)); font-weight: 500; }
.transcript-es .en { color: rgb(var(--fg-faint)); font-style: italic; }

/* ---------- CTA ---------- */
.cta-big {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgb(var(--gold) / 0.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgb(var(--orange) / 0.08), transparent 50%);
}
.cta-big > * { position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 32px;
  font-size: 13px;
  color: rgb(var(--fg-muted));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--fg));
  margin: 0 0 16px;
  font-weight: 600;
}
.footer a { color: rgb(var(--fg-muted)); text-decoration: none; display: block; padding: 6px 0; }
.footer a:hover { color: rgb(var(--fg)); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--border));
  font-size: 12px;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 14px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.18);
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgb(var(--fg));
  width: 260px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--border));
}
.tweaks-head h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 0;
}
.tweaks-close {
  background: transparent;
  border: 0;
  color: rgb(var(--fg-muted));
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
}
.tweaks-row { margin-bottom: 12px; }
.tweaks-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--fg-muted)); margin-bottom: 6px; }
.tweaks-seg {
  display: inline-flex;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-wrap: wrap;
}
.tweaks-seg button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgb(var(--fg-muted));
  cursor: pointer;
  font-weight: 500;
}
.tweaks-seg button.active {
  background: rgb(var(--fg));
  color: rgb(var(--bg));
}
.tweaks-row .range { width: 100%; }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatches button {
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 2px solid rgb(var(--border));
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.tweaks-swatches button.active { border-color: rgb(var(--fg)); box-shadow: 0 0 0 2px rgb(var(--bg)), 0 0 0 3px rgb(var(--fg) / 0.3); }

/* ---------- Utils ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 32px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.muted { color: rgb(var(--fg-muted)); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Illustrative SVG accents */
.topo-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flag-stick { position: absolute; }


/* ---------- Tutorial cards ---------- */
.tut-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.tut-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
}
.tut-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tut-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: "Inter";
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.tut-body {
  padding: 14px;
}
.tut-level {
  display: inline-block;
  font-family: "Inter";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------- App download buttons ---------- */
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s;
  border: 1px solid rgba(0,0,0,0.1);
}
.app-btn:hover { transform: translateY(-2px); }

/* ---------- Analysis page ---------- */
.analysis-hero {
  background: rgb(var(--olive-deep));
  color: white;
  padding: 64px 0 80px;
}
.analysis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191,154,56,0.15);
  border: 1px solid rgba(191,154,56,0.4);
  color: rgb(var(--gold));
  font-family: "Inter";
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.analysis-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.analysis-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.analysis-card .sub {
  font-size: 12px;
  color: rgb(var(--fg-muted));
  margin-bottom: 18px;
}
.upload-drop {
  border: 1.5px dashed rgb(var(--border));
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgb(var(--bg-2));
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.upload-row .status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
}
.metric-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 18px 20px;
}
.metric-card .ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgb(var(--accent) / 0.1);
  color: rgb(var(--accent));
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.metric-card .val {
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-card .delta {
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin-top: 6px;
}
.metric-card .delta.up { color: rgb(92,107,58); }
.metric-card .delta.down { color: rgb(160,64,64); }
.metric-card .k {
  font-family: "Inter";
  font-size: 11px;
  color: rgb(var(--fg-muted));
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.pro-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(var(--border));
}
.pro-row:last-child { border-bottom: none; }
.pro-row .av {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  color: white;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 15px;
}
.pro-row .bar {
  height: 5px; border-radius: 3px;
  background: rgb(var(--border));
  overflow: hidden;
  flex: 1;
}
.pro-row .bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.improve-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgb(var(--bg-2));
  border-radius: 10px;
  margin-bottom: 8px;
}
.improve-item.priority {
  background: rgb(244,225,225);
  border: 1px solid rgb(var(--wine) / 0.2);
}
[data-theme="dark"] .improve-item.priority {
  background: rgb(80,40,40);
  border-color: rgb(var(--wine) / 0.3);
}
.improve-item .sq {
  width: 14px; height: 14px;
  background: rgb(var(--fg));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Radar chart */
.radar-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgb(var(--border));
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 18px;
  font-family: "Inter";
  font-size: 13px;
  font-weight: 500;
  color: rgb(var(--fg-muted));
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-btn.active {
  color: rgb(var(--fg));
  border-bottom-color: rgb(var(--accent));
  background: rgb(var(--bg-2));
  border-radius: 8px 8px 0 0;
}

/* ---------- Progress page ---------- */
.progress-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(58,107,122) 0%, rgb(92,107,58) 100%);
}
.progress-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(191,154,56,0.2) 0%, transparent 50%);
}
.progress-chip {
  position: absolute;
  padding: 10px 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.phase-rail {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 30px 0;
}
.phase-rail::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: rgb(var(--border));
}
.phase-node-sm {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 13px;
  background: rgb(var(--bg-3));
  border: 2px solid rgb(var(--border));
  color: rgb(var(--fg-muted));
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.phase-node-sm.done {
  background: rgb(var(--orange));
  border-color: rgb(var(--orange));
  color: white;
}
.phase-node-sm.cur {
  background: rgb(var(--gold));
  border-color: rgb(var(--gold));
  color: rgb(var(--olive-deep));
  width: 44px; height: 44px;
  font-size: 15px;
  box-shadow: 0 0 0 4px rgb(var(--gold) / 0.2);
}
.phase-pcard {
  flex: 1;
  padding: 16px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
  margin: 0 8px;
  position: relative;
  z-index: 1;
}
.phase-pcard.cur {
  background: rgb(255,248,225);
  border-color: rgb(var(--gold));
  box-shadow: 0 4px 16px rgb(var(--gold) / 0.15);
}
[data-theme="dark"] .phase-pcard.cur {
  background: rgb(60,52,20);
}
.phase-pcard h5 {
  font-family: "Inter";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgb(var(--orange));
  margin: 0 0 4px;
  text-transform: uppercase;
}
.phase-pcard.cur h5 { color: rgb(var(--gold)); }
.phase-pcard h4 {
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.phase-pcard .tag {
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin-bottom: 10px;
}
.phase-pcard .hcp {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: rgb(var(--fg-muted));
  margin-bottom: 8px;
}
.phase-pcard ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: rgb(var(--fg));
}
.phase-pcard ul li {
  padding: 3px 0 3px 14px;
  position: relative;
}
.phase-pcard ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: rgb(var(--fg-muted));
}
.phase-pcard .progress-bar {
  margin-top: 10px;
  height: 3px;
  background: rgb(var(--border));
  border-radius: 2px;
  overflow: hidden;
}
.phase-pcard .progress-bar > span {
  display: block;
  height: 100%;
  background: rgb(var(--gold));
  border-radius: 2px;
}
.phase-pcard .progress-label {
  font-family: "JetBrains Mono";
  font-size: 9px;
  color: rgb(var(--fg-muted));
  margin-top: 4px;
}

.achievement-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
}
.achievement-item .icn {
  width: 36px; height: 36px;
  background: rgb(var(--fg));
  border-radius: 6px;
  flex-shrink: 0;
}
.achievement-item h5 {
  font-family: "Inter";
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 3px;
}
.achievement-item p {
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin: 0 0 4px;
}
.achievement-item .when {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: rgb(var(--orange));
}

.tour-pill-card {
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tour-pill-card .match {
  font-family: "Inter";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tour-pill-card .lvl-pill {
  font-family: "Inter";
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  color: rgb(var(--fg-muted));
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
}
.tour-pill-card .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgb(var(--fg-muted));
}
.tour-btn {
  padding: 10px;
  background: rgb(var(--olive));
  color: white;
  border-radius: 8px;
  border: none;
  font-family: "Inter";
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
}
.tour-btn.alt {
  background: rgb(var(--bg-3));
  color: rgb(var(--fg));
  border: 1px solid rgb(var(--border));
}


/* ================================================================
   ONOGolf — Unified Nav + Footer + Scorecard Feature (v2)
   ================================================================ */

.ono-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ono-nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.ono-wordmark { display: inline-flex; align-items: center; line-height: 0; }
.ono-wordmark svg { display: block; }

.ono-nav-links {
  display: flex; gap: 36px; justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 17px; font-weight: 500;
}
.ono-nav-links a {
  color: rgb(60, 62, 50);
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  transition: color .15s;
}
.ono-nav-links a:hover { color: rgb(var(--olive)); }
.ono-nav-links a.active { color: rgb(var(--olive-deep)); font-weight: 700; }
.ono-nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: rgb(var(--olive));
}

.ono-nav-right { display: flex; align-items: center; gap: 14px; }
.ono-icon-btn {
  position: relative;
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgb(var(--olive-deep));
  border-radius: 999px;
}
.ono-icon-btn:hover { background: rgba(92,107,58,0.08); }
.ono-dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 999px;
  background: rgb(var(--orange));
  box-shadow: 0 0 0 2px white;
}
.ono-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, rgb(var(--olive)) 0%, rgb(var(--olive-deep)) 100%);
  color: white; font-family: "Playfair Display", serif; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ono-lang-toggle {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: rgb(var(--fg-muted)); letter-spacing: 0.1em;
}
.ono-btn-ghost, .ono-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px;
  text-decoration: none; transition: all .15s;
  border: 1px solid transparent;
}
.ono-btn-ghost { color: rgb(var(--olive-deep)); }
.ono-btn-ghost:hover { background: rgba(92,107,58,0.08); }
.ono-btn-primary {
  background: rgb(var(--olive)); color: white;
  border-color: rgb(var(--olive));
}
.ono-btn-primary:hover { background: rgb(var(--olive-deep)); border-color: rgb(var(--olive-deep)); }
.ono-btn-primary .arr { transition: transform .15s; }
.ono-btn-primary:hover .arr { transform: translateX(3px); }

@media (max-width: 1100px) {
  .ono-nav-inner { padding: 14px 20px; gap: 16px; }
  .ono-nav-links { gap: 20px; font-size: 15px; }
}
@media (max-width: 880px) {
  .ono-nav-links { display: none; }
}

/* ---------- Nav Dropdowns (Decision 18) ---------- */
.ono-nav-dropdown { display: inline-flex; align-items: center; position: relative; }
.ono-nav-dropdown-btn {
  display: inline-flex; align-items: center; gap: 2px;
  background: none; border: 0; cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 17px; font-weight: 500;
  color: rgb(60, 62, 50);
  padding: 6px 2px;
  position: relative;
  transition: color .15s;
}
.ono-nav-dropdown-btn:hover { color: rgb(var(--olive)); }
.ono-nav-dropdown-btn.active { color: rgb(var(--olive-deep)); font-weight: 700; }
.ono-nav-dropdown-btn.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: rgb(var(--olive));
}
.ono-nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px -8px rgba(42,48,32,0.22), 0 2px 8px rgba(0,0,0,0.06);
  padding: 6px 0;
  z-index: 60;
  animation: ono-dd-in .12s ease;
}
@keyframes ono-dd-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ono-nav-dropdown-panel a {
  display: block;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgb(60, 62, 50);
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s, color .1s;
  border-radius: 0;
}
.ono-nav-dropdown-panel a:hover {
  background: rgba(92,107,58,0.07);
  color: rgb(var(--olive-deep));
}
.ono-nav-dropdown-panel a.active {
  color: rgb(var(--olive-deep));
  font-weight: 600;
  background: rgba(92,107,58,0.06);
}
/* Mobile group labels */
.ono-mobile-group-label {
  display: block;
  padding: 10px 20px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgb(var(--gold));
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .ono-nav-dropdown-btn { font-size: 15px; }
}

/* ---------- Unified Footer ---------- */
.ono-footer {
  background: #0d0f0a;
  color: rgba(255,255,255,0.78);
  padding: 64px 40px 32px;
  margin-top: 80px;
}
.ono-footer-inner { max-width: 1440px; margin: 0 auto; }
.ono-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ono-footer-brand .ono-wordmark svg text { fill: rgb(var(--gold)); }
.ono-footer-brand .ono-wordmark svg circle { stroke: rgb(var(--gold)); fill: none; }
.ono-footer-brand .ono-wordmark svg circle[r="1.2"] { fill: rgb(var(--gold)); }
.ono-footer-brand p {
  margin-top: 16px;
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.ono-footer-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  margin: 24px 0 12px;
  text-transform: uppercase;
}
.ono-social-row { display: flex; gap: 10px; }
.ono-social-row a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all .15s;
}
.ono-social-row a:hover { color: rgb(var(--gold)); border-color: rgb(var(--gold)); }
.ono-footer-apps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ono-app-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,0.85);
  text-decoration: none; min-width: 180px;
  cursor: pointer; transition: all .15s;
}
.ono-app-pill:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

.ono-footer-grid > div h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.95);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.ono-footer-grid > div a {
  display: block;
  font-size: 14px; color: rgba(255,255,255,0.65);
  text-decoration: none; padding: 5px 0;
  cursor: pointer; transition: color .12s;
}
.ono-footer-grid > div a:hover { color: rgb(var(--gold)); }

.ono-footer-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 0 16px;
  margin-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ono-footer-admin-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--gold));
  font-weight: 600;
  margin-right: 4px;
}
.ono-footer-admin a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.15s;
}
.ono-footer-admin a:hover { color: rgb(var(--gold)); }
.ono-footer-admin-sep { color: rgba(255,255,255,0.25); }

.ono-footer-bottom {
  display: flex; justify-content: space-between;
  padding: 22px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 980px) {
  .ono-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ono-footer-brand { grid-column: 1 / -1; }
}

/* ---------- Scorecard Homepage Feature ---------- */
.sc-feature {
  background: linear-gradient(180deg, rgba(92,107,58,0.04) 0%, transparent 100%);
  padding: 120px 40px;
  border-top: 1px solid rgb(var(--border));
}
.sc-feature-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.sc-feature-bullets {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px; line-height: 1.5;
}
.sc-feature-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgb(var(--fg));
}
.sc-check {
  display: inline-flex; flex: 0 0 22px;
  width: 22px; height: 22px;
  background: rgb(var(--olive));
  color: white; border-radius: 999px;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}

.sc-feature-mock {
  position: relative;
  min-height: 580px;
}
.sc-mock-phone {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(42,48,32,0.35), 0 8px 24px -8px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 480px;
  margin: 0 auto;
}
.sc-mock-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid rgb(var(--border));
}
.sc-mock-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: rgb(var(--fg-muted)); text-transform: uppercase;
}
.sc-mock-course {
  font-family: "Playfair Display", serif;
  font-size: 20px; font-weight: 700;
  color: rgb(var(--olive-deep));
  margin-top: 4px;
}
.sc-mock-pill {
  background: rgb(var(--olive));
  color: white; font-size: 11px;
  padding: 5px 12px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.sc-mock-players {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 16px 0;
}
.sc-mock-player {
  background: rgba(92,107,58,0.06);
  border: 1px solid rgba(92,107,58,0.15);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.sc-mock-player.sc-olive  { border-color: rgba(92,107,58,0.4); background: rgba(92,107,58,0.12); }
.sc-mock-player.sc-gold   { border-color: rgba(191,154,56,0.4); background: rgba(191,154,56,0.12); }
.sc-mock-player.sc-orange { border-color: rgba(196,112,58,0.4); background: rgba(196,112,58,0.12); }
.sc-mock-player.sc-deep   { border-color: rgba(42,48,32,0.4); background: rgba(42,48,32,0.08); }
.sc-mock-name {
  display: block; font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: rgb(var(--fg-muted));
  text-transform: uppercase; margin-bottom: 2px;
}
.sc-mock-score {
  display: block; font-family: "Playfair Display", serif;
  font-size: 18px; font-weight: 700;
  color: rgb(var(--olive-deep));
}

.sc-mock-grid {
  border-top: 1px solid rgb(var(--border));
  padding-top: 12px;
}
.sc-mock-grid-head, .sc-mock-row {
  display: grid; grid-template-columns: 32px 32px repeat(4, 1fr);
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.sc-mock-grid-head {
  color: rgb(var(--fg-muted));
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sc-mock-grid-head span, .sc-mock-row span { text-align: center; }
.sc-mock-h { color: rgb(var(--fg-muted)); }
.sc-mock-par { color: rgb(var(--olive)); font-weight: 600; }
.sc-mock-stroke { color: rgb(var(--fg)); font-weight: 500; }
.sc-mock-row.active {
  background: rgba(191,154,56,0.08);
  border-radius: 6px;
  border-bottom-color: rgba(191,154,56,0.2);
}
.sc-mock-row.active .sc-mock-stroke { color: rgb(var(--fg-muted)); }
.sc-mock-row.active .sc-mock-h { color: rgb(var(--gold)); font-weight: 700; }

.sc-mock-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
}
.sc-mock-btn {
  border: 0; border-radius: 999px;
  padding: 12px; font-size: 13px;
  font-family: "Inter", sans-serif; font-weight: 500;
  cursor: pointer;
}
.sc-mock-btn-ghost {
  background: rgba(92,107,58,0.08); color: rgb(var(--olive-deep));
}
.sc-mock-btn-primary {
  background: rgb(var(--olive)); color: white;
}

.sc-feature-badge {
  position: absolute;
  top: 40px; right: -10px;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px -6px rgba(42,48,32,0.18);
  border: 1px solid rgb(var(--border));
  transform: rotate(2deg);
  z-index: 2;
}
.sc-feature-badge-2 {
  top: auto; right: auto;
  bottom: 40px; left: -10px;
  transform: rotate(-3deg);
}
.sc-feature-badge-num {
  font-family: "Playfair Display", serif;
  font-size: 28px; font-weight: 800;
  color: rgb(var(--olive));
  line-height: 1;
}
.sc-feature-badge-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
  margin-top: 4px;
}

@media (max-width: 900px) {
  .sc-feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .sc-feature { padding: 64px 20px; }
}

/* ==========================================================================
   ACCESSIBILITY & QUALITY GLOBALS (added 2026-05-24)
   ========================================================================== */

/* Visually-hidden helper for screen-reader-only headings/labels */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Global keyboard-visible focus ring (uses accent token) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgb(var(--gold));
  outline-offset: 2px;
  border-radius: 4px;
}
/* Strong ring on dark surfaces */
.cta-big :focus-visible,
.hero-full :focus-visible,
.ono-footer :focus-visible,
[data-theme="dark"] :focus-visible {
  outline-color: rgb(var(--gold));
  outline-offset: 3px;
}

/* Kill 300ms iOS tap delay + improve tap responsiveness */
.btn, .ono-btn-primary, .ono-btn-ghost, .ono-icon-btn,
.app-btn, .pr-tier-cta, .opt, .coach-card, .tut-card,
.phase-col, .scp-btn-primary, .scp-btn-ghost,
.scp-nav-btn, .scp-step-btn, .ono-nav-links a,
.ono-mobile-toggle, .ono-mobile-menu a,
button, a[href] {
  touch-action: manipulation;
}

/* Respect users who request less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Brand ticker is a decorative scroll, not a UI motion effect — keep it running */
  .marquee-track {
    animation-duration: 40s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ---------- Mobile nav (hamburger replaces hidden links < 880px) ---------- */
.ono-mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
  color: rgb(var(--ink));
}
.ono-mobile-toggle:hover { background: rgb(var(--bg-3)); }
.ono-mobile-toggle svg { display: block; }

.ono-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: calc(100vh - 64px);
  width: 100%;
  background: rgb(var(--bg));
  z-index: 90;
  flex-direction: column;
  padding: 24px 20px 40px;
  gap: 4px;
  border-top: 1px solid rgb(var(--border));
  overflow-y: auto;
  box-sizing: border-box;
}
.ono-mobile-menu.open { display: flex; }
.ono-mobile-menu a {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 500;
  color: rgb(var(--ink));
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: flex; align-items: center;
}
.ono-mobile-menu a:hover,
.ono-mobile-menu a:focus-visible {
  background: rgb(var(--bg-3));
  color: rgb(var(--olive-deep));
}
.ono-mobile-menu a.active {
  color: rgb(var(--olive-deep));
  font-weight: 700;
  background: rgb(var(--bg-3));
}
.ono-mobile-menu-cta {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgb(var(--border));
  display: flex; flex-direction: column; gap: 10px;
}
.ono-mobile-menu-cta a {
  justify-content: center;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}
.ono-mobile-menu-cta a.primary {
  background: rgb(var(--olive));
  color: white;
}

@media (max-width: 880px) {
  .ono-mobile-toggle { display: inline-flex; }
  .ono-nav-right .ono-btn-ghost,
  .ono-nav-right .ono-btn-primary,
  .ono-nav-right .ono-lang-toggle { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Touch-target minimums on small interactive controls ---------- */
.scp-nav-btn { width: 44px; height: 44px; }
.tweaks-swatches button {
  position: relative;
}
.tweaks-swatches button::before {
  content: "";
  position: absolute;
  inset: -9px;
  /* invisible 44x44 hit-area around the 26x26 swatch */
}

/* ---------- KPI delta direction icons (color-not-only) ---------- */
.kpi-delta-up::before  { content: "▲ "; font-size: 0.85em; }
.kpi-delta-down::before{ content: "▼ "; font-size: 0.85em; }
.kpi-delta-flat::before{ content: "■ "; font-size: 0.85em; }
