/* ============================================================
   RIVERLINE — Landing Page Styles
   Standalone CSS for /index.html (no bundler, no Tailwind)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Design tokens ---- */
:root {
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --paper:        #f7f5f0;
  --paper-2:      #f1eee7;
  --surface:      #ffffff;
  --surface-2:    #fbfaf7;
  --line:         #e8e4da;
  --line-strong:  #d8d3c6;
  --ink:          #1a1916;
  --ink-2:        #57534a;
  --ink-3:        #8c8678;

  --green-50:   #ebf4ef;
  --green-100:  #d6eadf;
  --green-200:  #aed6c1;
  --green-300:  #7bbf9f;
  --green-400:  #4aa37e;
  --green-500:  #2f8c66;
  --green-600:  #1f6f54;
  --green-700:  #155440;
  --green-800:  #0e3d2f;

  --good:      #2f8c66;
  --good-soft: #e6f2ec;
  --fair:      #c0871a;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26,25,22,.04), 0 1px 3px rgba(26,25,22,.05);
  --shadow-md: 0 1px 2px rgba(26,25,22,.04), 0 10px 26px -10px rgba(26,25,22,.12);
  --shadow-lg: 0 2px 4px rgba(26,25,22,.04), 0 26px 50px -18px rgba(26,25,22,.18);
}

/* ============================================================
   CSS Reset + Base
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-600);
  text-decoration: none;
}

a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* ============================================================
   Hero Section
   ============================================================ */

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-drift {
  0%, 100% { background-position: 0% 0%; }
  50%       { background-position: 100% 100%; }
}

@keyframes topo-drift {
  from { background-position: 0 0; }
  to   { background-position: 360px 200px; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(74,163,126,.5); }
  60%       { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 5px rgba(74,163,126,0); }
}

@keyframes drift-particle {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-220px) scale(0.2); }
}

@keyframes wave-shift {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topo texture layer — slow drift */
.hero-topo {
  position: absolute;
  inset: 0;
  background-image: url('/brand/topo.svg');
  background-size: 600px;
  background-repeat: repeat;
  opacity: 0.20;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  animation: topo-drift 40s linear infinite;
}

/* Gradient overlay — animated */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e3d2f 0%, var(--green-700) 45%, #1a5c44 100%);
  background-size: 200% 200%;
  animation: gradient-drift 14s ease-in-out infinite;
  z-index: 0;
}

/* Radial depth wash */
.hero-depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(255,255,255,.07), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(10,28,22,.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Floating particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: drift-particle 7s ease-in infinite;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 70vh;
}

/* Nav bar */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hero-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.hero-brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-nav-cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  transition: background 140ms, color 140ms, border-color 140ms;
}

.hero-nav-cta:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
  text-decoration: none;
}

/* Hero eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  animation: hero-fade-up 0.6s ease both;
  animation-delay: 0.05s;
}

.hero-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Hero body */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 96px;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(46px, 7.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 700px;
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.18s;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 28px;
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.32s;
}

/* Stat chips */
.hero-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.46s;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-pill);
  padding: 5px 13px 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-chip svg {
  opacity: 0.75;
  flex-shrink: 0;
}

/* Wave bottom */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

/* Email form */
.hero-form-wrap {
  width: 100%;
  max-width: 480px;
  animation: hero-fade-up 0.7s ease both;
  animation-delay: 0.60s;
}

.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}

.form-row input[type="email"]::placeholder {
  color: var(--ink-3);
}

.form-row input[type="email"]:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(47,140,102,.22);
}

.form-row button[type="submit"] {
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-700);
  background: #ffffff;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms, color 140ms, transform 100ms, box-shadow 140ms;
}

.form-row button[type="submit"]:hover {
  background: var(--green-50);
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

.form-row button[type="submit"]:active {
  transform: scale(0.98);
}

.form-row button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-note {
  margin-top: 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
}

/* Success / error messages */
.success-msg {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 14px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-md);
  text-align: center;
  margin-top: 4px;
}

.error-msg {
  font-size: 14px;
  color: #ffcfcf;
  text-align: center;
  margin-top: 10px;
}

/* Footer form variants */
.cta-form-wrap .success-msg {
  color: var(--green-800);
  background: var(--good-soft);
  border-color: var(--green-200);
}

.cta-form-wrap .error-msg {
  color: var(--green-800);
}

.cta-form-wrap .form-row input[type="email"] {
  background: #ffffff;
  border-color: var(--green-200);
}

.cta-form-wrap .form-row button[type="submit"] {
  background: var(--green-800);
  color: #ffffff;
}

.cta-form-wrap .form-row button[type="submit"]:hover {
  background: var(--ink);
}

.cta-form-wrap .form-note {
  color: rgba(255,255,255,0.65);
}

/* Scroll cue — removed (wave replaces it) */

/* ============================================================
   Section shared
   ============================================================ */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

/* ============================================================
   Section 2 — Features
   ============================================================ */

.features {
  background: var(--surface);
  padding: 80px 0 96px;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.is-visible {
  animation: card-rise 0.55s ease both;
}

.feature-card:nth-child(1).is-visible { animation-delay: 0s; }
.feature-card:nth-child(2).is-visible { animation-delay: 0.10s; }
.feature-card:nth-child(3).is-visible { animation-delay: 0.20s; }

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-200);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  border: 1px solid var(--green-200);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--green-600);
  box-shadow: 0 2px 8px rgba(31,111,84,.10);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   Section 3 — River Coverage
   ============================================================ */

.rivers {
  background: var(--paper);
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.rivers-header {
  text-align: center;
  margin-bottom: 56px;
}

.rivers-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.rivers-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
}

.rivers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.river-region {
  opacity: 0;
  transform: translateY(18px);
}

.river-region.is-visible {
  animation: card-rise 0.50s ease both;
}

.river-region:nth-child(1).is-visible { animation-delay: 0s; }
.river-region:nth-child(2).is-visible { animation-delay: 0.08s; }
.river-region:nth-child(3).is-visible { animation-delay: 0.16s; }
.river-region:nth-child(4).is-visible { animation-delay: 0.24s; }

.region-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.river-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.river-list li {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.river-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
}

/* ============================================================
   Section 4 — Fishability Score Mockup
   ============================================================ */

.score-section {
  background: var(--surface-2);
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.score-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-header {
  text-align: center;
  margin-bottom: 52px;
}

.score-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.score-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
}

/* Fishability card */
.fish-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
}

.fish-card.is-visible {
  animation: card-rise 0.65s ease both;
}

.fish-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.fish-river-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fish-river-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fish-river-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.fish-river-period {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.fish-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--good-soft);
  color: var(--good);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.fish-status-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

/* Score number + bar */
.fish-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.fish-score-number {
  font-family: var(--font-sans);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--good);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.fish-score-number span {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.fish-score-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fish-score-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fish-score-track {
  height: 8px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

@keyframes score-fill {
  from { width: 0%; }
  to   { width: 74%; }
}

.fish-score-fill {
  height: 100%;
  width: 74%;
  background: linear-gradient(90deg, var(--green-400), var(--green-500));
  border-radius: var(--r-pill);
}

.fish-card.is-visible .fish-score-fill {
  animation: score-fill 1s ease-out 0.3s both;
  width: 0%;
}

/* Metric chips */
.fish-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.fish-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fish-chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fish-chip-value {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.fish-chip-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Hatch note */
.fish-hatch {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fish-hatch-icon {
  flex-shrink: 0;
  color: var(--green-600);
}

.fish-hatch-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fish-hatch-text {
  font-size: 14px;
  color: var(--green-700);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   Section 5 — CTA / Waitlist
   ============================================================ */

.cta-section {
  background: var(--green-700);
  padding: 96px 0;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
}

.cta-form-wrap {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 140ms;
}

.footer-links a:hover {
  color: var(--green-600);
  text-decoration: none;
}

.footer-links .divider {
  color: var(--line-strong);
  user-select: none;
}

/* ============================================================
   Responsive — 768px (tablet)
   ============================================================ */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .rivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-nav {
    padding: 14px 20px;
  }

  .hero-body {
    padding: 36px 20px 88px;
  }

  .hero-h1 {
    font-size: clamp(40px, 9vw, 64px);
  }
}

/* ============================================================
   Responsive — 768px (tablet), form
   ============================================================ */

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-row button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-nav {
    padding: 14px 16px;
  }

  .hero-body {
    padding: 32px 16px 64px;
  }

  .section-inner {
    padding: 0 16px;
  }

  .features {
    padding: 72px 0;
  }

  .features-grid {
    max-width: 100%;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .rivers {
    padding: 72px 0;
  }

  .rivers-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .score-section {
    padding: 72px 0;
  }

  .fish-card {
    padding: 24px 20px;
  }

  .fish-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .fish-chip {
    padding: 10px 10px;
  }

  .fish-chip-value {
    font-size: 15px;
  }

  .cta-section {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    gap: 14px;
  }
}

/* ============================================================
   Responsive — 375px (small mobile)
   ============================================================ */

@media (max-width: 400px) {
  .hero-h1 {
    font-size: 36px;
  }

  .fish-score-number {
    font-size: 44px;
  }

  .fish-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Accessibility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-gradient,
  .hero-topo,
  .hero-live-dot,
  .hero-particle,
  .hero-eyebrow,
  .hero-h1,
  .hero-sub,
  .hero-chips,
  .hero-form-wrap,
  .feature-card,
  .fish-card,
  .river-region {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .feature-card,
  .form-row button[type="submit"],
  .form-row input[type="email"] {
    transition: none;
  }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* ============================================================
   Legal pages (privacy.html, terms.html)
   ============================================================ */
.legal-page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
}
.legal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  flex: 1;
}
.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 8px;
}
.legal-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.legal-content a {
  color: var(--green-600);
  text-decoration: underline;
}
.legal-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 32px !important;
}
.legal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.legal-footer a { color: var(--green-600); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .legal-header, .legal-footer { padding: 16px 20px; }
  .legal-content { padding: 32px 20px 48px; }
  .legal-content h1 { font-size: 28px; }
}

/* Hero-style header for legal pages */
.legal-header-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: none;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
}
.legal-header-hero-topo {
  position: absolute;
  inset: 0;
  background-image: url(/brand/topo.svg);
  background-size: 720px;
  background-repeat: repeat;
  background-position: top right;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}
.legal-header-hero-depth {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 85% 15%, rgba(255,255,255,.08), transparent 65%),
              linear-gradient(0deg, rgba(14,29,24,.4), transparent 55%);
  pointer-events: none;
}
.legal-header-hero-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}
.legal-header-hero-nav .hero-brand-name {
  color: #ffffff;
}
@media (max-width: 600px) {
  .legal-header-hero-nav { padding: 16px 20px; }
}
