/* Marketing site — shares the app's brand tokens (grass green, Outfit
   display face) so this reads as the same product, not a bolted-on
   separate site. Editorial layout choices (wider measure, bigger type
   scale, hover states) are specific to a "read and be convinced" page,
   which is a different job to the phone-first scoring screens. */

:root {
  /* See public/style.css for the full reasoning — a purer green than
     golfgamebook.com's own, at Paul's request, tuned to clear 4.5:1 with
     white button text rather than their own looser ~2.8:1 logo shade. */
  --brand: #0b7d3a;
  --brand-dark: #063f1e;
  --brand-soft: #c2ecc7;
  --ink: #032613;
  --muted: #5c6b60;
  --paper: #ffffff;
  --bg: #f1fbf1;
  --line: #d7ebd9;
  --good: #15803d;
  --bad: #b91c1c;
  --gold: #a16207;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* --- Scroll reveal --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.site-brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  opacity: .78;
}
.site-links a:hover, .site-links a.active { opacity: 1; color: var(--brand); }
.site-links .cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 1;
  transition: background .15s, transform .15s;
}
.site-links .cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-links { position: fixed; inset: 62px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px 24px; gap: 20px; transform: translateX(100%); transition: transform .2s ease; overflow-y: auto; }
  .site-links.open { transform: translateX(0); }
  .site-links a { font-size: 18px; }
  .site-links .cta { width: 100%; text-align: center; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: none;
    cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 3px 3px, rgba(255,255,255,.06) 1.5px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 76px 20px 88px;
  text-align: center;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero::before { width: 380px; height: 380px; background: var(--brand); top: -160px; left: -100px; }
.hero::after { width: 320px; height: 320px; background: var(--brand-dark); bottom: -180px; right: -80px; }
.hero > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-drift-a 15s ease-in-out infinite alternate; }
  .hero::after { animation: hero-drift-b 17s ease-in-out infinite alternate; }
}
@keyframes hero-drift-a { from { transform: translate(0, 0); } to { transform: translate(36px, 26px); } }
@keyframes hero-drift-b { from { transform: translate(0, 0); } to { transform: translate(-28px, -20px); } }
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bfe0cd;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: .005em;
  margin: 0 auto 22px;
  max-width: 780px;
  text-wrap: balance;
}
.hero .sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: #dcefe3;
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand-soft); }
.btn-ghost:hover { background: var(--brand-soft); }

/* --- Sections --- */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }

.bg-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Cards / grids --- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
.grid.cols-3 > :nth-child(1) { --reveal-delay: 0s; }
.grid.cols-3 > :nth-child(2) { --reveal-delay: .08s; }
.grid.cols-3 > :nth-child(3) { --reveal-delay: .16s; }
.grid.cols-3 > :nth-child(4) { --reveal-delay: .24s; }
.grid.cols-3 > :nth-child(5) { --reveal-delay: .32s; }
.grid.cols-3 > :nth-child(6) { --reveal-delay: .4s; }
.grid.cols-2 > :nth-child(1) { --reveal-delay: 0s; }
.grid.cols-2 > :nth-child(2) { --reveal-delay: .1s; }
.grid.cols-2 > :nth-child(3) { --reveal-delay: .2s; }
.grid.cols-2 > :nth-child(4) { --reveal-delay: .3s; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(15,61,41,.12);
  border-color: var(--brand-soft);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.card .icon svg { width: 22px; height: 22px; }
.card:hover .icon { transform: scale(1.08); background: var(--brand); color: #fff; }
.card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Small live-status accent — used once, on the card that's actually about
   real-time updates, not decoration for its own sake. */
.live-pulse {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--good); margin: 0 0 8px;
}
.live-pulse .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.live-pulse .dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: var(--good); opacity: .35;
}
@media (prefers-reduced-motion: no-preference) {
  .live-pulse .dot::after { animation: live-pulse-ring 1.8s ease-out infinite; }
}
@keyframes live-pulse-ring { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }

/* --- Problem/fix rows --- */
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
@media (max-width: 720px) { .pf-row { grid-template-columns: 1fr; } }
.pf-box { border-radius: 14px; padding: 22px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.pf-box:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.pf-box.bad { background: #fef2f2; border: 1px solid #fecaca; }
.pf-box.good { background: var(--brand-soft); border: 1px solid #bfe0cd; }
.pf-label { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; display: flex; align-items: center; gap: 7px; }
.pf-box.bad .pf-label { color: var(--bad); }
.pf-box.good .pf-label { color: var(--brand-dark); }
.pf-box p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }

/* --- Feature list (checkmarks) --- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }

/* --- Comparison table --- */
.compare-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 15.5px;
  min-width: 640px;
}
table.compare th, table.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th { font-family: var(--display); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.compare td.feature { font-weight: 700; }
table.compare td.hb { background: var(--brand-soft); }
table.compare tr:last-child td { border-bottom: none; }
table.compare tbody tr, table.compare tr { transition: background .15s ease; }
table.compare tr:hover td:not(.hb) { background: var(--bg); }
table.compare .yes { color: var(--good); font-weight: 700; }
table.compare .no { color: var(--bad); }

/* --- Pricing --- */
.price-card {
  background: var(--paper);
  border: 2px solid var(--brand);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15,61,41,.1);
}
.price-card .amount { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--brand-dark); line-height: 1; margin: 6px 0; }
.price-card .amount span { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-card .note { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.price-card .check-list { text-align: left; margin-bottom: 28px; }

.draft-flag {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #92400e;
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}

/* --- FAQ (reuses the app's ruling-item accordion pattern) --- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 4px; cursor: pointer;
  font-weight: 700; font-size: 16.5px;
}
.faq-chevron { font-size: 20px; color: var(--muted); flex: none; transition: transform .15s; }
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p { margin: 0 4px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
  border-radius: 24px;
}
.cta-band h2 { font-family: var(--display); font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; margin: 0 0 14px; }
.cta-band p { color: #dcefe3; margin: 0 0 28px; font-size: 16.5px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
