/* caravangolf.com — the public website.
   The same colours as the app (src/styles.css), so stepping from one to the
   other feels like one product. Built by scripts/build-site.mjs. */

:root {
  --green: #0f6e56;
  --green-soft: #e1f5ee;
  --green-line: #9fe1cb;
  --ink: #17201d;
  --ink-2: #5c6b66;
  --line: #e2e6e4;
  --card: #ffffff;
  --page: #f6f7f6;
  --amber: #854f0b;
  --amber-soft: #faeeda;
  --on-green: #ffffff;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #5dcaa5;
    --green-soft: #0d2b23;
    --green-line: #14493c;
    --ink: #eef2f0;
    --ink-2: #a3b1ac;
    --line: #263130;
    --card: #161d1b;
    --page: #0d1211;
    --amber: #fac775;
    --amber-soft: #302108;
    --on-green: #062019;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: 24px; margin-top: 40px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 10px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: var(--green); }
.top nav { align-items: center; }
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.beta-mark {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); border: 1px solid currentColor;
}
.top nav a.nav-account {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--card);
}
.top nav a.nav-account svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.top nav a.nav-account:hover { border-color: var(--green); color: var(--green); }
.top nav a.nav-account.signed-in { background: var(--green); border-color: var(--green); color: var(--on-green); }
.top nav a.nav-account.signed-in svg { fill: currentColor; stroke: currentColor; }
.top nav a.nav-install {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600;
}
.top nav a.nav-install:hover { border-color: var(--green); color: var(--green); }

main { padding-bottom: 56px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 760px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 640px; }
.lead + .lead { font-size: 18px; margin-top: -4px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border-radius: 8px;
  background: var(--green); color: var(--on-green); border: 1px solid transparent;
  font-weight: 600; text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }

.beta {
  display: inline-block; margin-top: 16px; padding: 10px 14px;
  background: var(--green-soft); border: 1px solid var(--green-line); border-radius: var(--radius);
}

/* Features */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--ink-2); }

/* How it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green); font-weight: 700;
}
.steps span { color: var(--ink-2); }

/* Lists and tables */
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--page); font-weight: 600; }
tbody tr:first-child td { border-top: 0; }
/* Pricing cards */
.stack { display: grid; gap: 10px; margin-bottom: 8px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.price-card { padding: 16px 18px; }
.price-card p { margin: 0; }
.price-card p + p { margin-top: 6px; }
.price-card .checks { margin: 6px 0 0; }
.price-card .checks li:last-child { margin-bottom: 0; }
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.price-head h3 { margin: 0; }
.price { font-weight: 700; font-size: 20px; white-space: nowrap; }
.price small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.small { font-size: 14px; }
h3.sub { margin: 24px 0 10px; color: var(--ink-2); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Policies */
.legal { padding-top: 32px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.draft {
  padding: 10px 14px; margin-bottom: 20px;
  background: var(--amber-soft); color: var(--amber); border-radius: var(--radius);
}
mark { background: var(--amber-soft); color: var(--amber); padding: 0 3px; border-radius: 3px; }
code { font-size: 0.9em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot-links a { color: var(--ink-2); }

section.wrap:not(.narrow) > h2:first-child { margin-top: 48px; }
section.narrow { padding-top: 32px; }

@media (max-width: 420px) {
  .top nav { gap: 14px; }
  .nav-install-word { display: none; }
  .top nav a.nav-install { width: 40px; padding: 0; justify-content: center; }
  .brand { font-size: 16px; }
  .hero { padding-top: 36px; }
  .lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; }
}

/* Hero with the tee-off, cycling through the three club looks. */
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-scene { margin: 0; }
.hero-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 50, 40, 0.18);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-frame.out { opacity: 0; transform: scale(0.98); }
.hero-frame svg, .look-art svg { display: block; width: 100%; height: auto; }
.hero-look { margin-top: 10px; text-align: center; color: var(--ink-2); font-size: 14px; }
.hero-look span { font-weight: 700; color: var(--green); }

/* A soft course backdrop behind the hero. */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(93, 202, 165, 0.16), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(15, 110, 86, 0.03) 34px 68px);
}

/* Pick your club's look. */
.section-lead { color: var(--ink-2); max-width: 620px; }
.look-card { padding: 0; overflow: hidden; }
.look-card h3 { margin: 16px 18px 4px; }
.look-card p { margin: 0 18px 18px; }

@media (prefers-reduced-motion: reduce) {
  .hero-frame { transition: none; }
}

/* The preview website's strip (build-site.mjs, preview target). */
.preview-strip {
  padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 600;
  background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid var(--line);
}

/* Features (/features): a section per audience — the CGO, organizers,
   players, competitions — each a list beside its screens. On a phone the
   screens sit under the list and scroll sideways within their own strip. */
.feature-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.feature-jump a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 15px; text-decoration: none;
}
.feature-jump a:hover { border-color: var(--green-line); background: var(--green-soft); }
.feature-section { scroll-margin-top: 16px; }
.feature-section h2 { padding-top: 24px; border-top: 1px solid var(--line); }
.feature-body { display: grid; gap: 24px; align-items: start; }
.feature-list { margin: 0; display: grid; gap: 14px; }
.feature-list dt { font-weight: 650; }
.feature-list dd { margin: 2px 0 0; color: var(--ink-2); }
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px;
}
.shot { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); text-align: center; }
.feature-end { margin-top: 32px; }
@media (min-width: 860px) {
  .feature-body { grid-template-columns: 1fr auto; gap: 40px; }
  .shots { margin: 0; padding: 4px 0 10px; overflow: visible; flex-wrap: wrap; justify-content: flex-end; max-width: 474px; }
  .shots.one { max-width: 220px; }
}

/* A section heading with its link beside it, on one line where it fits and
   the link wrapping under it on a narrow phone. */
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 40px; margin-bottom: 12px; }
.title-row h2 { margin: 0; }

/* THE HOW-TO GUIDE AND FAQ (build-site.mjs guidePage). The app's ⓘ opens a
   section by its anchor; that section is lit up so the eye lands on it. */
.guide h2, .guide .topic { scroll-margin-top: 72px; }
.guide h3 { font-size: 18px; margin: 0 0 8px; }
.guide .topic { margin: 18px -14px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; }
.guide .topic:target { border-color: var(--green); background: var(--green-soft); }
.guide ol, .guide ul { padding-left: 22px; }
.guide li { margin: 4px 0; }
.guide-toc { margin: 18px 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 15px; }
.guide-toc ul { list-style: none; padding-left: 0; margin: 0; }
.guide-toc > ul > li { margin: 6px 0; font-weight: 600; }
.guide-toc ul ul { padding-left: 14px; font-weight: 400; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.guide-toc ul ul li { margin: 2px 0; }
/* Room after the last section, so a section near the end can still be
   scrolled to the top when the app opens it. */
.guide { padding-bottom: 50vh; }

/* Screenshots in the guide and FAQ: a phone screen at a phone's width, with
   what it shows underneath. */
.guide-shot { margin: 14px auto 6px; max-width: 260px; text-align: center; }
.guide-shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10); }
.guide-shot figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
/* The way back up, at the end of each section. */
.guide .to-top { margin: 10px 0 0; text-align: right; font-size: 13px; }
.guide .to-top a { text-decoration: none; }

/* ===========================================================================
   THE GOLF THEME (9 October 2026): a fairway for every page's banner, with
   mowing stripes and a curved edge; flags for numbered steps; a scorecard
   strip; the printed scorecard on paper; the clubhouse and the green.
   Fixed greens, so the course looks the same in light and dark.
   ========================================================================= */
:root {
  --fairway: #0e5a46;
  --fairway-2: #13704f;
  --fairway-deep: #083a2d;
  --flag: #e8b33c;
  --sand: #f3ead6;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

h1, h2, .brand { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 32px); }
.legal h2, .guide h2 { font-size: 26px; }
.brand { font-size: 21px; }

.nowrap { white-space: nowrap; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* The fairway: mowing stripes over a deep green, light text. */
.fairway {
  position: relative;
  color: #f2f7f4;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(255, 255, 255, 0.10), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.045) 0 64px, transparent 64px 128px),
    linear-gradient(170deg, var(--fairway-2), var(--fairway) 55%, var(--fairway-deep));
}
.fairway a { color: #fff; }
.fairway .lead, .fairway p { color: rgba(242, 247, 244, 0.86); }
.fairway-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--page); display: block; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.fairway .eyebrow { color: var(--flag); }

.hero.fairway { padding: 56px 0 84px; }
.hero h1 { max-width: 640px; color: #fff; }
.fairway .btn { background: #fff; color: var(--fairway-deep); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.fairway .beta { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.28); color: #f2f7f4; }
.hero-frame { border: 6px solid rgba(255, 255, 255, 0.9); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.hero-look { color: rgba(242, 247, 244, 0.8); }
.hero-look span { color: var(--flag); }

.page-banner { padding: 40px 0 60px; margin-bottom: 8px; }
.page-banner h1 { color: #fff; margin: 0 0 8px; }
.page-banner .lead { margin: 0; }
.page-banner .feature-jump { margin-top: 18px; }
.page-banner .feature-jump a {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.3); color: #fff;
}
.page-banner .feature-jump a:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
section.narrow { padding-top: 16px; }
.legal { padding-top: 16px; }

/* The scorecard strip under the hero: what it does, hole by hole. */
.card-strip { margin: -6px 0 0; overflow-x: auto; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }
.mini-card { border-collapse: collapse; width: 100%; min-width: 860px; background: var(--card); font-size: 14px; }
.mini-card th, .mini-card td { border: 1px solid var(--line); padding: 8px 6px; text-align: center; white-space: nowrap; }
.mini-card tr:first-child th, .mini-card tr:first-child td { background: var(--green-soft); color: var(--green); font-weight: 700; }
.mini-card th { text-align: left; font-family: var(--serif); font-weight: 400; font-size: 16px; }
.mini-card .out { font-weight: 800; color: var(--green); background: var(--green-soft); }
.mini-card tr:last-child .out { font-size: 16px; }
/* A step you can skip: the first hole of the strip and of the round. */
.opt { font-size: 12px; font-weight: 400; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--ink-2); }
.mini-card .opt { display: block; }

/* The round, start to finish: a hole flag, a line, and the screen. */
.holes { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hole { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hole-head { display: flex; gap: 12px; align-items: flex-start; }
.hole-head h3 { margin: 2px 0 2px; font-size: 19px; }
.hole-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.hole-flag { flex: 0 0 auto; }
.hole-flag ellipse { fill: var(--line); }
.hole-flag .pin { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.hole-flag .cloth { fill: var(--flag); }
.hole-flag text { font: 800 14px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; fill: var(--fairway-deep); text-anchor: middle; }
.hole img.phone {
  display: block; width: 78%; max-width: 260px; height: auto; margin: auto auto 0;
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.08);
}

/* The clubhouse band: the printed scorecard on paper. */
.clubhouse { margin-top: 56px; padding: 52px 0; color: #f2f7f4; background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
  linear-gradient(160deg, var(--fairway-deep), #062a21); }
.clubhouse h2 { color: #fff; margin-top: 0; }
.clubhouse p { color: rgba(242, 247, 244, 0.86); }
.clubhouse .eyebrow { color: var(--flag); }
.link-light { color: var(--flag); font-weight: 600; text-decoration: none; }
.link-light:hover { text-decoration: underline; }
.clubhouse-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .clubhouse-grid { grid-template-columns: 0.8fr 1.2fr; } }
.paper { margin: 0; padding: 10px; background: #fff; border-radius: 6px; transform: rotate(-1.2deg); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.paper img { display: block; width: 100%; height: auto; }

/* Also in the bag. */
.bag { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bag-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.bag-item .icon { color: var(--green); padding: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); }
.bag-item h3 { margin: 2px 0 4px; font-size: 17px; }
.bag-item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Three holes: numbered flags along a dotted line, like a course's routing. */
.course-path { position: relative; gap: 22px; }
.course-path li { grid-template-columns: 48px 1fr; }
.course-path li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--fairway-deep); border: 3px solid var(--fairway-2);
  box-shadow: 0 0 0 4px var(--green-soft);
}
/* The dotted line runs from each flag to the next, so it ends at the last flag
   however many lines a step's words take. */
.course-path li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: -22px; border-left: 3px dotted var(--green-line); }

/* The putting green at the bottom of the home page. */
.green-cta { margin-top: 56px; padding: 56px 0 60px; text-align: center; color: #f2f7f4; background:
  radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.14) 0 30%, transparent 31%),
  radial-gradient(circle at 50% 120%, var(--fairway-2) 0 45%, var(--fairway) 46% 100%); }
.green-cta h2 { color: #fff; margin-top: 0; }
.green-cta p { color: rgba(242, 247, 244, 0.86); }
.green-cta .btn { background: #fff; color: var(--fairway-deep); }
.cta.center { justify-content: center; }
main:has(> .green-cta:last-of-type) { padding-bottom: 0; }

/* Features: an icon by each section's title; a landscape screen spans. */
.h-icon { display: inline-flex; vertical-align: -3px; margin-right: 10px; color: var(--green); }
.shot img.phone, .shot img.wide { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10); }
.shot.wide-shot { width: 440px; max-width: 86vw; }
.shot.wide-shot img.wide { border-radius: 6px; background: #fff; }
@media (min-width: 860px) {
  .shots.three .shot.wide-shot { width: 100%; max-width: 454px; }
}

/* The guide and FAQ: the contents as a grid of cards with icons. */
.guide-toc { padding: 0; border: 0; background: none; }
.guide-toc > ul { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-toc > ul > li {
  margin: 0; padding: 14px 16px 12px; background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--fairway-2); border-radius: 12px;
  display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: start;
}
.guide-toc > ul > li > .icon { color: var(--green); margin-top: 1px; }
.guide-toc > ul > li > a { font-family: var(--serif); font-weight: 400; font-size: 19px; text-decoration: none; color: var(--ink); }
.guide-toc > ul > li > ul { grid-column: 1 / -1; margin-top: 8px; }
.guide h2 { padding-top: 22px; border-top: 2px solid var(--green-line); }
.guide-shot.wide { max-width: 100%; }
.guide-shot.wide img { border-radius: 6px; background: #fff; }

/* Footer: the clubhouse at night. */
.foot { background: var(--fairway-deep); color: rgba(242, 247, 244, 0.8); border-top: 0; }
.foot-links a { color: rgba(242, 247, 244, 0.85); }
.foot-links a:hover { color: #fff; }
.foot-sign { display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(242, 247, 244, 0.7); }
.foot-sign .icon { color: var(--flag); }

@media (max-width: 420px) {
  .hero.fairway { padding: 36px 0 70px; }
  .hole img.phone { width: 86%; }
}
.course-path li { position: relative; z-index: 1; }
.looks-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.cta-flag { display: inline-block; color: var(--flag); margin-bottom: 6px; }
/* The hole cards show the top of each screen, where the action is. */
.hole img.phone { aspect-ratio: 390 / 560; object-fit: cover; object-position: left top; }
/* On a phone the holes play one after another, sideways. */
@media (max-width: 640px) {
  .holes {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; scroll-padding-inline: 16px;
  }
  .hole { scroll-snap-align: start; }
}

/* ===========================================================================
   COMPARE (/compare): the topics and Caravan Golf stay pinned on the left,
   the app names stay pinned at the top, and the other apps scroll past.
   ========================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reasons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 8px; }
.compare-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; color: var(--ink-2); }
.compare-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.compare-frame {
  --topic-w: 200px; --cg-w: 170px;
  overflow: auto; max-height: min(78vh, 900px); overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.compare { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; background: var(--card); }
.compare td { width: 150px; min-width: 150px; max-width: 150px; }
.compare thead th {
  position: sticky; top: 0; z-index: 2; vertical-align: bottom;
  width: 150px; min-width: 150px; max-width: 150px;
  border-bottom: 2px solid var(--line); font-weight: 650;
}
.compare thead th small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.compare .app-name { display: block; line-height: 1.25; }
/* The pinned pair. */
.compare .topic {
  position: sticky; left: 0; z-index: 1;
  width: var(--topic-w); min-width: var(--topic-w); max-width: var(--topic-w);
  font-weight: 600; border-right: 1px solid var(--line);
}
.compare .cg {
  position: sticky; left: var(--topic-w); z-index: 1;
  width: var(--cg-w); min-width: var(--cg-w); max-width: var(--cg-w);
  background: var(--green-soft); border-right: 2px solid var(--fairway-2);
  box-shadow: 6px 0 12px -6px rgba(0, 0, 0, 0.18);
}
.compare thead .topic, .compare thead .cg { z-index: 3; }
.compare thead .cg { color: var(--green); font-family: var(--serif); font-weight: 400; font-size: 19px; }
.compare thead .cg img { display: block; border-radius: 6px; margin-bottom: 6px; }
.compare thead .cg small { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.compare tr.group th, .compare tr.group td {
  background: var(--fairway); color: #fff; padding-block: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-right-color: var(--fairway);
}
.compare tr.group td.cg { background: var(--fairway); box-shadow: none; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-weight: 800; font-size: 13px; line-height: 1;
}
.mark.y { background: var(--green); color: var(--on-green); }
.mark.p { background: var(--amber-soft); color: var(--amber); }
.mark.n { color: var(--ink-2); }
.mark.u { color: var(--ink-2); border: 1px dashed var(--line); font-weight: 600; }
.compare .note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.compare .cg .note { color: var(--ink); font-weight: 600; }
.sources { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.sources ul { columns: 2 200px; margin: 8px 0 0; }
@media (max-width: 640px) {
  .compare-frame { --topic-w: 118px; --cg-w: 112px; margin: 0 -16px; border-radius: 0; border-inline: 0; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 8px 8px; }
  .compare td, .compare thead th { width: 124px; min-width: 124px; max-width: 124px; }
  .compare thead .cg { font-size: 16px; }
}

/* ===========================================================================
   ABOUT (/about): before and after, then the story.
   ========================================================================= */
.before-after { display: grid; gap: 18px; align-items: center; margin-top: 8px; }
@media (min-width: 760px) { .before-after { grid-template-columns: 1fr auto 1fr; } }
.ba-side { padding: 20px; border-radius: 16px; }
.ba-side h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.ba-before { background: var(--card); border: 1px dashed var(--ink-2); }
.ba-before h3 { color: var(--ink-2); }
.ba-before ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ba-before li {
  margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--page); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 15px; transform: rotate(var(--tilt));
}
.ba-arrow { font-size: 34px; color: var(--green); text-align: center; }
@media (max-width: 759px) { .ba-arrow { transform: rotate(90deg); } }
.ba-after { color: #f2f7f4; background:
  repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.05) 0 40px, transparent 40px 80px),
  linear-gradient(160deg, var(--fairway-2), var(--fairway-deep)); }
.ba-after h3 { color: #fff; }
.ba-after h3 .icon { color: var(--flag); }
.ba-after ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ba-after li { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ba-after .hole-flag { width: 30px; height: 33px; }
.ba-after .hole-flag .pin { stroke: rgba(255, 255, 255, 0.7); }
.ba-after .hole-flag ellipse { fill: rgba(255, 255, 255, 0.15); }
.story h2 { margin-top: 36px; }
.story p { font-size: 18px; }
.who { margin-top: 32px; border-top: 4px solid var(--fairway-2); }
.who h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.who p + p { margin-top: 8px; }
.compare-asof { flex-basis: 100%; font-weight: 600; color: var(--ink); }
.compare-note { margin-top: 14px; max-width: 820px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--flag); color: var(--ink-2); }
.compare-note strong { color: var(--ink); }
/* The gift: a heart in the top bar, and a band on About (0208). */
.top nav a.nav-gift {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: #c0392b; font-weight: 600;
}
.top nav a.nav-gift .nav-install-word { color: var(--ink); }
.top nav a.nav-gift:hover { border-color: #c0392b; }
@media (max-width: 420px) { .top nav a.nav-gift { width: 40px; padding: 0; justify-content: center; } }
.gift-band { margin-top: 28px; border-left: 4px solid #c0392b; }
.gift-band h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.gift-band p { margin: 0 0 14px; }
/* The narrowest phones: the logo stands for the name, so the top bar's
   buttons keep their room. */
@media (max-width: 440px) {
  .brand-name { display: none; }
  .top nav { gap: 8px; }
}
/* Up and running: two ways in, side by side on a wide screen. */
.paths { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; gap: 40px; } }
.path { display: flex; flex-direction: column; }
.path h3 { margin: 0 0 14px; }
/* Both links on one line, whichever path's steps run longer. */
.path-link { align-self: flex-start; margin-top: auto; padding-top: 16px; font-weight: 600; }
/* The hero's way straight to scoring, under its two buttons: a bright card
   with a flag, so somebody standing on the first tee can't miss it. */
.hero-quick {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 520px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #1b1405;
  background: linear-gradient(135deg, #ffd66b, #f7b733); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-quick:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }
.hero-quick strong { display: block; font-size: 18px; line-height: 1.25; text-wrap: balance; color: #1b1405; }
.hero-quick-sub { display: block; margin-top: 3px; font-size: 15px; color: #4a3608; }
.hero-quick-flag { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); color: #8a2d12; }
.hero-quick-go { flex: none; margin-left: auto; font-size: 22px; font-weight: 700; color: #1b1405; }
@media (prefers-reduced-motion: reduce) { .hero-quick, .hero-quick:hover { transition: none; transform: none; } }

/* The free calculators (site/calc/*.js). The grid is holes down the side and
   players across, so it reads on a phone; a wide field scrolls inside its own
   box, never the page. */
.calc-page { padding-top: 8px; }
.calc-intro { max-width: 70ch; color: var(--ink-2); }
.calc { display: grid; gap: 18px; margin-top: 12px; }
.calc input { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.calc input:focus-visible, .calc button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.calc-setup { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .calc-setup { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.calc-players, .calc-options { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.calc-head { display: grid; grid-template-columns: minmax(0, 1fr) 84px 32px; gap: 8px; font-size: 13px; color: var(--ink-2); }
.calc-player { display: grid; grid-template-columns: minmax(0, 1fr) 84px 32px; gap: 8px; align-items: center; }
.calc-player:has(.calc-side) { grid-template-columns: 24px minmax(0, 1fr) 84px; }
.calc-players:has(.calc-side) .calc-head { grid-template-columns: 24px minmax(0, 1fr) 84px; }
.calc-players:has(.calc-side) .calc-head::before { content: ''; }
.calc-side { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; }
.calc-x { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-2); font-size: 20px; cursor: pointer; border-radius: 8px; }
.calc-x:hover { background: var(--green-soft); }
.calc-add { justify-self: start; border: 0; background: none; color: var(--green); font: inherit; font-weight: 600; padding: 4px 0; cursor: pointer; }
.calc-format { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.calc-format button { font: inherit; font-weight: 600; padding: 8px; border-radius: 8px; border: 1px solid var(--green); background: var(--green); color: var(--on-green); cursor: pointer; }
.calc-format button.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.calc-options label { display: flex; align-items: center; gap: 8px; }
.calc-options input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.calc-money input { width: 80px; }
.calc-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.calc-grid { border-collapse: collapse; width: 100%; font-size: 15px; }
.calc-grid th, .calc-grid td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; vertical-align: middle; }
.calc-grid thead th { position: sticky; top: 0; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.calc-grid tbody th { font-weight: 600; color: var(--ink-2); width: 40px; }
.calc-grid tr.calc-turn > * { border-top: 3px solid var(--green-line); }
.calc-grid td { position: relative; }
.calc-grid td.won .calc-score { background: var(--green); color: var(--on-green); border-color: var(--green); font-weight: 700; }
.calc-score, .calc-si { width: 48px; text-align: center; padding: 6px 2px; -moz-appearance: textfield; appearance: textfield; }
.calc-si { color: var(--ink-2); }
.calc-score::-webkit-outer-spin-button, .calc-score::-webkit-inner-spin-button,
.calc-si::-webkit-outer-spin-button, .calc-si::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* The strokes a player receives on a hole, as dots in the corner of the box,
   the way the app's scorecard draws them. */
.calc-cell { position: relative; display: inline-block; }
.calc-dots { position: absolute; top: 3px; right: 5px; font-size: 9px; line-height: 1; letter-spacing: -1px; color: var(--amber); pointer-events: none; }
.calc-what { font-size: 13px; color: var(--ink-2); text-align: left !important; min-width: 64px; }
.calc-what.won { color: var(--green); font-weight: 700; }
.calc-result { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 14px 16px; }
.calc-result h3 { margin: 0 0 8px; }
.calc-standings { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.calc-standings li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.calc-standings li:last-child { border-bottom: 0; }
.calc-standings .n { font-weight: 600; overflow-wrap: anywhere; }
.calc-standings strong { color: var(--green); min-width: 56px; text-align: right; }
.calc-settle { margin: 10px 0 0; font-weight: 600; }
.calc-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid var(--green-line); }
.calc-cta p { margin: 0; max-width: 60ch; }
.calc-explain h2 { margin-top: 28px; }
.calc-other { margin-top: 28px; font-weight: 600; }
@media (max-width: 420px) {
  .calc-standings li { grid-template-columns: minmax(0, 1fr) auto; }
  .calc-standings li > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--ink-2); font-size: 14px; }
  .calc-standings strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* The tee sheet maker (site/calc/teesheet.js): the groups as cards, and a
   clean page when printed. */
.calc-names { width: 100%; min-height: 220px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.calc-options select, .calc-options input[type="time"] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.calc-gap { width: 70px; }
.calc-modes { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.calc-modes legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: var(--ink-2); }
.calc-modes input { accent-color: var(--green); }
.calc-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.ts-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ts-groups > li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 12px 14px; break-inside: avoid; }
.ts-when { display: grid; gap: 2px; margin-bottom: 8px; }
.ts-no { font-size: 13px; color: var(--ink-2); }
.ts-groups ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
@media print {
  .top, .foot, .page-banner, .calc-intro, .calc-downloads, .calc-setup, .calc-explain, .no-print, .preview-strip { display: none !important; }
  body { background: #fff; color: #000; }
  .ts-groups { grid-template-columns: repeat(3, 1fr); }
  .ts-groups > li { border-color: #999; border-top-color: #000; }
}

/* Who it is for: a second, quieter line of footer links. */
.foot-for { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(242, 247, 244, 0.14); }

/* The free tools, early on the home page. */
.tools-strip { margin-bottom: 28px; }
.tools-strip .title-row { margin-top: 28px; }
.tools-note { font-size: 14px; color: var(--ink-2); }
.tool-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--green-line); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.tool-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tool-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.tool-text { display: grid; gap: 2px; min-width: 0; }
.tool-text strong { font-size: 17px; }
.tool-text span { font-size: 14px; color: var(--ink-2); }
.tool-go { flex: none; margin-left: auto; color: var(--green); font-weight: 700; font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .tool-card, .tool-card:hover { transition: none; transform: none; } }
