:root {
  --bm-navy: #0a2540;
  --bm-navy-deep: #09243d;
  --bm-navy-mid: #173a56;
  --bm-ivory: #faf7f2;
  --bm-paper: #ffffff;
  --bm-coral: #ff7f66;
  --bm-ink: #0d2943;
  --bm-muted: #79848d;
  --bm-line: #ece9e3;
  --display: "Inter", sans-serif;
  --mono: "Inter", sans-serif;
}

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

body.bm-site {
  margin: 0;
  overflow-x: clip;
  color: var(--bm-ink);
  background: var(--bm-ivory);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bm-site ::selection {
  color: var(--bm-paper);
  background: var(--bm-coral);
}

.site-header {
  position: relative;
  z-index: 15;
  display: flex;
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, calc((100vw - 1232px) / 2));
  border-bottom: 1px solid #ffffff0d;
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand img {
  display: block;
  width: 154px;
  height: auto;
  max-height: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 47px);
}

.desktop-nav a {
  color: var(--bm-navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:hover { color: #c45e4b; }
.desktop-nav a[aria-current=page] { color: var(--bm-navy); }

.desktop-nav .nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 24px;
  border-radius: 2px;
  color: var(--bm-paper);
  background: var(--bm-navy);
  letter-spacing: .11em;
}

.desktop-nav .nav-cta:hover { color: var(--bm-paper); background: #23445e; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-color: #0b274166; background: transparent; }
.menu-toggle span { margin: 0; flex: none; background: var(--bm-navy); }
.mobile-nav:not([hidden]) { background: #fff; border-color: var(--bm-line); }
.mobile-nav a { color: var(--bm-navy); }
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: #a94838; background: #fff0e9; }

.home-hero {
  position: relative;
  min-height: 889px;
  box-sizing: border-box;
  padding: 30px 5vw;
  overflow: hidden;
  color: var(--bm-paper);
  background: var(--bm-navy);
}

.hero-inner {
  display: grid;
  width: min(100%, 1232px);
  min-height: 829px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 48px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: start;
  width: 100%;
   padding-top: 78px;
  text-align: left;
}

.home-hero h1 {
  width: auto;
  margin: 0;
  color: var(--bm-ivory);
  font-size: clamp(110px, 8.9vw, 128px);
  font-weight: 900;
   letter-spacing: 0;
  line-height: 1;
}

.home-hero h1 sup {
  position: relative;
   top: -.08em;
   margin-left: 0;
   font-size: 1em;
  letter-spacing: -.02em;
   vertical-align: baseline;
}

.hero-tagline {
   margin: 25px 0 22px;
  color: #b2b8bd;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.hero-support {
  max-width: 560px;
  margin: 0 0 40px;
  color: #bdc8d2;
   font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions { display: flex; align-items: center; gap: 21px; }
.button { min-height: 48px; border-radius: 2px; padding: 13px 25px; font-size: 10px; font-weight: 900; letter-spacing: .14em; }

.button-coral {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
   color: var(--bm-ivory);
  background: var(--bm-coral);
   min-width: 255px;
  box-shadow: none;
  font-size: 12px;
}

.button-coral:hover { color: var(--bm-ivory); background: #ff9886; }

.coming-soon {
  margin: 0;
  color: #a5b1bc;
  font-size: 8px;
  letter-spacing: .14em;
  line-height: 1.8;
  text-transform: uppercase;
}
.coming-soon strong { color: #d8dfe5; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: none; }

.hero-visual {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 780px;
  align-items: center;
  justify-content: center;
}

.phone-demo { position: relative; width: 340px; text-align: center; }
.phone-demo-hero { top: -14px; transform: none; }

.phone-frame {
  position: relative;
  width: 100%;
  box-sizing: border-box;
   padding: 18px;
  border: 2px solid #466078;
   border-radius: 50px;
  background: #1b3852;
  box-shadow: 0 12px 35px #04172955;
}

.phone-scroll {
  display: block;
  width: 100%;
   height: 640px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 21px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #82909a transparent;
  touch-action: pan-y pinch-zoom;
}

.phone-scroll:focus-visible { outline: 3px solid var(--bm-coral); outline-offset: 2px; }
.phone-screenshot { display: block; width: 100%; height: auto; max-width: none; object-fit: initial; margin-bottom: 58px; }
.demo-source-note { color: #d8dfe5; font-size: 12px; line-height: 1.5; }
.demo-load-error { color: #ffe4de; font-size: 14px; line-height: 1.5; }
.demo-retry { min-height: 44px; padding: 10px 16px; border: 1px solid var(--bm-ivory); border-radius: 4px; color: var(--bm-ivory); background: transparent; cursor: pointer; }

/* Carousel controls live over the genuine app capture, not in a separate UI row. */
.demo-controls {
  position: absolute;
  z-index: 5;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  pointer-events: none;
}

.demo-controls > button:not([hidden]) {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--bm-navy);
  background: #ffffffd9;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.demo-controls > [data-demo-prev] { position: absolute; top: 50%; left: -6px; transform: translateY(-50%); }
.demo-controls > [data-demo-next] { position: absolute; top: 50%; right: -6px; transform: translateY(-50%); }
.demo-controls > [data-demo-pause]:not([hidden]) {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  color: var(--bm-navy);
  background: #ffffffd9;
  font-size: 11px;
}

.demo-controls > button:hover { color: var(--bm-navy); background: var(--bm-coral); }
.demo-controls button:focus-visible { outline: 3px solid var(--bm-coral); outline-offset: 3px; }
.demo-dots { position: absolute; right: 45px; bottom: 8px; left: 45px; display: flex; align-items: center; justify-content: center; gap: 2px; pointer-events: auto; }
.demo-dots button { position: relative; display: block; width: 36px; height: 44px; flex: 0 1 36px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.demo-dots button::before { position: absolute; inset: 19px 15px; border: 1px solid #526374; border-radius: 50%; background: #ffffffd9; content: ""; }
.demo-dots button[aria-current=true]::before { border-color: var(--bm-coral); background: var(--bm-coral); }
.demo-controls p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.demo-disclaimer { margin: 6px 0 0; color: #b6c2cc; font-size: 10px; font-style: italic; letter-spacing: .015em; }

.penny-pulse {
  position: absolute;
  z-index: 2;
   left: 73px;
   bottom: 40px;
   width: 177px;
  box-sizing: border-box;
   padding: 20px;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  color: #ccd4dc;
  background: #0e2b44;
  box-shadow: 0 12px 25px #04172940;
  pointer-events: none;
}
.penny-pulse p { margin: 0 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.penny-pulse span { display: block; font-size: 11px; font-style: italic; line-height: 1.5; }

.hero-captain {
  position: absolute;
  z-index: 3;
   right: 73px;
   bottom: 2px;
  display: block;
  width: 210px;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.day-flow {
  min-height: 898px;
  box-sizing: border-box;
   padding: 114px 5vw 124px;
  background: var(--bm-ivory);
}

.section-shell { width: min(100%, 1232px); margin: 0 auto; }
.eyebrow, .section-kicker { margin: 0; color: #e77560; font-size: 9px; font-weight: 900; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; }
.day-flow > .section-shell > .eyebrow { text-align: center; }

.day-flow h2 {
  margin: 14px 0 8px;
  color: var(--bm-navy);
   font-size: clamp(34px, 4.45vw, 64px);
  font-weight: 900;
   letter-spacing: -.035em;
  line-height: 1.12;
  text-align: center;
}

.section-subtitle { margin: 0; color: #9a9b9b; font-size: 20px; font-style: italic; text-align: center; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 84px; }

.activity-card {
  display: flex;
  min-height: 450px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
   padding: 38px 40px 29px;
   border-radius: 24px;
  background: var(--bm-paper);
  box-shadow: 0 5px 24px #102c4608;
}

.activity-icon { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 9px; color: var(--bm-navy); background: #f5f2ed; }
.activity-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.activity-icon svg, .weather-symbol svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.activity-coral, .activity-sand { color: var(--bm-navy); background: #f5f2ed; }
.activity-card h3 { margin: 76px 0 16px; color: var(--bm-navy); font-size: 32px; font-weight: 850; letter-spacing: -.04em; line-height: 1.2; }
.activity-card p { max-width: 330px; margin: 0 0 22px; color: #687786; font-size: 16px; line-height: 1.65; }

.text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--bm-navy);
  background: none;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
}
.text-action span { color: var(--bm-navy); font-size: 16px; transition: transform .2s ease; }
.text-action:hover span { transform: translateX(4px); }

.weather-band {
  min-height: 884px;
  box-sizing: border-box;
  padding: 40px 5vw;
  color: var(--bm-ivory);
  background: var(--bm-navy);
}

.weather-inner {
  display: grid;
  width: min(100%, 1232px);
  min-height: 804px;
   grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
   gap: 48px;
  margin: 0 auto;
}

.eyebrow-coral { color: var(--bm-coral); }
.weather-copy h2 { margin: 19px 0 45px; color: var(--bm-ivory); font-size: clamp(42px, 4.3vw, 62px); font-style: italic; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.weather-points { display: grid; gap: 22px; max-width: 550px; }
.weather-point { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 28px; align-items: start; }
.weather-symbol { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; color: var(--bm-navy); background: var(--bm-ivory); }
.weather-point h3 { margin: 0 0 8px; color: var(--bm-ivory); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.weather-point p { max-width: 450px; margin: 0; color: #bac7d1; font-size: 16px; line-height: 1.65; }
.weather-demo-column { display: flex; align-items: center; justify-content: center; }
.phone-demo-weather { width: 320px; transform: translate(12px, 18px); }
.phone-demo-weather .phone-frame { padding: 12px; border-radius: 42px; border-color: #526a7e; background: #1a3853; }
.phone-demo-weather .phone-scroll { height: 600px; }
.phone-demo-weather .demo-disclaimer { color: #bac7d1; }
.phone-demo-weather .demo-dots { right: 42px; left: 42px; bottom: 8px; gap: 5px; }
.phone-demo-weather .demo-dots button {
  display: inline-flex;
  width: auto;
  height: 32px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #ffffff85;
  border-radius: 18px;
  color: var(--bm-ivory);
  background: #0b2741d9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}
.phone-demo-weather .demo-dots button::before { display: none; }
.phone-demo-weather .demo-dots button[aria-current=true] { border-color: var(--bm-ivory); color: var(--bm-navy); background: var(--bm-ivory); }

.captain-watch {
  position: relative;
  min-height: 966px;
  box-sizing: border-box;
  padding: 100px 5vw;
  overflow: hidden;
  color: var(--bm-ivory);
  background: #112e49;
}

/* Original faint nautical artwork extracted from the approved export, with
   text, reference people and panel excluded; no new decorative illustration. */
.captain-watch::before {
  position: absolute;
  inset: 0;
  background:
    url("/boatmedix-assets/watch-nautical-upper.png") no-repeat calc(50% - 157.5px) 24px / 355px 252px,
    url("/boatmedix-assets/watch-nautical-lower.png") no-repeat calc(50% - 172.5px) 699px / 385px 267px,
    linear-gradient(112deg, #0c263e 0%, #162e43 65%, #162e43 100%);
  content: "";
  pointer-events: none;
}

.captain-watch-inner {
  position: relative;
  display: grid;
  width: min(100%, 1232px);
  min-height: 766px;
   grid-template-columns: minmax(0, .958fr) minmax(430px, 1fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
  margin: 0 auto;
}

.captain-copy h2 { margin: 17px 0 54px; color: var(--bm-ivory); font-size: clamp(48px, 4.45vw, 64px); font-style: italic; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.watch-notes { display: grid; gap: 22px; max-width: 550px; padding-left: 16px; border-left: 1px solid #ffffff35; }
.watch-notes article { padding-left: 2px; }
.watch-notes h3 { margin: 0 0 6px; color: var(--bm-coral); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.watch-notes p { margin: 0; color: #bbc8d2; font-size: 16px; line-height: 1.65; }
.watch-notes .watch-support { margin-top: 10px; }
.watch-support span { font-weight: 600; }

.captain-panel {
  position: relative;
  display: flex;
   min-height: 710px;
   align-items: center;
  justify-content: center;
   overflow: visible;
  border: 1px solid #ffffff21;
   border-radius: 64px;
   background: #21384c;
}

.captain-panel::before, .captain-panel::after { display: none; }
.captain-panel::before { top: 34px; left: -90px; }
.captain-panel::after { right: -125px; bottom: -120px; }
.captain-panel img { position: relative; z-index: 1; display: block; width: min(82%, 410px); height: auto; max-height: 640px; object-fit: contain; object-position: center bottom; }

.captain-badge {
  position: absolute;
  z-index: 2;
   top: 48px;
   right: -48px;
  display: flex;
   width: 192px;
   height: 192px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  color: var(--bm-navy);
  background: var(--bm-coral);
  transform: rotate(8deg);
}
.captain-badge span { width: 12px; height: 12px; margin-bottom: 5px; border: 2px solid var(--bm-navy); border-radius: 3px 3px 7px 7px; transform: rotate(45deg); }
.captain-badge strong { font-size: 9px; font-weight: 900; letter-spacing: .13em; line-height: 1.3; text-align: center; text-transform: uppercase; }

.signup-section {
  min-height: 744px;
  box-sizing: border-box;
   padding: 151px 22px 86px;
  color: var(--bm-ink);
  background: var(--bm-ivory);
  text-align: center;
}

.signup-section > h2 { margin: 16px 0 26px; color: var(--bm-navy); font-size: clamp(40px, 5vw, 64px); font-style: italic; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.signup-intro { max-width: 600px; margin: 0 auto; color: #697987; font-size: 16px; line-height: 1.7; }
.signup-section > #waitlist-form { width: min(100%, 440px); max-width: 440px; margin: 48px auto 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; text-align: center; }
.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; }

/* A quiet one-line email shell opens the complete, accessible details dialog. */
.waitlist-entry {
  display: flex;
  width: min(100%, 440px);
  align-items: stretch;
   margin: 0 auto;
}

.waitlist-entry input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 19px;
  border: 1px solid #ece9e3;
   border-radius: 10px;
  color: var(--bm-navy);
  background: #fff;
  font: 13px "Inter", sans-serif;
}
.waitlist-entry input::placeholder { color: #9ba3a9; }
.waitlist-entry input:focus { position: relative; z-index: 1; outline: 2px solid var(--bm-coral); outline-offset: 1px; }

.button-primary { color: var(--bm-ivory); background: var(--bm-navy); box-shadow: none; }
.button-primary:hover { color: var(--bm-paper); background: #23445e; }
.signup-section > #waitlist-form > #begin-waitlist {
  display: inline-flex;
   width: 100%;
   min-height: 56px;
   margin-top: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 0;
   border-radius: 16px;
  color: var(--bm-paper);
  background: var(--bm-navy);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}
.signup-section > #waitlist-form > #begin-waitlist:hover { background: #23445e; }

.waitlist-details {
  width: min(92vw, 690px);
  max-width: 690px;
  max-height: min(88dvh, 760px);
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid #e2ddd4;
  border-radius: 9px;
  color: var(--bm-ink);
  background: var(--bm-paper);
}
.waitlist-details::backdrop { background: #061a2bbd; }
.waitlist-details h2 { margin: 0 0 18px; font-size: 28px; font-style: normal; font-weight: 800; letter-spacing: -.03em; }
.waitlist-details .waitlist-entry { width: 100%; margin-bottom: 16px; }
.waitlist-details #waitlist-form { width: 100%; margin: 0; }
.waitlist-details .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.waitlist-details .form-field { display: block; min-width: 0; }
.waitlist-details .form-field label { display: block; margin-bottom: 6px; color: var(--bm-navy); font-size: 13px; font-weight: 750; }
.waitlist-details .form-field label span { display: block; color: #828b91; font-size: 11px; font-weight: 500; }
.waitlist-details .form-field input { width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d5d2ca; border-radius: 4px; color: var(--bm-navy); background: #fff; }
.waitlist-details .form-field input:focus { outline: 2px solid var(--bm-coral); outline-offset: 1px; }
.waitlist-details .sms-option { display: flex; min-height: 44px; align-items: center; gap: 9px; color: #526577; }
.waitlist-details .sms-option input { accent-color: var(--bm-coral); }
.waitlist-details .terms-note a { color: #ae5545; }
.waitlist-details .submit-button { min-height: 51px; }
.form-message { margin: 8px 0 0; }
.availability-note { margin: 13px 0 0; color: #a8adb1; font-size: 8px; letter-spacing: .24em; text-transform: uppercase; }
.signup-success { width: min(100%, 620px); margin: 30px auto 0; padding: 35px; color: var(--bm-ivory); background: var(--bm-navy); }
.signup-success h3, .signup-success h2 { color: var(--bm-ivory); }
.signup-success::before { color: var(--bm-coral); }
.success-grid article { border-color: #ffffff25; background: #ffffff12; }
.success-grid h3, .success-grid h4 { color: var(--bm-ivory); }

.site-footer {
  display: grid;
  min-height: 427px;
  box-sizing: border-box;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-content: space-between;
  gap: 28px 40px;
  padding: 70px max(5vw, calc((100vw - 1232px) / 2)) 38px;
  border-top: 1px solid #f2f0ec;
  background: #fff;
}

.footer-brand { max-width: 300px; }
.footer-mark { display: block; width: 142px; height: auto; padding: 5px 8px; background: #fff; }
.footer-brand p { margin: 17px 0 0; color: #7c8790; font-size: 12px; font-style: italic; line-height: 1.6; }
.site-footer nav { display: grid; grid-template-columns: 130px 120px; grid-template-rows: repeat(3, min-content); grid-auto-flow: column; justify-content: flex-end; align-content: start; align-self: start; gap: 16px 70px; }
.site-footer nav a { color: #536576; font-size: 9px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.site-footer nav a:hover { color: #c45e4b; }
.site-footer > p.copyright { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 18px 0 0; padding-top: 19px; border-top: 1px solid #e9e4db; color: #89939b; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer > p.copyright strong { color: var(--bm-navy); font-weight: 800; }

.consent-dialog { border-color: #e2ddd4; border-radius: 9px; color: var(--bm-ink); background: var(--bm-paper); }
.consent-dialog::backdrop { background: #061a2bbd; }
.consent-dialog h2 { color: var(--bm-navy); }
.consent-dialog a { color: #b45342; }
.button-outline { border-color: #d0cabe; color: var(--bm-navy); background: transparent; }
.skip-link { background: var(--bm-coral); color: var(--bm-navy); }

@media (min-width: 701px) and (max-width: 1199px) {
  .home-hero { min-height: 760px; padding-block: 55px; }
  .hero-inner { min-height: 640px; grid-template-columns: minmax(300px, .92fr) minmax(310px, 1fr); gap: 28px; }
  .home-hero h1 { font-size: clamp(76px, 8.2vw, 105px); }
  .hero-copy { padding-top: 44px; }
  .hero-tagline { margin-top: 25px; font-size: 20px; }
  .hero-visual { min-height: 640px; }
  .phone-demo { width: clamp(250px, 31vw, 320px); }
  .phone-scroll { height: clamp(440px, 52vw, 570px); }
  .phone-demo-weather .phone-scroll { height: clamp(440px, 52vw, 570px); }
  .hero-captain { right: 0; bottom: 54px; width: clamp(140px, 18vw, 190px); }
  .penny-pulse { left: 0; bottom: 130px; width: 145px; }
  .day-flow { min-height: 760px; padding-block: 90px; }
  .activity-card { min-height: 370px; padding: 29px 25px 22px; }
  .weather-band { min-height: 760px; padding-block: 80px; }
  .weather-inner { min-height: 600px; gap: 40px; }
  .phone-demo-weather { width: clamp(250px, 31vw, 300px); }
  .captain-watch { min-height: 820px; padding-block: 80px; }
  .captain-watch-inner { min-height: 660px; gap: 40px; grid-template-columns: minmax(0, .92fr) minmax(330px, .9fr); }
  .captain-panel { min-height: 500px; }
  .captain-panel img { max-height: 550px; }
  .signup-section { min-height: 650px; padding-block: 80px; }
  .site-footer { min-height: 360px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  .site-header { min-height: 66px; padding: 0 17px; }
  .brand img { width: 126px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav:not([hidden]) { position: absolute; top: calc(100% - 1px); right: 12px; left: 12px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 0 0 9px 9px; box-shadow: 0 14px 28px #061a2b50; }
  .mobile-nav a { min-height: 44px; padding: 12px; }
  .home-hero { min-height: 0; padding: 48px 23px 50px; }
  .hero-inner { display: flex; min-height: 0; align-items: flex-start; flex-direction: column; gap: 30px; }
  .hero-copy { width: 100%; padding: 0; }
  .home-hero h1 { margin-bottom: 0; font-size: clamp(62px, 17vw, 84px); letter-spacing: -.055em; line-height: .95; }
  .hero-tagline { margin: 19px 0 12px; font-size: 17px; }
  .hero-support { max-width: 480px; margin-bottom: 21px; font-size: 14px; line-height: 1.65; }
  .hero-actions { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .hero-actions .button { min-height: 48px; width: auto; padding-inline: 22px; }
  .coming-soon { align-self: center; }
  .hero-visual { width: 100%; min-height: 0; justify-content: center; padding: 0 0 36px; }
  .phone-demo, .phone-demo-hero { width: min(100%, 300px); }
   .phone-demo-hero { top: 0; transform: none; }
  .phone-scroll { height: min(90vw, 390px); }
  .phone-frame { padding: 8px; border-radius: 27px; }
  .phone-scroll { border-radius: 19px; }
  .demo-controls { inset: 8px; }
  .demo-controls > [data-demo-prev] { left: -2px; }
  .demo-controls > [data-demo-next] { right: -2px; }
  .demo-dots { right: 36px; left: 36px; bottom: 3px; }
  .demo-dots button { width: 34px; flex-basis: 34px; }
  .demo-dots button::before { inset: 19px 14px; }
  .demo-disclaimer { margin-top: 7px; font-size: 9px; }
  .hero-captain { right: -2px; bottom: 35px; width: clamp(105px, 31vw, 165px); }
  .penny-pulse { left: -4px; bottom: 105px; width: 126px; padding: 10px; }
  .penny-pulse p { font-size: 9px; }
  .penny-pulse span { font-size: 10px; }
  .day-flow { min-height: 0; padding: 58px 19px 68px; }
  .day-flow h2 { max-width: 500px; margin: 13px auto 8px; font-size: clamp(30px, 8vw, 40px); }
  .section-subtitle { font-size: 13px; }
  .activity-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 33px; }
  .activity-card { min-height: 280px; padding: 25px 24px 20px; }
  .activity-card h3 { margin-top: 22px; font-size: 19px; }
  .activity-card p { max-width: 490px; margin-bottom: 12px; font-size: 14px; }
  .weather-band { min-height: 0; padding: 60px 22px 66px; }
  .weather-inner { min-height: 0; grid-template-columns: 1fr; gap: 35px; }
  .weather-copy h2 { margin: 13px 0 23px; font-size: clamp(43px, 12vw, 58px); }
  .weather-points { gap: 18px; }
  .weather-point { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; }
  .weather-symbol { width: 42px; height: 42px; }
  .weather-point h3 { font-size: 10px; }
  .weather-point p { font-size: 13px; }
   .phone-demo-weather { width: min(100%, 300px); transform: none; }
  .phone-demo-weather .phone-scroll { height: min(88vw, 390px); }
  .phone-demo-weather .demo-dots { right: 36px; left: 36px; bottom: 8px; }
  .phone-demo-weather .demo-dots button { height: 30px; flex-basis: 0; }
  .captain-watch { min-height: 0; padding: 61px 22px 60px; }
   .captain-watch::before { background: linear-gradient(112deg, #0c263e 0%, #162e43 65%, #162e43 100%); }
  .captain-watch-inner { min-height: 0; grid-template-columns: 1fr; gap: 31px; }
  .captain-copy h2 { margin: 14px 0 24px; font-size: clamp(42px, 12vw, 57px); }
  .watch-notes { gap: 18px; }
  .watch-notes h3 { font-size: 10px; }
  .watch-notes p { font-size: 13px; }
  .captain-panel { min-height: min(105vw, 410px); }
  .captain-panel img { width: min(75%, 300px); max-height: 420px; }
  .captain-badge { top: 19px; right: 16px; width: 84px; height: 84px; }
  .captain-badge strong { font-size: 9px; letter-spacing: .08em; }
  .signup-section { min-height: 520px; padding: 65px 18px 60px; }
   .signup-section > h2 { margin: 12px 0 13px; font-size: clamp(38px, 10vw, 44px); }
  .signup-intro { margin-bottom: 23px; font-size: 13px; }
  #waitlist-form { width: min(100%, 440px); }
  .waitlist-details { padding: 20px 16px; }
  .waitlist-details .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .waitlist-details .form-field input { min-height: 49px; }
  .waitlist-entry { width: min(100%, 440px); }
  .waitlist-entry input { min-height: 50px; padding-inline: 13px; font-size: 12px; }
  .waitlist-entry #begin-waitlist { min-height: 50px; padding-inline: 14px; font-size: 8px; }
  .form-field input { min-height: 50px; padding-inline: 13px; font-size: 12px; }
  #waitlist-form .submit-button, #waitlist-form #begin-waitlist { min-height: 50px; padding-inline: 14px; font-size: 8px; }
  .site-footer { min-height: 0; grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 34px 20px 22px; text-align: center; }
  .footer-brand p { max-width: 250px; margin: 12px auto 0; }
   .site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px 18px; }
  .site-footer > p.copyright { grid-column: auto; flex-direction: column; gap: 10px; margin-top: 3px; padding-top: 17px; text-align: center; }
}

@media (max-width: 365px) {
  .home-hero { padding-inline: 18px; }
  .home-hero h1 { font-size: 59px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 17px; font-size: 9px; }
  .coming-soon, .coming-soon strong { font-size: 7px; }
  .phone-demo { width: min(100%, 280px); }
  .activity-card { padding-inline: 18px; }
  .site-footer nav a { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
