:root {
  --navy: #0b192c;
  --navy-2: #12263c;
  --ink: #071018;
  --orange: #ef7922;
  --hot: #ff6b00;
  --text: #f4f7fa;
  --muted: #9aafc4;
  --line: rgba(244, 247, 250, 0.14);
  --header: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

section, .step, h1, h2 { scroll-margin-top: 84px; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--navy);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--orange); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 10px 28px;
  background: rgba(11, 25, 44, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #000;
}

.word {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.word span { color: var(--hot); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--orange); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  background: #071018 center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 25, 44, 0.15) 0%, rgba(11, 25, 44, 0.2) 40%, rgba(11, 25, 44, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 48px 28px 64px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
}

h1 { font-size: clamp(64px, 10vw, 112px); }

h2 { font-size: clamp(40px, 6vw, 68px); }

.lede {
  max-width: 38rem;
  margin: 16px 0 0;
  font-size: 22px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--hot);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

section { padding: 88px 28px; }

.wrap { max-width: 1080px; width: 100%; margin: 0 auto; min-width: 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.mission { background: var(--ink); }

.story { background: linear-gradient(180deg, var(--navy) 0%, #0e2238 100%); }

p { margin: 0 0 16px; }

.muted { color: var(--muted); }

.work { background: var(--navy-2); }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.card {
  padding: 18px 18px 8px;
  border-radius: 12px;
  background: rgba(11, 25, 44, 0.72);
  border: 1px solid var(--line);
}

.card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--orange);
}

.plan { background: var(--ink); }

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.tier {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 60, 0.65);
}

.tier.pro { border-color: var(--orange); }

.tier.landing { grid-column: 1 / -1; }

.tier h3 { font-size: 36px; margin-bottom: 8px; }

.price {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 800;
}

.tier ul { margin: 0; padding-left: 18px; }

.tier li { margin: 8px 0; }

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--orange); }

.legal h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 32px 0 10px;
}

.legal h3 {
  font-size: 26px;
  margin: 22px 0 8px;
}

.legal p,
.legal li { max-width: 42rem; overflow-wrap: break-word; }

.legal ul { margin: 0 0 16px; padding-left: 20px; }

.legal li { margin: 6px 0; }

.stamp {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.page-intro { padding-top: 48px; padding-bottom: 12px; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.toc a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.step ol { margin: 0; padding-left: 20px; }

.step li { margin: 8px 0; }

.phone {
  width: 280px;
  height: auto;
  margin-inline: auto;
  border-radius: 28px;
  border: 3px solid #24384f;
  background: var(--navy);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.screen { display: flex; flex-direction: column; min-height: 0; }
.phone.chart-phone { height: 560px; }
.phone.chart-phone .screen { flex: 1; }

.status {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.chart {
  position: relative;
  flex: 1;
  margin: 8px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(55, 120, 170, 0.35), transparent 42%),
    linear-gradient(160deg, #14365a 0%, #0c2742 45%, #08182b 100%);
}

.land {
  position: absolute;
  right: -10px;
  top: -20px;
  width: 46%;
  height: 38%;
  background: #c4b59a;
  border-bottom-left-radius: 80px;
  opacity: 0.9;
}

.rings {
  position: absolute;
  left: 42%;
  top: 58%;
  width: 90px;
  height: 90px;
  border: 1px dashed rgba(244, 247, 250, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.rings.outer { width: 150px; height: 150px; }

.boat {
  position: absolute;
  left: 42%;
  top: 58%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 16px solid var(--hot);
  transform: translate(-50%, -50%) rotate(20deg);
}

.kelp-dot {
  position: absolute;
  left: 62%;
  top: 42%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0ff0e;
  box-shadow: 0 0 0 6px rgba(208, 255, 14, 0.2);
}

.drift {
  position: absolute;
  left: 48%;
  top: 46%;
  width: 54px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 20px;
  transform: rotate(-28deg);
}

.coord {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(11, 25, 44, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.scrub {
  margin: 0 8px 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(7, 16, 24, 0.9);
}

.scrub-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.tide {
  height: 28px;
  margin-top: 4px;
  background: radial-gradient(ellipse at 30% 80%, transparent 40%, var(--orange) 41%, var(--orange) 43%, transparent 44%),
    radial-gradient(ellipse at 70% 20%, transparent 40%, #37b5aa 41%, #37b5aa 43%, transparent 44%);
}

.dock {
  display: flex;
  gap: 6px;
  padding: 0 8px 10px;
}

.dock span {
  flex: 1;
  min-height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--hot);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.sheet {
  margin: 8px;
  padding: 10px 10px 14px;
  border-radius: 12px;
  background: #0b192c;
  border: 1px solid rgba(239, 121, 34, 0.45);
}

.sheet h4 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.08em;
  color: var(--hot);
  font-size: 18px;
}

.sheet p { font-size: 12px; margin: 0 0 8px; color: var(--muted); }

.big {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.row { display: flex; gap: 6px; margin-top: 8px; }

.row i {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
  border: 2px solid var(--hot);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--hot);
}

.row i.fill { background: var(--hot); color: var(--navy); }

.vhf-line {
  margin: 10px 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(244, 247, 250, 0.04);
}

.vhf-line b { display: block; font-size: 12px; color: var(--orange); letter-spacing: 0.08em; }

.vhf-line span { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; }

.pin-row {
  margin: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(244, 247, 250, 0.05);
}

.badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--hot);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.pin-row strong { display: block; }

.pin-row small { color: var(--muted); font-size: 11px; }

.math-page h1 {
  max-width: 100%;
  font-size: clamp(44px, 12vw, 96px);
  overflow-wrap: break-word;
}

.math-page h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 10px;
  overflow-wrap: break-word;
}

.calc {
  padding-top: 36px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag.paper {
  color: var(--orange);
  border-color: rgba(239, 121, 34, 0.55);
}

.formula {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(7, 16, 24, 0.72);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: auto;
}

.formula span {
  display: block;
}

.formula small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.example {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  color: var(--text);
}

.source {
  color: var(--muted);
  font-size: 16px;
}

.diagram {
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e2238;
  overflow: hidden;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

#grid-fig {
  touch-action: none;
  cursor: crosshair;
}

.diagram figcaption {
  margin: 0;
  padding: 4px 14px 14px;
  color: var(--muted);
  font-size: 15px;
}

.diagram-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 4px 14px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.diagram-controls input[type="range"] {
  flex: 1 1 160px;
  min-height: 44px;
  accent-color: var(--hot);
}

.diagram-controls output {
  color: var(--orange);
  font-weight: 800;
}

.hull-line {
  stroke-dasharray: 260;
  animation: hull 5s ease-in-out infinite;
}

@keyframes hull {
  0%, 28% { stroke-dashoffset: 260; opacity: 0; }
  72%, 100% { stroke-dashoffset: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hull-line { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

.lesson-list {
  display: grid;
  gap: 12px;
}

.lesson-link {
  display: block;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-2);
  color: var(--text);
  text-decoration: none;
}

.lesson-link strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.note-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-2);
  scroll-margin-top: 84px;
}

.note-card h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.byline {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.status-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 60, 0.55);
}

.status-card strong {
  display: block;
  margin-top: 4px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.year-block { margin-top: 28px; }

.year-label {
  margin: 0 0 10px;
  font-size: 42px;
}

.quarters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.quarter {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 60, 0.55);
}

.quarter.now { border-color: var(--orange); }

.quarter header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.q-name {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 28px;
  color: var(--orange);
}

.quarter header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quarter-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.road-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(11, 25, 44, 0.72);
}

.road-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.05;
}

.road-card p:last-child {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.status-pip {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-pip.shipped { color: #d0ff0e; }
.status-pip.building { color: var(--orange); }
.status-pip.planned { color: var(--text); }

.idea-tools {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.idea-search {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.idea-search input,
.suggest-form input,
.suggest-form textarea,
.suggest-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.72);
  color: var(--text);
  font: 600 16px/1.4 "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.suggest-form textarea { min-height: 120px; resize: vertical; }

.suggest-form {
  display: grid;
  gap: 12px;
  max-width: 40rem;
  margin-top: 18px;
}

.suggest-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.suggest-form button { justify-self: start; }

.form-error { margin: 0; color: var(--orange); font-size: 15px; }

.toc-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.toc-btn.on {
  border-color: var(--orange);
  color: var(--orange);
}

.idea {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 25, 44, 0.45);
}

.idea h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.05;
}

.idea p:last-child { margin: 0; }

.vote {
  min-width: 64px;
  min-height: 64px;
  border-radius: 10px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.vote b {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.vote span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vote.on {
  background: var(--orange);
  color: var(--navy);
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

button.button,
button.toc-btn {
  cursor: pointer;
  font-family: inherit;
}

button.button { border: 0; }

.account-forms {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.stat-card {
  min-height: 96px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 25, 44, 0.45);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.report-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.mix {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mix li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.month-bars { display: grid; gap: 10px; }

.month-bar {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 10px;
  align-items: center;
}

.month-bar i {
  display: block;
  height: 14px;
  width: 0;
  border-radius: 7px;
  background: var(--orange);
}

.bound-row {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

pre.formula {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .split, .cards, .tiers, .step, .status-row, .quarters, .stat-grid, .report-split { grid-template-columns: 1fr 1fr; }
  .site-header { flex-wrap: wrap; padding-inline: 16px; }
  .nav { width: 100%; flex-basis: 100%; }
  section { padding-inline: 16px; }
  .hero-copy { padding-inline: 16px; }
  .math-page h2 { font-size: 30px; }
  .formula { font-size: 16px; overflow-wrap: anywhere; }
}
