/* ─────────────────────────────────────────────────────────────
   B4D — Be For a Day
   Ocean-themed, mobile-first social UI.
   Zero external assets. All colors via :root tokens.
   ─────────────────────────────────────────────────────────────  */

:root {
  /* Ocean palette — spec-exact hex values */
  --abyss:       #03132b;   /* background */
  --deep:        #0a2540;   /* surface */
  --current:     #134e7a;   /* elevated */
  --biolume:     #2af1d6;   /* primary accent — cyan-green glow */
  --coral-tide:  #ff7a6a;   /* secondary accent */
  --sea-foam:    #d6fff7;   /* muted foreground */
  --pearl:       #f6fbff;   /* bright foreground */

  /* Derived translucents (kept here to avoid color literals in rules) */
  --abyss-glass:    rgba(3, 19, 43, 0.72);
  --deep-glass:     rgba(10, 37, 64, 0.7);
  --current-glass:  rgba(19, 78, 122, 0.55);
  --pearl-soft:     rgba(246, 251, 255, 0.78);
  --pearl-faint:    rgba(246, 251, 255, 0.55);
  --pearl-dim:      rgba(246, 251, 255, 0.18);
  --pearl-line:     rgba(246, 251, 255, 0.1);
  --biolume-glow:   rgba(42, 241, 214, 0.32);
  --coral-glow:     rgba(255, 122, 106, 0.32);

  /* Type stacks */
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, sans-serif;
  --font-body:    "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "JetBrains Mono", Menlo, monospace;

  /* Radii / shadows */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;
  --shadow-glow: 0 18px 48px -16px var(--biolume-glow);
  --shadow-deep: 0 24px 60px -20px rgba(0, 0, 0, 0.65);

  /* Layout */
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--abyss);
  color-scheme: dark;
}
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(42, 241, 214, 0.15), transparent 60%),
    radial-gradient(1000px 700px at -10% 80%, rgba(255, 122, 106, 0.12), transparent 60%),
    var(--abyss);
  color: var(--pearl);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--biolume); text-decoration: none; }
a:hover { color: var(--coral-tide); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pearl);
  line-height: 1.1;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 3.5vw, 1.25rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--biolume); }
p  { margin: 0 0 .9rem; color: var(--sea-foam); }
em { color: var(--biolume); font-style: normal; }
strong { color: var(--pearl); }

kbd {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .15em .45em;
  border-radius: 6px;
  background: var(--current-glass);
  border: 1px solid var(--pearl-dim);
  color: var(--pearl);
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--biolume); color: var(--abyss);
  padding: .5rem .8rem; border-radius: 8px; z-index: 1500;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Focus rings — visible biolume halo */
:focus-visible {
  outline: 2px solid var(--biolume);
  outline-offset: 2px;
}

.sprite-anchor { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ───────────────────────── Tab panes ───────────────────────── */
.tab-pane {
  display: none;
  padding: 1.25rem 1rem 1.5rem;
  min-height: 100dvh;
}
.tab-pane.is-active { display: block; }
.tab-pane[hidden]   { display: none !important; }

/* On mobile the panes act like full-screen views.
   #dive uses the full viewport (snap feed needs the room). */
#dive.is-active {
  padding: 1rem .75rem 0;
}

/* ───────────────────────── Hero (top of #dive) ───────────────────────── */
.hero {
  position: relative;
  margin: .25rem auto 1rem;
  max-width: 720px;
  padding: .5rem .25rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--biolume);
  margin: 0 0 .6rem;
}
.eyebrow svg { width: 14px; height: 14px; color: var(--biolume); }
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--biolume);
  box-shadow: 0 0 12px var(--biolume);
}
.hero-title {
  margin: 0 0 .6rem;
  font-size: clamp(2.4rem, 11vw, 4rem);
  background: linear-gradient(135deg, var(--pearl) 0%, var(--biolume) 60%, var(--coral-tide) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-brand { display: block; }
.hero-sub {
  font-size: clamp(1rem, 4vw, 1.15rem);
  color: var(--sea-foam);
  max-width: 36ch;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin: 1rem 0 .4rem;
}

/* ───────────────────────── CTAs ───────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px;
  padding: .7rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent; color: var(--pearl);
  cursor: pointer;
  letter-spacing: -.01em;
}
.cta-icon { width: 18px; height: 18px; }
.cta-text { line-height: 1; }
.cta-sub {
  display: none;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 500;
  color: var(--pearl-faint);
  margin-left: .35rem;
  letter-spacing: 0;
}
.cta-primary {
  background: linear-gradient(135deg, var(--biolume), #6ef0d2);
  color: var(--abyss);
  border-color: transparent;
  box-shadow: 0 12px 28px -10px var(--biolume-glow);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -10px var(--biolume-glow); }
.cta-secondary {
  background: var(--deep-glass);
  color: var(--pearl);
  border-color: var(--pearl-dim);
  backdrop-filter: blur(8px);
}
.cta-secondary:hover { border-color: var(--biolume); color: var(--biolume); }

/* ───────────────────────── Stories rail ───────────────────────── */
.stories-wrap {
  margin: 0 -.75rem .5rem;
  padding: 0 .75rem;
}
.stories {
  display: flex; gap: .7rem;
  list-style: none; margin: 0; padding: .25rem .25rem .75rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  scroll-snap-align: start;
  display: grid; place-items: center;
  gap: .35rem;
  flex: 0 0 auto;
}
.story-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: conic-gradient(from 0deg, var(--biolume), var(--coral-tide), var(--biolume));
  padding: 3px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: .55;
  transition: opacity .15s ease, transform .15s ease;
}
.story-btn:hover { opacity: .9; }
.story.is-active .story-btn { opacity: 1; transform: scale(1.04); }
.story.is-active .story-btn .story-inner { box-shadow: 0 0 0 2px var(--abyss), 0 0 18px var(--biolume-glow); }
.story-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--deep);
  display: grid; place-items: center;
  color: var(--pearl);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.04em;
}
.story-lbl {
  font-size: .7rem;
  color: var(--pearl-soft);
  font-weight: 600;
}
.story.is-active .story-lbl { color: var(--biolume); }

/* ───────────────────────── Dive feed (vertical snap) ───────────────────────── */
.feed-wrap {
  margin: 0 -.75rem;
}
.feed {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: .25rem .75rem calc(var(--tabbar-h) + 1.25rem);
  height: calc(100dvh - var(--tabbar-h) - 1rem);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.experience-card {
  position: relative;
  min-height: 85dvh;
  border-radius: var(--r-xl);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--deep);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--pearl-line);
  flex: 0 0 auto;
  isolation: isolate;
}
.card-cover {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  /* Fade in once decoded; users with reduced motion just see it appear. */
  animation: card-photo-fade .35s ease both;
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .card-photo { animation: none; }
}
@keyframes card-photo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.card-cover::after {
  content: ""; position: absolute; inset: 0;
  /* Top vignette + bottom scrim → text legibility regardless of photo content.
     Sits on top of .card-photo because the photo has z-index:0 and ::after
     paints in source order above the cover's own children. */
  background:
    radial-gradient(180% 100% at 80% 0%, transparent 0%, var(--abyss) 95%),
    linear-gradient(180deg, transparent 30%, var(--abyss) 100%);
  opacity: .9;
  z-index: 1;
}
.card-shape {
  position: absolute;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .7;
  z-index: 0;
}
.card-shape.s1 { top: -10%; right: -15%; }
.card-shape.s2 { bottom: 8%;  left: -20%; opacity: .55; }

.card-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.1rem 1.1rem 1.2rem;
  color: var(--pearl);
  gap: .8rem;
}
.card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem;
}
.card-host {
  display: flex; align-items: center; gap: .6rem;
}
.card-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--current);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--pearl);
  font-size: 1.05rem;
  box-shadow: 0 0 0 2px var(--biolume) inset;
}
.card-host-meta {
  display: grid; line-height: 1.2;
}
.card-host-name { font-weight: 700; color: var(--pearl); font-size: .92rem; }
.card-host-job  { color: var(--sea-foam); font-size: .76rem; font-family: var(--font-mono); }

.card-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: var(--abyss-glass);
  color: var(--biolume);
  border: 1px solid var(--biolume);
  white-space: nowrap;
}

.card-body { align-self: end; max-width: 80%; }
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
  color: var(--pearl);
}
.card-desc {
  color: var(--sea-foam);
  font-size: .92rem;
  margin: 0 0 .7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta-row {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--pearl);
}
.card-pill {
  background: var(--abyss-glass);
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--pearl-line);
}
.card-pill.price {
  color: var(--abyss);
  background: var(--biolume);
  border-color: var(--biolume);
  font-weight: 700;
}
.card-pill.mode-bidding {
  color: var(--coral-tide);
  border-color: var(--coral-tide);
}

/* Right-edge action column */
.card-actions {
  position: absolute;
  right: .75rem;
  bottom: 7rem;
  display: grid; gap: .65rem;
  z-index: 2;
}
.icon-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--pearl-line);
  background: var(--abyss-glass);
  color: var(--pearl);
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--biolume); border-color: var(--biolume); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { color: var(--coral-tide); border-color: var(--coral-tide); }
.icon-btn-label {
  position: absolute;
  font-size: .65rem; font-family: var(--font-mono);
  bottom: -16px; left: 50%; transform: translateX(-50%);
  color: var(--pearl-soft);
}

/* Bottom bar inside card with primary Book/Bid action */
.card-cta-row {
  display: flex; gap: .5rem; align-items: center;
}
.card-cta-row .cta {
  flex: 1;
  font-size: .95rem; padding: .65rem 1rem;
  min-height: 44px;
}

.empty-state {
  display: grid; place-items: center; gap: .5rem;
  padding: 3rem 1rem;
  color: var(--pearl-soft);
  font-family: var(--font-mono);
  font-size: .9rem;
  text-align: center;
}
.empty-fish { width: 48px; height: 48px; color: var(--biolume); }

/* ───────────────────────── Discover (swipe deck) ───────────────────────── */
.pane-head {
  max-width: 720px; margin: 0 auto 1rem;
}
.pane-head h2 { margin: .1rem 0 .3rem; }
.pane-sub {
  color: var(--pearl-soft);
  font-size: .92rem;
  margin: 0;
}

.deck-stage {
  position: relative;
  margin: .5rem auto;
  max-width: 420px;
  height: min(560px, 70dvh);
}

.swipe-deck {
  position: relative;
  width: 100%; height: 100%;
}
.deck-card {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background: var(--deep);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--pearl-line);
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.deck-card.is-dragging { cursor: grabbing; }
.deck-card .card-overlay {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .7rem;
  padding: 1rem 1rem 1.2rem;
}
.deck-card .card-actions { display: none; }

.deck-decision {
  position: absolute; top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .14em;
  padding: .3rem .7rem;
  border-radius: 12px;
  border: 3px solid currentColor;
  transform: rotate(-6deg);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 3;
}
.deck-decision.left  { right: 1rem; color: var(--coral-tide); transform: rotate(8deg); }
.deck-decision.right { left:  1rem; color: var(--biolume); }

.deck-controls {
  position: absolute; left: 0; right: 0; bottom: -64px;
  display: flex; gap: 1rem; justify-content: center;
}
.deck-btn {
  width: 56px; height: 56px;
  min-width: 44px; min-height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--pearl-line);
  background: var(--deep-glass);
  color: var(--pearl);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.deck-btn svg { width: 24px; height: 24px; }
.deck-btn-pass:hover { color: var(--coral-tide); border-color: var(--coral-tide); }
.deck-btn-save:hover { color: var(--biolume);    border-color: var(--biolume); }
.deck-btn-open       {
  background: linear-gradient(135deg, var(--biolume), #6ef0d2);
  color: var(--abyss);
  border-color: transparent;
}

.deck-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 1rem;
  text-align: center;
  border-radius: var(--r-xl);
  border: 1px dashed var(--pearl-dim);
  padding: 2rem;
  background: var(--deep-glass);
}
.deck-empty-icon { width: 48px; height: 48px; color: var(--biolume); }

.deck-hint {
  text-align: center;
  color: var(--pearl-faint);
  font-size: .8rem;
  margin: 5rem auto 1rem;
}

/* ───────────────────────── Wishlist tab ───────────────────────── */
.wishlist-list {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 720px;
  display: grid; gap: .7rem;
}
.wishlist-list li {
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  color: var(--pearl);
  font-weight: 600;
  display: grid; gap: .25rem;
}
.wishlist-list li small {
  display: block;
  font-weight: 400;
  color: var(--pearl-soft);
}
.wishlist-list .empty-row {
  background: transparent;
  border: 1px dashed var(--pearl-dim);
  color: var(--pearl-soft);
  font-weight: 400;
  text-align: center;
}
.wishlist-list .wish-src {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--biolume);
  text-transform: uppercase; letter-spacing: .12em;
}
.wishlist-list .wish-src svg { width: 12px; height: 12px; }
.wish-remove {
  margin-left: auto;
  background: transparent; color: var(--pearl-soft);
  border: 1px solid var(--pearl-dim);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .7rem;
  cursor: pointer;
}
.wish-remove:hover { color: var(--coral-tide); border-color: var(--coral-tide); }

/* ───────────────────────── Forms (wishlist post + host) ───────────────────────── */
.post-wishlist, .host-form-wrap {
  max-width: 720px; margin: 1.5rem auto 0;
}
.post-wishlist summary, .host-form-wrap summary {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem;
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pearl);
  list-style: none;
}
.post-wishlist summary::-webkit-details-marker,
.host-form-wrap summary::-webkit-details-marker { display: none; }
.caret { width: 16px; height: 16px; color: var(--biolume); transition: transform .2s ease; }
.post-wishlist[open] .caret, .host-form-wrap[open] .caret { transform: rotate(90deg); }

.form {
  margin-top: .9rem;
  display: grid; gap: .8rem;
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: 1rem;
}
.field { display: grid; gap: .25rem; font-size: .85rem; color: var(--sea-foam); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--pearl-line);
  background: var(--abyss-glass);
  color: var(--pearl);
  font-weight: 400;
}
.field input::placeholder, .field textarea::placeholder { color: var(--pearl-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--biolume);
  outline-offset: 1px;
  border-color: var(--biolume);
}
.field-row { display: grid; gap: .8rem; grid-template-columns: 1fr; }

/* ───────────────────────── Host dashboard ───────────────────────── */
.host-dash {
  max-width: 720px; margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.dash-tile {
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: .8rem .7rem;
  text-align: left;
  display: grid; gap: .15rem;
}
.dash-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--biolume);
  line-height: 1;
}
.dash-lbl {
  font-size: .68rem;
  color: var(--pearl-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.host-listings {
  max-width: 720px; margin: 0 auto 1.25rem;
}
.host-listings-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--biolume);
  margin: 0 0 .5rem;
}
.host-listings-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .6rem;
}
.host-listings-list li {
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.host-listings-list .swatch {
  width: 36px; height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.host-listings-list .li-body { display: grid; line-height: 1.2; flex: 1; }
.host-listings-list .li-title { font-weight: 700; color: var(--pearl); }
.host-listings-list .li-meta  { color: var(--pearl-soft); font-size: .8rem; font-family: var(--font-mono); }
.host-listings-list .li-price { color: var(--biolume); font-family: var(--font-mono); font-weight: 700; }
.host-listings-list .empty-row {
  background: transparent;
  border: 1px dashed var(--pearl-dim);
  color: var(--pearl-soft);
  display: block;
  text-align: center;
}

/* ───────────────────────── Why pane ───────────────────────── */
.pitch {
  max-width: 720px; margin: 0 auto 1.5rem;
  display: grid; gap: .8rem;
}
.pitch article {
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: 1rem;
}
.pitch article h3 { color: var(--pearl); margin-bottom: .35rem; font-size: 1.1rem; }

.how {
  max-width: 720px; margin: 0 auto 1.5rem;
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
}
.how h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--biolume); margin-bottom: 1rem;
}
.how-columns { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.how-col h4 { color: var(--coral-tide); margin: 0 0 .8rem; font-size: .85rem; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .8rem;
}
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: .8rem;
  align-items: start;
}
.step-n {
  grid-row: 1 / span 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--biolume); color: var(--abyss);
  font-family: var(--font-display); font-weight: 800;
}
.step-t { font-weight: 700; color: var(--pearl); }
.step-d { color: var(--pearl-soft); font-size: .9rem; }

.why-tiles {
  max-width: 720px; margin: 0 auto 1.5rem;
  display: grid; gap: .7rem;
  grid-template-columns: 1fr;
}
.why-tile {
  background: var(--deep-glass);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-md);
  padding: 1rem;
}
.why-tile h3 { color: var(--biolume); margin-bottom: .35rem; font-size: 1.05rem; }
.why-tile p  { color: var(--pearl-soft); margin: 0; font-size: .92rem; }
.why-tile em { color: var(--coral-tide); }

.site-footer {
  max-width: 720px; margin: 1.5rem auto 0;
  background: transparent;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--pearl-line);
}
.site-footer .tagline { font-weight: 700; color: var(--pearl); font-size: 1rem; }
.site-footer a { color: var(--biolume); }
.site-footer .disclaimer { color: var(--pearl-faint); font-size: .8rem; margin: .4rem 0 0; }

/* Always-visible footer disclaimer mirror — sits above the tab bar on mobile */
.footer-disclaimer-mirror {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  text-align: center;
  font-size: .68rem;
  color: var(--pearl-faint);
  background: var(--abyss-glass);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--pearl-line);
  padding: .35rem .75rem;
  margin: 0;
  z-index: 80;
  pointer-events: none;
}

/* ───────────────────────── Bottom tab bar ───────────────────────── */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--abyss-glass);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--pearl-line);
  z-index: 100;
}
.tab {
  min-width: 44px; min-height: 44px;
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 2px;
  color: var(--pearl-soft);
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .02em;
  padding: .4rem .2rem;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] {
  color: var(--biolume);
  position: relative;
}
.tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px;
  background: var(--biolume);
  box-shadow: 0 0 12px var(--biolume);
}

/* ───────────────────────── Modal / bottom sheet ───────────────────────── */
.modal {
  border: 0; padding: 0;
  background: transparent;
  color: var(--pearl);
  /* Anchor as bottom sheet on mobile.
     Height grows to fit content, capped at 92dvh per spec.
     Content is intentionally compact so initial top Y stays below 50% on 800px viewport. */
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  height: auto;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(3, 19, 43, 0.65);
  backdrop-filter: blur(8px);
}
.modal-inner {
  background: var(--deep);
  border: 1px solid var(--pearl-line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: .6rem 1.1rem 1.1rem;
  display: grid; gap: .55rem;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, .55);
}
.sheet-handle {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--pearl-dim);
  margin: 0 auto .35rem;
  cursor: grab;
}
.sheet-handle:active { cursor: grabbing; }

.modal-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: .8rem;
}
.modal-head h2 {
  font-size: 1.2rem; margin: 0;
  background: linear-gradient(135deg, var(--pearl), var(--biolume));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.modal-meta {
  color: var(--pearl-soft);
  font-size: .82rem;
  font-family: var(--font-mono);
  margin: .2rem 0 0;
}
.modal-close {
  border: 1px solid var(--pearl-line);
  background: var(--abyss-glass);
  color: var(--pearl);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.modal-close:hover { color: var(--coral-tide); border-color: var(--coral-tide); }
.modal-close svg { width: 16px; height: 16px; }

.modal-thumb {
  height: 96px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.modal-thumb-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.modal-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(3,19,43,.5) 100%);
  z-index: 1;
}

.modal-desc { color: var(--sea-foam); margin: 0; font-size: .9rem; max-height: 6.5em; overflow: auto; }
.modal-form { display: grid; gap: .55rem; }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.modal-actions .cta { min-height: 44px; padding: .6rem 1rem; font-size: .95rem; }

/* ───────────────────────── Toast ───────────────────────── */
.toast-outlet {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 1.2rem);
  display: grid; gap: .5rem;
  z-index: 1100;
  pointer-events: none;
  width: min(420px, calc(100% - 2rem));
}
.toast {
  background: var(--deep);
  border: 1px solid var(--biolume);
  color: var(--pearl);
  padding: .7rem 1rem;
  border-radius: 14px;
  box-shadow: 0 18px 40px -8px rgba(0,0,0,.5);
  font-weight: 600;
  text-align: center;
  font-size: .92rem;
  pointer-events: auto;
}
.toast.is-info { border-color: var(--biolume); color: var(--sea-foam); }
.toast.is-warn { border-color: var(--coral-tide); color: var(--coral-tide); }

/* ───────────────────────── Motion safety ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .cta, .icon-btn, .deck-btn, .tab,
  .post-wishlist .caret, .host-form-wrap .caret {
    transition: transform .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
  }
  .toast { animation: toast-in .25s ease; }
  .deck-card { transition: transform .2s ease-out; }
  .deck-card.is-dragging { transition: none; }
  .modal[open] .modal-inner {
    animation: sheet-up .28s cubic-bezier(.2, .9, .25, 1);
  }
  @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition: none !important;
  }
}

/* ───────────────────────── Desktop fallback ───────────────────────── */
@media (min-width: 900px) {
  body {
    padding-bottom: 0; /* tabbar hides on desktop */
  }
  .tabbar { display: none; }
  .footer-disclaimer-mirror { display: none; }

  /* On desktop: render panes inline (still distinct sections) */
  .tab-pane,
  .tab-pane[hidden] {
    display: block !important;
    padding: 3rem 2rem;
    min-height: auto;
    max-width: 1180px;
    margin: 0 auto;
  }

  #dive.is-active, #dive { padding: 2rem 2rem 1rem; }

  .hero { margin-top: 1rem; max-width: 900px; padding: 0; }
  .hero-ctas .cta { padding: .9rem 1.4rem; }
  .cta-sub { display: inline; }

  .feed {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: y mandatory;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    padding: 1rem 0 2rem;
  }
  .experience-card { min-height: 460px; }

  .deck-stage { max-width: 480px; height: 600px; margin: 1rem auto; }

  .field-row { grid-template-columns: repeat(3, 1fr); }
  .field-row .field:only-child { grid-column: 1 / -1; }
  .post-wishlist .field-row { grid-template-columns: 1fr 1fr; }
  .host-form-wrap .field-row:first-of-type { grid-template-columns: 1fr 1fr; }

  .how-columns { grid-template-columns: 1fr 1fr; }
  .pitch { grid-template-columns: repeat(3, 1fr); }
  .why-tiles { grid-template-columns: repeat(4, 1fr); }

  .modal {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 2rem));
    max-height: 80vh;
  }
  .modal-inner { border-radius: var(--r-lg); }
  .sheet-handle { display: none; }
}

/* Slightly larger desktop breakpoint refinements */
@media (min-width: 1200px) {
  .hero-title { font-size: 4.4rem; }
}
