/* Scuba Hub website. One stylesheet, no inline styles (the site's security
   policy forbids them). Colours and type follow the app and the portal. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --navy: #0A2540; --abyss: #061A2E; --teal: #0E7490; --bright: #14B8C8;
  --foam: #F3FAFB; --tint: #DDF3F6; --line: #C9DDE3; --rule: #E3EEF1;
  --ink: #33495B; --muted: #4A6275; --white: #fff;
  --amber-bg: #FBEBD3; --amber: #6B3F00; --good: #0B5E6F;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --wrap: 1160px; --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--navy); background: var(--foam); }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 250, 251, .86); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.stuck { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--display); letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
/* The pages: plain words. A line under the one you are on, and one that
   grows from the left under the one you point at. */
.nav a { position: relative; padding: 8px 0; font-size: .97rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }
/* Signing in is for the few who already have a dive center here: a quiet
   outlined link at the end, not another page. */
.nav a.signin { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; color: var(--ink); transition: border-color .15s, color .15s; }
.nav a.signin::after { display: none; }
.nav a.signin:hover { border-color: var(--teal); color: var(--navy); }
.nav a.signin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s, color .15s, border-color .15s; }
.btn:hover { background: #123a5f; border-color: #123a5f; color: #fff; }
.btn:active { transform: scale(.97); }
.btn.line { background: transparent; color: var(--navy); }
.btn.line:hover { background: var(--navy); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.deep .btn { background: #fff; border-color: #fff; color: var(--navy); }
.deep .btn:hover { background: var(--bright); border-color: var(--bright); color: var(--abyss); }
.deep .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.deep .btn.line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Store badges: plain, ours, with a state line while the apps are not out. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--navy); color: #fff; text-decoration: none; border: 1.5px solid var(--navy); transition: transform .15s; }
a.store:hover { color: #fff; transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: .72rem; opacity: .75; line-height: 1.2; }
.store b { display: block; font: 600 1.05rem/1.2 var(--display); }
.store.soon { background: transparent; color: var(--navy); border-style: dashed; border-color: var(--teal); }
.deep .store { background: #fff; color: var(--navy); border-color: #fff; }
.deep .store.soon { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------------------------------------------------- the dive (sections) */
/* The page reads as a dive: it starts in the light at the surface and gets
   deeper and darker towards the foot. The gauge on the left shows how deep. */
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.surface { background: linear-gradient(180deg, #fff 0%, var(--foam) 55%, #E7F6F8 100%); overflow: hidden; }
.shallow { background: #E7F6F8; }
.mid { background: linear-gradient(180deg, #E7F6F8 0%, #CFEBEF 100%); }
.deep { background: linear-gradient(180deg, #0E4F66 0%, var(--navy) 38%, var(--abyss) 100%); color: #fff; }
.deep p, .deep .lede { color: #C5DCE4; }
.deep a { color: #7FE3EE; }
.deep a:hover { color: #fff; }
.deep + .deep { background: var(--abyss); padding-top: 0; }
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-head p { margin-top: 20px; }
.page-head + section { padding-top: clamp(24px, 3vw, 40px); }

.gauge { position: fixed; left: 18px; top: 118px; bottom: 36px; width: 90px; z-index: 20; pointer-events: none; display: none; }
.gauge::before { content: ""; position: absolute; left: 4px; top: -22px; bottom: -8px; width: 1px; background: repeating-linear-gradient(180deg, var(--teal) 0 1px, transparent 1px 24px); opacity: .55; }
.gauge-mark { position: absolute; left: 0; top: 0; margin-top: -4.5px; font: 600 .72rem/1 var(--display); color: var(--teal); transition: color .3s; will-change: transform; }
.gauge-mark::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.gauge-mark > span { position: absolute; left: 20px; top: 26px; white-space: nowrap; }
.gauge.dark .gauge-mark { color: #7FE3EE; }
.gauge.dark::before { background: repeating-linear-gradient(180deg, #7FE3EE 0 1px, transparent 1px 24px); }

/* The diver. The script moves and pitches it; the kick, the breath and the
   torch are drawn here. Suit in the dark teal, fins and tank a shade
   brighter, so the fins read as fins at this size. */
.diver { position: absolute; left: 14px; top: 0; width: 72px; height: 28.8px; margin-top: -14.4px; color: var(--teal); --kit: var(--bright); transition: color .35s; will-change: transform; }
.diver.lit { color: #A6EEF5; --kit: #E9FDFF; }
.trim { position: absolute; inset: 0; }
.diver svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; animation: hover 3.4s ease-in-out infinite alternate; }
.limb { fill: none; stroke: currentColor; stroke-linecap: round; }
.limb.t { stroke-width: 8.6; } .limb.s { stroke-width: 6.4; } .limb.f { stroke-width: 5; stroke: var(--kit); }
.blade { fill: var(--kit); stroke: var(--kit); stroke-width: 1.6; stroke-linejoin: round; transition: fill .35s, stroke .35s; }
.tank { fill: var(--kit); transition: fill .35s; }
.far { opacity: .5; }
.hose, .arm { fill: none; stroke: currentColor; stroke-linecap: round; }
.hose { stroke-width: 1.7; }
.arm { stroke-width: 4.6; }
.glass { fill: #fff; transition: fill .35s; }
.lit .glass { fill: var(--navy); }
.lit .torch { fill: #F4FEFF; }
@keyframes hover { to { transform: translateY(3px); } }

/* A flutter kick. One stroke takes 1.3 s when the diver hangs still and a
   third of a second when it swims. The thigh swings from the hip; the knee
   gives a quarter of a stroke later; the fin bends back against the water
   later still. The far leg does the same half a cycle apart. */
.thigh, .shin, .fin { transform-box: view-box; animation-duration: 1.3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.thigh { transform-origin: 62px 24px; animation-name: thigh; }
.shin { transform-origin: 44px 25.5px; animation-name: shin; animation-delay: -.33s; }
.fin { transform-origin: 26px 23px; animation-name: fin; animation-delay: -.6s; }
.far .thigh { animation-delay: -1.3s; } .far .shin { animation-delay: -1.63s; } .far .fin { animation-delay: -1.9s; }
.gauge.moving .thigh, .gauge.moving .shin, .gauge.moving .fin { animation-duration: .34s; }
.gauge.moving .shin { animation-delay: -.085s; } .gauge.moving .fin { animation-delay: -.155s; }
.gauge.moving .far .thigh { animation-delay: -.34s; } .gauge.moving .far .shin { animation-delay: -.425s; } .gauge.moving .far .fin { animation-delay: -.495s; }
@keyframes thigh { from { transform: rotate(9deg); } to { transform: rotate(-9deg); } }
@keyframes shin { from { transform: rotate(1deg); } to { transform: rotate(15deg); } }
@keyframes fin { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }

/* Breathing out: three bubbles leave together, grow as they rise, then a pause. */
.bub { position: absolute; left: 85%; top: 40%; width: 4px; height: 4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: rise 4.2s linear infinite; }
.bub:nth-child(2) { left: 81%; width: 3px; height: 3px; animation-delay: .32s; }
.bub:nth-child(3) { left: 89%; width: 5px; height: 5px; animation-delay: .7s; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  6% { opacity: .95; }
  48% { transform: translate(6px, -58px) scale(2); opacity: 0; }
  100% { transform: translate(6px, -58px) scale(2); opacity: 0; }
}

/* The torch: a cone of light ahead of the diver, across the page. */
.beam { position: absolute; left: 94%; top: 80%; width: 400px; height: 200px; margin-top: -100px; transform-origin: 0 50%; transform: rotate(7deg) scaleX(.15); opacity: 0;
  background: radial-gradient(ellipse 100% 62% at 0 50%, rgba(226, 252, 255, .5) 0, rgba(150, 232, 244, .2) 34%, rgba(150, 232, 244, 0) 74%);
  clip-path: polygon(0 48.8%, 100% 6%, 100% 94%, 0 51.2%); transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.lamp { position: absolute; left: 94%; top: 80%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #F4FEFF; box-shadow: 0 0 10px 3px rgba(170, 240, 250, .85); opacity: 0; transition: opacity .3s; }
.lit .lamp { opacity: 1; }
.lit .beam { opacity: 1; transform: rotate(7deg) scaleX(1); animation: flick .75s steps(1, end) 1, sway 5.5s .75s ease-in-out infinite alternate; }
@keyframes flick { 0% { opacity: 0; } 14% { opacity: 1; } 28% { opacity: .15; } 44% { opacity: 1; } 58% { opacity: .45; } 72%, 100% { opacity: 1; } }
@keyframes sway { from { transform: rotate(2deg); } to { transform: rotate(12deg); } }
@media (min-width: 1380px) { .gauge { display: block; } }

/* ------------------------------------------------------------------ hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.hero p.lede { margin-top: 24px; }
.rays { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 78% -10%, rgba(20, 184, 200, .20), transparent 70%),
  radial-gradient(40% 40% at 12% 0%, rgba(14, 116, 144, .10), transparent 70%); }

/* The two screens, and the line between them. */
.link { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0; align-items: center; min-height: 520px; }
.link .phone { z-index: 2; }
.link .browser { margin-left: -40px; z-index: 1; align-self: center; }
/* In the hero the portal shows without its menu: the request is the point. */
.link .portal { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.link .side { display: none; }
.link .main { padding: 16px 16px 16px 60px; }
.pulse { position: absolute; left: 244px; top: 150px; width: 12px; height: 12px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 6px rgba(20,184,200,.22); opacity: 0; z-index: 3; }

/* ------------------------------------------------------- phone and screen */
.phone { width: 264px; flex: none; border-radius: 40px; padding: 9px; background: var(--navy); box-shadow: 0 30px 60px -22px rgba(6, 26, 46, .55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.screen { position: relative; border-radius: 32px; background: var(--foam); overflow: hidden; height: 540px; font: 400 12px/1.4 var(--body); color: var(--navy); }
.screen.shot { height: auto; background: #fff; }
.screen.shot img { width: 100%; height: auto; }
.notch { height: 26px; display: flex; justify-content: center; align-items: center; }
.notch::before { content: ""; width: 74px; height: 16px; border-radius: 10px; background: var(--navy); }
.app-pad { padding: 6px 16px 0; }
.app-h { font: 700 21px/1.15 var(--display); letter-spacing: -0.02em; margin: 6px 0 2px; }
.app-sub { color: var(--muted); font-size: 11.5px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row + .row { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule); }
.grow { flex: 1; min-width: 0; }
.t { font-weight: 600; font-size: 12.5px; }
.s { color: var(--muted); font-size: 11px; }
.num { font: 700 15px/1 var(--display); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-weight: 600; font-size: 10.5px; background: var(--tint); color: var(--good); white-space: nowrap; }
.chip.warn { background: var(--amber-bg); color: var(--amber); }
.chip.plain { background: #EEF3F5; color: var(--ink); }
.pill { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 20px; background: var(--navy); color: #fff; font-weight: 600; font-size: 12.5px; margin-top: 12px; }
.pill.line { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.av { width: 30px; height: 30px; border-radius: 50%; background: #CDEFF3; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; flex: none; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; font-size: 10px; color: var(--muted); font-weight: 600; }
.tabs b { color: var(--teal); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px; }
.tile.ok { background: #E3F6EC; border-color: #BFE5CF; }
.tile.so { background: var(--amber-bg); border-color: #F0D9B0; }
.photo { height: 132px; border-radius: 16px; background: linear-gradient(160deg, #1B8FA6, #0A2540 78%); position: relative; overflow: hidden; margin-top: 10px; }
.photo::before { content: ""; position: absolute; inset: -40% -10% 30% -10%; background: repeating-linear-gradient(100deg, rgba(255,255,255,.14) 0 14px, transparent 14px 46px); transform: rotate(-8deg); filter: blur(6px); }
.photo.fish::after { content: ""; position: absolute; left: 30%; top: 42%; width: 96px; height: 44px; border-radius: 60% 45% 45% 60%; background: linear-gradient(90deg, #F39C12 0 22%, #fff 22% 30%, #F39C12 30% 56%, #fff 56% 64%, #F39C12 64%); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* --------------------------------------------------- browser and portal */
.browser { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -28px rgba(6, 26, 46, .45); overflow: hidden; font: 400 11.5px/1.4 var(--body); color: var(--navy); min-width: 0; }
.deep .browser { border-color: rgba(255,255,255,.14); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.browser > img { width: 100%; height: auto; }
.chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--foam); border-bottom: 1px solid var(--line); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.chrome span { margin-left: 12px; padding: 3px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); color: var(--muted); font-size: 10.5px; }
.p-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.p-top b { font: 700 12.5px/1 var(--display); letter-spacing: -0.01em; }
.p-top > span { font-weight: 600; font-size: 10.5px; }
.p-top .chip { height: 20px; font-size: 9.5px; }
.p-top .p-search { margin-left: auto; padding: 5px 14px 5px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--foam); color: var(--muted); font-weight: 400; }
.p-top .av { width: 24px; height: 24px; background: var(--navy); color: #fff; font-size: 9px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.p-chips span { padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 10px; }
.p-chips span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.p-chips i { width: 10px; }
.link .p-top .p-search, .link .p-top .chip { display: none; }
.link .p-top { padding-left: 60px; }
.portal { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 380px; background: var(--foam); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
.side b { display: block; font: 700 9px/1 var(--body); letter-spacing: .1em; color: var(--teal); margin: 12px 6px 6px; }
.side b:first-child { margin-top: 0; }
.side span { display: block; padding: 7px 8px; border-radius: 9px; font-weight: 500; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side span.on { background: var(--navy); color: #fff; font-weight: 600; }
.main { padding: 16px 18px; min-width: 0; }
.p-h { font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; }
.p-sub { color: var(--muted); font-size: 10.5px; margin-bottom: 12px; }
.p-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.p-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.p-tile small { display: block; color: var(--muted); font-size: 9.5px; }
.p-tile b { font: 700 13.5px/1.4 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.p-card + .p-card { margin-top: 10px; }
.p-card h4 { font: 700 12.5px/1.2 var(--display); margin: 0 0 8px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); min-height: 44px; }
.p-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; background: var(--navy); color: #fff; font-weight: 600; font-size: 10.5px; white-space: nowrap; }
.p-btn.line { background: #fff; color: var(--navy); border: 1.2px solid var(--navy); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--teal); transform-origin: bottom; transform: scaleY(.04); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.bars i.now { background: var(--bright); }
.in .bars i { transform: scaleY(1); }
.h20 { height: 20%; } .h30 { height: 30%; } .h40 { height: 40%; } .h50 { height: 50%; } .h60 { height: 60%; }
.h70 { height: 70%; } .h80 { height: 80%; } .h90 { height: 90%; } .h100 { height: 100%; }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .1s; } .d3 { transition-delay: .15s; } .d4 { transition-delay: .2s; }
.d5 { transition-delay: .25s; } .d6 { transition-delay: .3s; } .d7 { transition-delay: .35s; }

/* ------------------------------------- the one moment: request and answer */
/* Plays once when the page opens: the diver asks, the dive center sees it
   and accepts, the diver's phone shows it. Without motion, the end state. */
.swap { display: grid; }
span.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
span.swap > * { justify-self: end; align-self: center; }
.swap .before { animation: out .4s 1.3s both; }
.swap .after { animation: in .4s 1.5s both; }
.swap.late .before { animation-delay: 4.2s; }
.swap.late .after { animation-delay: 4.4s; }
.arrive { animation: arrive .6s 2.5s both cubic-bezier(.2,.8,.2,1); }
.accept .before { animation: out .3s 3.6s both; }
.accept .after { animation: in .3s 3.7s both; }
.pulse { animation: go 1s 1.5s both ease-in-out, back 1s 3.5s both ease-in-out; }
@keyframes out { to { opacity: 0; visibility: hidden; } }
@keyframes in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes go { 0% { opacity: 0; transform: translateX(0); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(150px); } }
@keyframes back { 0% { opacity: 0; transform: translateX(150px); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }

/* ----------------------------------------------------------- content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.flip > :first-child { order: 2; }
.split.wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.flip.wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split h2 + p, .head h2 + p { margin-top: 20px; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.phones .phone:nth-child(2) { margin-top: 44px; }

/* A ruled list, like the lines of a logbook: what, and what it does. */
.log { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1.5px solid var(--navy); }
.log li { display: grid; grid-template-columns: minmax(120px, 11rem) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.log b { font: 700 1.02rem/1.35 var(--display); }
.log span { color: var(--ink); font-size: .98rem; }
.deep .log { border-top-color: #7FE3EE; }
.deep .log li { border-bottom-color: rgba(255,255,255,.16); }
.deep .log span { color: #C5DCE4; }

/* The steps from request to stamp, along a dive profile. */
.profile { margin-top: 40px; }
.profile svg { width: 100%; height: auto; overflow: visible; }
.profile path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s ease; }
.profile.in path { stroke-dashoffset: 0; }
.profile circle { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.profile line { stroke: var(--line); stroke-dasharray: 3 5; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 20px 0 0; }
.steps li { counter-increment: s; font-size: .95rem; color: var(--ink); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .85rem/1 var(--display); margin-bottom: 12px; }
.steps b { display: block; font: 700 1.02rem/1.3 var(--display); color: var(--navy); margin-bottom: 4px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--line); color: var(--navy); }
.deep .plan p { color: var(--ink); }
.plan.dark { background: #0E2F4D; border-color: rgba(255,255,255,.12); }
.plan.dark { color: #fff; }
.plan.dark p, .deep .plan.dark p { color: #C5DCE4; }
.plan h3 { font-size: 1.5rem; margin-bottom: 12px; }
.plan ul { margin: 18px 0 0; padding: 0 0 0 1.1em; color: var(--ink); font-size: .98rem; }
.plan.dark ul { color: #C5DCE4; }
.plan li { margin: 6px 0; }

/* Feature blocks on the two product pages. */
.feature { padding: clamp(48px, 7vw, 96px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature ul { margin: 20px 0 0; padding: 0 0 0 1.1em; color: var(--ink); max-width: 56ch; }
.feature li { margin: 8px 0; }
.note { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--tint); color: var(--good); font-size: .95rem; max-width: 62ch; }
.center { display: flex; justify-content: center; }
.center > .browser { width: 100%; }

/* Help: questions that open. */
.help-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: .95rem; }
.toc a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 500; }
.toc a:hover { background: var(--tint); }
.topic { margin-bottom: 48px; scroll-margin-top: 96px; }
.topic h2 { font-size: 1.6rem; margin-bottom: 14px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1.5px solid var(--navy); }
summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font: 600 1.05rem/1.4 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 0 20px; color: var(--ink); max-width: 68ch; }
details ol, details ul { padding-left: 1.2em; margin: 8px 0; }
details li { margin: 6px 0; }
details p + p { margin-top: 10px; }

/* Privacy and terms: long text that stays readable. */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink); max-width: none; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.legal th { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--navy); }
.fill { background: var(--amber-bg); color: var(--amber); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.draft { margin: 0 0 32px; padding: 16px 20px; border-radius: 14px; background: var(--amber-bg); color: var(--amber); font-size: .95rem; }
.scroll-x { overflow-x: auto; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--abyss); color: #A9C4CE; padding: 56px 0 40px; font-size: .95rem; }
footer .wrap { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
footer .brand { color: #fff; }
footer p { color: #A9C4CE; margin-top: 14px; max-width: 34ch; }
footer h2 { font: 600 .95rem/1 var(--body); letter-spacing: 0; color: #fff; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { color: #A9C4CE; text-decoration: none; }
footer a:hover { color: #fff; }
.fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero .wrap, .split, .split.wide, .split.flip.wide, .split.wide-right, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile svg { display: none; }
  footer .wrap { grid-template-columns: repeat(2, 1fr); }
  .link { justify-content: center; }
}
@media (max-width: 820px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--foam); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; }
  .nav a::after { bottom: 6px; right: auto; width: 28px; }
  .nav a.signin { margin: 10px 0 0; justify-content: center; padding: 12px 14px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 640px) {
  .link { grid-template-columns: minmax(0, 1fr); min-height: 0; justify-items: center; }
  .link .browser { display: none; }
  .pulse { display: none; }
  .phones .phone:nth-child(2) { display: none; }
  .portal { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .p-top .p-search, .p-top .chip { display: none; }
  .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swap .before, .accept .before { display: none; }
  .bars i { transform: none; }
  .profile path { stroke-dashoffset: 0; }
  .pulse { display: none; }
}
