/* The public website (site/). Its own small stylesheet: the logbook app's styles are not loaded here. */
:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --navy: #0b3a6e;
  --navy-deep: #04172e;
  --cyan: #36d9e6;
  --teal: #0a9fbf;
  --bg: #ffffff;
  --bg-soft: #f2f6f9;
  --text: #0a1c29;
  --muted: #4f6578;
  --line: #dde6ec;
  --accent: #0089b0;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(6, 30, 48, 0.06), 0 8px 24px rgba(6, 30, 48, 0.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06131d;
    --bg-soft: #0b1d2a;
    --text: #e4eef5;
    --muted: #93abbd;
    --line: #1a3346;
    --accent: #36d9e6;
    --card: #0d2131;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--cyan); color: #04172e; }
.btn.primary:hover { background: #6fe6ef; }
.btn.light { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, 0.2); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.outline { color: var(--text); border-color: var(--line); }
.btn.outline:hover { background: var(--bg-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--navy-deep) 92%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
.top-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo img { width: 151px; height: auto; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: #c7dcea; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 50px; width: 240px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.menu nav a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--bg-soft); }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu { display: block; }
  .top-actions .btn.ghost { display: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; background: radial-gradient(120% 120% at 85% -10%, #10609a 0%, var(--navy) 38%, var(--navy-deep) 82%); color: #e6f3fb; padding: 72px 0 84px; overflow: hidden; }
/* Light coming down through the water, and a few bubbles */
.hero::before { content: ''; position: absolute; inset: -30% -10% 20%; z-index: -1; pointer-events: none; background: repeating-linear-gradient(104deg, transparent 0 70px, rgba(150, 225, 255, 0.05) 70px 118px, transparent 118px 200px); -webkit-mask-image: radial-gradient(70% 80% at 72% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 72% 0%, #000, transparent 75%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(circle at 2.5% 80%, transparent 0 5px, rgba(255, 255, 255, 0.2) 5px 6.5px, transparent 7px),
  radial-gradient(circle at 3.5% 68%, transparent 0 3px, rgba(255, 255, 255, 0.16) 3px 4.5px, transparent 5px),
  radial-gradient(circle at 2.2% 58%, transparent 0 2px, rgba(255, 255, 255, 0.14) 2px 3.2px, transparent 3.6px),
  radial-gradient(circle at 94% 30%, transparent 0 4px, rgba(255, 255, 255, 0.16) 4px 5.5px, transparent 6px),
  radial-gradient(circle at 96% 20%, transparent 0 2px, rgba(255, 255, 255, 0.14) 2px 3.2px, transparent 3.6px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); color: #bcd7e7; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .note { font-size: 14px; color: #8fb6cc; max-width: 520px; }
.hero.small { padding: 56px 0 60px; }
.hero.small h1 { font-size: clamp(32px, 4.6vw, 50px); }
.hero .crumbs a, .hero .crumbs li { color: #9cc3d9; }
.hero-home { padding-bottom: 0; }
.hero-home .hero-grid { align-items: end; }
.hero-home .hero-copy { align-self: center; padding-bottom: 84px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 48px 0 56px; }
  .hero-home { padding-bottom: 0; }
  .hero-home .hero-copy { padding-bottom: 0; }
  .hero::after { display: none; }
}

.device { margin: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.device .head { display: flex; justify-content: space-between; font-size: 13px; color: #9cc3d9; font-weight: 600; }
.device .title { color: #fff; font-size: 20px; font-weight: 700; margin: 4px 0 12px; }
.device .figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.device .figs div { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 10px 12px; }
.device .figs b { display: block; color: #fff; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.device .figs span { font-size: 11px; color: #8fb7cc; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
@media (max-width: 480px) { .device { padding: 16px; } .device .figs { gap: 8px; } .device .figs div { padding: 8px 9px; } .device .figs b { font-size: 15px; } .device .figs span { font-size: 10px; } }

/* Sections */
.band { padding: 80px 0; }
.band.soft { background: var(--bg-soft); }
.band .intro { max-width: 680px; margin-bottom: 36px; }
.band .intro p { color: var(--muted); font-size: 18px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
a.card { text-decoration: none; color: inherit; transition: transform 0.12s; }
a.card:hover { transform: translateY(-2px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split p, .split li { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 10px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .band { padding: 56px 0; } }

.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 3vw, 30px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { text-decoration: none; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { color: var(--muted); margin-top: 10px; }
.faq .answer p:last-child { margin: 0; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #e6f3fb; border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #a9cbe0; margin: 0; }

/* The SAC calculator */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin: 1.4em 0; }
.calc .fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc input, .calc select { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 12px; font: 17px var(--font); }
.calc .units { display: flex; gap: 8px; margin-bottom: 16px; }
.calc .units button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; height: 36px; padding: 0 14px; font: 600 14px var(--font); cursor: pointer; }
.calc .units button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc .result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.calc .result div { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; }
.calc .result b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--text); }
.calc .result span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .calc .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer */
.foot { background: var(--navy-deep); color: #a9c4d6; padding: 56px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #a9c4d6; text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; }
.foot p { font-size: 15px; margin-top: 14px; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 36px; padding-top: 18px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.error-page { padding: 100px 0; text-align: center; }

/* Pictures (site/art.mjs) ------------------------------------------------------------------------------------------ */

/* A phone around a screenshot. Sized from its own width, so it looks the same large or small. */
.phone { margin: 0; width: 100%; max-width: 280px; container-type: inline-size; }
.phone-body { padding: 3.4cqw; border-radius: 15cqw; background: linear-gradient(150deg, #56616b, #1a2128 26%, #0b0f13 70%, #3d4750); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px #10161b, 0 34px 70px rgba(0, 0, 0, 0.42); }
.phone-screen { position: relative; overflow: hidden; border-radius: 11.6cqw; background: #06131d; }
.phone-screen::before { content: ''; position: absolute; top: 2.8cqw; left: 50%; width: 29cqw; height: 8.4cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone-screen::after { content: ''; position: absolute; bottom: 1.6cqw; left: 50%; width: 34cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 99px; background: rgba(255, 255, 255, 0.82); }
.phone-bar { height: 13cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 8cqw 0 10cqw; color: #fff; font-size: 4.3cqw; font-weight: 600; }
.phone-bar i { width: 6.6cqw; height: 3.1cqw; border-radius: 1cqw; background: linear-gradient(90deg, #fff 72%, rgba(255, 255, 255, 0.35) 72%); }
/* A little wider than the screen: the browser's scroll bar in the screenshots falls outside it */
.phone img { width: 102.5%; max-width: none; height: auto; }

/* The home page's heading: the app on a phone, rising out of the bottom, with a watch beside it */
.showcase { position: relative; display: flex; justify-content: center; height: 560px; overflow: hidden; padding: 6px 30px 0; }
.showcase .phone { width: 280px; flex: none; }
.showcase-watch { position: absolute; left: max(0px, calc(50% - 250px)); bottom: 70px; width: 150px; transform: rotate(-9deg); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5)); }
.showcase-watch svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .showcase { height: 440px; margin-top: 8px; }
  .showcase .phone { width: 236px; }
  .showcase-watch { left: max(0px, calc(50% - 190px)); width: 118px; bottom: 26px; }
}

/* A dark band, for pictures of the app */
.band.deep { background: linear-gradient(180deg, var(--navy-deep), #072b4b); color: #e6f3fb; }
.band.deep h2, .band.deep h3 { color: #fff; }
.band.deep .intro p { color: #a9cbe0; }
.band.deep .kicker { color: var(--cyan); }

/* A row of phones with a caption under each */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.screen { text-align: center; }
.screen .phone { margin: 0 auto 18px; max-width: 236px; }
.screen h3 { margin-bottom: 4px; }
.screen p { color: var(--muted); font-size: 15px; margin: 0; }
.band.deep .screen p { color: #9cc3d9; }
.screens-note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } .screen p { font-size: 14px; } }

/* A dark, watery panel for a drawing, the same in light and dark mode */
.stage { position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 28px; border-radius: 28px; color: #e6f3fb; background: radial-gradient(120% 100% at 80% 0%, #12588c 0%, var(--navy) 45%, var(--navy-deep) 100%); box-shadow: var(--shadow); }
.stage::before { content: ''; position: absolute; inset: -40% -20% 30%; z-index: -1; background: repeating-linear-gradient(104deg, transparent 0 50px, rgba(150, 225, 255, 0.06) 50px 84px, transparent 84px 140px); -webkit-mask-image: radial-gradient(70% 80% at 70% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 0%, #000, transparent 75%); }
.stage .gear { width: 100%; height: auto; }
.stage .tag { display: inline-block; background: rgba(54, 217, 230, 0.16); color: #8beef5; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
@media (max-width: 560px) { .stage { padding: 16px; border-radius: 22px; } .stage .device { padding: 14px; } }
.stage.compact { padding: 20px; margin-bottom: 20px; border-radius: 18px; box-shadow: none; }
.prose .stage { margin: 1.6em 0; }
.hero .stage { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }

/* The Watch, and the notification its dive brings */
.watch-stage { display: flex; flex-direction: column; align-items: center; text-align: left; }
.watch-stage .tag { align-self: flex-start; }
.watch-stage .watch { width: 170px; height: auto; margin: 10px auto 0; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45)); }
.notice { position: relative; margin-top: -54px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; max-width: 370px; padding: 14px 16px; border-radius: 22px; background: rgba(242, 248, 252, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #0a1c29; font-size: 14px; line-height: 1.35; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.notice img { border-radius: 8px; }
.notice b { display: block; font-size: 15px; margin-bottom: 2px; }
.notice span { color: #3c5163; }
.notice small { color: #6c8192; font-size: 12px; }

/* Files from other apps going into Diveology */
.import-art { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: 12px; align-items: center; }
.import-art .files { display: flex; flex-direction: column; gap: 8px; }
.import-art .files span { position: relative; padding: 9px 10px 9px 32px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.import-art .files span::before { content: ''; position: absolute; left: 11px; top: 50%; width: 13px; height: 16px; transform: translateY(-50%); border-radius: 2px; background: linear-gradient(#5fe6ef, #0a9fbf); clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%); }
.import-art .flow { display: flex; align-items: center; gap: 6px; }
.import-art .flow i { width: 16px; height: 2px; background: linear-gradient(90deg, rgba(54, 217, 230, 0), #36d9e6); }
.import-art .flow img { border-radius: 12px; box-shadow: 0 0 0 6px rgba(54, 217, 230, 0.15); }
.import-art .found { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: rgba(242, 248, 252, 0.95); color: #3c5163; font-size: 13px; }
.import-art .found b { color: #0a7d4f; font-size: 14px; margin-bottom: 2px; }
.import-art .found b::before { content: '✓ '; }
.import-art .found strong { color: #0a1c29; font-variant-numeric: tabular-nums; }
.card .import-art .found span, .split .import-art .found span { color: #3c5163; }
@media (max-width: 560px) {
  .import-art { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .import-art .files { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .import-art .flow { flex-direction: column; }
  .import-art .flow i { width: 2px; height: 12px; background: linear-gradient(rgba(54, 217, 230, 0), #36d9e6); }
  .import-art .found { width: 100%; max-width: 300px; }
}

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.steps li::after { content: counter(step); position: absolute; top: 22px; right: 24px; font-size: 32px; font-weight: 700; color: var(--line); }
.steps .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
