/* Moorhaven redesign - "harbour chart" system
   Brand: navy #15274D, blue #3D54A4, sky #B2C0E3 (from the live logo) */

/* ---------- Self-hosted fonts (latin subset, variable weights) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/Inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/Fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/Fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/JetBrainsMono-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #15274D;
  --navy-deep: #0D1A36;
  --blue: #3D54A4;
  --blue-bright: #768CE0;
  --sky: #B2C0E3;
  --sky-soft: #E4EAF7;
  --paper: #FFFFFF;
  --paper-2: #FFFFFF;
  --field: #F6F8FC; /* soft fill for form fields and hovers on a white page */
  --white: #FFFFFF;
  --ink: #15274D;
  --ink-2: #4A5677;
  --ink-3: #5E6884; /* 5.3:1 on white, 4.9:1 on the pale field fill - passes AA for small text */
  --rule: rgba(21, 39, 77, 0.14);
  --rule-strong: rgba(21, 39, 77, 0.28);
  --brass: #7A5726;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(13, 26, 54, 0.06), 0 8px 24px rgba(13, 26, 54, 0.06);
  --shadow-lg: 0 1px 2px rgba(13, 26, 54, 0.07), 0 16px 36px -12px rgba(13, 26, 54, 0.24);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Browser surfaces carry the palette too */
html { scrollbar-color: var(--sky) transparent; accent-color: var(--blue); }
::selection { background: var(--sky); color: var(--navy); }
.security ::selection, .tier--featured ::selection, .footer ::selection, .code-window ::selection { background: var(--blue-bright); color: var(--white); }
input, select, textarea { caret-color: var(--blue); }
.price b, .manifest-price, .page-updated { font-variant-numeric: lining-nums tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--sky-soft);
  color: var(--navy);
  padding: 0.12em 0.42em;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Grid children must be allowed to shrink, or wide code/tables push the page sideways */
.hero .wrap > *, .manifest > *, .manifest-cell, .waitlist-card > *, .tiers > *, .audience-grid > * { min-width: 0; }
body { overflow-x: hidden; }

/* ---------- Logo ---------- */
.mh-logo { display: block; height: 30px; width: auto; }
.mh-logo { --logo-a: var(--navy); --logo-b: var(--blue); --logo-c: var(--sky); }
.mh-logo-navy { fill: var(--logo-a); }
.mh-logo-blue { fill: var(--logo-b); }
.mh-logo-sky  { fill: var(--logo-c); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(21, 39, 77, 0.22); }
.btn--primary:hover { background: var(--blue); color: var(--white); }
.btn--outline { border-color: var(--rule-strong); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--ghost { color: var(--navy); background: transparent; }
.btn--ghost:hover { background: rgba(21, 39, 77, 0.06); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--tonal { background: var(--sky-soft); color: var(--navy); }
.btn--tonal:hover { background: var(--sky); color: var(--navy); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Banner + header ---------- */
.banner {
  background: var(--navy); color: var(--sky);
  font-size: 13.5px; text-align: center; padding: 9px var(--gutter);
  letter-spacing: 0.01em;
}
.banner a { color: var(--white); font-weight: 600; margin-left: 4px; }
.banner a:hover { color: var(--sky); }
.banner .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7FD6A8; margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(127, 214, 168, 0.18); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.header .brand { flex: none; }
.nav { display: flex; gap: 4px; margin-right: auto; }

/* Mobile menu (shown below 920px) */
.menu-toggle {
  display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--white); cursor: pointer; place-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--navy); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--rule); background: var(--white); box-shadow: 0 18px 30px -18px rgba(13, 26, 54, 0.3); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a {
  padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-family: var(--font-display); font-size: 22px; color: var(--navy);
}
.mobile-menu a:last-child { border-bottom: 0; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--blue); }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--navy); background: rgba(21, 39, 77, 0.06); }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Shared section bits ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 14px 0 16px; color: var(--navy);
}
.section-sub { font-size: 18.5px; color: var(--ink-2); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 112px); }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--blue); opacity: 0.16; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 450; font-optical-sizing: auto;
  font-size: clamp(44px, 6.4vw, 82px); line-height: 1.0; letter-spacing: -0.03em;
  margin: 0 0 26px; color: var(--navy); text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--blue); font-weight: 400; }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 560px; margin: 0 0 34px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero visual: the seascape video "window" on top, the code card set just below it -
   never overlapping, both the same width so the pair reads as one composed stack */
.hero-visual { position: relative; }
.hero-scene {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9; border-radius: 28px; /* full frame - no side crop, so the boat keeps its place */
  background: #A9B4E0 url("assets/video/hero-sea-poster.webp") center / cover no-repeat;
  box-shadow: 0 2px 6px rgba(13, 26, 54, 0.08), 0 40px 80px -24px rgba(21, 39, 77, 0.35);
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* Hairline ring gives the frame a crisp edge */
.hero-scene::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.hero-code { position: relative; z-index: 2; margin: 20px 0 0; }
.hero-code .code-window pre { font-size: 12.5px; padding: 20px 22px 24px; }

/* Code window */
.code-window {
  background: var(--navy-deep); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(178, 192, 227, 0.14);
}
.code-bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid rgba(178, 192, 227, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(178, 192, 227, 0.22); }
.code-window pre {
  margin: 0; padding: 24px 24px 28px; overflow-x: auto;
  font: 400 13.5px/1.75 var(--font-mono); color: #DCE3F5;
}
.code-window .line { display: block; min-height: 1.75em; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 2ch; text-indent: -2ch; }
.code-window .c { color: var(--blue-bright); }
.code-window .k { color: #9FE0BE; }
.code-window .s { color: #F2CE9B; }

/* ---------- Feature strip ---------- */
.features { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.features .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 44px 30px 48px; border-left: 1px solid var(--rule); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 0 0 12px; color: var(--navy); letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card {
  position: relative; overflow: hidden;
  padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start;
}
.audience-card--dark { background: var(--navy); color: var(--sky); border-color: var(--navy); }
.audience-card .audience { font: 600 12.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.audience-card--dark .audience { color: var(--sky); }
.audience-card .tagline { font-family: var(--font-display); font-weight: 450; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; margin: 16px 0; color: var(--navy); }
.audience-card--dark .tagline { color: var(--white); }
.audience-card p { margin: 0 0 30px; color: var(--ink-2); max-width: 460px; position: relative; }
.audience-card--dark p { color: rgba(228, 234, 247, 0.82); }
.audience-card .btn { margin-top: auto; position: relative; }
/* Line-drawn vessels: a nimble skiff for developers, a galleon for teams */
.audience-card svg.deco { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); width: 150px; height: 125px; opacity: 0.32; color: var(--blue); pointer-events: none; }
.audience-card--dark svg.deco { width: 170px; height: 130px; color: var(--sky); opacity: 0.4; }

/* ---------- Models ---------- */
.models { background: var(--paper-2); border-top: 1px solid var(--rule); }
.models-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px);
  align-items: end; margin-bottom: 48px;
}
.models-head .section-title { margin-bottom: 0; }
.models-head .section-sub { max-width: 480px; padding-bottom: 8px; }

/* The fleet: a "manifest" card - navy model panel + three equal spec columns */
.manifest {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  background: var(--white); border: 1px solid var(--rule); border-radius: 28px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.manifest dl, .manifest dd { margin: 0; }
.manifest-label {
  font: 600 12px/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.manifest-model {
  position: relative; overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(32px, 4vw, 48px);
  background:
    repeating-radial-gradient(circle at 92% 8%, transparent 0 46px, rgba(178, 192, 227, 0.12) 46px 47px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.manifest-skiff { width: 96px; height: 80px; color: var(--sky); }
.manifest-model .manifest-label { color: var(--sky); }
.manifest-name {
  margin-top: 12px; font: 600 clamp(22px, 2.3vw, 30px)/1.2 var(--font-mono);
  letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.manifest-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manifest-cell {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.6vw, 36px);
  border-left: 1px solid var(--rule);
  transition: background-color .25s ease;
}
.manifest-cell:first-child { border-left: 0; }
.manifest-cell:hover { background: var(--field); }
.manifest-runs { font-family: var(--font-display); font-weight: 450; font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: var(--navy); }
.manifest-price {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5vw, 68px);
  line-height: 1; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.manifest-cell:last-child .manifest-price { color: var(--blue); }

/* ---------- Security (dark) ---------- */
.security { background: var(--navy); color: var(--sky); overflow: hidden; }
.security .section-title { color: var(--white); }
.security .section-sub { color: rgba(228, 234, 247, 0.8); }
.security .section-sub a { color: var(--white); }
.security .section-sub a:hover { color: var(--sky); }
.security-chart { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sky); opacity: 0.07; pointer-events: none; }
.security .wrap { position: relative; }
/* A statement and a ledger, not three icon cards */
.security-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.security .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.security .section-title { font-size: clamp(40px, 5.2vw, 64px); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(178, 192, 227, 0.22); }
.ledger li {
  display: grid; gap: 10px; max-width: 560px;
  padding: 30px 0 32px; border-bottom: 1px solid rgba(178, 192, 227, 0.22);
}
.ledger h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2vw, 25px); line-height: 1.2; color: var(--white); text-wrap: balance; }
.ledger p { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(228, 234, 247, 0.84); }

/* ---------- Pricing ---------- */
/* Equal boxes: equal columns, and the grid stretches every box in a row to the same height.
   Each list follows its own price (no empty bands); buttons pin to the bottom so they still line up. */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.tier-top { display: flex; flex-direction: column; }
.tier--featured { background: var(--navy); border-color: var(--navy); color: var(--sky); box-shadow: var(--shadow-lg); }
.tier-head { display: flex; align-items: center; justify-content: space-between; font: 600 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.tier--featured .tier-head { color: var(--sky); }
.tier-icon { width: 30px; height: 30px; color: var(--blue); opacity: 0.85; }
.tier--featured .tier-icon { color: var(--sky); }
.price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
/* API lists two rates; set them smaller and tighter so its top matches the other plans */
.tier--api .price { margin-top: 18px; }
.tier--api .price + .price { margin-top: 4px; }
.tier--api .price b { font-size: 30px; }
.price + .price { margin-top: 6px; }
.price b { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.tier--featured .price { color: rgba(228, 234, 247, 0.78); }
.tier--featured .price b { color: var(--white); }
.tier-desc { margin: 14px 0 0; font-size: 15.5px; color: var(--ink-2); }
.tier--featured .tier-desc { color: rgba(228, 234, 247, 0.86); }
.checks { list-style: none; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; }
.tier--featured .checks { border-top-color: rgba(178, 192, 227, 0.2); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tier--featured .checks li { color: rgba(228, 234, 247, 0.9); }
.checks svg { width: 18px; height: 18px; fill: var(--blue); margin-top: 2px; }
.tier--featured .checks svg { fill: #9FE0BE; }
.tier--featured code { background: rgba(178, 192, 227, 0.16); color: var(--white); }
.tier .btn { margin-top: auto; width: 100%; }
.checks--empty { display: none; }
.tier--harbor .tier-desc { margin-bottom: 28px; }
.fine { margin: 36px 0 0; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------- Waitlist ---------- */
.waitlist { background: var(--paper-2); border-top: 1px solid var(--rule); }
.waitlist-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px;
  background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.waitlist .section-head { margin-bottom: 0; }
.form { display: grid; gap: 20px; position: relative; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px;
  font: 400 16px/1 var(--font-body); color: var(--navy);
  background: var(--field); border: 1px solid var(--rule-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2315274D'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 22px; padding-right: 44px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(61, 84, 164, 0.14); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; height: 52px; }
.form-note { margin: 0; font-size: 14px; color: var(--ink-3); text-align: center; }

/* Form states: sending, error (input kept), done */
.form .btn[aria-busy="true"] { cursor: progress; opacity: 0.75; transform: none; }
.form .btn[aria-busy="true"] .arrow { animation: drift-arrow 0.9s ease-in-out infinite alternate; }
@keyframes drift-arrow { to { transform: translateX(4px); } }
.field input[aria-invalid="true"] { border-color: #B4413C; box-shadow: 0 0 0 4px rgba(180, 65, 60, 0.12); }
.form-error {
  margin: -6px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #FCEFEE; color: #8E2F2B; font-size: 14.5px; line-height: 1.5;
}
.form-error a { color: inherit; font-weight: 600; }
.form-done { display: grid; justify-items: start; gap: 10px; padding: 8px 0; outline: none; }
.form-done[hidden] { display: none; }
.form-done-mark { width: 96px; height: 80px; color: var(--blue); margin-bottom: 6px; }
.form-done h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; color: var(--navy); }
.form-done p { margin: 0; font-size: 17px; color: var(--ink-2); overflow-wrap: anywhere; }
.form-done strong { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(228, 234, 247, 0.72); padding: 64px 0 40px; font-size: 14.5px; }
.footer .mh-logo { height: 28px; }
.footer .mh-logo { --logo-a: var(--white); --logo-b: var(--blue-bright); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(178, 192, 227, 0.14); }
.footer-brand small { display: block; margin-top: 14px; font-size: 14.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.footer-nav a { color: rgba(228, 234, 247, 0.86); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { padding-top: 28px; }
.footer-bottom small { font-size: 13.5px; }
.footer-bottom a { color: var(--sky); }
.footer-bottom a:hover { color: var(--white); }

/* =====================================================================
   Inner pages (Models, Terms, Privacy) - same system as the homepage
   ===================================================================== */

/* Page hero band */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-chart { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--blue); opacity: 0.14; pointer-events: none; }
.page-hero-inner { position: relative; }
.page-hero-inner > * { max-width: 860px; } /* cap line length without re-centring the block */
.page-title {
  font-family: var(--font-display); font-weight: 450; font-optical-sizing: auto;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 22px; color: var(--navy); text-wrap: balance;
}
.page-updated {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0;
  padding: 7px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--navy); font-size: 14px;
}
.page-updated strong { font-weight: 600; }
.page-lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 680px; margin: 26px 0 0; }

/* Models page: fleet cards */
.fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.fleet-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
}
.fleet-card-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  min-height: 200px; padding: 36px 36px 32px;
  background:
    repeating-radial-gradient(circle at 92% 10%, transparent 0 46px, rgba(178, 192, 227, 0.12) 46px 47px),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.fleet-card-head .manifest-label { color: var(--sky); }
.fleet-ship { width: 112px; height: 92px; flex: none; color: var(--sky); }
.fleet-name {
  display: block; margin-top: 10px; padding: 0; background: none; color: var(--white);
  font: 600 clamp(20px, 2vw, 26px)/1.2 var(--font-mono); overflow-wrap: anywhere;
}
.fleet-specs { margin: 0; padding: 8px 36px 28px; }
.fleet-specs > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px;
  align-items: baseline; padding: 18px 0; border-top: 1px solid var(--rule);
}
.fleet-specs > div:first-child { border-top: 0; }
.fleet-specs dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--navy); }
.fleet-specs a { font-weight: 600; }
.fleet-card--soon { border: 1px solid var(--rule); box-shadow: var(--shadow); background: #FBFCFE; }
.fleet-card--soon .fleet-card-head {
  background:
    repeating-radial-gradient(circle at 92% 10%, transparent 0 46px, rgba(61, 84, 164, 0.1) 46px 47px),
    var(--sky-soft);
  color: var(--navy);
}
.fleet-card--soon .fleet-card-head .manifest-label { color: var(--blue); }
.fleet-card--soon .fleet-ship { color: var(--blue); }
.fleet-card--soon .fleet-name { color: var(--navy); }
.soon-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(154, 113, 54, 0.12); color: var(--brass); font-size: 13.5px; font-weight: 600;
}
.soon-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fleet-note { margin: auto 36px 32px; padding: 18px 20px; border-radius: 14px; background: var(--sky-soft); color: var(--ink-2); font-size: 15.5px; }

.fleet-notes { padding-top: 0; }
.notes-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.note-card { padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.note-card p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.note-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--sky-soft); }
.note-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.note-card--dark { background: var(--navy); border-color: var(--navy); }
.note-card--dark p { color: rgba(228, 234, 247, 0.86); }
.note-card--dark .note-icon { background: rgba(178, 192, 227, 0.14); }
.note-card--dark .note-icon svg { fill: var(--sky); }

/* Legal pages: sticky contents + readable prose */
.doc-section { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 740px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.doc-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; }
.doc-toc-label { font: 600 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.doc-toc a {
  display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4;
  transition: color .2s ease, border-color .2s ease;
}
.doc-toc a:hover { color: var(--navy); }
.doc-toc a.is-active { color: var(--navy); border-left-color: var(--blue); font-weight: 600; }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.2; letter-spacing: -0.015em; color: var(--navy);
  margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid var(--rule); scroll-margin-top: 110px;
}
.prose h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 36px 0 10px; scroll-margin-top: 110px; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 22px; padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 26px; margin: 10px 0; }
.prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft);
}
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; position: relative; padding-left: 36px; margin: 12px 0; }
.prose ol > li::before {
  content: counter(item); position: absolute; left: 0; top: 0.2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky-soft); color: var(--blue); font: 600 12px/24px var(--font-body); text-align: center;
}
.table-wrap { margin: 8px 0 28px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th {
  text-align: left; padding: 14px 18px; background: var(--field); color: var(--navy);
  font: 600 12px/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--rule);
}
.prose td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--rule); }
.prose tbody tr:first-child td { border-top: 0; }

@media (max-width: 920px) {
  .fleet-grid, .notes-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 18px; background: var(--field); }
  .doc-toc ol { columns: 2; column-gap: 24px; }
  .doc-toc li { break-inside: avoid; }
}
@media (max-width: 600px) {
  .fleet-card-head { flex-direction: column-reverse; align-items: flex-start; min-height: 0; padding: 28px 24px; }
  .fleet-ship { width: 84px; height: 70px; }
  .fleet-specs { padding: 4px 24px 20px; }
  .fleet-specs > div { grid-template-columns: 1fr; gap: 6px; }
  .fleet-note { margin: auto 24px 24px; }
  .doc-toc ol { columns: 1; }
}

/* ---------- Motion ---------- */
/* Content is never hidden. The headline and scene settle in with CSS from the very first paint
   (transform only, so they count as visible immediately); GSAP owns the decorative layer only. */
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
/* fill-mode "backwards": the animation lets go when it ends, so GSAP's scroll parallax owns transform afterwards */
.hero-copy > *, .page-hero-inner > * { animation: settle 0.9s cubic-bezier(.16, 1, .3, 1) backwards; }
.hero-copy > *:nth-child(2), .page-hero-inner > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3), .page-hero-inner > *:nth-child(3) { animation-delay: 0.12s; }
.hero-scene { animation: settle 1.1s 0.1s cubic-bezier(.16, 1, .3, 1) backwards; }
/* Decorative pieces wait for GSAP (class set in <head>, removed if GSAP is slow) */
.js-motion .hero-chart .draw, .js-motion .page-chart .draw, .js-motion .hero-code { visibility: hidden; }
/* Only elements that actually move get a compositor hint. */
.hero-code, .hero-chart { will-change: transform; }

/* Header gains depth once the page scrolls */
.header { transition: box-shadow .3s ease, background-color .3s ease; }
.header.is-scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 6px 24px rgba(13, 26, 54, 0.08); }

/* Nav marks the section in view */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after { transform: scaleX(1); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifest { grid-template-columns: 1fr; }
  .manifest-model { min-height: 0; flex-direction: row; align-items: flex-end; }
  .features .wrap { grid-template-columns: repeat(2, 1fr); }
  .feature { border-left: 0; padding: 36px 24px 36px 0; border-top: 1px solid var(--rule); }
  .feature:nth-child(-n+2) { border-top: 0; }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
}
@media (max-width: 920px) {
  .hero .wrap, .models-head, .waitlist-card { grid-template-columns: 1fr; }
  .hero-code { margin: 16px 0 0; }
  .audience-grid, .security-layout { grid-template-columns: 1fr; }
  .security .section-head { position: static; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header .wrap { justify-content: space-between; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-actions .btn--ghost { display: none; }
  .header .wrap { height: 64px; gap: 12px; }
  .header-actions .btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .code-window pre, .hero-code .code-window pre { font-size: 12px; padding: 18px; }
  .hero-scene { border-radius: 22px; }
  .hero-code { margin: 12px 0 0; }
  .tiers, .features .wrap { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .feature:first-child { border-top: 0; }
  .mh-logo { height: 24px; }
  .ledger li { padding: 24px 0 26px; }
  .header-actions { gap: 6px; }
  .header-actions .btn--primary.btn--sm { padding: 0 12px; }
  .manifest-model { flex-direction: column; align-items: flex-start; }
  .manifest-specs { grid-template-columns: 1fr; }
  .manifest-cell { border-left: 0; border-top: 1px solid var(--rule); flex-direction: row; align-items: baseline; }
  .manifest-cell:first-child { border-top: 0; }
  .manifest-price { font-size: 40px; }
  .footer-top { flex-direction: column; }
}
