/* ════════════════════════════════════════════════════════════════
   JOURNEY — "Start Your Ocean Journey" (Sherene, 2026-08-03)

   A dedicated, immersive onboarding page. NOT a form, NOT a survey —
   a choose-your-own-adventure that answers three questions:
     • Where am I today?   • Where can I go next?   • What's the fastest path?

   Loaded ONLY on journey.html (body[data-page="journey"]). Scoped under
   .jny-* so it can never leak into the rest of the site. It reuses the
   global design tokens (css/style.css :root) — navy/sand/orange, Fraunces
   + Inter, the discipline gradients — so it feels like Shello, just deeper
   underwater. Mobile-first: every layout starts single-column.

   The site's injected header/footer are hidden here on purpose — an
   onboarding flow has its own minimal chrome (logo + Close), Apple-style.
   ════════════════════════════════════════════════════════════════ */

/* Hide the standard site chrome AND the floating widgets — the journey is
   its own world, with its own minimal Close + Back. */
body[data-page="journey"] .site-header,
body[data-page="journey"] .site-footer,
body[data-page="journey"] .skip-link,
body[data-page="journey"] .back-btn,
body[data-page="journey"] .wa-float,
body[data-page="journey"] .cg-fab,
body[data-page="journey"] .cg-panel { display: none !important; }

body[data-page="journey"] {
  background: var(--deep);
  color: #fff;
  overflow-x: hidden;
}

/* Per-discipline theming. Defaults to the deep-ocean intro palette; the
   accent + gradient are swapped by journey.js the moment a discipline is
   chosen, and the whole stage colour-shifts with it. */
.jny {
  --jny-accent: var(--aqua);
  --jny-grad: linear-gradient(160deg, #0d1230, #16295f 55%, #1a4f6b);
  --jny-ink: #f6f8ff;
  --jny-soft: rgba(255, 255, 255, 0.66);
  --jny-faint: rgba(255, 255, 255, 0.4);
  --jny-line: rgba(255, 255, 255, 0.16);
  --jny-card: rgba(255, 255, 255, 0.06);
  --jny-card-hi: rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

/* ── The stage: a living ocean behind everything ── */
.jny-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--jny-grad);
  transition: background 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Light rays / caustics drifting through the water. */
.jny-stage::before,
.jny-stage::after {
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 140%;
  background:
    radial-gradient(60% 45% at 25% 12%, rgba(127, 196, 212, 0.28), transparent 70%),
    radial-gradient(50% 40% at 82% 8%, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: jnyDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.jny-stage::after {
  background:
    radial-gradient(45% 55% at 70% 100%, rgba(13, 18, 48, 0.55), transparent 70%),
    radial-gradient(40% 40% at 12% 88%, rgba(26, 134, 168, 0.22), transparent 70%);
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}
@keyframes jnyDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.15); }
}
/* A faint grain of rising bubbles — pure atmosphere. */
.jny-stage-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 80%, rgba(255,255,255,.18), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.14), transparent),
    radial-gradient(2px 2px at 40% 40%, rgba(255,255,255,.10), transparent),
    radial-gradient(1.5px 1.5px at 85% 30%, rgba(255,255,255,.12), transparent);
  background-size: 100% 100%;
  animation: jnyRise 26s linear infinite;
  opacity: .7;
}
@keyframes jnyRise { from { background-position: 0 0,0 0,0 0,0 0; } to { background-position: 0 -900px,0 -1400px,0 -1100px,0 -1700px; } }

/* ── Minimal top chrome ── (not sticky: on a long result page a fixed bar
   would collide with the pathway text as it scrolls under it). */
.jny-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 40px);
}
.jny-top .jny-logo img { height: 30px; display: block; }
.jny-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 0.82rem/1 var(--font-body);
  letter-spacing: .02em;
  color: var(--jny-soft);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--jny-line);
  background: rgba(255, 255, 255, 0.04);
  transition: color .2s, border-color .2s, background .2s;
}
.jny-close:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

/* ── Layout column ── */
.jny-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(14px, 4vh, 40px) clamp(20px, 6vw, 32px) 64px;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
}

/* Step container + enter animation. Each screen replaces the last, sliding
   up from the deep. prefers-reduced-motion strips this to a plain fade. */
.jny-step { flex: 1; display: flex; flex-direction: column; }
.jny-anim { opacity: 0; transform: translateY(22px); }
.jny-anim.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); }
/* Stagger children by index via --i */
.jny-anim [data-d] { opacity: 0; transform: translateY(16px); }
.jny-anim.in [data-d] { opacity: 1; transform: none; transition: opacity .55s ease, transform .6s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }

/* ── Progress whisper (not a form progress bar) ── */
.jny-progress { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(24px, 6vh, 54px); min-height: 20px; }
.jny-back {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--jny-soft); font: 500 0.82rem/1 var(--font-body);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px;
  transition: color .2s;
}
.jny-back:hover { color: #fff; }
.jny-dots { display: flex; gap: 7px; margin-left: auto; }
.jny-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--jny-line); transition: background .3s, width .3s; }
.jny-dot.on { background: var(--jny-accent); width: 20px; }

/* ── Type ── */
.jny-kicker {
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--jny-accent);
  display: block;
  margin-bottom: 18px;
}
.jny h1, .jny h2, .jny h3, .jny h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;   /* override the global dark heading colour on this dark page */
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}
.jny h1 { font-size: clamp(2.4rem, 9vw, 3.9rem); }
.jny h2 { font-size: clamp(1.9rem, 7vw, 2.9rem); }
.jny-lead { font-size: clamp(1.02rem, 3.6vw, 1.2rem); color: var(--jny-soft); line-height: 1.5; margin: 18px 0 0; max-width: 30ch; }

/* ── Intro (threshold) screen ── */
.jny-intro { justify-content: center; text-align: left; padding-bottom: 8vh; }
.jny-intro .jny-eyebrow {
  font: 600 0.72rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--jny-faint); margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.jny-intro .jny-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--jny-line); max-width: 120px; }

/* Big binary choices (new / certified) */
.jny-choices { display: grid; gap: 14px; margin-top: clamp(30px, 6vh, 46px); }
.jny-choice {
  appearance: none; text-align: left; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 22px; border-radius: var(--radius);
  border: 1px solid var(--jny-line);
  background: var(--jny-card);
  color: #fff;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, background .25s, box-shadow .25s;
}
.jny-choice:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.42); background: var(--jny-card-hi); box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.jny-choice:active { transform: translateY(-1px) scale(.995); }
.jny-choice .jny-choice-ico {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(255,255,255,.08); border: 1px solid var(--jny-line);
}
.jny-choice-txt { flex: 1; min-width: 0; }
.jny-choice-txt b { font-size: 1.12rem; font-weight: 600; display: block; }
.jny-choice-txt span { font-size: .9rem; color: var(--jny-soft); display: block; margin-top: 3px; }
.jny-choice .jny-arrow { flex: none; color: var(--jny-accent); font-size: 1.3rem; transition: transform .25s; }
.jny-choice:hover .jny-arrow { transform: translateX(4px); }

/* ── Discipline picker (3 big cards) ── */
.jny-disciplines { display: grid; gap: 14px; margin-top: clamp(28px, 6vh, 44px); }
.jny-disc {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  position: relative; overflow: hidden;
  min-height: 118px; padding: 22px 22px;
  border-radius: var(--radius); border: 1px solid var(--jny-line);
  color: #fff; font-family: var(--font-body);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s;
}
.jny-disc::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .92; transition: opacity .3s, transform .5s cubic-bezier(.22,1,.36,1); }
.jny-disc.grad-free::before  { background: var(--grad-free); }
.jny-disc.grad-mer::before   { background: var(--grad-mer); }
.jny-disc.grad-scuba::before { background: var(--grad-scuba); }
.jny-disc::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(6,10,30,.5), transparent 60%); }
.jny-disc > * { position: relative; z-index: 2; }
.jny-disc:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.34); border-color: rgba(255,255,255,.5); }
.jny-disc:hover::before { transform: scale(1.06); }
.jny-disc:active { transform: translateY(-1px) scale(.996); }
.jny-disc .jny-disc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.jny-disc .jny-disc-emoji { font-size: 1.9rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.jny-disc .jny-disc-badge { font: 600 .64rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.22); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.jny-disc h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; margin: 0; color: #fff; }
.jny-disc p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.86); }
.jny-disc .jny-disc-go { position: absolute; right: 20px; bottom: 22px; z-index: 2; font-size: 1.25rem; color: #fff; opacity: .85; transition: transform .28s; }
.jny-disc:hover .jny-disc-go { transform: translateX(5px); }

/* ── Level picker (chips) ── */
.jny-levels { display: grid; gap: 12px; margin-top: clamp(26px, 5vh, 40px); }
.jny-level {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--jny-line); background: var(--jny-card); color: #fff;
  font-family: var(--font-body);
  transition: transform .22s, border-color .22s, background .22s;
  -webkit-tap-highlight-color: transparent;
}
.jny-level:hover { transform: translateY(-2px); border-color: var(--jny-accent); background: var(--jny-card-hi); }
.jny-level .jny-level-dot { flex: none; width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--jny-accent); }
.jny-level-txt { flex: 1; }
.jny-level-txt b { font-weight: 600; font-size: 1.02rem; }
.jny-level-txt span { display: block; font-size: .84rem; color: var(--jny-soft); margin-top: 2px; }
.jny-level .jny-arrow { color: var(--jny-faint); font-size: 1.1rem; }

/* ════════ RESULT: the pathway payoff ════════ */
.jny-result-head { margin-bottom: 30px; }
.jny-result-head .jny-here-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .74rem/1 var(--font-body); letter-spacing: .04em;
  color: var(--jny-ink); background: rgba(255,255,255,.1);
  border: 1px solid var(--jny-line); padding: 8px 14px; border-radius: 999px; margin-bottom: 16px;
}
.jny-result-head .jny-here-pill i { width: 7px; height: 7px; border-radius: 999px; background: var(--jny-accent); box-shadow: 0 0 0 4px rgba(127,196,212,.2); font-style: normal; }

/* Section labels inside the result */
.jny-sec-label {
  font: 600 .7rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--jny-faint); margin: 40px 0 18px;
}

/* ── The visual spine (the pathway) ── */
.jny-path { position: relative; margin: 4px 0 6px; }
.jny-node { position: relative; display: flex; gap: 18px; padding-bottom: 8px; }
.jny-node:last-child { padding-bottom: 0; }
/* rail + dot */
.jny-node-rail { position: relative; flex: none; width: 26px; display: flex; flex-direction: column; align-items: center; }
.jny-node-dot {
  width: 20px; height: 20px; border-radius: 999px; margin-top: 4px;
  border: 2px solid var(--jny-faint); background: var(--deep);
  display: grid; place-items: center; font-size: .7rem; color: #fff; z-index: 1;
  transition: all .3s;
}
.jny-node-line { flex: 1; width: 2px; background: linear-gradient(var(--jny-line), var(--jny-line)); margin: 2px 0; min-height: 22px; }
.jny-node:last-child .jny-node-line { display: none; }
/* states */
.jny-node.is-done .jny-node-dot { border-color: var(--jny-accent); background: var(--jny-accent); color: var(--deep); }
.jny-node.is-here .jny-node-dot { border-color: var(--jny-accent); background: var(--deep); box-shadow: 0 0 0 5px rgba(127,196,212,.22); animation: jnyPulse 2.4s ease-in-out infinite; }
.jny-node.is-next .jny-node-dot { border-color: var(--orange); background: var(--orange); }
.jny-node.is-horizon .jny-node-dot { border-style: dashed; opacity: .6; }
@keyframes jnyPulse { 0%,100% { box-shadow: 0 0 0 5px rgba(127,196,212,.22); } 50% { box-shadow: 0 0 0 9px rgba(127,196,212,.08); } }

/* node card */
.jny-node-body { flex: 1; min-width: 0; padding-bottom: 22px; }
.jny-node:last-child .jny-node-body { padding-bottom: 0; }
.jny-node-card {
  display: block; text-decoration: none; color: #fff;
  border: 1px solid var(--jny-line); border-radius: 14px;
  background: var(--jny-card); padding: 15px 17px;
  transition: transform .22s, border-color .22s, background .22s;
}
a.jny-node-card:hover { transform: translateX(3px); border-color: rgba(255,255,255,.4); background: var(--jny-card-hi); }
.jny-node.is-next .jny-node-card { border-color: rgba(245,130,31,.6); background: linear-gradient(140deg, rgba(245,130,31,.14), rgba(255,255,255,.05)); }
.jny-node.is-horizon .jny-node-card { background: transparent; border-style: dashed; opacity: .72; }
.jny-node-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.jny-tag { font: 600 .62rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.jny-tag.opt { color: var(--jny-soft); border: 1px solid var(--jny-line); }
.jny-tag.rec { color: var(--deep); background: var(--orange); }
.jny-tag.here { color: var(--deep); background: var(--jny-accent); }
.jny-tag.done { color: var(--jny-accent); border: 1px solid var(--jny-accent); }
.jny-node-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jny-node-title b { font-size: 1.08rem; font-weight: 600; }
.jny-node-title .jny-price { font-size: .9rem; color: var(--jny-soft); white-space: nowrap; }
.jny-node-body p { margin: 5px 0 0; font-size: .88rem; color: var(--jny-soft); line-height: 1.45; }
.jny-node-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 .82rem/1 var(--font-body); color: var(--jny-accent); }
.jny-node.is-next .jny-node-cta { color: var(--orange); }

/* the "or skip ahead" note under the spine */
.jny-shortcut {
  margin: 4px 0 0 44px; font-size: .84rem; color: var(--jny-soft);
  border-left: 2px dashed var(--jny-line); padding: 2px 0 2px 16px;
}
.jny-shortcut b { color: #fff; font-weight: 600; }

/* ── The "fastest path" hero recommendation ── */
.jny-next-hero {
  display: block; text-decoration: none; color: #fff;
  margin-top: 12px; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(245,130,31,.9), rgba(232,73,29,.82));
  box-shadow: 0 22px 60px rgba(245,130,31,.32);
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.jny-next-hero:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(245,130,31,.4); }
.jny-next-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 999px; background: rgba(255,255,255,.14); }
.jny-next-hero .jny-nh-label { font: 600 .7rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.jny-next-hero h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem,6vw,2rem); margin: 12px 0 6px; position: relative; }
.jny-next-hero p { margin: 0; font-size: .95rem; opacity: .92; max-width: 34ch; position: relative; }
.jny-next-hero .jny-nh-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; position: relative; }
.jny-next-hero .jny-nh-price { font: 600 1.05rem/1 var(--font-body); }
.jny-next-hero .jny-nh-go { display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem/1 var(--font-body); background: #fff; color: var(--orange-deep); padding: 12px 18px; border-radius: 999px; }

/* horizon (aspirational, no course) variant of the hero */
.jny-next-hero.is-soft { background: rgba(255,255,255,.07); border: 1px solid var(--jny-line); box-shadow: none; }
.jny-next-hero.is-soft::after { display: none; }
.jny-next-hero.is-soft .jny-nh-go { background: rgba(255,255,255,.16); color: #fff; }

/* ── "Keep going" trio: never the end ── */
.jny-keep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.jny-keep-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  padding: 18px 16px; border-radius: 14px; border: 1px solid var(--jny-line);
  background: var(--jny-card); color: #fff;
  transition: transform .22s, border-color .22s, background .22s;
}
.jny-keep-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.4); background: var(--jny-card-hi); }
.jny-keep-card .jny-keep-emoji { font-size: 1.5rem; }
.jny-keep-card b { font-weight: 600; font-size: .98rem; }
.jny-keep-card span { font-size: .82rem; color: var(--jny-soft); line-height: 1.4; }
.jny-keep-card .jny-keep-go { margin-top: auto; color: var(--jny-accent); font: 600 .8rem/1 var(--font-body); }

/* secondary "explore further" course chips */
.jny-also { display: grid; gap: 10px; margin-top: 14px; }
.jny-also-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--jny-line); background: var(--jny-card);
  transition: transform .2s, border-color .2s, background .2s;
}
.jny-also-card:hover { transform: translateX(3px); border-color: rgba(255,255,255,.4); background: var(--jny-card-hi); }
.jny-also-card .jny-also-emoji { font-size: 1.3rem; }
.jny-also-card b { font-weight: 600; font-size: .98rem; display: block; }
.jny-also-card span { font-size: .82rem; color: var(--jny-soft); }
.jny-also-card .jny-price { margin-left: auto; font-size: .86rem; color: var(--jny-soft); white-space: nowrap; }

/* restart / footer */
.jny-result-foot { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--jny-line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.jny-result-foot p { margin: 0; font-size: .88rem; color: var(--jny-soft); }
.jny-restart { appearance: none; border: 1px solid var(--jny-line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; font: 500 .84rem/1 var(--font-body); padding: 11px 18px; border-radius: 999px; transition: border-color .2s, background .2s; }
.jny-restart:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

/* ── Wider screens ── */
@media (min-width: 720px) {
  .jny-wrap { padding-top: 3vh; }
  .jny-disciplines { grid-template-columns: 1fr; }
  .jny-disc { min-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .jny-stage, .jny-stage::before, .jny-stage::after, .jny-stage-veil, .jny-node.is-here .jny-node-dot { animation: none !important; }
  .jny-anim, .jny-anim [data-d] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .jny-stage { transition: none; }
}
