:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #08090d;
  color: #f4f4f8;
  --sea: #00d4ff;
  --sea-soft: rgba(0, 212, 255, 0.09);
  --gold: #f3c969;
  --hot: #e12d39;
  --ink: #f4f4f8;
  --muted: #b4b4c4;
  --dim: #858597;
  --line: #242633;
  --deck: #111218;
  --deck-raised: #171922;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 212, 255, 0.07), transparent 24rem),
    linear-gradient(180deg, #0b0c12 0, #08090d 38rem);
  color: var(--muted);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
}

.site-nav {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
}

.nav-inner,
.footer-inner {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sea);
  font: 700 22px/1 "Space Grotesk", sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover { color: var(--ink); }

.open-app,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sea);
  color: #071015;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--sea);
  box-shadow: 4px 4px 0 rgba(0, 212, 255, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.open-app { padding: 10px 18px; font-size: 14px; }
.cta { padding: 14px 22px; }
.open-app:hover,
.cta:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(0, 212, 255, 0.2); }

main {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 34px;
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sea); }

.hero {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sea);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(17, 18, 24, 0.76) 55%);
  padding: clamp(28px, 6vw, 52px);
  margin-bottom: 34px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 168px;
  right: -24px;
  bottom: -34px;
  background: url('/nautical-waves.svg') center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.eyebrow {
  color: var(--sea);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 13px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 60px);
  margin: 0;
  letter-spacing: -1.8px;
}

h2 {
  font-size: clamp(27px, 4vw, 34px);
  margin: 58px 0 17px;
  letter-spacing: -0.6px;
  scroll-margin-top: 96px;
}

h3 {
  font-size: 20px;
  margin: 30px 0 10px;
}

p,
li {
  font-size: 17px;
  line-height: 1.78;
}

p { margin: 0 0 20px; }
ul,
ol { margin: 0 0 24px; padding-left: 24px; }
li { margin-bottom: 10px; }
strong { color: var(--ink); }

article a:not(.cta):not(.related-card) {
  color: #70e8ff;
  text-underline-offset: 3px;
}

.lede {
  color: #d4d4de;
  font-size: 20px;
  line-height: 1.65;
}

.answer,
.note,
.warning,
.deck-log {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--deck);
}

.answer { border-left: 3px solid var(--gold); }
.note { border-left: 3px solid var(--sea); }
.warning { border-left: 3px solid var(--hot); }
.deck-log { border-style: dashed; border-color: rgba(243, 201, 105, 0.42); }

.answer-label,
.box-label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.note .box-label { color: var(--sea); }
.warning .box-label { color: #ff6973; }
.answer p:last-child,
.note p:last-child,
.warning p:last-child,
.deck-log p:last-child { margin-bottom: 0; }

.toc {
  margin: 34px 0 44px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 24, 0.7);
  padding: 24px;
}

.toc-title {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; font-size: 14px; margin: 0 0 8px; }
.toc a { text-decoration: none; }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: plank-step;
}

.steps > li {
  counter-increment: plank-step;
  position: relative;
  margin: 0 0 16px;
  padding: 22px 22px 22px 70px;
  border: 1px solid var(--line);
  background: var(--deck);
}

.steps > li::before {
  content: counter(plank-step);
  position: absolute;
  top: 22px;
  left: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--sea);
  color: #071015;
  font: 800 14px/1 "Space Grotesk", sans-serif;
}

.steps strong { display: block; margin-bottom: 4px; }

.comparison-wrap { overflow-x: auto; margin: 28px 0; }

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--deck);
  font-size: 14px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

th { color: var(--ink); background: var(--deck-raised); font-family: "Space Grotesk", sans-serif; }

.product-preview {
  margin: 34px 0;
  border: 1px solid #303342;
  background: #0d0e14;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 700 13px/1 "Space Grotesk", sans-serif;
}

.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 18px 0;
}

.preview-tab {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--dim);
  font-size: 12px;
}

.preview-tab.active { border-color: rgba(225, 45, 57, 0.45); color: #ff6973; background: rgba(225, 45, 57, 0.08); }

.preview-list { padding: 12px 18px 18px; }

.preview-row {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #1d1f2a;
  font-size: 13px;
}

.preview-row:last-child { border-bottom: 0; }
.preview-check { width: 18px; height: 18px; border: 2px solid var(--hot); border-radius: 50%; }
.preview-account,
.preview-name,
.preview-handle,
.preview-meta { display: block; }
.preview-account { min-width: 0; }
.preview-name { color: var(--ink); font-weight: 700; }
.preview-handle { color: var(--muted); font-size: 11px; margin-top: 1px; }
.preview-meta { color: var(--dim); font-size: 11px; margin-top: 3px; }
.preview-pardon { color: var(--gold); }
.preview-plank { color: #ff6973; font-weight: 700; }

figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--ink); cursor: pointer; font: 700 17px/1.45 "Space Grotesk", sans-serif; }
.faq details p { margin: 12px 0 0; }

.callout {
  margin-top: 64px;
  padding: clamp(26px, 5vw, 38px);
  border: 1px solid rgba(0, 212, 255, 0.32);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(17, 18, 24, 0.9));
}

.callout h2 { margin: 0 0 12px; }
.callout p { margin-bottom: 24px; }

.related { margin-top: 66px; }
.related h2 { margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  min-height: 126px;
  border: 1px solid var(--line);
  background: var(--deck);
  padding: 20px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.related-card:hover { border-color: rgba(0, 212, 255, 0.55); transform: translateY(-2px); }
.related-card span { display: block; color: var(--sea); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 8px; }
.related-card strong { font: 700 17px/1.35 "Space Grotesk", sans-serif; }

.reviewed {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--line);
  background: #0d0e14;
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: var(--dim);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: flex-end; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--sea); }

@media (max-width: 720px) {
  .nav-inner,
  .footer-inner,
  main { width: min(100% - 32px, 860px); }
  main { padding: 42px 0 72px; }
  .nav-links .nav-link { display: none; }
  .toc ol { columns: 1; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .preview-row { grid-template-columns: 24px minmax(130px, 1fr) auto; }
  .preview-row .preview-pardon { display: none; }
  .hero::after {
    width: 320px;
    height: 118px;
    right: -70px;
    bottom: -22px;
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
