/* The home page only (index.html). Plan: docs/plan-restructure.md */
/* hero */
.hero { position: relative; color: #FFFFFF; background: #0B3A52 url("/img/turtle.jpg") center 42% / cover no-repeat; overflow: hidden }
/* phones get a portrait copy a third the size (the hero photo is what search engines time) */
@media (max-width: 760px) { .hero { background-image: url("/img/turtle-phone.jpg"); background-position: center } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,46,.72) 0%, rgba(4,30,46,.35) 55%, rgba(4,30,46,0) 85%), linear-gradient(180deg, rgba(4,30,46,.45) 0%, rgba(4,30,46,.1) 45%, rgba(4,30,46,.45) 100%) }
.hero .inner { position: relative; padding-block: clamp(56px, 7vw, 96px) clamp(100px, 11vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center }
@media (max-width: 900px) {
  .hero .inner { gap: 22px }
  .hero h1 { max-width: none; font-size: 30px }
  .hero-text { gap: 12px }
  .hero-text p { font-size: 15px }
  .hero-vid { justify-self: center }
}
@media (max-width: 900px) {
  .hero .inner { grid-template-columns: minmax(0, 1fr) }
}
/* sized by the window height too, so the whole phone shows on a laptop (owner, 19 Nov 2026) */
.hero-vid { width: clamp(200px, min(22vw, (100svh - 280px) * .5625), 300px); border-color: rgba(255,255,255,.18); box-shadow: 0 18px 50px rgba(2,14,24,.45) }
.hero .script { font-size: clamp(26px, 3.2vw, 36px) }
.hero-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start }
.hero-card { --accent: #5ED3DD; --muted: rgba(255,255,255,.7); --surface: transparent; --line: transparent; padding: 16px; border-radius: 20px; background: rgba(4,30,46,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(2,14,24,.35) }
.hc-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85) }
.hero-prof { aspect-ratio: 320 / 150; flex: none; margin-top: 8px }
.hero-prof polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .4s ease-in-out forwards }
.hero-prof .mini { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .45s ease-out forwards }
@keyframes pop { from { opacity: 0; transform: scale(.4) } to { opacity: 1; transform: scale(1) } }
@media (prefers-reduced-motion: reduce) {
  .hero-prof polyline { animation: none; stroke-dashoffset: 0 }
  .hero-prof .mini { animation: none; opacity: 1 }
}
.hero h1 .lp, #log h2 .lp { color: #4FD6CB }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: .98; letter-spacing: .005em; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,20,30,.35) }
.hero p { margin: 0; font-size: clamp(16px, 2vw, 19px); max-width: 46ch; color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(0,20,30,.45) }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px }
.btn-hero { font: 700 16px/1 var(--body); border-radius: 999px; padding: 16px 24px; min-height: 52px; border: 2px solid #FFFFFF; cursor: pointer }
.btn-hero.solid { background: #FFFFFF; color: #06303F }
.btn-hero.ghost { background: rgba(255,255,255,.08); color: #FFFFFF; backdrop-filter: blur(4px) }
.btn-hero:hover { transform: translateY(-1px) }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 7vw, 90px); display: block }
.wave path { fill: var(--bg) }
/* landing sections */
.sect { padding-block: clamp(48px, 7vw, 88px) }
.sect.sand { background: var(--sand) }
.faq { margin-top: 24px; display: flex; flex-direction: column; gap: 10px }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface) }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; font-size: 17px; list-style: none; position: relative }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent) }
.faq-item[open] summary::after { content: "–" }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted) }
.faq-item p + p { margin-top: -6px }
.faq-item p.tip { color: var(--fg) }
.faq-group { margin: 18px 0 2px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
.faq-group:first-child { margin-top: 0 }
.faq-item p.tip b { color: var(--accent) }
.sect h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 4.6vw, 48px); line-height: 1; letter-spacing: .01em; text-wrap: balance }
.sect .lede { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 56ch }
#examples .lede { max-width: none }
.sect .kicker { font-family: var(--script); font-weight: 700; font-size: 28px; color: var(--accent); display: block; margin-bottom: 6px; transform: rotate(-2deg); transform-origin: left }
.examples { margin-top: 32px; max-width: 1180px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }
@media (max-width: 1020px) and (min-width: 761px) {
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px }
}
/* On phones the examples and the steps become swipeable carousels with arrows */
@media (max-width: 760px) {
  .examples, .steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-left: 0 }
  .example .phone { width: min(100%, 300px); margin-inline: auto }
  .examples::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none }
  .example, .steps li { scroll-snap-align: start }
}
.example { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0 }
.teaser { position: absolute; top: 10px; left: 10px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(2,14,24,.6); color: #ffffff }
.ex-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 17px; text-transform: uppercase }
.ex-text { margin: 0; color: var(--muted); font-size: 14px }
.howlink { display: block; margin: 36px auto 0; padding: 6px 12px; border: 0; background: none; cursor: pointer; font-family: var(--script); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--accent); transform: rotate(-2deg) }
.howlink:hover { text-decoration: underline; text-underline-offset: 6px }
.hero .howlink { margin: -4px 0 0; padding: 4px 0; font-size: clamp(24px, 2.6vw, 30px); color: #4FD6CB; text-shadow: 0 1px 12px rgba(0,20,30,.55) }
.howlink span { font-family: var(--body); font-size: 22px; margin-left: 10px }
.howdlg .dlbtns { align-items: center }
/* on phones it all fits on one screen without scrolling: the mock-ups shrink with the screen height */
@media (max-width: 760px) {
  /* the pop-up is as tall as the screen allows and the pictures take what's left, so Close and Create yours always show */
  .howdlg { padding: 16px; max-height: calc(100dvh - 24px) }
  .howdlg[open] { display: flex; flex-direction: column; overflow: hidden }
  .howdlg .steps { flex: 1 1 auto; min-height: 0; grid-auto-rows: 100% }
  .howdlg .steps li { min-height: 0 }
  .howdlg .kicker, .howdlg h2, .howdlg .carnav, .howdlg .dlbtns { flex: none }
  .howdlg .kicker { font-size: 20px }
  .howdlg h2 { font-size: 22px }
  .howdlg .steps { margin-top: 10px }
  .howdlg .mock { height: auto; flex: 1 1 auto; min-height: 90px; max-height: 300px; padding: 10px; gap: 8px }
  .howdlg .steps .stxt { flex: none }
  .howdlg .steps .stxt { padding: 0 14px 14px; gap: 4px }
  .howdlg .steps h3 { font-size: 16px }
  .howdlg .steps p { font-size: 14px; line-height: 1.4 }
  .howdlg .carnav { margin-top: 10px }
  .howdlg .dlbtns { margin-top: 10px }
}
.howdlg .dlbtns a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none }
.howdlg { max-width: min(1040px, calc(100vw - 24px)) }
.howdlg .steps { margin-top: 16px }
.howdlg .kicker { font-family: var(--script); font-weight: 700; font-size: 24px; color: var(--accent); display: block; transform: rotate(-2deg); transform-origin: left }
.howdlg h2 { margin: 2px 0 0; font: 800 26px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase }
.hsteps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: hs }
.hsteps li { counter-increment: hs; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line) }
.hsteps li::before { content: counter(hs); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font: 800 15px/30px var(--body); text-align: center }
.hsteps b { font-weight: 700 }
.hsteps span { color: var(--muted); font-size: 14px }
@media (max-width: 760px) {
  .hsteps { grid-template-columns: minmax(0, 1fr); gap: 10px }
}
.steps { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line) }
@media (max-width: 760px) {
  .steps { grid-template-columns: none; grid-auto-columns: 100% }
}
.mock-prof { flex: 1; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px }
.mock-prof svg { display: block; width: 100%; height: 100% }
.steps .stxt { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 6px }
.steps h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 18px }
.steps h3::before { content: counter(step) "  "; color: var(--accent) }
.steps p { margin: 0; color: var(--muted) }
/* the band photos load once the band nears the screen (`.near`, home.js), so they don't slow the first screen */
.band { position: relative; color: #FFFFFF; background: #0B3A52 center 55% / cover no-repeat }
.band.near { background-image: url("/img/divers.jpg") }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,46,.78) 0%, rgba(4,30,46,.35) 70%, rgba(4,30,46,.15) 100%) }
.band .inner { position: relative; padding-block: clamp(56px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: center }
@media (max-width: 760px) {
  .band .inner { grid-template-columns: minmax(0, 1fr) }
}
.band-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start }
/* the home page's Dive log: numbers, a map and the wall of cards */
.band .inner:has(.logmock) { grid-template-columns: minmax(0, 1fr) minmax(0, 520px) }
@media (max-width: 860px) {
  .band .inner:has(.logmock) { grid-template-columns: minmax(0, 1fr) }
}
.logmock { margin: 0; width: 100%; padding: 14px; border-radius: 20px; background: rgba(2, 16, 25, .82); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.4); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 10px; color: #e8f4f6 }
.lm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.lm-stats span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--k) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--k) 18%, #0b2433), #0b2433 80%) }
.lm-stats i { font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--k) }
.lm-stats b { font: 700 19px/1.1 var(--body); font-variant-numeric: tabular-nums }
.lm-stats .coral b { color: var(--coral) }
.lm-stats .coral { --k: var(--coral) }
.lm-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px }
.lm-wall img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); display: block }
@media (max-width: 480px) {
  .lm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .lm-wall { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .lm-wall img:nth-child(n+5) { display: none }
}
.band h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 5vw, 54px); line-height: .95; color: #FFFFFF; max-width: 12ch; text-wrap: balance }
.band p { margin: 0; max-width: 44ch; font-size: 17px; color: rgba(255,255,255,.94) }
/* Phones: the hero fills the first screen, and the hero and trip band are centred */
@media (max-width: 760px) {
  /* the hero is the first screen: a column where the video takes whatever height is left, so Start here always shows
     under See how it works, whatever the phone's text size (owner, 28 Nov 2026) */
  .hero .inner { width: 100%; min-height: calc(100svh - 61px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 24px 48px; gap: 14px }
  .hero-text, .band-text { align-items: center; text-align: center }
  .hero-text .cta, .band-text .cta { justify-content: center }
  .hero-vid { order: 2; flex: 1 1 0; width: auto; height: auto; min-height: 130px; max-height: 34svh; border-width: 4px; border-radius: 20px }
  /* the button goes under the video (owner, 19 Nov 2026) */
  .hero-text { display: contents }
  .hero-text .cta { order: 3 }
  .hc-head { font-size: 9.5px; letter-spacing: .04em }
  .band .inner { justify-items: center }
}
/* the prices section: a locked Dive log, then the packs as small boxes */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: center }
.pwords .minipacks { margin: 24px 0 0; max-width: 640px }
.pwords .lede { margin-top: 20px }
.pwords .plansbuy { justify-content: flex-start; margin-top: 24px }
@media (max-width: 860px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 32px }
  .pwords .plansbuy { justify-content: center }
  .ulk { justify-self: center; width: min(230px, 64vw) }
}
.ba.ulk { aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); animation: ulkSweep 7s ease-in-out infinite alternate }
.ba.ulk.held { animation: none }
@keyframes ulkSweep { from { --x: 28% } to { --x: 72% } }
@media (prefers-reduced-motion: reduce) {
  .ulk { animation: none }
}
.ulk .bef { object-fit: cover }
.ba.ulk .bline { background: var(--gold); box-shadow: 0 0 10px rgba(0,0,0,.5) }
.ba.ulk .bline::after { content: ''; width: 46px; height: 46px; background: url(/brand/favicon.svg) center / 100% no-repeat, #06202f; box-shadow: 0 0 0 3px var(--gold), 0 4px 14px rgba(0,0,0,.5) }
.lface { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(120% 70% at 50% 0%, #12506e 0%, #0b3a55 35%, #06202f 75%, #021019 100%) }
.lface .lprof { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5 }
.lface .lprof path { fill: none; stroke: #4fd6cb; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.lface .lprof circle { fill: var(--coral) }
.lface .lk { position: relative; width: 44px; height: 44px; fill: none; stroke: #f5c04e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.lface .lunlock { position: relative; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #f5c04e; color: #2a1e00 }
#prices .lede { max-width: none }
.minipacks { margin: 28px auto 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.minipacks .mp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center }
.minipacks .mp b { font: 900 13px var(--display); font-stretch: 125%; text-transform: uppercase }
.minipacks .mpp { font: 800 24px var(--display); color: var(--fg) }
.minipacks small { color: var(--muted); font-size: 12px }
.minipacks .mp.best { border: 2px solid var(--gold) }
.minipacks .mp.best .mpp { color: var(--gold) }
.minipacks .mp i { position: absolute; top: -10px; font: 600 10px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-fg) }
@media (max-width: 560px) {
  .minipacks { gap: 8px }
  .minipacks .mpp { font-size: 19px }
  .minipacks small { font-size: 11px }
  .minipacks .mp { padding: 14px 6px 12px }
}
.plansbuy { display: flex; justify-content: center; margin-top: 28px }
.plansbuy button { min-width: 220px; font-size: 17px; padding: 14px 28px }
.plansbuy button[hidden] { display: none }
/* the membership band sits on a photo so it reads as the better option */
#member { position: relative; color: #FFFFFF; background: #0B3A52 30% 60% / cover no-repeat }
#member.near { background-image: url("/img/coral.jpg") }
#member::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,46,.9) 0%, rgba(4,30,46,.72) 40%, rgba(4,30,46,.2) 70%, rgba(4,30,46,.3) 100%) }
#member h2, #member .lede { text-shadow: 0 2px 14px rgba(0,0,0,.5) }
#member .inner { position: relative }
#member .lede { color: rgba(255,255,255,.88) }
#member .plan.member { background: rgba(6,32,47,.92); color: #FFFFFF; box-shadow: 0 20px 60px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
#member .plan.member .plan-price, #member .plan.member .plan-name { color: #FFFFFF }
#member .plan.member ul, #member .plan-per, #member .plan-price small { color: rgba(255,255,255,.75) }
#member .mseg { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18) }
#member .mseg button { color: rgba(255,255,255,.75) }
#member .mseg button[aria-pressed="true"] { color: var(--accent-fg) }
@media (max-width: 860px) {
  #member { background-position: 35% center }
  #member::before { background: linear-gradient(180deg, rgba(4,30,46,.88) 0%, rgba(4,30,46,.78) 40%, rgba(4,30,46,.55) 100%) }
  #member .lede { color: #FFFFFF }
}
/* Photo Fix on the home page: a before and after with a line to drag */
.fixband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: center }
@media (max-width: 860px) {
  .fixband { grid-template-columns: minmax(0, 1fr); gap: 24px }
}
.fixband .cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px }
.fixband .cta a.fixgo { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--body); background: var(--accent); color: var(--accent-fg) }
.fixband .cta a.fixgo:hover { transform: translateY(-1px) }
.fixband .fine { color: var(--muted); font-size: 14px; margin: 0 }
.ba { --x: 50%; position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); user-select: none; touch-action: pan-y }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none }
.ba .bef { clip-path: inset(0 calc(100% - var(--x)) 0 0) }
.ba .bline { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none }
.ba .bline::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: #06202f; font: 700 16px/40px var(--body); text-align: center; letter-spacing: 2px }
.ba .btag { position: absolute; top: 12px; font: 600 11px var(--mono); letter-spacing: .12em; padding: 4px 9px; border-radius: 999px; background: rgba(6,32,47,.7); color: #FFFFFF; pointer-events: none }
.ba .btag.l { left: 12px }
.ba .btag.r { right: 12px }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y }
#member .plan.member .mcancel { color: rgba(255,255,255,.7) }
.mband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: center }
.mband .plan.member { padding: 24px }
.mband .plan.member .planbtn { margin-top: 10px; font-size: 16px; padding: 13px 20px }
@media (max-width: 860px) {
  .mband { grid-template-columns: minmax(0, 1fr); gap: 24px }
}

/* carousel arrows and dots on phones (examples, how it works) */
.carnav { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 16px }
@media (max-width: 760px) {
  .carnav { display: flex }
}
.carnav button { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font: 600 22px/1 var(--body); display: grid; place-items: center }
.cardots { display: flex; gap: 8px }
.cardots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line) }
.cardots span.on { background: var(--accent) }
/* the How it works pop-up: three steps with small mock-ups, swiped on phones */
.mock { position: relative; height: 300px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--sunk); overflow: hidden; pointer-events: none; user-select: none }
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
.mock-f { display: flex; flex-direction: column; gap: 2px; font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0 }
.mock-f b { font: 500 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mock-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px }
.mock-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block }
.mock-row div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: var(--muted) }
.mock-row strong { font-size: 13px; color: var(--fg) }
.mock-range { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 84%, var(--line) 84%) }
/* step 3: the dive's page in the Dive log (owner, 28 Nov 2026: a friend who doesn't dive didn't see what the site does) */
.mock.page { flex-direction: row; gap: 12px; --line: rgba(255,255,255,.14) }
.mp-card { flex: none; align-self: stretch; height: 100%; width: auto; max-width: 40%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; display: block }
.mp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px }
.mp-site { font: 900 16px/1.05 var(--display); font-stretch: 125%; text-transform: uppercase }
.mock.page .hd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.mock.page .hd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0 }
.mock.page .mock-prof { min-height: 40px }

.hero-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
/* the Dive log band's example map (its colours were left in app.css by the restructure, so every country drew black) */
.lm-map svg { width: 100%; height: auto; display: block }
.lm-map .land { fill: rgba(232,244,246,.14); stroke: rgba(2,16,25,.9); stroke-width: .6 }
.lm-map .land.on { fill: color-mix(in srgb, #4FD6CB var(--pct, 100%), #0b2433) }
.lm-map .dot { fill: #4FD6CB; stroke: rgba(2,16,25,.9); stroke-width: 2 }

/* ---------- the Dive log band: one dive's page, its card beside its details, profile and photos (26 Nov 2026) ---------- */
a.btn-hero { display: inline-flex; align-items: center; text-decoration: none }
.band .inner:has(.logdive) { grid-template-columns: minmax(0, 1fr) minmax(0, 560px) }
@media (max-width: 860px) { .band .inner:has(.logdive) { grid-template-columns: minmax(0, 1fr) } }
.logdive { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-areas: "top top" "prev main"; gap: 12px 14px; align-items: start; color: #e8f4f6; --muted: rgba(232,244,246,.62); width: 100%; padding: 14px; border-radius: 24px; background: rgba(2,16,25,.86); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
.logdive > .hd-top { grid-area: top } .ld-prev { grid-area: prev; display: flex; flex-direction: column; align-items: center; gap: 8px } .logdive > .hdive { grid-area: main }
.ld-dots { display: flex; gap: 6px } .ld-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3) } .ld-dots i.on { background: #4FD6CB }
.ld-card { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; display: block }
.hdive { --accent: #4FD6CB; --muted: rgba(232,244,246,.62); --line: rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 10px; color: #e8f4f6; text-align: left; min-width: 0 }
.hd-top { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.hd-date { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.hd-site { font: 900 23px/1 var(--display); font-stretch: 125%; text-transform: uppercase }
.hd-place { font-size: 13px; color: var(--muted) }
.hd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
.hd-stats span { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line) }
.hd-stats i { font: 500 9.5px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.hd-stats b { font: 700 15px/1.1 var(--body); white-space: nowrap }
.hd-stats b.c { color: var(--coral) }
.hdive .mock-prof.hero-prof { flex: none; width: 100%; height: auto; aspect-ratio: 320 / 150; margin-top: 0 }
.hd-h { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.hd-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: -4px }
.hd-grid img, .hd-grid span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; display: block }
.hd-grid span { display: grid; place-items: center; background: rgba(255,255,255,.08); font: 600 12px var(--body); color: var(--muted) }
.hd-trip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted) }
.hd-trip span { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 600 }
@media (max-width: 860px) { .logdive { max-width: 520px; margin-inline: auto } }
@media (max-width: 520px) {
  .logdive { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 18px }
  .ld-card { border-radius: 10px }
  .hdive { gap: 8px }
  .hd-site { font-size: 17px }
  .hd-stats { gap: 4px }
  .hd-stats span { padding: 5px 6px }
  .hd-stats i { font-size: 9.5px; letter-spacing: 0 }
  .hd-stats b { font-size: 12.5px }
}
#member .mseg button { min-height: 32px }
/* the dive's line draws itself once the band is on screen */
.logdive:not(.go) .hero-prof polyline, .logdive:not(.go) .hero-prof .mini { animation-play-state: paused }
/* a band's button sits under its example (owner, 26 Nov 2026: otherwise the example looks like it belongs to the next section);
   side by side, it stays under the words */
.aftercta { display: flex; flex-wrap: wrap; gap: 12px }
.fixband .aftercta { margin-top: 0 }
@media (min-width: 861px) {
  .band .inner:has(.logdive), .fixband { grid-template-rows: auto auto; row-gap: 22px }
  .band .inner:has(.logdive) > .band-text, .fixband > div:first-child { grid-column: 1; grid-row: 1; align-self: end }
  .band .inner:has(.logdive) > .logdive, .fixband > .ba { grid-column: 2; grid-row: 1 / span 2; align-self: center }
  .aftercta { grid-column: 1; grid-row: 2; align-self: start }
}
@media (max-width: 860px) { .band .aftercta { justify-content: center } }
