/* Bag to Flag — site styles
   Layout concept: a calm clubhouse ground, one fairway-green band per page for emphasis,
   heavy soft serif for display, Inter for reading, tabular numbers for every yardage. */
:root {
  --bg: #F6F4EE;          /* page ground */
  --surface: #FFFFFF;     /* cards, tables */
  --sunk: #F1EEE6;        /* chips, table heads */
  --line: #E4E0D5;
  --ink: #15241E;
  --muted: #5E6862;
  --fairway: #173D32;     /* brand green */
  --fairway-ink: #F3F0E7; /* text on fairway */
  --fairway-muted: #B9C6BE;
  --tint: #E7EEEA;
  --gold: #C8A260;
  --gold-ink: #7E6029;
  --grass: #2E6A4C;
  --water: #3F7FB5;
  --sand: #D9B878;
  --rough: #7F9A88;
  --trouble: #B4553C;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.25rem, 5vw, 3.75rem);
  --radius: 18px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F2721; --surface: #163329; --sunk: #1C3D32; --line: #2A4E42;
    --ink: #EEF0EA; --muted: #A9B8AF; --fairway: #0B1F19; --fairway-ink: #F3F0E7; --fairway-muted: #A9B8AF;
    --tint: #21483B; --gold: #D2AE6C; --gold-ink: #E2C48C; --grass: #7FC49B; --water: #6FA6D6;
    --sand: #D9B878; --rough: #8DA897; --trouble: #E6957C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F2721; --surface: #163329; --sunk: #1C3D32; --line: #2A4E42;
  --ink: #EEF0EA; --muted: #A9B8AF; --fairway: #0B1F19; --fairway-ink: #F3F0E7; --fairway-muted: #A9B8AF;
  --tint: #21483B; --gold: #D2AE6C; --gold-ink: #E2C48C; --grass: #7FC49B; --water: #6FA6D6;
  --sand: #D9B878; --rough: #8DA897; --trouble: #E6957C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Header ---------- */
.site-header { background: var(--fairway); color: var(--fairway-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; font-size: 0.9375rem; font-weight: 500; }
.site-nav a { color: var(--fairway-ink); text-decoration: none; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.header-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .site-nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: #173D32; }
.btn-gold:hover { background: #D9B878; color: #173D32; }
.btn-ghost { color: var(--fairway-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fairway-ink) 45%, transparent); }
.btn-ghost:hover { color: var(--fairway-ink); box-shadow: inset 0 0 0 1.5px var(--fairway-ink); }
.btn-text { color: var(--fairway-ink); background: none; }
.btn-text:hover { color: var(--gold); }
.btn-green { background: var(--fairway); color: var(--fairway-ink); }
.btn-green:hover { color: var(--fairway-ink); filter: brightness(1.15); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fairway); color: var(--fairway-muted); margin-top: 96px; }
.site-footer .wrap { padding-block: 56px 40px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fairway-ink); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.site-footer a { color: var(--fairway-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fairway-ink); }
.signup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.signup input { flex: 1 1 180px; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--fairway-ink) 25%, transparent); background: transparent; color: var(--fairway-ink); padding: 0 16px; font: inherit; }
.signup input::placeholder { color: var(--fairway-muted); }
.footer-base { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--fairway-ink) 15%, transparent); padding-top: 24px; font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Course guide ---------- */
.crumbs { font-size: 0.875rem; color: var(--muted); padding-block: 20px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.course-hero { padding-block: 28px 0; }
.course-hero h1 { font-size: var(--step-4); color: var(--fairway); margin-top: 12px; }
:root[data-theme="dark"] .course-hero h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .course-hero h1 { color: var(--ink); } }
.course-hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; margin-top: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: var(--tint); color: var(--grass); }
.badge-gold { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-ink); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.course-map { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; background: #1F4A3C; position: relative; }
.course-map img { width: 100%; aspect-ratio: 1565 / 374; object-fit: cover; min-height: 180px; }
.course-map figcaption { position: absolute; left: 16px; bottom: 14px; background: rgba(11,31,25,0.78); color: #F3F0E7; font-size: 0.8125rem; padding: 6px 12px; border-radius: 999px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 4px 0 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: 1.75rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat dd small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

.cta-strip { margin-top: 18px; background: var(--fairway); color: var(--fairway-ink); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-strip p { font-size: var(--step-1); font-weight: 600; max-width: 56ch; }
.cta-strip p span { display: block; font-size: 0.9375rem; font-weight: 400; color: var(--fairway-muted); margin-top: 2px; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 64px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.prose h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: var(--step-3); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.prose > section + section { margin-top: 72px; }
.prose p + p { margin-top: 14px; }
.prose p { max-width: 68ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 0.9375rem; }

.facts { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 980px) { .facts { position: static; } }
.facts h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts dl { margin: 14px 0 0; display: grid; gap: 14px; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.9375rem; }
.facts .copy { user-select: all; }
.facts hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.callout h3 { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.callout .holes { display: flex; gap: 6px; margin-top: 10px; }
.callout .holes a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sunk); color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.callout .holes a:hover { background: var(--fairway); color: var(--fairway-ink); }
.callout.hard .holes a { box-shadow: inset 0 0 0 2px var(--trouble); }
.callout.chance .holes a { box-shadow: inset 0 0 0 2px var(--grass); }

/* scorecard */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.card { border-collapse: collapse; width: 100%; min-width: 860px; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
table.card th, table.card td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
table.card th[scope="row"] { text-align: left; padding-left: 16px; white-space: nowrap; font-weight: 600; position: sticky; left: 0; background: var(--surface); }
table.card thead th { background: var(--sunk); font-weight: 700; }
table.card thead th:first-child { background: var(--sunk); }
table.card .sum { background: var(--sunk); font-weight: 700; }
table.card tr:last-child th, table.card tr:last-child td { border-bottom: 0; }
table.card td a { color: inherit; text-decoration: none; display: block; }
.tee-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.exp { color: var(--grass); font-weight: 600; }
table.tees { min-width: 0; }
table.tees td, table.tees th { text-align: left; padding: 12px 16px; }

/* hole nav */
.hole-nav { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-bottom: 28px; }
@media (max-width: 520px) { .hole-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hole-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hole-nav a small { font-weight: 500; font-size: 0.6875rem; color: var(--muted); }
.hole-nav a:hover { background: var(--fairway); color: var(--fairway-ink); border-color: var(--fairway); }
.hole-nav a:hover small { color: var(--fairway-muted); }

/* hole */
.hole { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
@media (max-width: 640px) { .hole { grid-template-columns: minmax(0, 1fr); } .hole .map { max-width: 300px; } }
.hole .map { border-radius: 16px; overflow: hidden; background: #3A6B55; align-self: start; }
.hole .map img { width: 100%; }
.hole-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.hole-head h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--ink); }
.hole-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--sunk); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.warn { background: color-mix(in srgb, var(--trouble) 14%, transparent); color: var(--trouble); }
.chip.good { background: var(--tint); color: var(--grass); }
.plan { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.plan-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
@media (max-width: 420px) { .plan-top { grid-template-columns: minmax(0, 1fr); } .expect { text-align: left; } }
.plan-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan-shot { font-size: 1.0625rem; font-weight: 600; margin-top: 4px; }
.plan-then { color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
.expect { text-align: right; }
.expect b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 2rem; line-height: 1; color: var(--fairway); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .expect b { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .expect b { color: var(--gold); } }
.expect span { font-size: 0.75rem; color: var(--muted); }
.odds { margin-top: 12px; font-size: 0.9375rem; }
.finish { margin-top: 12px; }
.finish-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sunk); }
.finish-bar span { display: block; height: 100%; }
.finish-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.finish-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.green-note { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.story { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); font-size: 0.9375rem; }
.story b { color: var(--gold-ink); }
.hole-link { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: 0.9375rem; }

/* history timeline */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.timeline .year { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.timeline p { color: var(--muted); margin-top: 2px; }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 68ch; }

.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 20px; }
.nearby a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nearby a span { color: var(--muted); font-weight: 500; font-size: 0.8125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nearby a:hover { border-color: var(--grass); }

.data-note { margin-top: 48px; font-size: 0.8125rem; color: var(--muted); max-width: 80ch; }
@media (max-width: 420px) { .expect { text-align: left; } }

/* scorecard v2: no sideways scrolling */
.scorecard-wide { display: grid; gap: 14px; }
table.nine { min-width: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; background: var(--surface); }
table.nine th[scope="row"] { width: 138px; position: static; }
table.nine thead th a { color: inherit; text-decoration: none; display: block; border-radius: 6px; }
table.nine thead th a:hover { background: var(--fairway); color: var(--fairway-ink); }
table.nine td, table.nine th { padding: 9px 2px; }
table.nine th[scope="row"] { padding-left: 14px; }
table.scorecard-tall { display: none; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; background: var(--surface); }
table.scorecard-tall th, table.scorecard-tall td { padding: 9px 6px; }
table.scorecard-tall th[scope="row"] { position: static; padding-left: 14px; }
table.scorecard-tall th[scope="row"] a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sunk); color: var(--ink); text-decoration: none; font-weight: 700; }
table.scorecard-tall tr.sum th, table.scorecard-tall tr.sum td { background: var(--sunk); font-weight: 700; }
@media (max-width: 720px) { .scorecard-wide { display: none; } table.scorecard-tall { display: table; } }
.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }

/* hole viewer */
.hole-viewer { scroll-margin-top: 16px; }
.hole-viewer.is-js .hole { display: none; border-top: 0; padding-top: 4px; }
.hole-viewer.is-js .hole.is-active { display: grid; }
.hole-nav a[aria-current="true"] { background: var(--fairway); color: var(--fairway-ink); border-color: var(--fairway); }
.hole-nav a[aria-current="true"] small { color: var(--fairway-muted); }
.hole-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.hole-foot .hole-link { margin-top: 0; }
.hole-steps { display: flex; gap: 8px; }
.step { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.step:hover { border-color: var(--grass); color: var(--ink); }
table.nine thead th:first-child { width: 138px; }
@media (max-width: 720px) {
  table.tees th, table.tees td { padding: 10px 8px; font-size: 0.875rem; }
  table.tees th[scope="row"] { padding-left: 12px; }
  .table-wrap { overflow-x: auto; }
}

/* Moving in from the old app address: carry your data over. */
.move-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;max-width:720px;margin:0 auto;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 16px;border-radius:16px;background:#173D32;color:#F3F0E7;box-shadow:0 12px 40px rgb(0 0 0 / .3)}
.move-bar p{margin:0;flex:1 1 280px;line-height:1.45}
.move-bar div{display:flex;gap:8px;align-items:center}
.move-bar .btn-primary{background:#C8A260;color:#173D32;border-color:#C8A260}
.move-x{border:0;background:none;color:#F3F0E7;font-size:22px;cursor:pointer;padding:4px 8px}
.signup-err{color:#B4553C;margin:8px 0 0;font-size:14px}

/* ===================== Shared page sections ===================== */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; color: var(--fairway-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fairway-ink) 40%, transparent); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-width: 220px; display: grid; box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
.mnav nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav nav a:hover { background: var(--sunk); }
@media (max-width: 900px) { .mnav { display: block; } .header-cta .btn-text { display: none; } }
@media (max-width: 420px) { .header-cta .btn-gold { padding: 0 14px; } }

.band { padding-block: 96px; }
.band-tight { padding-block: 64px; }
.band-fairway { background: var(--fairway); color: var(--fairway-ink); }
.band-fairway .eyebrow { color: var(--gold); }
.band-surface { background: var(--surface); border-block: 1px solid var(--line); }
.h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.band-fairway .lead { color: var(--fairway-muted); }
.section-intro { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ===================== Hero ===================== */
.hero { background: var(--fairway); color: var(--fairway-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding-block: 64px 0; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.hero h1 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--fairway-muted); margin-top: 22px; font-size: 1.1875rem; }
.hero-copy { padding-bottom: 72px; }
@media (max-width: 980px) { .hero-copy { padding-bottom: 0; } }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--fairway-muted); }
.hero-note a { color: var(--fairway-ink); }
.hero-visual { position: relative; padding-bottom: 56px; align-self: end; }
.browser { border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: 0 40px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06); }
.browser-bar { height: 32px; background: #ECE9E1; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3CEC1; display: block; }
.browser-bar span { margin-left: 12px; height: 19px; flex: 0 1 240px; border-radius: 6px; background: #FFFFFF; color: #5E6862; font-size: 11px; display: flex; align-items: center; padding: 0 10px; }
.phone { border-radius: 34px; border: 8px solid #0B1F19; overflow: hidden; background: #0B1F19; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.phone img { border-radius: 26px; width: 100%; }
.hero-visual .phone { position: absolute; left: -40px; bottom: 0; width: 26%; min-width: 140px; }
@media (max-width: 640px) { .hero-visual .phone { display: none; } }

/* course search */
.course-search { position: relative; margin-top: 30px; max-width: 560px; }
.course-search label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: var(--fairway-ink); }
.search-box { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.search-box svg { flex: none; color: #5E6862; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: #15241E; height: 48px; outline: none; }
.search-box input::placeholder { color: #7A847E; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0,0,0,0.2); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: #FFFFFF; color: #15241E; border-radius: 18px; box-shadow: 0 24px 48px rgba(0,0,0,0.25); overflow: hidden; }
.results ul { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.results li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: #15241E; text-decoration: none; }
.results li a:hover, .results li a[aria-selected="true"] { background: #F1EEE6; }
.results .r-name { font-weight: 600; }
.results .r-meta { font-size: 0.8125rem; color: #5E6862; white-space: nowrap; }
.results .r-guide { font-size: 0.75rem; font-weight: 700; color: #7E6029; background: #F4ECDC; border-radius: 999px; padding: 2px 8px; margin-left: 8px; }
.results .r-empty { padding: 16px 18px; font-size: 0.9375rem; color: #5E6862; }

/* light-ground search (directory) */
.search-box.on-light { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.search-box.on-light input { color: var(--ink); }
.search-box.on-light:focus-within { box-shadow: inset 0 0 0 2px var(--grass); }

/* proof strip */
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; padding-block: 0; }
.proof div { padding: 26px 20px; border-right: 1px solid var(--line); }
.proof div:last-child { border-right: 0; }
@media (max-width: 860px) { .proof div { border-right: 0; border-bottom: 1px solid var(--line); } .proof div:last-child { border-bottom: 0; } }
.proof b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof span { font-size: 0.9375rem; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 16px; }
.steps p { color: var(--muted); margin-top: 8px; }

/* ===================== Tour ===================== */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .tour { grid-template-columns: minmax(0, 1fr); } }
.tour-stage { position: relative; border-radius: 18px; background: color-mix(in srgb, var(--fairway-ink) 6%, transparent); padding: 22px; min-height: 200px; }
.band-surface .tour-stage, .tour-light .tour-stage { background: var(--sunk); }
.tour-slide { display: none; }
.tour-slide.is-active { display: block; animation: tourIn .35s ease; }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-slide.is-active { animation: none; } }
.tour-frame { position: relative; margin: 0 auto; }
.tour-frame.is-phone { max-width: 300px; }
.tour-media { position: relative; overflow: hidden; }
.tour-media img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .tour-media img { transition: none; } }
.hotspot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 6px 18px rgba(0,0,0,0.35); z-index: 2; }
.hotspot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--gold); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot::after { animation: none; opacity: 0.6; } }
.tour-panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.tour-count { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.tour-panel h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: 1.625rem; line-height: 1.12; }
.tour-panel p { color: var(--muted); }
.tour-progress { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.tour-progress span { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.tour-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-controls .btn { flex: 1 1 auto; }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--grass); }
.btn-line[disabled] { opacity: 0.45; cursor: default; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-dots button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sunk); color: var(--muted); font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.tour-dots button[aria-current="step"] { background: var(--fairway); color: var(--fairway-ink); }
.tour-end { display: grid; gap: 16px; place-items: center; text-align: center; padding: 56px 20px; min-height: 320px; }
.tour-end h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

/* ===================== Feature grid ===================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--grass); display: grid; place-items: center; }
.feature p { color: var(--muted); }
.feature .tag { justify-self: start; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-ink); }

/* split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.flip > :first-child { order: 0; } }
.split + .split { margin-top: 96px; }
.media-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px rgba(23,61,50,0.12); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6A4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 520px; margin-inline: auto; }
.phones .phone:nth-child(2) { margin-top: 48px; }

/* course guide promo */
.guide-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (max-width: 860px) { .guide-promo { grid-template-columns: minmax(0, 1fr); } }
.guide-promo .copy { padding: clamp(28px, 4vw, 52px); display: grid; gap: 14px; align-content: center; }
.guide-promo .pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #2F5E4A; }
.guide-promo .pics img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== Pricing ===================== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 920px; margin-inline: auto; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 18px; align-content: start; }
.plan-card.featured { border: 2px solid var(--gold); box-shadow: 0 24px 48px rgba(23,61,50,0.14); position: relative; }
.plan-card .ribbon { position: absolute; top: -13px; left: 28px; background: var(--gold); color: #173D32; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan-card h3 { font-size: 1.125rem; font-weight: 700; }
.price { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 0.9375rem; margin-top: -8px; }
.billing { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 4px; gap: 4px; }
.billing button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); min-height: 40px; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.billing .save { font-size: 0.75rem; font-weight: 800; color: var(--grass); margin-left: 6px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 920px; margin: 56px auto 0; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--sunk); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--grass); font-weight: 800; }
.no { color: var(--muted); }

/* ===================== Directory ===================== */
.dir-tools { display: grid; gap: 16px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9375rem; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--fairway); color: var(--fairway-ink); border-color: var(--fairway); }
.filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; margin-left: auto; }
.dir-count { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.dir-list a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.dir-list a:hover { border-color: var(--grass); }
.dir-list .n { font-weight: 700; }
.dir-list .m { font-size: 0.8125rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dir-list .g { font-size: 0.75rem; font-weight: 700; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 999px; padding: 1px 8px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

/* ===================== Guides / articles ===================== */
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.guide-card { display: grid; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); align-content: start; }
.guide-card:hover { border-color: var(--grass); color: var(--ink); }
.guide-card h2, .guide-card h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.guide-card p { color: var(--muted); }
.guide-card .more { font-weight: 700; color: var(--grass); }
.article { max-width: 720px; margin-inline: auto; padding-block: 24px 0; }
.article h1 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); margin-top: 12px; }
.article .standfirst { font-size: var(--step-1); color: var(--muted); margin-top: 18px; }
.article .byline { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.article-body { margin-top: 40px; font-size: 1.0625rem; line-height: 1.72; }
.article-body h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: 1.75rem; line-height: 1.15; margin-top: 44px; margin-bottom: 12px; }
.article-body p + p { margin-top: 16px; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 16px 0; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.callout-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 28px 0; }
.callout-box b { display: block; margin-bottom: 4px; }
.article-cta { margin-top: 48px; background: var(--fairway); color: var(--fairway-ink); border-radius: 20px; padding: 28px; display: grid; gap: 12px; }
.article-cta p { color: var(--fairway-muted); }

/* founder */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
@media (max-width: 640px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.founder img { width: 96px; height: auto; }
.founder blockquote { margin: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.22; color: var(--ink); }
.founder p { color: var(--muted); margin-top: 12px; }

/* page head */
.page-head { background: var(--fairway); color: var(--fairway-ink); }
.page-head .wrap { padding-block: 72px 64px; display: grid; gap: 16px; }
.page-head h1 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; max-width: 18ch; }
.page-head .lead { color: var(--fairway-muted); }
.page-head .eyebrow { color: var(--gold); }
.draft { background: color-mix(in srgb, var(--gold) 18%, transparent); border: 1px dashed var(--gold); border-radius: 10px; padding: 2px 8px; font-size: 0.8125rem; font-weight: 700; color: var(--gold-ink); }

.cta-band { text-align: center; }
.cta-band .wrap { display: grid; gap: 18px; justify-items: center; padding-block: 96px; }
.cta-band .h2 em { font-style: normal; color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* guide cards with images, article figures */
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; border-radius: 12px; background: var(--tint); display: block; }
.guide-card .k { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.article .lead { margin-top: 18px; }
.article .crumbs { margin-bottom: 20px; }
.article-fig img { display: block; width: auto; max-width: 100%; max-height: 640px; height: auto; margin-inline: auto; border-radius: 16px; border: 1px solid var(--line); }
.article-fig figcaption { text-align: center; }
.article-cta .btn-line { background: transparent; color: var(--fairway-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fairway-ink) 45%, transparent); }
main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; border-top: 1px solid color-mix(in srgb, var(--fairway-ink) 14%, transparent); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.founder img { border-radius: 22px; }
.phones { align-items: start; }
/* hotspot as a ring, so the thing it points at stays readable */
.hotspot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--gold) 14%, transparent); border: 3px solid var(--gold); box-shadow: 0 0 0 2px rgba(255,255,255,0.85), 0 6px 18px rgba(0,0,0,0.22); }
.hotspot::after { inset: -9px; border-width: 2px; }
.hotspot:focus-visible { outline: 3px solid var(--grass); outline-offset: 4px; }
@media (max-width: 900px) { .site-header .wrap { flex-wrap: nowrap; } }
@media (max-width: 520px) {
  .site-header .logo img { height: 32px; }
  .header-cta .btn-gold { font-size: 0.875rem; min-height: 40px; padding: 0 14px; }
  .mnav summary { min-height: 40px; padding: 0 14px; }
}
@media (max-width: 370px) { .header-cta .btn-gold { display: none; } }
@media (max-width: 760px) { .plans .plan-card.featured { order: -1; } }
