/* Miza Golf marketing site — shares the app's brand palette exactly
   (see lib/theme.dart). No external fonts, no external requests: the
   whole point of the product is "nothing leaves your device". */

:root {
  --cream: #F3EFE4;
  --dark-green: #1D3326;
  --gold: #C9A85A;
  --gold-pressed: #BD9B4B;
  --terracotta: #B2542F;
  --under-par: #3A7A4A;
  --muted-label: #9FB09A;
  --muted-text: #8A9384;
  --tile: #E6E0D0;
  --start-top: #2C4A36;
  --start-mid: #20382A;
  --start-bot: #1A2C20;
  --ink-dk: #E6ECDF;
  --under-dk: #A9D6B0;
  --over-dk: #E0A183;
  --max: 1080px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--start-bot);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 44, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand span {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--cream);
  white-space: nowrap;
}
nav.links { display: flex; gap: 6px; flex-wrap: wrap; }
nav.links a {
  text-decoration: none;
  color: var(--muted-label);
  font-weight: 700;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--dark-green);
  background: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    repeating-linear-gradient(
      120deg,
      var(--start-top) 0 60px,
      var(--start-mid) 60px 120px
    );
}
.hero::after {
  /* soft vignette so the mowing stripes don't fight the text */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,44,32,0) 0%, rgba(20,34,26,0.55) 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; text-align: center; }

.hero-ball {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55), rgba(255,255,255,0) 45%),
    radial-gradient(circle, #fff 60%, #dcd6c6 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35), inset 0 -6px 10px rgba(0,0,0,0.08);
  position: relative;
}
.hero-ball::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.12) 1.4px, transparent 1.6px);
  background-size: 11px 11px;
  opacity: 0.55;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--cream);
}
.hero p.lede {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-dk);
  font-weight: 500;
}
.hero .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold);
  color: var(--dark-green);
  box-shadow: 0 10px 24px rgba(201,168,90,0.25);
}
.btn-gold:hover { background: var(--gold-pressed); }
.btn-ghost {
  color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero .fine-print {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted-label);
  font-weight: 600;
}

/* ---------- generic sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--start-mid); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: var(--cream);
}
.section-head p {
  color: var(--muted-label);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark-green);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.step-card h3 {
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink-dk);
}
.step-card p {
  font-size: 14.5px;
  color: var(--muted-label);
  margin: 0;
  line-height: 1.55;
}

/* ---------- feature rows (maps / privacy) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy .eyebrow { margin-bottom: 10px; }
.feature-copy h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
  color: var(--cream);
}
.feature-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-dk);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
}
.feature-copy li .dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark-green);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature-visual {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* satellite-map mock */
.map-mock {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2c4a36 0%, #1f3a2b 55%, #16281e 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.map-mock .fairway {
  position: absolute;
  left: 46%;
  top: -10%;
  width: 40%;
  height: 120%;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 14px, rgba(0,0,0,0.05) 14px 28px);
  transform: rotate(6deg);
  border-radius: 999px;
}
.map-mock .pin {
  position: absolute;
  top: 14%;
  left: 60%;
  width: 3px;
  height: 46px;
  background: var(--cream);
}
.map-mock .pin::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  border: 9px solid transparent;
  border-left-color: var(--gold);
}
.map-mock .ball {
  position: absolute;
  bottom: 20%;
  left: 42%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.15);
}
.map-mock .dist-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15,25,18,0.72);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.2px;
}

/* privacy lock badge */
.lock-badge {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.6), rgba(255,255,255,0) 45%),
    radial-gradient(circle, var(--gold) 60%, var(--gold-pressed) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
}
.lock-badge svg { width: 64px; height: 64px; }

.callout {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(178,84,47,0.14);
  border: 1px solid rgba(178,84,47,0.35);
  border-radius: 14px;
  padding: 14px 16px;
}
.callout svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.callout p { margin: 0; font-size: 14px; color: var(--over-dk); font-weight: 600; line-height: 1.5; }

/* ---------- glossary ---------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.glossary .term {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}
.glossary .term h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--gold);
}
.glossary .term p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-label);
  line-height: 1.55;
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  background: var(--start-bot);
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
footer.site .brand span { font-size: 16px; }
footer.site nav.links a { color: var(--muted-text); }
footer.site .attrib {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--muted-text);
  text-align: center;
}

/* ---------- legal pages ---------- */
.legal {
  padding: 64px 0 100px;
}
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.legal .updated {
  color: var(--muted-label);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-dk);
  margin: 40px 0 12px;
}
.legal p, .legal li {
  color: var(--muted-label);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; }
.legal a.inline { color: var(--gold); font-weight: 700; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  footer.site .wrap { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .glossary { grid-template-columns: 1fr; }
  nav.links a { padding: 8px 10px; font-size: 13.5px; }
  section { padding: 60px 0; }
}
