/* ════════════════════════════════════════════════════════════════
   OCEAN MATCH — "Which underwater activity suits you?" (2026-10-04)

   The lead-generation decision flow. Loaded ONLY on ocean-match.html
   (body[data-page="ocean-match"]); everything is scoped under .om-*.
   Light and calm on purpose — sand → white → a hint of shallow-water
   aqua — using the global tokens from css/style.css (navy / sand /
   orange, Fraunces + Inter). It should read as a premium decision
   tool for anyone, not a game: no confetti, no cartoon icons.
   Mobile-first; every layout starts single-column.
   ════════════════════════════════════════════════════════════════ */

body[data-page="ocean-match"] .site-header,
body[data-page="ocean-match"] .site-footer,
body[data-page="ocean-match"] .skip-link,
body[data-page="ocean-match"] .back-btn,
body[data-page="ocean-match"] .wa-float,
body[data-page="ocean-match"] .cg-fab,
body[data-page="ocean-match"] .cg-panel { display: none !important; }

body[data-page="ocean-match"] {
  --om-line: rgba(43, 51, 119, 0.14);
  --om-soft: #eef2fb;
  --om-aqua: #dff0f4;
  background: var(--sand);
  overflow-x: hidden;
}

.om-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(127, 196, 212, 0.35), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(61, 91, 217, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfaf5 0%, var(--sand) 55%, #eaf4f4 100%);
}
.om { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.om-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.om-logo img { height: 34px; width: auto; }
.om-close { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 8px 4px; }
.om-close:hover { color: var(--ink); }

.om-wrap { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 56px; }
.om-wrap [data-focus]:focus { outline: none; }

/* ---------- Intro ---------- */
.om-intro { padding-top: clamp(24px, 8vh, 80px); }
.om-intro h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin-bottom: 14px; }
.om-lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.om-points { display: grid; gap: 10px; margin-bottom: 28px; }
.om-points li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.97rem; }
.om-points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--om-aqua); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--aqua);
}
.om-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.om-fine { font-size: 0.8rem; color: var(--muted); line-height: 1.55; max-width: 60ch; margin-top: 24px; }

/* ---------- Question ---------- */
.om-q { padding-top: clamp(8px, 3vh, 32px); }
.om-progress { height: 4px; background: var(--om-line); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.om-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #1a86a8); border-radius: inherit; transition: width 0.35s cubic-bezier(.2, .7, .2, 1); }
.om-q-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.om-q-hint { color: var(--navy); }
.om-q h2 { font-size: clamp(1.6rem, 5.4vw, 2.2rem); margin-bottom: 8px; }
.om-q-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }

.om-options { display: grid; gap: 10px; margin: 22px 0 26px; }
@media (min-width: 560px) { .om-options-2 { grid-template-columns: 1fr 1fr; } }
.om-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--om-line); border-radius: 14px;
  padding: 15px 16px; min-height: 56px;
  font: 500 0.98rem/1.35 var(--font-body); color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.om-opt:hover { border-color: rgba(43, 51, 119, 0.4); box-shadow: 0 6px 18px rgba(13, 18, 48, 0.06); }
.om-opt:active { transform: scale(0.99); }
.om-opt:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.om-opt-mark { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(43, 51, 119, 0.3); background: #fff; transition: all .15s; }
.om-opt-text small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }
.om-opt.is-on { border-color: var(--navy); background: var(--om-soft); }
.om-opt.is-on .om-opt-mark { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 4px #fff; }

.om-q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.om-q-nav-right { display: flex; align-items: center; gap: 14px; }
.om-q-nav .btn[disabled] { opacity: 0.35; pointer-events: none; }
.om-link { background: none; border: 0; padding: 8px 2px; font: 600 0.9rem var(--font-body); color: var(--navy); cursor: pointer; }
.om-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Calculating ---------- */
.om-calc { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); }
.om-calc-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--om-line); border-top-color: var(--navy); animation: om-spin 0.9s linear infinite; }
@keyframes om-spin { to { transform: rotate(360deg); } }

/* ---------- Result ---------- */
.om-result { display: grid; gap: 14px; padding-top: 6px; }
.om-hero-card {
  border-radius: 22px; padding: 26px 22px 24px; color: #fff;
  background: linear-gradient(155deg, #16295f 0%, var(--navy) 45%, #1a6d86 100%);
  box-shadow: var(--shadow-lg);
}
.om-kicker { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua); margin-bottom: 14px; }
.om-best { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 4px; }
.om-hero-card h1 { color: #fff; font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 4px; }
.om-persona { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 18px; }
.om-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.om-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), #bfe6ee); animation: om-fill 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes om-fill { from { width: 0 !important; } }
.om-meter-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin: 8px 0 16px; }
.om-meter-label b { color: #fff; font-size: 1.05rem; }
.om-summary { color: rgba(255, 255, 255, 0.92); font-size: 1rem; line-height: 1.6; }

.om-card { background: #fff; border: 1px solid var(--om-line); border-radius: 18px; padding: 22px 20px; }
.om-h { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.om-card p { color: var(--text); }
.om-card p + p { margin-top: 8px; }

.om-why { display: grid; gap: 10px; }
.om-why li { position: relative; padding-left: 30px; color: var(--ink); }
.om-why li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--om-aqua); color: var(--navy); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

.om-start { border-color: rgba(245, 130, 31, 0.35); box-shadow: 0 10px 30px rgba(245, 130, 31, 0.08); }
.om-start-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink) !important; line-height: 1.2; }
.om-start-meta { font-size: 0.88rem; color: var(--muted) !important; margin-top: 4px !important; }
.om-start .btn { margin-top: 18px; width: 100%; justify-content: center; }

.om-path { display: grid; gap: 0; counter-reset: none; }
.om-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; position: relative; padding-bottom: 14px; }
.om-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--om-line); }
.om-step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--om-soft); color: var(--navy); font-weight: 700; font-size: 0.85rem; }
.om-step:first-child .om-step-n { background: var(--navy); color: #fff; }
.om-step-body { display: block; padding: 4px 0 2px; }
.om-step-body b { display: block; color: var(--ink); font-weight: 600; }
.om-step-body span { display: block; color: var(--text); font-size: 0.9rem; }
.om-step-body small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.om-step-body:hover b { text-decoration: underline; text-underline-offset: 3px; }

.om-commit { display: grid; gap: 12px; }
.om-commit dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.om-commit dd { color: var(--ink); }

.om-second-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink) !important; }
.om-second-name small { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.om-second .om-link { display: inline-block; margin-top: 10px; }

.om-next-main { width: 100%; justify-content: center; }
.om-next-row { display: grid; gap: 10px; margin-top: 10px; }
.om-next-row .btn { width: 100%; justify-content: center; }
@media (min-width: 560px) { .om-next-row { grid-template-columns: repeat(3, 1fr); } .om-next-row .btn { padding-left: 12px; padding-right: 12px; } }

/* ---------- Lead capture ---------- */
.om-lead-card { border-color: rgba(43, 51, 119, 0.22); background: linear-gradient(180deg, #fff, #fbfcff); }
.om-lead-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.om-lead-card > p { color: var(--muted); margin-bottom: 18px; }
.om-form { gap: 16px; }
.om-form label small { font-weight: 500; }
.om-form .ti-phone select { flex: 0 0 auto; width: auto; padding-left: 10px; padding-right: 10px; }
.om-form .ti-phone input { min-width: 0; }
.om-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.om-chips .filter-chip { padding: 9px 15px; font-size: 0.88rem; }
.om-coach-toggle { justify-self: start; background: none; border: 0; padding: 4px 0; font: 600 0.92rem var(--font-body); color: var(--navy); cursor: pointer; }
.om-coach { border: 1px dashed var(--om-line); border-radius: 14px; padding: 14px 14px 16px; display: grid; gap: 14px; }
.om-coach[hidden] { display: none; }
.om-coach legend { font-weight: 700; font-size: 0.9rem; color: var(--ink); padding: 0 6px; }
.om-coach > p { font-size: 0.85rem; margin-top: -6px; }
.om-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 0.86rem !important; color: var(--text) !important; line-height: 1.45; cursor: pointer; }
.om-consent input { width: 18px !important; height: 18px; flex: 0 0 18px; margin-top: 2px; padding: 0 !important; accent-color: var(--navy); }
.om-form .btn-lg { width: 100%; justify-content: center; }
.om-msg { color: var(--orange-deep); font-size: 0.88rem; font-weight: 600; }
.om-skip { display: block; margin: 14px auto 0; color: var(--muted); }
.om-lead-done { border-color: rgba(26, 134, 168, 0.35); background: #f4fafb; }
.om-lead-done h3 { font-size: 1.3rem; margin-bottom: 6px; }
.om-lead-done .btn { margin-top: 14px; }

.om-retake { text-align: center; }

/* ---------- Home: three doors ---------- */
.om-doors { display: grid; gap: 12px; margin: 22px 0 18px; }
.om-door {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--om-line); border-radius: 18px; padding: 16px 16px;
  font-family: var(--font-body); color: var(--ink); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.om-door:hover { border-color: rgba(43, 51, 119, 0.4); box-shadow: 0 10px 26px rgba(13, 18, 48, 0.08); transform: translateY(-1px); }
.om-door:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.om-door-emoji { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--om-soft); }
.om-door-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.om-door-text b { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.om-door-text b em { font-family: var(--font-body); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); background: rgba(245, 130, 31, .1); border-radius: 99px; padding: 3px 8px; vertical-align: middle; margin-left: 4px; white-space: nowrap; display: inline-block; }
.om-door-text span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.om-door-arrow { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--om-soft); color: var(--navy); font-weight: 700; transition: transform .2s; }
.om-door:hover .om-door-arrow { transform: translateX(3px); }
.om-door--main { border-color: rgba(245, 130, 31, .45); box-shadow: 0 12px 30px rgba(245, 130, 31, .1); }
.om-door--main .om-door-emoji { background: rgba(245, 130, 31, .12); }
.om-door--main .om-door-arrow { background: var(--orange); color: #fff; }
.om-door--inline { margin: 2px 0; }
.om-door--inline .om-door-text b { font-size: 1.02rem; }
.om-resume { margin-top: -4px; }
.om-back { padding-left: 0; }

/* ---------- Door 2: pathway spine ---------- */
.om-spine { display: grid; }
.om-spine-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.om-spine-step:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--om-line); }
.om-spine-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(43, 51, 119, .25); background: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; margin-top: 2px; }
.om-spine-body { display: grid; gap: 2px; }
.om-spine-body b { color: var(--ink); font-weight: 600; }
.om-spine-body span { font-size: .88rem; color: var(--text); }
.om-spine-body small { font-size: .8rem; color: var(--muted); }
a.om-spine-body:hover b { text-decoration: underline; text-underline-offset: 3px; }
.om-spine-tag { justify-self: start; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; background: var(--om-soft); color: var(--navy); margin-bottom: 2px; }
.om-spine-step.is-done .om-spine-dot { background: var(--navy); border-color: var(--navy); }
.om-spine-step.is-done .om-spine-body b { color: var(--muted); }
.om-spine-step.is-here .om-spine-dot { border-color: var(--navy); box-shadow: inset 0 0 0 5px var(--navy); }
.om-spine-step.is-next .om-spine-dot, .om-spine-step.is-start .om-spine-dot { border-color: var(--orange); box-shadow: inset 0 0 0 5px var(--orange); }
.om-spine-step.is-next .om-spine-tag, .om-spine-step.is-start .om-spine-tag { background: rgba(245, 130, 31, .12); color: var(--orange-deep); }
.om-spine-step.is-optional .om-spine-dot { border-style: dashed; }
.om-spine-step.is-past { opacity: .55; }
.om-spine-step.is-past .om-spine-dot { border-style: dashed; }
.om-spine-step.is-horizon .om-spine-dot { border-style: dashed; border-color: rgba(43, 51, 119, .2); }
.om-spine-step.is-horizon .om-spine-body b { color: var(--muted); font-weight: 500; }

.om-keep { display: grid; gap: 10px; }
@media (min-width: 560px) { .om-keep { grid-template-columns: repeat(3, 1fr); } }
.om-keep-card { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--om-soft); color: var(--ink); }
.om-keep-card span { font-size: 1.3rem; }
.om-keep-card small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.om-keep-card:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Door 3: worries ---------- */
.om-worries { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.om-worry {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--om-line); font: 500 .94rem/1.3 var(--font-body); color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.om-worry:hover { border-color: rgba(43, 51, 119, .4); }
.om-worry:active { transform: scale(.98); }
.om-worry.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.om-q-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.om-sticky-nav {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246, 243, 234, 0), rgba(246, 243, 234, .96) 30%);
}
.om-worry-list { display: grid; gap: 16px; }
.om-worry-a { padding-bottom: 16px; border-bottom: 1px solid var(--om-line); }
.om-worry-a:last-child { padding-bottom: 0; border-bottom: 0; }
.om-worry-q { font-weight: 700; color: var(--ink) !important; margin-bottom: 4px; }
.om-worry-a .om-link { padding: 6px 0 0; display: inline-block; }
.om-bridge { color: var(--muted); font-size: .95rem; margin: 6px 4px -4px; }

@media (max-width: 640px) {
  .om-form .form-row-2 { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .om-progress span, .om-meter span, .om-opt { transition: none; animation: none; }
  .om-calc-ring { animation-duration: 3s; }
}
