:root {
  --navy: #08233f;
  --navy-2: #113b5d;
  --blue: #126ac4;
  --teal: #079b98;
  --orange: #e96820;
  --ink: #102f49;
  --muted: #5b7488;
  --line: #d4e2eb;
  --paper: #f7fbfd;
  --aqua: #e7f6f6;
  --sky: #e8f1fb;
  --warm: #fff3ea;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(8, 35, 63, 0.13);
  --shell: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(8, 35, 63, 0.1);
  background: rgba(247, 251, 253, 0.94);
  backdrop-filter: blur(18px);
}

.header-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 11px;
  color: #46647b;
  font-size: 13px;
  font-weight: 750;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--blue); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.menu-button { display: none; }

.button,
.app-store-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.app-store-button:not([aria-disabled="true"]):hover { transform: translateY(-2px); }

.button-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(18, 106, 196, 0.22); }
.button-primary:hover { background: #0d5ba9; }
.button-secondary { border-color: #b9cfdd; background: #fff; color: var(--navy); }
.button-secondary:hover { border-color: var(--blue); box-shadow: 0 12px 26px rgba(8, 35, 63, 0.1); }
.button-quiet { color: var(--navy-2); }
.button-quiet:hover { background: #eaf2f7; }
.button-white { border-color: rgba(255,255,255,.48); background: #fff; color: var(--navy); }
.button-white:hover { box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.full-button { width: 100%; }

.app-store-button {
  min-width: 190px;
  min-height: 56px;
  justify-content: flex-start;
  background: #071d33;
  color: #fff;
  padding: 8px 16px;
}

.app-store-button[aria-disabled="true"] { cursor: default; }
.app-store-button svg { width: 27px; height: 27px; flex: 0 0 auto; }
.app-store-button span { display: grid; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 700; }
.app-store-button small { font-family: Manrope, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }

.hero {
  position: relative;
  min-height: min(790px, calc(100svh - 76px));
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: #dcecf1;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
}

.hero-wash {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -2;
  width: 61%;
  background: rgba(247, 251, 253, 0.91);
  border-right: 1px solid rgba(255,255,255,.8);
}

.hero-layout {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: 24px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 670px;
  padding: 76px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow svg { width: 17px; height: 17px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Outfit, sans-serif; letter-spacing: 0; }

h1 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: .96;
  font-weight: 800;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--navy-2);
  font-family: Outfit, sans-serif;
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.1;
}

.hero-body {
  max-width: 610px;
  margin-bottom: 30px;
  color: #46647b;
  font-size: 16px;
  font-weight: 550;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.hero-facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #48677d;
  font-size: 12px;
  font-weight: 750;
}

.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 17px; height: 17px; color: var(--teal); }

.hero-atlas {
  align-self: end;
  position: relative;
  z-index: 3;
  height: min(720px, calc(100svh - 100px));
  min-height: 610px;
  isolation: isolate;
}

.hero-atlas img {
  position: absolute;
  right: -18px;
  bottom: -45px;
  width: min(565px, 49vw);
  height: auto;
  z-index: 2;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 24px 28px rgba(8, 35, 63, .23));
  animation: atlas-arrival 1050ms cubic-bezier(.2,.78,.2,1) both, atlas-breathe 6.8s ease-in-out 1200ms infinite;
  will-change: transform, opacity;
}

.atlas-radar {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 1px;
  width: min(500px, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(7,155,152,.2);
  border-radius: 50%;
  opacity: 0;
  animation: radar-arrival 900ms ease-out 540ms forwards;
  pointer-events: none;
}

.atlas-radar::before,
.atlas-radar::after,
.atlas-radar span {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(7,155,152,.16);
  border-radius: 50%;
}

.atlas-radar::after { inset: 33%; }

.atlas-radar span {
  inset: 50% 0 auto 50%;
  width: 46%;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(7,155,152,.36), transparent);
  transform-origin: left center;
  animation: radar-scan 11s linear infinite;
}

.speech-bubble {
  position: absolute;
  z-index: 4;
  right: 250px;
  top: 135px;
  width: 235px;
  padding: 15px 17px;
  border: 1px solid rgba(8,35,63,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  color: var(--navy);
  opacity: 0;
  transform: translate3d(18px, 8px, 0) scale(.97);
  animation: bubble-arrival 520ms ease-out 940ms forwards;
  transition: opacity 180ms ease, transform 180ms ease;
}

.speech-bubble.is-changing { opacity: 0; transform: translate3d(8px, 3px, 0) scale(.98); }

.speech-bubble::after {
  content: "";
  position: absolute;
  right: -13px;
  bottom: 23px;
  width: 24px;
  height: 24px;
  border-top: 1px solid rgba(8,35,63,.13);
  border-right: 1px solid rgba(8,35,63,.13);
  background: #fff;
  transform: rotate(45deg);
}

.speech-bubble strong,
.speech-bubble span { position: relative; z-index: 1; display: block; }
.speech-bubble strong { font-family: Outfit, sans-serif; font-size: 17px; }
.speech-bubble span { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 650; }

@keyframes atlas-arrival {
  from { opacity: 0; transform: translate3d(70px, 18px, 0) scale(.965); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes atlas-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -3px, 0) scale(1.003); }
}

@keyframes bubble-arrival {
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes radar-arrival { to { opacity: .86; } }
@keyframes radar-scan { to { transform: rotate(360deg); } }

.proof-band { background: #fff; border-bottom: 1px solid var(--line); }
.proof-grid { min-height: 112px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { display: flex; align-items: center; gap: 13px; padding: 22px; border-right: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: 1px solid var(--line); }
.proof-grid svg { width: 24px; height: 24px; color: var(--teal); flex: 0 0 auto; }
.proof-grid span { display: grid; color: var(--muted); font-size: 11px; line-height: 1.35; }
.proof-grid strong { color: var(--navy); font-size: 13px; }

.section { padding: 104px 0; }
.section-heading { max-width: 720px; margin-bottom: 54px; }
.centered-heading { margin-inline: auto; text-align: center; }
.section-heading h2,
.shipmatch-copy h2,
.trust-layout h2,
.final-cta h2 {
  margin: 10px 0 16px;
  color: var(--navy);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 750;
  line-height: 1.03;
}
.section-heading p { color: var(--muted); font-size: 17px; }

.workflow-section { background: #fff; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); gap: 80px; align-items: center; }
.workflow-list { border-top: 1px solid var(--line); }
.workflow-step { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--orange); font-family: Outfit, sans-serif; font-size: 17px; font-weight: 800; }
.workflow-step h3 { margin-bottom: 5px; color: var(--navy); font-size: 23px; }
.workflow-step p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.phone-stage { position: relative; min-height: 720px; display: grid; place-items: center; }
.phone-shell { width: 360px; aspect-ratio: 1170 / 2532; overflow: hidden; border: 10px solid #fff; border-radius: 42px; background: #fff; box-shadow: 0 32px 70px rgba(8,35,63,.2); }
.phone-shell img { width: 100%; height: 100%; object-fit: cover; }
.stage-note { position: absolute; width: 235px; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.stage-note svg { width: 25px; color: var(--teal); flex: 0 0 auto; }
.stage-note span { display: grid; color: var(--muted); font-size: 10px; }
.stage-note strong { color: var(--navy); font-size: 12px; }
.stage-note-top { right: 0; top: 105px; }
.stage-note-bottom { left: 0; bottom: 120px; }

.capability-section { background: var(--paper); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.capability-grid article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); }
.capability-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.capability-grid article:nth-child(even) { padding-left: 30px; }
.capability-grid article > svg { width: 32px; height: 32px; color: var(--blue); }
.capability-grid h3 { margin-bottom: 6px; color: var(--navy); font-size: 21px; }
.capability-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.shipmatch-section { position: relative; min-height: 720px; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; }
.shipmatch-photo { position: absolute; inset: 0; z-index: -2; background: url("./dry-bulk-sunrise.jpg") center 58% / cover no-repeat; }
.shipmatch-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 27, 49, .68); }
.shipmatch-layout { min-height: 720px; display: flex; align-items: center; justify-content: flex-end; }
.shipmatch-copy { width: min(610px, 55%); padding: 72px 0; }
.light-eyebrow { color: #74e4d8; }
.shipmatch-copy h2,
.final-cta h2 { color: #fff; }
.shipmatch-copy > p { color: #d4e2eb; font-size: 16px; }
.check-list { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.check-list svg { width: 19px; height: 19px; padding: 3px; border-radius: 50%; background: var(--teal); color: #fff; }

.devices-section { background: #fff; }
.devices-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr); gap: 70px; align-items: center; }
.device-copy h2 { margin: 10px 0 18px; color: var(--navy); font-size: clamp(38px, 4.5vw, 60px); line-height: 1.04; }
.device-copy > p { color: var(--muted); font-size: 16px; }
.device-points { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.device-points span { display: flex; align-items: center; gap: 9px; color: var(--navy-2); font-size: 12px; font-weight: 750; }
.device-points svg { width: 18px; color: var(--teal); }
.device-gallery { position: relative; min-height: 710px; }
.device-frame { position: absolute; width: 340px; aspect-ratio: 1170 / 2532; overflow: hidden; border: 9px solid #fff; border-radius: 40px; background: #fff; box-shadow: 0 32px 70px rgba(8,35,63,.2); }
.device-frame img { width: 100%; height: 100%; object-fit: cover; }
.device-market { left: 45px; top: 0; transform: rotate(-4deg); }
.device-distance { right: 20px; top: 50px; transform: rotate(4deg); }

.plans-section { background: var(--sky); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan-card { padding: 34px; border: 1px solid #c8dae6; border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(8,35,63,.09); }
.premium-card { border-top: 5px solid var(--orange); }
.plan-label { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.premium-label { color: var(--orange); }
.plan-label svg { width: 18px; }
.plan-card h3 { margin: 18px 0 10px; color: var(--navy); font-size: 29px; }
.plan-card > p { color: var(--muted); font-size: 13px; }
.single-price { min-height: 78px; display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; }
.single-price strong { color: var(--navy); font-family: Outfit, sans-serif; font-size: 44px; line-height: 1; }
.single-price span { color: var(--muted); font-size: 11px; font-weight: 700; }
.premium-prices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 4px 0 18px; }
.premium-prices > div { min-height: 78px; padding: 12px; border: 1px solid #d7e3eb; border-radius: 7px; background: var(--paper); }
.premium-prices span,
.premium-prices small { display: block; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.premium-prices strong { display: block; margin: 3px 0; color: var(--navy); font-family: Outfit, sans-serif; font-size: 25px; line-height: 1; }
.plan-card ul { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; }
.plan-card li { display: flex; gap: 10px; color: #38576f; font-size: 13px; font-weight: 650; }
.plan-card li svg { width: 18px; color: var(--teal); flex: 0 0 auto; }
.plan-note { max-width: 760px; margin: 22px auto 0; color: var(--muted); font-size: 11px; text-align: center; }

.trust-section { padding-block: 78px; background: var(--warm); }
.trust-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.trust-points { display: grid; gap: 0; border-top: 1px solid #edcdb7; }
.trust-points p { margin: 0; padding: 20px 0; border-bottom: 1px solid #edcdb7; color: #6d5544; font-size: 13px; }
.trust-points strong { color: var(--navy); }

.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--navy); font-family: Outfit, sans-serif; font-size: 17px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; transition: transform 180ms ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { max-width: 680px; padding: 0 30px 24px 0; color: var(--muted); font-size: 13px; }

.final-cta { overflow: hidden; background: var(--navy); color: #fff; }
.final-cta-layout { min-height: 540px; display: grid; grid-template-columns: 370px 1fr; gap: 60px; align-items: center; }
.final-cta img { align-self: end; width: 350px; max-height: 510px; object-fit: contain; object-position: bottom; }
.final-cta p { max-width: 720px; color: #c8d9e5; }
.download-heading { margin-top: 25px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.final-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.app-store-light { background: #fff; color: var(--navy); }
.platform-actions { margin-top: 10px; }
.platform-button {
  min-width: 190px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  line-height: 1.05;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.platform-button:not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(0,0,0,.22); }
.platform-button svg { width: 28px; height: 28px; flex: 0 0 auto; }
.platform-android svg { padding: 4px; border-radius: 7px; background: var(--teal); color: #fff; }
.platform-button span { display: grid; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 750; }
.platform-button small { font-family: Manrope, sans-serif; font-size: 9px; font-weight: 700; }
.shipmatch-inline-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 19px; color: #b9cedd; font-size: 11px; font-weight: 750; }
.shipmatch-inline-link:hover { color: #fff; }
.shipmatch-inline-link svg { width: 15px; }

.site-footer { padding: 54px 0 24px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px 50px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: Outfit, sans-serif; font-size: 19px; }
.footer-brand span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; color: var(--navy-2); font-size: 12px; font-weight: 750; }
.footer-links a:hover { color: var(--blue); }
.site-footer p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-bottom strong { color: var(--navy-2); }

/* Legal pages */
.legal-body { background: var(--paper); }
.legal-hero { padding: 74px 0 54px; border-bottom: 1px solid var(--line); background: #e8f1f5; }
.legal-hero h1 { margin: 13px 0 12px; font-size: clamp(44px, 6vw, 72px); }
.legal-hero p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.legal-main { padding: 64px 0 100px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 70px; align-items: start; }
.legal-nav { position: sticky; top: 104px; display: grid; gap: 5px; }
.legal-nav a { padding: 8px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.legal-nav a:hover { color: var(--blue); }
.legal-content { color: #3e5c72; font-size: 14px; }
.legal-content .legal-summary { margin-bottom: 36px; padding: 18px; border-left: 4px solid var(--teal); background: var(--aqua); color: var(--navy-2); }
.legal-content section { scroll-margin-top: 106px; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 12px; color: var(--navy); font-size: 24px; }
.legal-content h3 { margin: 20px 0 8px; color: var(--navy-2); font-size: 17px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1060px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 430px; }
  .hero-wash { width: 68%; }
  .speech-bubble { right: 180px; }
  .workflow-layout,
  .devices-layout { gap: 36px; }
  .stage-note-top { right: -10px; }
  .stage-note-bottom { left: -10px; }
  .device-frame { width: 300px; }
  .device-gallery { min-height: 620px; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-row { grid-template-columns: 1fr auto; min-height: 68px; }
  .header-actions { display: none; }
  .menu-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
  }
  .menu-button svg { width: 21px; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(8,35,63,.14);
  }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }

  .hero { min-height: auto; }
  .hero-wash { width: 100%; background: rgba(247,251,253,.84); }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: none; padding: 58px 0 10px; }
  .hero-body { max-width: 680px; }
  .hero-atlas { width: 100%; height: 530px; min-height: 0; }
  .hero-atlas img { left: 50%; right: auto; bottom: -46px; width: 420px; margin-left: -210px; }
  .atlas-radar { right: 50%; width: 390px; transform: translateX(50%); }
  .speech-bubble { right: calc(50% + 70px); top: 52px; width: 210px; }

  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding: 76px 0; }
  .workflow-layout,
  .devices-layout,
  .trust-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .workflow-layout { gap: 34px; }
  .phone-stage { min-height: 660px; }
  .phone-shell { width: 320px; }
  .stage-note { width: 210px; }
  .stage-note-top { right: 2%; }
  .stage-note-bottom { left: 2%; }

  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article:nth-child(odd) { border-right: 0; }
  .capability-grid article:nth-child(even) { padding-left: 0; }

  .shipmatch-copy { width: min(100%, 600px); }
  .shipmatch-section::after { background: rgba(5,27,49,.78); }

  .devices-layout { gap: 48px; }
  .device-copy { max-width: 680px; }
  .device-gallery { width: min(100%, 650px); margin: 0 auto; }

  .plan-grid { grid-template-columns: 1fr; max-width: 620px; }
  .trust-layout { gap: 24px; }
  .faq-layout { gap: 20px; }

  .final-cta-layout { grid-template-columns: 260px 1fr; gap: 28px; }
  .final-cta img { width: 260px; }

  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand strong { font-size: 18px; }
  .brand img { width: 39px; height: 39px; }
  h1 { font-size: 55px; }
  .hero-lead { font-size: 28px; }
  .hero-body { font-size: 14px; }
  .hero-actions { align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .app-store-button { justify-content: center; }
  .hero-facts { gap: 11px 16px; }
  .hero-atlas { height: 490px; }
  .hero-atlas img { width: 380px; margin-left: -190px; }
  .atlas-radar { width: 350px; }
  .speech-bubble { left: 0; right: auto; top: 34px; width: 185px; }

  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div { border-right: 0; border-top: 1px solid var(--line); }
  .proof-grid > div:first-child { border-left: 0; border-top: 0; }

  .section-heading { margin-bottom: 38px; }
  .section-heading h2,
  .shipmatch-copy h2,
  .trust-layout h2,
  .final-cta h2,
  .device-copy h2 { font-size: 38px; }
  .section-heading p { font-size: 15px; }
  .workflow-step { grid-template-columns: 44px 1fr; gap: 10px; }
  .phone-stage { min-height: 610px; }
  .phone-shell { width: 270px; border-width: 7px; border-radius: 33px; }
  .stage-note { width: 175px; padding: 10px; }
  .stage-note-top { right: -4px; top: 82px; }
  .stage-note-bottom { left: -4px; bottom: 85px; }
  .stage-note span { font-size: 8px; }
  .stage-note strong { font-size: 10px; }

  .capability-grid article { grid-template-columns: 40px 1fr; gap: 12px; padding-right: 0; }
  .capability-grid article > svg { width: 26px; height: 26px; }

  .shipmatch-section,
  .shipmatch-layout { min-height: 680px; }
  .shipmatch-copy { padding-block: 56px; }

  .device-points { grid-template-columns: 1fr; }
  .device-gallery { min-height: 545px; }
  .device-frame { width: 238px; border-width: 6px; border-radius: 30px; }
  .device-market { left: 4px; }
  .device-distance { right: 4px; top: 50px; }

  .plan-card { padding: 26px 22px; }
  .trust-layout { gap: 16px; }
  .faq-list summary { font-size: 15px; }

  .final-cta-layout { min-height: 0; display: flex; flex-direction: column-reverse; gap: 10px; padding-top: 62px; }
  .final-cta img { width: 280px; max-height: 420px; }
  .final-actions { align-items: stretch; }
  .final-actions > * { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .legal-hero { padding: 54px 0 42px; }
  .legal-hero h1 { font-size: 45px; }
  .legal-main { padding-top: 44px; }
  .legal-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-atlas img { opacity: 1; }
  .speech-bubble { opacity: 1; transform: none; }
}
