/* Shoal landing page — styles adapted from the app's own colour/type system
   (css/styles.css, CLAUDE colour UI.md). Journal, not cockpit. */

@font-face { font-family:'Figtree'; src:url('./assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype'); font-weight:300 900; font-style:normal; font-display:swap; }
@font-face { font-family:'Figtree'; src:url('./assets/fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype'); font-weight:300 900; font-style:italic; font-display:swap; }
@font-face { font-family:'Literata'; src:url('./assets/fonts/Literata-VariableFont_opsz,wght.ttf') format('truetype'); font-weight:300 700; font-style:normal; font-display:swap; }
@font-face { font-family:'Literata'; src:url('./assets/fonts/Literata-Italic-VariableFont_opsz,wght.ttf') format('truetype'); font-weight:300 700; font-style:italic; font-display:swap; }
@font-face { font-family:'Young Serif'; src:url('./assets/fonts/YoungSerif-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }

:root {
  --bg:            #F5EBD8;
  --surface:       #FAF6F1;
  --surface2:      #EDE5D8;
  --text:          #1C3030;
  --text-muted:    #726557;
  --text-dim:      #B5A898;
  --border:        rgba(28,48,48,0.10);
  --border-mid:    rgba(28,48,48,0.18);
  --accent:        #4A90B8;
  --accent-fill:   #4A90B8;
  --accent-dim:    rgba(74,144,184,0.10);
  --accent-border: rgba(74,144,184,0.30);

  --type-boat:  #2F7E8C;
  --type-wreck: #6E4A33;

  --sans:    'Figtree', -apple-system, system-ui, sans-serif;
  --serif:   'Literata', Georgia, serif;
  --display: 'Young Serif', Georgia, serif;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #3B7899; }
img { max-width: 100%; display: block; }

/* ── Depth-gradient page background — the strongest "feels like Shoal" cue ── */
.bg-gradient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.9;
  background: linear-gradient(180deg, rgba(250,246,241,0.85) 0%, rgba(250,246,241,0) 34%, rgba(28,48,48,0) 58%, rgba(28,48,48,0.07) 100%);
}

/* ── Header ── */
.site-header {
  max-width: 1140px; margin: 0 auto; padding: 24px 20px 0;
  display: flex; align-items: center; gap: 12px;
}
.site-logo { width: 38px; height: 38px; border-radius: 50%; mix-blend-mode: multiply; }
.site-name { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }

/* ── Shared type helpers ── */
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin: 0;
}
.section-intro {
  max-width: 640px; margin: 0 auto 40px; padding: 24px 20px 0; text-align: center;
}
.section-title {
  font-family: var(--display); font-size: clamp(28px, 5vw, 38px); line-height: 1.15;
  font-weight: 400; margin: 12px 0 0; text-wrap: pretty;
}
.section-lede {
  font-size: var(--text-base); color: var(--text-muted); margin: 14px auto 0;
  max-width: 32em; text-wrap: pretty;
}
.demo-caption {
  max-width: 640px; margin: 22px auto 0; padding: 0 20px; text-align: center;
  font-size: var(--text-sm); color: var(--text-muted);
}
.demo-caption-wide { margin-top: 22px; margin-bottom: 60px; }

.cta-row { margin-top: 30px; display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--sans); font-size: var(--text-base); font-weight: 600;
  color: #fff; background: var(--accent-fill); border: none; border-radius: 10px;
  padding: 14px 28px; text-decoration: none; display: inline-block;
  box-shadow: 0 2px 12px rgba(74,144,184,0.35);
}
.btn-primary:hover { filter: brightness(1.07); color: #fff; }
.cta-note { font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--text-muted); }

.pill {
  font-size: var(--text-xs); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-mid); background: var(--surface);
  color: var(--text-muted); letter-spacing: 0.02em; white-space: nowrap;
}
.pill-active { border-color: var(--accent); background: var(--accent-fill); color: #fff; }

.iucn-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  padding: 1px 5px; border-radius: 4px; letter-spacing: 0.02em;
}
.iucn-cr { background: rgba(106,74,154,0.15); color: #6A4A9A; border: 1px solid rgba(106,74,154,0.3); font-weight: 700; }
.iucn-en { background: rgba(155,126,200,0.15); color: #9B7EC8; border: 1px solid rgba(155,126,200,0.3); }
.iucn-vu { background: rgba(212,168,67,0.15); color: #a07a10; border: 1px solid rgba(212,168,67,0.3); }
.iucn-lc { background: rgba(139,123,106,0.1); color: var(--text-muted); border: 1px solid var(--border); }

.map-attribution {
  position: absolute; top: 8px; right: 8px; font-size: var(--text-xs); color: #fff;
  background: rgba(28,48,48,0.38); border-radius: 4px; padding: 0 6px;
}
.map-attribution-light { color: rgba(28,48,48,0.55); background: rgba(250,246,241,0.75); top: 6px; right: 6px; }

/* ── Sun-on-water static mesh — for prose/informative surfaces ── */
.journal-card, .contact-card {
  position: relative; isolation: isolate; overflow: hidden;
}
.journal-card::after, .contact-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(250,246,241,0.8), transparent 46%),
    radial-gradient(circle at 86% 26%, rgba(237,229,216,0.85), transparent 50%),
    radial-gradient(circle at 46% 90%, rgba(250,246,241,0.65), transparent 55%),
    radial-gradient(circle at 78% 78%, rgba(139,123,106,0.05), transparent 50%);
}
.journal-card > *, .contact-card > * { position: relative; z-index: 1; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero { padding: clamp(40px, 8vh, 84px) 20px 76px; }
.hero-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 52px; }
.hero-copy {}
.hero-title {
  font-family: var(--display); font-size: clamp(34px, 7vw, 54px); line-height: 1.1;
  font-weight: 400; letter-spacing: -0.01em; margin: 14px 0 0; text-wrap: pretty;
}
.lede { font-size: var(--text-base); color: var(--text-muted); line-height: 1.6; max-width: 34em; margin: 18px 0 0; text-wrap: pretty; }
.hero-phone-wrap { margin: 0 auto; }

/* ── Phone-frame chrome (hero + species-browse shell share this) ── */
.phone-frame {
  width: clamp(272px, 78vw, 332px); background: var(--text); border-radius: 46px;
  padding: 11px; box-shadow: 0 28px 64px rgba(28,48,48,0.32); border: 1px solid rgba(255,255,255,0.08);
  margin: 0 auto;
}
.phone-screen { background: var(--bg); border-radius: 36px; overflow: hidden; height: 648px; position: relative; }
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 19px; background: var(--text); border-radius: 999px; z-index: 3;
}
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 4px; position: relative; z-index: 2; }
.status-time { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em; }
.status-icons { display: inline-flex; align-items: flex-end; gap: 5px; }
.signal-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; }
.signal-bars span { width: 3px; background: var(--text); border-radius: 1px; }
.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 6px; }
.signal-bars span:nth-child(3) { height: 8px; }
.signal-bars span:nth-child(4) { height: 10px; background: rgba(28,48,48,0.3); }
.battery { width: 21px; height: 10px; border: 1.5px solid rgba(28,48,48,0.6); border-radius: 3px; display: inline-flex; align-items: center; padding: 1px; }
.battery-fill { width: 65%; height: 100%; background: var(--text); border-radius: 1px; }

.phone-content { padding: 8px 14px 0; overflow-y: auto; height: calc(100% - 100px); }
.phone-heading { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 2px; }
.phone-subheading { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 10px; }

.sort-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.sort-label { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.06em; }

.trip-header { padding: 10px 0 7px; border-bottom: 1px solid var(--border); }
.trip-header-flat { border-bottom: none; }
.trip-name-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.trip-name { font-size: var(--text-base); font-weight: 700; }
.trip-edit { font-size: var(--text-xs); color: var(--text-dim); }
.trip-where { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.03em; }
.trip-stats { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.04em; margin-top: 2px; }

.trip-map { height: 90px; margin: 8px 12px 12px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--surface2); position: relative; }
.trip-map-tiles { position: absolute; left: 50%; top: 50%; margin-left: -380px; margin-top: -460px; display: grid; grid-template-columns: repeat(3, 256px); }
.trip-map-tiles img { width: 256px; height: 256px; }
.trip-map-pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transform: translate(-50%,-50%); }
.trip-map-expand {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(250,246,241,0.88);
  color: var(--text-muted); font-size: var(--text-sm); box-shadow: 0 1px 3px rgba(28,48,48,0.2);
}

.dive-card {
  margin: 10px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: grid; grid-template-columns: 26px 1fr; box-shadow: 0 1px 3px rgba(28,48,48,0.04);
}
.dive-spine {
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18); padding: 8px 0;
}
.dive-spine-boat { background: var(--type-boat); }
.dive-body { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; padding: 12px 14px 0; }
.dive-identity { min-width: 0; }
.dive-site { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dive-date { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.04em; margin-top: 4px; }
.dive-num { font-size: var(--text-sm); letter-spacing: 0.04em; margin-top: 2px; }
.dive-num span { color: var(--text-muted); }
.dive-meas { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 5px; row-gap: 5px; align-items: baseline; align-self: start; }
.meas-icon { font-size: var(--text-xs); opacity: 0.5; }
.meas-icon-dim { opacity: 0.35; }
.meas-val { font-size: var(--text-base); font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.meas-val-sm { font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); }
.meas-unit { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dive-marine { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 0 14px; border-top: 1px solid var(--border); }
.dive-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); flex-shrink: 0; display: flex; }
.dive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dive-glimpse { flex: 1; min-width: 0; font-family: var(--serif); font-style: italic; font-size: var(--text-sm); line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dive-edit { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-mid); background: var(--surface2); color: var(--text-muted); font-size: 15px; display: flex; align-items: center; justify-content: center; }

.phone-nav {
  position: absolute; bottom: 0; left: 0; right: 0; background: var(--text);
  border-top: 1px solid var(--border-mid); display: flex; justify-content: space-around;
  padding: 8px 0 12px; z-index: 4;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,0.55); font-size: var(--text-xs); letter-spacing: 0.04em; padding: 4px 8px; }
.nav-item-active { color: #74B3D8; }
.nav-icon { font-size: 20px; line-height: 1; }

/* ═══════════════ DEMO SECTION (dive-file) ═══════════════ */
.demo-section { padding: 24px 20px 0; }
.demo-outer { max-width: 480px; margin: 0 auto; }
.demo-screen { position: relative; }
.demo-scroll { padding: 0 0 20px; }
.demo-statusbar, .demo-appbar { display: none; } /* desktop-only phone chrome, see media query below */

.dive-hero-map { height: 200px; border-radius: 12px; overflow: hidden; background: var(--surface2); position: relative; margin-bottom: 14px; }
.dive-hero-map-tiles { position: absolute; left: 50%; top: 50%; margin-left: -382px; margin-top: -423px; display: grid; grid-template-columns: repeat(3, 256px); }
.dive-hero-map-tiles img { width: 256px; height: 256px; }
.dive-hero-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.dive-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(28,48,48,0.62) 100%); }
.dive-hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 14px; }
.type-pill { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding: 2px 8px; border-radius: 4px; }
.type-pill-wreck { background: var(--type-wreck); }
.dive-hero-site { font-family: var(--display); font-size: 24px; color: #fff; margin-top: 10px; line-height: 1.1; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.dive-hero-meta { font-size: var(--text-xs); color: rgba(255,255,255,0.75); margin-top: 6px; letter-spacing: 0.03em; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px rgba(28,48,48,0.04); overflow: hidden; }
.stat-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.stat-band-caustics {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: white; mix-blend-mode: multiply; opacity: 0.324;
}
.stat-cell { position: relative; z-index: 1; padding: 12px 8px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.vis-bar { position: relative; height: 5px; border-radius: 3px; margin: 7px 4px 0; background: linear-gradient(90deg, #16302F 0%, #275C63 10%, #3C7E9C 20%, var(--accent) 26%, #9ecce7 46%, rgba(74,144,184,0) 100%); }
.vis-tick { position: absolute; top: -2px; width: 3px; height: 9px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }

.profile-chart { position: relative; margin: 10px 14px 14px; aspect-ratio: 640 / 300; }
.pc-ytick, .pc-xtick, .pc-evt { position: absolute; font-size: 10px; color: var(--text-muted); white-space: nowrap; pointer-events: none; }
.pc-evt { font-size: var(--text-xs); }
.pc-evt-r { transform: translate(-100%, -18px); }
.pc-grid { stroke: var(--border); stroke-width: 1; }
.pc-dot { fill: var(--surface); stroke: var(--text-muted); stroke-width: 1.5; }
.pc-dot-max { fill: var(--text-muted); stroke: none; }

.ndl-row { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; }
.ndl-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.ndl-track-wrap { flex: 1; }
.ndl-track { height: 6px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.08); background: linear-gradient(to right, #6A2C1C 0%, #B0492E 3%, #B0492E 10%, #E0734F 20%, #89B7D1 50%, #89B7D1 100%); }
.ndl-ticks { position: relative; height: 14px; margin-top: 2px; }
.ndl-ticks span { position: absolute; top: 0; left: 0; font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.ndl-tick-r { left: auto !important; right: 0; }

.marine-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 14px 14px 16px; box-shadow: 0 2px 6px rgba(28,48,48,0.05); }
.marine-heading { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 8px; }
.carousel-wrap { position: relative; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; }
.sighting-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0 2px; }
.sighting-photo { position: relative; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--surface2), var(--bg)); overflow: hidden; }
.sighting-photo img { width: 100%; height: 100%; object-fit: cover; }
.sighting-body { padding: 12px 16px 15px; }
.sighting-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sighting-name { font-size: var(--text-base); font-weight: 700; }
.sighting-sci { font-style: italic; font-size: var(--text-sm); color: var(--text-muted); margin-top: 1px; }
.sighting-group { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 9px; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0 4px; }
.carousel-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-mid); background: var(--bg); color: var(--text-muted); font-size: var(--text-base); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.carousel-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.carousel-count { font-size: var(--text-xs); color: var(--text-muted); min-width: 74px; text-align: center; letter-spacing: 0.04em; }

.marine-list { list-style: none; margin: 0; padding: 0; }
.marine-group-head { display: flex; align-items: center; gap: 7px; padding: 10px 8px 6px; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.marine-group-head span { font-weight: 400; }
.marine-row { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 9px; }
.marine-row-thumb { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 7px; overflow: hidden; background: var(--surface2); display: flex; }
.marine-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.marine-row-info { flex: 1; min-width: 0; }
.marine-row-name { display: block; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marine-row-sci { display: block; font-style: italic; font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.journal-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px 18px; box-shadow: 0 1px 3px rgba(28,48,48,0.04); }
.journal-kicker { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.journal-title { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.25; margin: 0 0 12px; }
.journal-body { font-family: var(--serif); font-size: var(--text-base); line-height: 1.75; margin: 0; }

.overview-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 14px; box-shadow: 0 1px 3px rgba(28,48,48,0.04); }
.overview-tile { background: var(--surface2); border-radius: 13px; padding: 12px 13px 10px; }
.overview-tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.overview-tile-head span:first-child { font-size: var(--text-sm); color: var(--text-muted); }
.overview-tile-val { font-size: 17px; font-weight: 700; }
.overview-tile-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.temp-gauge { position: relative; height: 16px; border-radius: 9px; border: 1px solid var(--border-mid); background: linear-gradient(90deg, rgba(201,122,74,0) 0%, #cadaea 34%, #e9ba6a 58%, #B0492E 100%); }
.temp-gauge-ticker { position: absolute; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--text); transform: translateX(-50%); }
.overview-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.current-chevrons { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-bottom: 6px; }
.chev { width: 10px; height: 10px; border-right: 3px solid var(--border-mid); border-bottom: 3px solid var(--border-mid); transform: rotate(-45deg); border-radius: 1px; }
.chev-active { border-color: var(--accent); width: 14px; height: 14px; }
.weather-icon { font-size: var(--text-xs); color: var(--text-dim); letter-spacing: 0.04em; height: 26px; margin-bottom: 6px; display: flex; align-items: flex-end; }
.spec-rows { margin: 14px 0 0; }
.spec-row { display: flex; align-items: center; gap: 11px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: var(--text-sm); margin: 0; }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { flex: 1; font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.spec-row dd { margin: 0; text-align: right; }

.appbar-back { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; }
.appbar-back span { font-size: 22px; line-height: 1; }

/* ═══════════════════ SPECIES ALBUM DEMO ═══════════════════ */
.species-demo { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px; padding: 8px 20px 0; }
.phone-shell {
  width: 400px; max-width: 100%; height: 900px; border: 1px solid var(--border-mid); border-radius: 18px;
  overflow: hidden; background: var(--bg); position: relative; box-shadow: 0 10px 30px rgba(28,48,48,0.10);
}
.phone-shell-content { padding: 16px 14px 0; height: calc(100% - 60px); overflow-y: auto; }
.search-box { font-size: var(--text-sm); color: var(--text-dim); background: var(--surface); border: 1px solid var(--border-mid); border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }
.pill-row { display: flex; gap: 7px; overflow: hidden; padding-bottom: 10px; flex-wrap: nowrap; }
.pill-row-tabs { padding: 8px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }

.group-head { display: flex; align-items: baseline; gap: 9px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.group-emoji { font-size: var(--text-base); letter-spacing: 0; }
.group-count { color: var(--text-muted); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.group-nav { margin-left: auto; display: flex; gap: 6px; }
.group-nav-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border-mid); background: var(--surface); color: var(--text-muted); font-size: var(--text-sm); display: flex; align-items: center; justify-content: center; }

.thumb-row { display: flex; gap: 14px; overflow: hidden; padding: 2px 0 6px; margin-bottom: 4px; }
.thumb-card { flex: 0 0 152px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.thumb-card-active { background: var(--accent-dim); border-color: var(--accent-border); box-shadow: 0 6px 14px rgba(0,0,0,0.06); }
.thumb-photo { aspect-ratio: 1; background: var(--surface2); overflow: hidden; display: flex; }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumb-info { padding: 8px 10px 10px; }
.thumb-name { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.thumb-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.thumb-dives { font-size: var(--text-xs); color: var(--text-muted); }

.species-profile-card {
  width: 400px; max-width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(28,48,48,0.18);
}
.profile-hero { position: relative; aspect-ratio: 16 / 9; background: var(--surface2); overflow: hidden; }
.profile-hero img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(28,48,48,0.6) 100%); }
.profile-hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; }
.profile-hero-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.profile-hero-sci { font-style: italic; font-size: var(--text-sm); color: rgba(255,255,255,0.85); margin-top: 2px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.profile-meta-row { display: flex; align-items: center; gap: 9px; padding: 12px 16px 13px; border-bottom: 1px solid var(--border); }
.profile-group { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 5px 16px; padding: 0 16px 13px; font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.03em; }
.profile-block { padding: 16px 22px 14px; border-top: 1px solid var(--border); }
.profile-block-head { display: flex; align-items: baseline; gap: 8px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.profile-block-head span { color: var(--text-muted); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.profile-regions { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin: 0; }
.mini-map { width: 100%; height: 150px; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; position: relative; background: var(--surface2); isolation: isolate; }
.mini-map-tiles { position: absolute; left: 50%; top: 50%; margin-left: -444px; margin-top: -458px; display: grid; grid-template-columns: repeat(3, 256px); }
.mini-map-tiles img { width: 256px; height: 256px; }
.mini-map-pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transform: translate(-50%,-50%); }
.dive-log-list { display: flex; flex-direction: column; gap: 2px; }
.dive-log-row { padding: 7px 6px; border-radius: 6px; display: grid; grid-template-columns: 42px 1fr auto auto; gap: 10px; align-items: baseline; font-size: var(--text-sm); }
.dive-log-num { font-size: var(--text-xs); color: var(--text-muted); }
.dive-log-site { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dive-log-site span { font-size: var(--text-xs); color: var(--text-muted); margin-left: 6px; }
.dive-log-date { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.abundance-badge { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); background: rgba(139,123,106,0.1); border: 1px solid var(--border); border-radius: 5px; padding: 1px 8px; }

/* ═══════════════════════ CONTACT ═══════════════════════ */
.contact { padding: 8px 20px 44px; }
.contact-card {
  max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: clamp(28px, 6vw, 48px); box-shadow: 0 1px 3px rgba(28,48,48,0.04);
}
.contact-title { font-family: var(--display); font-size: clamp(26px, 5vw, 34px); font-weight: 400; line-height: 1.15; margin: 12px 0 0; text-wrap: pretty; }
.contact-lede { font-size: var(--text-base); color: var(--text-muted); max-width: 54ch; margin: 14px 0 0; text-wrap: pretty; }
.contact-email { font-size: var(--text-base); margin: 18px 0 0; }
.contact-email a { font-weight: 600; }
.facts-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 32px; margin-top: 4px; }
.fact-row { font-size: var(--text-sm); padding: 10px 2px; border-bottom: 1px solid var(--border); }

.site-footer {
  max-width: 760px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo { width: 26px; height: 26px; border-radius: 50%; mix-blend-mode: multiply; }
.footer-name { font-family: var(--display); font-size: var(--text-base); }
.footer-tag { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.03em; }
.footer-copyright { font-size: var(--text-xs); color: var(--text-dim); letter-spacing: 0.03em; }

/* ═══════════════════════ DESKTOP (≥900px) ═══════════════════════ */
@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 72px; }
  .hero-copy { max-width: 540px; flex: 1 1 0; }
  .hero-phone-wrap { flex: 0 0 auto; margin: 0; }

  .demo-outer {
    width: 404px; background: var(--text); border-radius: 46px; padding: 11px;
    box-shadow: 0 30px 70px rgba(28,48,48,0.30); border: 1px solid rgba(255,255,255,0.08);
  }
  .demo-screen {
    background: var(--bg); border-radius: 35px; height: 780px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .demo-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 0 13px 96px; }
  .demo-scroll::-webkit-scrollbar { display: none; }
  .demo-statusbar {
    display: block; position: sticky; top: 0; z-index: 6; background: var(--bg);
    border-radius: 34px 34px 0 0; flex: none;
  }
  .demo-statusbar .phone-notch { top: 9px; }
  .demo-appbar {
    display: flex; align-items: center; gap: 8px; position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 6; padding: 10px 16px 14px; background: var(--bg); border-top: 1px solid var(--border-mid);
    border-radius: 0 0 34px 34px;
  }
  .appbar-btn {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-mid);
    background: var(--surface); color: var(--text-muted); font-size: var(--text-base);
    display: flex; align-items: center; justify-content: center;
  }
  .appbar-btn-accent { border-color: var(--accent-border); color: var(--accent); }
}
