/* CaddieLoop marketing site — shared styles.
   Brand palette matches the in-app theme so people arriving from the App
   Store immediately recognize the aesthetic:
     --ink:   #070d07  deep forest, near-black (page background)
     --night: #0a160a  subtle green-black (card background)
     --gold:  #c9a84c  primary accent, CTAs, headings
     --gold2: #dbbf6a  hover/secondary gold
     --cream: #f0ebe0  body text
     --mute:  #a89e8c  muted text (captions, legal)
     --moss:  #4a6050  borders, dividers
   Georgia serif for headlines is intentional — the "19th hole leather" feel. */

:root {
  --ink:   #070d07;
  --night: #0a160a;
  --gold:  #c9a84c;
  --gold2: #dbbf6a;
  --cream: #f0ebe0;
  --mute:  #a89e8c;
  --moss:  #4a6050;
  --max:   1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gold);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; color: var(--gold2); }

p { color: var(--cream); margin: 0 0 16px; }
p.muted { color: var(--mute); }

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

/* ── Top nav ─────────────────────────────────────────────────────────── */
nav.top {
  padding: 24px 0;
  border-bottom: 1px solid rgba(74, 96, 80, 0.3);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--gold);
  font-weight: normal;
  letter-spacing: 0.02em;
}
.brand::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  margin-bottom: 3px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero .kicker {
  color: var(--gold2);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--cream);
  max-width: 680px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.25);
  color: var(--ink);
}
.btn-primary.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--moss);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Features ────────────────────────────────────────────────────────── */
section {
  padding: 64px 0;
}
section.alt {
  background: var(--night);
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head p {
  color: var(--mute);
  max-width: 580px;
  margin: 0 auto;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--night);
  border: 1px solid rgba(74, 96, 80, 0.4);
  border-radius: 14px;
  padding: 28px 24px;
}
section.alt .feature {
  background: var(--ink);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 15px; margin: 0; }

/* ── Screenshots strip ──────────────────────────────────────────────── */
/* Phones are pre-framed via MockUPhone — display as plain images with a
   soft drop shadow so they read as floating devices. No CSS bezel. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  justify-items: center;
  align-items: start;
}
.shots img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

/* ── Analysis hero (cascade) ────────────────────────────────────────── */
.analysis {
  background: var(--ink);
  padding: 80px 0;
}
.analysis-image {
  margin-top: 8px;
  width: 100%;
  display: block;
}
.analysis-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ── Bottom CTA ──────────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 80px 24px;
}
.cta-band h2 { margin-bottom: 24px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(74, 96, 80, 0.3);
  padding: 32px 0 48px;
  color: var(--mute);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
footer a { color: var(--mute); margin-left: 20px; }
footer a:first-of-type { margin-left: 0; }
footer a:hover { color: var(--gold); }

/* ── Legal pages (privacy/terms/support) ───────────────────────────── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal .updated {
  color: var(--moss);
  font-size: 13px;
  margin-bottom: 32px;
}
.legal p, .legal li { color: var(--mute); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal .subtitle { color: var(--moss); font-size: 13px; margin-bottom: 32px; }

/* Support page — contact card + FAQ blocks. Shared with legal layout. */
.legal .contact-box {
  background: #0d1f0d;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}
.legal .contact-box p { margin-bottom: 8px; }
.legal .contact-box a.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 10px;
  margin-top: 12px;
}
.legal .faq-item { margin-bottom: 24px; }
.legal .faq-item h3 {
  color: var(--cream);
  font-size: 15px;
  margin-bottom: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.legal .faq-item p { margin-top: 4px; }
.legal .footer-links {
  margin-top: 32px;
  font-size: 13px;
  color: var(--moss);
}
.legal .footer-links a { color: var(--moss); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
  footer .wrap { flex-direction: column; text-align: center; }
  footer .links a { margin: 0 10px; }
}
