/* Shellmark marketing site - core stylesheet
   Palette and type scale derived from brand.md (Shellmark Brand Direction v1).
   No frameworks, no build step. Plain CSS custom properties. */

/* ---------- Tokens ---------- */
:root {
  /* Grounds */
  --color-cream: #FAF3E7;
  --color-sand: #F1E4CC;
  --color-surface: #FFFFFF;
  --color-umber: #2B231A;

  /* Text on light */
  --ink: #2B231A;
  --ink-soft: #5B4C3B;
  --ink-muted: #756450;

  /* Text on Deep Umber */
  --ink-on-dark: #FAF3E7;
  --ink-on-dark-alt: #F1E4CC;
  --ink-muted-on-dark: #B9A98E;

  /* Accents: text-on-light / fill / on-dark */
  --clay-text: #8C3D1E;
  --clay-fill: #B5502A;
  --clay-on-dark: #E8A183;

  --seagrass-text: #37502F;
  --seagrass-fill: #4C6B4F;
  --seagrass-on-dark: #A6C4A0;

  --oyster-text: #3F565C;
  --oyster-fill: #5E7A82;
  --oyster-on-dark: #A6C2CA;

  /* Semantic: text / fill / tint-bg / on-dark */
  --open-text: #3F6B3F;
  --open-fill: #3F6B3F;
  --open-tint: #DEEBDA;
  --open-on-dark: #94C293;

  --verify-text: #7A5210;
  --verify-fill: #B5791F;
  --verify-tint: #F3E1BC;
  --verify-on-dark: #E8B45C;

  --notake-text: #9E2B25;
  --notake-fill: #9E2B25;
  --notake-tint: #F6DAD5;
  --notake-on-dark: #EE9187;

  /* Lines and focus */
  --hairline: #E3D3B8;
  --hairline-strong: #C9AE84;
  --focus-light: #8C3D1E;
  --focus-dark: #E8B45C;

  /* Type */
  --font-serif: "Source Serif 4", "Source Serif Pro", Charter, Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* 1.2 modular scale off 16px */
  --step-2: 0.6875rem; /* 11 */
  --step-1: 0.8125rem; /* 13 */
  --step0: 1rem;       /* 16 */
  --step1: 1.1875rem;  /* 19 */
  --step2: 1.4375rem;  /* 23 */
  --step3: 1.75rem;    /* 28 */
  --step4: 2.0625rem;  /* 33 */
  --step5: 2.5rem;     /* 40 */
  --step6: 3rem;       /* 48 */

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Reset-ish base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
a { color: var(--clay-text); }
a:hover, a:focus { color: var(--seagrass-text); }
:focus-visible {
  outline: 2px solid var(--focus-light);
  outline-offset: 2px;
}
ul { padding-left: 1.2em; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--clay-text);
  margin: 0 0 0.5em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-umber);
  color: var(--ink-on-dark);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}
.brand-mark { display: inline-flex; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--step-1);
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus { color: var(--clay-text); }
.site-nav a[aria-current="page"] {
  color: var(--clay-text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- Sections ---------- */
section[id], #main {
  scroll-margin-top: 7rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.section {
  padding: 3.5rem 0;
}
@media (min-width: 60rem) {
  .section { padding: 4.5rem 0; }
}
.alt-band {
  background: var(--color-sand);
}
.section-lead {
  font-size: var(--step1);
  color: var(--ink-soft);
  max-width: 42rem;
}
.section-fine {
  font-size: var(--step-1);
  color: var(--ink-muted);
  max-width: 46rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ----------
   Full-bleed band: the page reads as a shore-coloured block that runs edge to
   edge, not a floating 72rem column on flat cream. The gradient lands on
   --color-sand so the hero flows straight into the sand species band below. */
.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.hero-visual {
  margin-top: 2.25rem;
  flex: 0 0 auto;
}
.hero-visual img {
  margin: 0 auto;
  width: 16rem;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(43, 35, 26, 0.24),
    0 0 0 1px rgba(43, 35, 26, 0.10);
}
.hero-wordmark {
  width: 220px;
  height: auto;
  margin-bottom: 1.25rem;
  align-self: center;
}
.hero h1 {
  font-size: var(--step5);
  max-width: 20ch;
  margin-bottom: 0.4em;
}
.hero .lead {
  font-size: var(--step2);
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-species {
  font-size: var(--step-1);
  color: var(--ink-muted);
  letter-spacing: 0.2px;
}
.hero-note {
  font-size: var(--step-1);
  color: var(--ink-muted);
  margin-top: 1rem;
}

/* ---------- Store badge placeholders ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 0.5rem;
}
.badge-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hairline-strong);
  background: var(--color-surface);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  min-width: 10rem;
  text-align: left;
}
.badge-store {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step0);
  color: var(--ink);
}
.badge-status {
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ---------- Species band ----------
   Continues the hero's sand landing colour, so hero + species read as one
   block. Cards are photo-forward: the 512px source fills the card width. */
.species-band {
  background: var(--color-sand);
}
.species-band .section-lead {
  margin-bottom: 0;
}
.species-grid {
  display: grid;
  /* 2-up on phones AND tablets - a single tall stack of small photos was the
     worst of both. Explicit repeat(), not auto-fit: with four items an
     auto-fit track count of 3 or 5 leaves a ragged last row. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 60rem) {
  .species-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.species-card {
  background: var(--color-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 6px rgba(43, 35, 26, 0.10);
}
.species-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.species-card figcaption {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step0);
  color: var(--ink);
  padding: 0.7rem 0.9rem 0.8rem;
  border-top: 1px solid var(--hairline);
}

/* ---------- Wave divider ---------- */
.wave-divider {
  line-height: 0;
  background: var(--color-sand);
}
.wave-divider img {
  width: 100%;
  height: 32px;
}

/* ---------- Disclaimer banner ---------- */
.disclaimer-banner {
  background: var(--verify-tint);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 1.35rem 0;
}
.disclaimer-banner p {
  margin: 0;
  color: var(--verify-text);
  font-size: var(--step0);
  text-align: center;
}
.disclaimer-banner strong { color: var(--ink); }

/* ---------- Screen mockups ----------
   HTML/CSS-built device previews. These are NOT screenshots and carry no live
   data: every frame states "Sample data for illustration" inside the screen,
   and the figcaption outside it carries the accessible description (the frame
   itself is aria-hidden). Layout, labels, colour roles and copy mirror the
   real app components - StateChip / SeasonsScreen's state pill,
   ZoneListFallback's accented nearest-zone rows, VerdictCard's label plus
   reason bullets, and RegsDisclaimer's standing line. */
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  justify-items: center;
}
@media (min-width: 62rem) {
  .screens-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}
.screenshot-slot {
  margin: 0;
  width: 100%;
  max-width: 21rem;
}
figure.screenshot-slot figcaption {
  font-size: var(--step-1);
  color: var(--ink-muted);
  margin-top: 0.9rem;
}

/* Device frame */
.phone {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 19rem;
  margin: 0 auto;
  aspect-ratio: 9 / 14;
  padding: 0.55rem;
  background: var(--color-umber);
  border-radius: 2rem;
  box-shadow:
    0 20px 38px rgba(43, 35, 26, 0.28),
    0 3px 8px rgba(43, 35, 26, 0.20);
}
/* Camera island, drawn rather than imaged. */
.phone::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 0.5rem;
  background: var(--color-umber);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.55rem 0.45rem;
  background: var(--color-cream);
  /* 2rem bezel radius minus the 0.55rem bezel padding = concentric corners. */
  border-radius: 1.45rem;
  overflow: hidden;
}

/* Status bar hint - shapes only, no clock and no date. */
.phone-status {
  display: flex;
  align-items: center;
  height: 0.65rem;
  padding: 0 0.2rem;
  flex: 0 0 auto;
}
.ps-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 0.45rem;
}
.ps-bars span {
  width: 2px;
  border-radius: 1px;
  background: var(--hairline-strong);
}
.ps-bars span:nth-child(1) { height: 45%; }
.ps-bars span:nth-child(2) { height: 72%; }
.ps-bars span:nth-child(3) { height: 100%; }
.ps-batt {
  position: relative;
  margin-left: auto;
  width: 1.05rem;
  height: 0.45rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
}
.ps-batt::before {
  content: "";
  position: absolute;
  inset: 1px;
  right: 38%;
  background: var(--hairline-strong);
  border-radius: 1px;
}
.ps-batt::after {
  content: "";
  position: absolute;
  top: 28%;
  right: -3px;
  width: 2px;
  height: 44%;
  border-radius: 0 1px 1px 0;
  background: var(--hairline-strong);
}

.phone-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0.1rem 0.1rem 0;
  flex: 0 0 auto;
}
.phone-subhead {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  margin: 0.2rem 0.1rem 0;
  flex: 0 0 auto;
}
.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.phone-foot {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--hairline);
  flex: 0 0 auto;
}
.mock-disclaimer {
  margin: 0 0 0.3rem;
  font-size: 0.625rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--ink-muted);
}
.phone-sample {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Seasons rows: white card + tinted state pill, as SeasonsScreen renders. */
.mock-row {
  background: var(--color-surface);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 0.45rem 0.55rem;
}
.mock-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.mock-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--ink);
}
.mock-chip {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2em 0.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-open { background: var(--open-tint); color: var(--open-text); border-color: var(--open-fill); }
/* CLOSED is deliberately NEUTRAL, never the no-take red: in the app a closed
   season and a no-take rule are different facts (app/src/theme/theme.js:72,
   "oyster blue-grey - CLOSED (neutral, not alarming)"). The site must not
   teach a colour code the app contradicts. */
.chip-closed { background: var(--color-surface); color: var(--oyster-text); border-color: var(--oyster-fill); }
.mock-meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}
.mock-source {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.3;
  color: var(--ink-muted);
  margin: 0.2rem 0 0;
}

/* Headline state / verdict card */
.mock-verdict {
  background: var(--verify-tint);
  border: 1px solid var(--verify-fill);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  flex: 0 0 auto;
}
.mock-verdict-label {
  display: inline-block;
  background: var(--color-surface);
  color: var(--verify-text);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  margin: 0 0 0.4rem;
}
.mock-verdict-line {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--verify-text);
}
.mock-verdict-open {
  background: var(--open-tint);
  border-color: var(--open-fill);
}
.mock-verdict-open .mock-verdict-label,
.mock-verdict-open .mock-verdict-line { color: var(--open-text); }
.mock-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mock-reasons li {
  position: relative;
  padding-left: 0.7rem;
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--verify-text);
}
.mock-reasons li:last-child { margin-bottom: 0; }
.mock-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--verify-fill);
}

/* Nearest-zone rows: tinted row + colour accent, as ZoneListFallback renders. */
.mock-zone {
  display: flex;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  overflow: hidden;
}
.mock-zone-accent {
  flex: 0 0 auto;
  width: 4px;
  align-self: stretch;
}
.mock-zone-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4rem 0.55rem;
}
.mock-zone-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.mock-zone-state {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0.15rem 0 0;
}
.mock-zone-dist {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0.15rem 0 0;
}
.zone-open { background: var(--open-tint); border-color: var(--open-fill); }
.zone-open .mock-zone-accent { background: var(--open-fill); }
.zone-open .mock-zone-state { color: var(--open-text); }
.zone-verify { background: var(--verify-tint); border-color: var(--verify-fill); }
.zone-verify .mock-zone-accent { background: var(--verify-fill); }
.zone-verify .mock-zone-state { color: var(--verify-text); }
.zone-notake { background: var(--notake-tint); border-color: var(--notake-fill); }
.zone-notake .mock-zone-accent { background: var(--notake-fill); }
.zone-notake .mock-zone-state { color: var(--notake-text); }

/* Conditions panel */
.mock-conditions {
  background: var(--color-surface);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 0.1rem 0.55rem;
  flex: 0 0 auto;
}
.mock-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--hairline);
}
.mock-line:last-child { border-bottom: 0; }
.mock-line-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.mock-line-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  color: var(--ink);
  text-align: right;
}
.mock-note {
  margin: 0;
  padding: 0.4rem 0.55rem;
  background: var(--color-sand);
  border-radius: 8px;
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

/* ---------- Verdict ---------- */
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.verdict-card {
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--color-surface);
}
.verdict-card p:last-child { margin-bottom: 0; }
.verdict-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.6em;
}
.verdict-open { border-color: var(--open-fill); }
.verdict-open .verdict-label { background: var(--open-tint); color: var(--open-text); }
.verdict-verify { border-color: var(--verify-fill); }
.verdict-verify .verdict-label { background: var(--verify-tint); color: var(--verify-text); }
.verdict-notake { border-color: var(--notake-fill); }
.verdict-notake .verdict-label { background: var(--notake-tint); color: var(--notake-text); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 1.5rem;
}
.feature-card h3 {
  font-size: var(--step2);
  color: var(--clay-text);
}
.feature-card p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: 0;
}

/* ---------- Privacy list ---------- */
.privacy-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.5rem;
}
.privacy-list li {
  border-left: 3px solid var(--seagrass-fill);
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: var(--step0);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
}
.pricing-card-featured {
  border-color: var(--clay-fill);
  border-width: 2px;
}
.pricing-card h3 {
  font-size: var(--step2);
  margin-bottom: 0.3em;
}
.price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: var(--step4);
  color: var(--clay-text);
  margin-bottom: 0.4em;
}
.price-period {
  font-family: var(--font-sans);
  font-size: var(--step-1);
  color: var(--ink-muted);
}
.pricing-card p:last-child {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step0);
}
.faq-item summary::marker {
  color: var(--clay-text);
}
.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-umber);
  color: var(--ink-on-dark-alt);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 2rem;
}
.footer-brand img { margin-bottom: 1rem; }
.footer-disclaimer {
  font-size: var(--step-2);
  color: var(--ink-muted-on-dark);
  max-width: 34rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  color: var(--ink-on-dark-alt);
  text-decoration: none;
  font-size: var(--step-1);
  font-weight: 600;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--clay-on-dark); }
.footer-nav a[aria-current="page"] {
  color: var(--clay-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.footer-contact p {
  font-size: var(--step-1);
  color: var(--ink-on-dark-alt);
  margin-bottom: 0.5em;
}
.footer-company { font-weight: 600; }
.footer-contact a {
  color: var(--ink-on-dark-alt);
}
.footer-contact a:hover, .footer-contact a:focus { color: var(--clay-on-dark); }
.footer-copy {
  color: var(--ink-muted-on-dark);
  font-size: var(--step-2);
  margin-top: 1rem;
}
.site-footer :focus-visible { outline-color: var(--focus-dark); }

@media (max-width: 40rem) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: var(--step4); }
  /* Wrapped header: centre the nav under the mark instead of leaving it
     stranded hard-left below a centred logo. */
  .header-inner {
    justify-content: center;
  }
  .site-nav {
    justify-content: center;
    width: 100%;
    gap: 0.9rem 1.1rem;
  }
}

/* Tablet footer: the brand column needs the full width for its disclaimer,
   then nav and contact sit side by side rather than three cramped columns. */
@media (min-width: 40.0625rem) and (max-width: 64rem) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }
  .hero-wordmark {
    align-self: flex-start;
  }
  .store-badges {
    justify-content: flex-start;
  }
  .hero-visual {
    margin-top: 0;
    flex: 0 0 auto;
  }
  /* The source is 440x880 - shown at 14rem it read as a postage stamp against
     a wide band. vw-capped so it scales with the viewport instead of crowding
     the copy at the low end of the breakpoint. */
  .hero-visual img {
    width: min(21rem, 38vw);
  }
}

@media (min-width: 90rem) {
  .hero-visual img {
    width: min(24rem, 34vw);
  }
}

/* ---------- Legal / support pages (privacy.html, terms.html, support.html) ----------
   .legal-page .wrap intentionally narrows the shared .wrap max-width from 72rem to 46rem. */
.legal-page { padding: 3rem 0 4rem; }
.legal-page .wrap { max-width: 46rem; }
.legal-page h1 { font-size: var(--step4); }
.legal-page h2 { font-size: var(--step3); margin-top: 1.8em; }
.legal-page h3 { font-size: var(--step2); margin-top: 1.4em; }
.legal-page ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-page li > ul, .legal-page li > ol { margin-top: 0.5em; margin-bottom: 0; }
.page-meta {
  color: var(--ink-muted);
  font-size: var(--step-1);
  margin: -0.4em 0 2em;
}
.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-sand);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  word-break: break-word;
}
.legal-page blockquote {
  margin: 1.4em 0;
  padding: 1em 1.2em;
  background: var(--color-surface);
  border: 1px solid var(--hairline-strong);
  border-left: 4px solid var(--clay-fill);
  border-radius: 4px;
}
.legal-page blockquote p:last-child { margin-bottom: 0; }

/* Support page contact card */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 0 0 1.5em;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: var(--step-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  margin-top: 1.1em;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd {
  margin: 0.25em 0 0;
  font-size: var(--step1);
  line-height: 1.5;
}
.support-list { padding-left: 1.2em; }

:target, #main, .legal-page h2[id] {
  scroll-margin-top: 5rem;
}
