/* ============ Brand tokens (ported from iOS BrandColors.swift) ============ */
:root {
  /* Surfaces */
  --ivory:      #FFFDF8;
  --cream-warm: #FDF9F3;
  --cream:      #FAF6EE;
  --beige:      #F5F0E6;
  --linen:      #EFE9DC;

  /* Sage / Green */
  --green-50:   #EEF3EE;
  --green-100:  #E8F0E9;
  --green-200:  #C9D9CC;
  --green-400:  #7A9A80;
  --green:      #6B8E6F;
  --green-deep: #4A6B4E;
  --green-ink:  #2E4632;
  --green-bottle:#1E2E20;

  /* Terra (primary CTA) */
  --terra-light:#F5E8DF;
  --terra-200:  #E8C3AA;
  --terra:      #C47A57;
  --terra-deep: #9C5A3A;

  /* Brass */
  --brass-light:#E8D9B0;
  --brass:      #B89556;
  --brass-deep: #8A6E32;

  /* Text */
  --text:  #2A2620;
  --text2: #7A6F5C;
  --text3: #ADA08E;

  /* Borders */
  --border:  #E6E0D4;
  --border2: #D8D0BE;
  --hairline:rgba(42, 38, 32, 0.08);

  /* Fonts */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --pad:  clamp(20px, 4vw, 48px);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============ Base ============ */
body {
  background: var(--beige);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--text);
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: 22px; }

p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--text2); }

/* ============ Container ============ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============ Hero ============ */
.hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--beige) 100%);
  border-bottom: 1px solid var(--hairline);
}
.hero__brand { margin-bottom: 40px; display: inline-block; }
.hero__headline::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--brass);
  margin-top: 20px;
  opacity: .8;
}
.hero__sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text2);
  max-width: 52ch;
  margin: 16px 0 32px;
}
.hero__cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__legal { color: var(--text3); font-size: 14px; margin-top: 16px; }

/* ============ Buttons / CTAs ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terra);
  color: var(--ivory);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--terra-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--green-ink);
  border: 1px solid var(--border2);
}
.btn--ghost:hover { background: var(--cream); }

.appstore-badge { height: 52px; margin: 0 auto; }

/* ============ Features ============ */
.features {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--cream);
}
.features__intro {
  max-width: 36ch;
  margin-bottom: 56px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feature {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.feature__num {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--brass);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ============ Final CTA ============ */
.final-cta {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--green-bottle);
  color: var(--cream);
  text-align: center;
}
.final-cta h2 { color: var(--cream); }
.final-cta p { color: var(--green-200); max-width: 48ch; margin-left: auto; margin-right: auto; }

/* ============ Contact ============ */
.contact {
  padding: clamp(72px, 9vw, 124px) 0 clamp(64px, 9vw, 120px);
  background: var(--cream-warm);
  border-top: 1px solid var(--hairline);
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact__head {
  margin: 0;
  max-width: 14ch;
}
.contact__head em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.contact__cta {
  margin: 24px 0 0;
}
@media (max-width: 720px) {
  .contact__row { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Footer ============ */
.footer {
  padding: 48px 0;
  background: var(--beige);
  border-top: 1px solid var(--hairline);
  color: var(--text2);
  font-size: 14px;
}
.footer__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--text2); }
.footer__links a:hover { color: var(--green-ink); text-decoration: underline; }

/* ============ Responsive niceties ============ */
@media (max-width: 600px) {
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { justify-content: center; }
}

/* ============ §5.2 Hero eyebrow + headline overrides ============ */
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
  text-transform: uppercase;
  margin: 0 0 28px;
}
.hero__headline em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.hero__headline {
  /* Override max-width: 14ch — we want big and the line is longer than "Call it." */
  max-width: none;
  font-size: clamp(72px, 11vw, 156px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
@media (max-width: 600px) {
  .hero__headline { font-size: clamp(56px, 15vw, 96px); }
}

/* ============ §5.3 Why section ============ */
.why {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--green-bottle);
  color: var(--cream);
  border-top: 1px solid var(--hairline);
}
.why__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.why__head {
  color: var(--cream);
  max-width: 22ch;
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 28px;
}
.why__head em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 400;
}
.why__body {
  color: var(--green-200);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 56ch;
  line-height: 1.55;
}

/* ============ §5.5 Prizes section ============ */
.prizes {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--cream-warm);
}
.prizes__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.prizes__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.prizes__head {
  margin: 0;
  max-width: 16ch;
}
@media (max-width: 720px) {
  .prizes__row { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ §5.6 Final CTA italic em ============ */
.final-cta h2 em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 400;
}
