/* ==========================================================================
   Magellan landing page
   Palette (WCAG 2.x relative luminance, computed):
     bg          #FAF8F4  (L 0.940)
     surface     #FFFFFF
     text        #1C242B  on bg 14.8:1 · on surface 15.7:1
     muted       #56626B  on bg 5.9:1  · on surface 6.3:1
     sage        #6B8F71  decorative only (rules, dots, icon strokes on tint) · on bg 3.4:1 (UI ≥3 ✔)
     sage-dark   #3F6147  text, links, focus ring, buttons (L 0.101)
                   on bg #FAF8F4 6.6:1 ✔ · on surface 7.0:1 ✔
                   #FFFFFF text on sage-dark 7.0:1 ✔
     sage-tint   #E8EFE8 (favicon/brand fill #EEF3EE)  icon wells · sage-dark on tint 6.0:1 ✔ · text on tint 13.3:1 ✔
     sage-hover  #33503A  darker hover state (higher contrast than sage-dark)
     scrim       rgba(251,246,238,.85) cream panel over hero (≈12:1 worst case for text)
     Google btn: #1F1F1F on #FFFFFF 16.4:1 · border #747775 on #FFFFFF 4.6:1 (UI ✔)
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #1C242B;
  --muted: #56626B;
  --line: #E4E7EA;
  --sage: #6B8F71;
  --sage-dark: #3F6147;
  --sage-hover: #33503A;
  --sage-tint: #E8EFE8;
  --scrim: rgba(251, 246, 238, 0.85);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --gfont: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-note: 8px; --r-btn: 12px; --r-card: 16px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(28,36,43,.04), 0 4px 16px rgba(28,36,43,.04);
  --gutter: 16px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--text); }
h1 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }

a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--sage-hover); }

:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }

.eyebrow {
  font: 600 12px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  margin-bottom: var(--s2);
}

.skip {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--sage-dark); color: #fff;
  padding: var(--s2) var(--s4); border-radius: var(--r-btn);
  z-index: 10; text-decoration: none;
}
.skip:focus { top: var(--s4); color: #fff; }

/* Header ------------------------------------------------------------------ */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px;
  font: 600 20px/1 var(--serif);
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--s3);
  font-weight: 600; font-size: 14px;
  text-decoration: none; border-radius: var(--r-btn);
}
.nav-link:hover { background: var(--sage-tint); }

/* Hero -------------------------------------------------------------------- */
.hero-inner { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--r-card);
}
.hero-card {
  margin-top: var(--s5);
  padding: 0 var(--s1);
}
.hero-card h1 { font-size: 36px; }
.tagline {
  margin-top: var(--s3);
  font-size: 17px; line-height: 1.55;
  max-width: 34em;
}
.cta-row { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-row.center { justify-content: center; }

.private-note {
  margin-top: var(--s3);
  display: flex; align-items: center; gap: var(--s2);
  font-size: 13px; line-height: 1.4; color: var(--muted);
}
.private-note svg { color: var(--sage-dark); flex: none; }
.private-note.center { justify-content: center; }

/* Google button (standard light style) ------------------------------------ */
.gsi {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  background: #FFFFFF;
  border: 1px solid #747775;
  border-radius: var(--r-pill);
  color: #1F1F1F;
  font: 500 14px/20px var(--gfont);
  letter-spacing: 0.25px;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.gsi:hover {
  color: #1F1F1F;
  background: #F8FAFF;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
.gsi:active { background: #EEF1F6; }
.gsi-icon { display: inline-flex; width: 20px; height: 20px; }

/* Sections ---------------------------------------------------------------- */
.section { padding: var(--s7) 0; }
.section h2 { max-width: 22em; }

.divider { display: block; margin-top: var(--s7); }
.divider img {
  width: 100%; height: 120px;
  object-fit: cover;
  border-radius: var(--r-card);
}
.divider img.pos-cranes { object-position: 50% 38%; height: 160px; }
@media (min-width: 640px) { .divider img.pos-cranes { height: 260px; } }
@media (min-width: 1024px) { .divider img.pos-cranes { height: 320px; } }
.pos-ridge  { object-position: 72% 62%; }
/* Ridge: taller crop so the photographer and both birds stay in frame. No text over it. */
.divider img.ridge { height: 200px; }
.pos-beach  { object-position: 50% 60%; }

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s5) var(--s4);
}

/* Features ---------------------------------------------------------------- */
.features {
  list-style: none; margin: var(--s5) 0 0; padding: 0;
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
.feature h3 { margin-top: var(--s4); }
.feature p { margin-top: var(--s2); color: var(--muted); }
.icon-well {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-btn);
  background: var(--sage-tint);
}
.icon-well svg {
  fill: none; stroke: var(--sage-dark);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Plan together ------------------------------------------------------------ */
.together { padding-top: 0; }
.together-grid { display: grid; gap: var(--s5); align-items: center; }
.together-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
}
.together-text p { margin-top: var(--s3); max-width: 32em; }
.together-text p.muted { font-size: 14px; }
.together-text h2 { position: relative; padding-bottom: var(--s3); }
.together-text h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; border-radius: 2px; background: var(--sage);
}

/* Final CTA --------------------------------------------------------------- */
.final { padding-bottom: 0; }
.final-card {
  text-align: center;
  padding: var(--s7) var(--s4);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--sage-tint) 0%, rgba(232,239,232,0) 70%),
    var(--surface);
}
.final-card h2 { margin: 0 auto; }
.final-card > p { margin-top: var(--s2); color: var(--muted); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  margin-top: var(--s7);
  border-top: 1px solid var(--line);
  padding: var(--s5) 0 var(--s6);
  font-size: 13px; line-height: 1.4;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; }

/* ≥768 -------------------------------------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 16px; }
  h2 { font-size: 28px; }

  .hero-media img { object-position: 50% 50%; }
  .hero-card {
    position: relative;
    margin: -96px auto 0;   /* overlaps the pale fog band, never the eagle (upper right) */
    max-width: 600px;
    padding: var(--s6);
    background: var(--scrim);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    text-align: center;
  }
  .hero-card h1 { font-size: 44px; }
  .hero-card .tagline { margin-left: auto; margin-right: auto; }
  .hero-card .cta-row, .hero-card .private-note { justify-content: center; }

  .divider img { height: 180px; }
  .divider img.ridge { height: 300px; object-position: 50% 62%; }
  .card { padding: var(--s5); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .final-card { padding: var(--s8) var(--s6); }
}

/* ≥1120 ------------------------------------------------------------------- */
@media (min-width: 1120px) {
  h2 { font-size: 32px; }
  .hero-media img { aspect-ratio: auto; height: 560px; object-position: 55% 60%; }
  .hero-card { margin-top: -120px; max-width: 640px; }
  .hero-card h1 { font-size: 52px; }
  .divider img { height: 220px; }
  .divider img.ridge { height: 380px; }
  .section { padding: var(--s8) 0; }
  .together { padding-top: 0; }
  .together-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s7); }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Old browsers without backdrop-filter: make the scrim solid-ish */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 768px) { .hero-card { background: rgba(251, 246, 238, 0.94); } }
}
