/* Homepage design tokens: server-go/DESIGN.md. */
:root {
  color-scheme: light;
  --canvas: #fff; --parchment: #f5f5f7; --pearl: #fafafc;
  --ink: #1d1d1f; --muted: #6e6e73; --primary: #0066cc;
  --focus: #0071e3; --on-dark-link: #2997ff; --dark: #272729;
  --line: #e0e0e0; --ease: cubic-bezier(.22,1,.36,1); --max: 1120px;
  font: 400 17px/1.47 'SF Pro Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
/* Keep the native scrollbar, with a slim rounded thumb and a quiet track. */
html { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #a1a1a6 var(--parchment); }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: var(--parchment); }
html::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid var(--parchment);
  border-radius: 9999px;
  background: #a1a1a6;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background-color: #6e6e73; }
html::-webkit-scrollbar-thumb:active { background-color: var(--ink); }
html::-webkit-scrollbar-button { display: none; }
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-width: auto; scrollbar-color: auto; }
}
body { margin: 0; background: var(--canvas); color: var(--ink); }
body.menu-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--primary); }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 64px),var(--max)); margin-inline: auto; }
.container > *, .hero-layout > *, .flow-layout > *, .contact-layout > *, .form-row > * { min-width: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 20px; border-radius: 8px; background: var(--canvas); color: var(--primary); }
.skip:focus { top: 12px; }
.global-nav { background: #000; color: #fff; font-size: 12px; }
.global-nav .container, .global-nav .container > div { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.global-nav a { min-height: 44px; display: flex; align-items: center; color: #f5f5f7; text-decoration: none; }
.global-nav .container > a:first-child { font-weight: 600; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(245,245,247,.88); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); padding-top: env(safe-area-inset-top,0px); }
.nav-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.myboat-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-text strong { font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 12px; }
.nav-links .nav-action { color: var(--primary); }
.button, .plan-select { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: 9999px; font-weight: 400; line-height: 1.24; text-decoration: none; transition: transform 160ms var(--ease),background-color 160ms; }
.button-primary, .submit { background: var(--primary); color: #fff; }
.button-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.nav-links .button { min-height: 36px; padding: 8px 16px; font-size: 12px; background: var(--primary); color: #fff; }
button:active, .button:active { transform: scale(.95); }
.language-switch { display: flex; }
.language-switch button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.language-switch button[aria-pressed=true] { color: var(--primary); font-weight: 600; }
.menu-button { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); }
.menu-button svg { width: 24px; }
.hero { background: var(--parchment); padding: 64px 0 40px; overflow: clip; }
.hero-layout { display: grid; justify-items: center; gap: 0; }
.hero-copy { text-align: center; max-width: 800px; }
.product-label { font-size: 21px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.2px; }
h1, h2, h3 { font-family: 'SF Pro Display',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-weight: 600; }
h1 { max-width: 760px; margin: 0 auto; font-size: 56px; line-height: 1.07; letter-spacing: -.8px; text-wrap: balance; }
.hero-lead { max-width: 680px; margin: 24px auto 0; font-size: 21px; line-height: 1.4; letter-spacing: -.2px; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.proof-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 24px 0 44px; color: var(--muted); font-size: 12px; }
.proof-line span { display: flex; align-items: center; gap: 6px; }
.proof-line svg { width: 15px; color: var(--primary); }
/* Only the product illustration receives the signature product shadow. */
.dashboard { position: relative; width: min(100%,980px); border: 1px solid #d2d2d7; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 3px 5px 30px rgba(0,0,0,.22); }
.dash-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.dash-identity { display: flex; align-items: center; gap: 12px; }
.dash-identity > span:last-child { display: grid; }
.dash-identity strong { font-size: 14px; font-weight: 600; }
.dash-identity > span:last-child > span, .dash-time { color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: status-pulse 2s ease-in-out infinite; }
.dash-body { display: grid; grid-template-columns: minmax(0,1fr) 200px; }
.map-panel { position: relative; min-height: 400px; background: #eaf2f8; overflow: hidden; }
.map-grid { position: absolute; inset: 0; }
.coastline, .route-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.coastline path { fill: #d9e2e6; stroke: #c4d2d9; stroke-width: 1; }
.route-track { fill: none; stroke: #a0b4c5; stroke-width: 2; stroke-dasharray: 5 7; }
.route-live { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.safe-circle { fill: rgba(0,102,204,.06); stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 6 5; }
.boat-node { transform-box: view-box; transform-origin: 0 0; }
.map-status { position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; }
.map-status svg { width: 16px; color: var(--primary); }
.map-scale { position: absolute; left: 20px; bottom: 20px; color: #526574; font-size: 12px; }
.map-scale:before { content: ''; display: inline-block; width: 48px; height: 5px; border: 1px solid currentColor; border-top: 0; margin-right: 8px; }
.dash-side { background: var(--pearl); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.side-title { padding: 20px; font-size: 10px; letter-spacing: .4px; color: var(--muted); }
.metric { padding: 12px 20px; }
.metric span, .metric strong { display: block; }
.metric span { font-size: 10px; letter-spacing: .3px; color: var(--muted); }
.metric strong { margin-top: 4px; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.event-card { margin: auto 12px 16px; padding: 12px; border-radius: 8px; background: #e8f2fc; opacity: 0; transform: translateY(8px); transition: opacity 240ms,transform 240ms var(--ease); }
.event-card strong, .event-card span { display: block; }
.event-card strong { font-size: 12px; font-weight: 600; }
.event-card span { font-size: 10px; margin-top: 4px; color: #44576b; }
.dashboard[data-alert=true] .event-card { opacity: 1; transform: none; }
.preview-toolbar { width: min(100%,980px); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.system-strip { background: #fff; }
.system-strip-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 36px; gap: 24px; }
.system-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.system-item > svg { width: 24px; flex: none; color: var(--muted); }
.system-item strong, .system-item > span > span { display: block; }
.system-item strong { font-size: 14px; font-weight: 600; }
.system-item > span > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.section { padding-block: 80px; }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 48px; }
.section-label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 17px; font-weight: 600; }
.section-head h2, .privacy-layout h2, .contact-copy h2 { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -.5px; text-wrap: balance; }
.flow { background: var(--dark); color: #fff; }
.flow .section-label { color: #ccc; }
.flow-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); column-gap: 64px; align-items: center; }
.flow-visual { position: relative; grid-row: 1 / 3; height: 460px; overflow: hidden; background: #252527; }
.flow-visual svg { width: 100%; height: 100%; }
.flow-zone { fill: rgba(41,151,255,.07); stroke: var(--on-dark-link); stroke-width: 1.5; stroke-dasharray: 5 6; }
.flow-line { fill: none; stroke: #777; stroke-width: 2; stroke-dasharray: 5 7; }
.flow-progress { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 73; transition: stroke-dashoffset 700ms var(--ease); }
.flow-boat { transform: translate(248px,280px); transform-box: view-box; transform-origin: 0 0; transition: transform 700ms var(--ease); }
.flow-visual[data-step='2'] .flow-progress { stroke-dashoffset: 8; }
.flow-visual[data-step='3'] .flow-progress { stroke-dashoffset: 0; }
.flow-visual[data-step='2'] .flow-boat { transform: translate(312px,234px); }
.flow-visual[data-step='3'] .flow-boat { transform: translate(320px,228px); }
.flow-visual[data-step='3'] .flow-zone { fill: rgba(41,151,255,.18); stroke-dasharray: none; }
.flow-caption { position: absolute; inset: auto 24px 20px; display: flex; justify-content: space-between; gap: 12px; color: #aaa; font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-controls { align-self: end; display: flex; gap: 24px; border-bottom: 1px solid #555; margin-bottom: 28px; }
.flow-tab { flex: 1; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #ccc; font-size: 14px; }
.flow-tab[aria-pressed=true] { color: #fff; border-bottom-color: var(--on-dark-link); }
.flow-steps { align-self: start; min-height: 220px; }
.flow-step { display: grid; grid-template-columns: minmax(0,1fr); }
/* All stages contribute their height; changing stages never shifts the page. */
.flow-steps.is-playing { display: grid; align-content: start; }
.flow-steps.is-playing .flow-step { grid-area: 1 / 1; align-self: start; }
.flow-steps.is-playing .flow-step:not(.active) { visibility: hidden; pointer-events: none; }
.step-indicator { display: none; }
.flow-step h3 { font-size: 28px; line-height: 1.14; letter-spacing: -.3px; margin: 0; }
.flow-step p { color: #ccc; margin: 20px 0; font-size: 17px; }
.flow-data { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #aaa; font-size: 12px; }
.capabilities { background: #fff; }
.cap-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cap-item { background: var(--parchment); padding: 48px; min-height: 270px; }
.cap-meta { display: block; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.cap-item h3 { font-size: 28px; line-height: 1.14; letter-spacing: -.3px; margin: 0; }
.cap-item p { max-width: 44ch; color: var(--muted); margin: 20px 0 0; }
.privacy-band { padding-block: 100px; background: #2a2a2c; color: #fff; }
.privacy-layout { max-width: 800px; text-align: center; }
.privacy-layout p { margin: 28px auto 0; max-width: 740px; font-size: 24px; font-weight: 300; line-height: 1.5; color: #ccc; }
.plans { background: var(--parchment); }
.plan-table { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.plan-row { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.plan-row h3 { font-size: 24px; line-height: 1.17; letter-spacing: -.3px; margin: 0; min-height: 2.34em; }
.plan-row p { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.package-features { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.package-features li { padding-left: 18px; position: relative; }
.package-features li:before { position: absolute; left: 0; content: '\2713'; color: var(--muted); }
.plan-select { margin-top: auto; background: var(--primary); color: #fff; font-size: 14px; }
.contact { background: #fff; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 80px; }
.contact-copy p { color: var(--muted); margin: 24px 0; }
.contact-note { display: flex; gap: 12px; margin-top: 40px; color: var(--muted); font-size: 12px; }
.contact-note svg { width: 24px; height: 24px; flex: none; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; }
.field input, .field select { width: 100%; min-height: 50px; border: 1px solid #86868b; border-radius: 8px; background: #fff; color: var(--ink); padding: 12px; }
.field input::placeholder { color: var(--muted); }
.field input[aria-invalid=true] { border-color: #b3261e; }
.error { min-height: 18px; color: #b3261e; font-size: 12px; }
.form-summary { display: none; padding: 14px; margin-bottom: 20px; border: 1px solid #b3261e; border-radius: 8px; color: #b3261e; font-size: 14px; }
.form-summary.show { display: block; }
.submit { width: 100%; }
.submit:disabled { opacity: .6; cursor: wait; }
.fine { color: var(--muted); font-size: 12px; }
.success { display: none; padding-block: 32px; }
.success.show { display: block; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); }
.success h3 { font-size: 28px; margin: 24px 0 12px; }
.success p { color: var(--muted); }
.footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom,0px)); background: var(--parchment); color: var(--muted); font-size: 12px; }
.footer-main { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 32px; }
.footer-copy { max-width: 38ch; margin-top: 16px; }
.footer-col strong { color: var(--ink); font-weight: 600; }
.footer-col a { display: block; color: var(--muted); line-height: 2.41; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
#panel-notice { width: min(480px,calc(100% - 32px)); padding: 32px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
#panel-notice::backdrop { background: rgba(0,0,0,.5); }
#panel-notice h2 { margin: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress-bar { display: block; width: 100%; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }
/* Progressive enhancement: missing JS or observer support never hides content. */
.motion-ready .line-reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease),transform 700ms var(--ease); }
.motion-ready .line-reveal.visible { opacity: 1; transform: none; }
.motion-ready .dashboard { transition-duration: 900ms; }
@keyframes status-pulse { 50% { opacity: .35; } }
@media (hover:hover) {
  .button-primary:hover, .submit:hover, .plan-select:hover, .nav-links .button:hover { background: #0071e3; }
  .button-secondary:hover { background: #e8f2fc; }
  .nav-links a:hover, .footer-col a:hover { color: var(--primary); }
  .flow-tab:hover { color: #fff; }
}
@media (max-width:1068px) {
  h1 { font-size: 40px; }
  .nav-links { gap: 16px; }
  .flow-layout { column-gap: 32px; }
  .plan-row { padding: 24px; }
  .contact-layout { gap: 40px; }
}
@media (max-width:833px) {
  .container { width: min(calc(100% - 48px),var(--max)); }
  .menu-button { display: flex; }
  .nav-links { position: absolute; inset: 100% 0 auto; display: none; padding: 20px 24px 28px; gap: 8px; background: var(--parchment); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 100px); overflow: auto; }
  .nav-links > a { font-size: 17px; }
  .nav-links .button { min-height: 44px; font-size: 14px; }
  .language-switch { justify-content: center; }
  .hero { padding-top: 48px; }
  .hero-lead { font-size: 19px; }
  .dash-body { grid-template-columns: minmax(0,1fr) 160px; }
  .map-panel { min-height: 340px; }
  .system-strip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
  .system-item { justify-content: flex-start; }
  .flow-layout { grid-template-columns: minmax(0,1fr); row-gap: 24px; }
  .flow-visual { grid-row: auto; height: 320px; }
  .flow-controls { margin: 0; }
  .flow-steps { min-height: 180px; }
  .cap-item { padding: 32px; }
  .plan-table { grid-template-columns: minmax(0,1fr); }
  .plan-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 24px; padding: 32px; }
  .plan-row h3 { min-height: 0; }
  .plan-select { justify-self: start; }
  .contact-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 24px; }
  h1 { font-size: 34px; }
  .product-label { font-size: 17px; }
  .hero-lead { font-size: 17px; max-width: 38ch; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .hero-actions .button { font-size: 14px; padding-inline: 18px; }
  .proof-line { gap: 10px 16px; margin-bottom: 32px; }
  .dashboard { border-radius: 11px; }
  .dash-head { padding: 12px 16px; }
  .dash-time { font-size: 10px; }
  .dash-body { grid-template-columns: minmax(0,1fr); }
  .map-panel { min-height: 280px; }
  .map-status { top: 12px; left: 12px; font-size: 10px; }
  .dash-side { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-left: 0; border-top: 1px solid var(--line); }
  .side-title { display: none; }
  .metrics { display: contents; }
  .metric { padding: 16px 12px; }
  .metric strong { font-size: 17px; }
  .metric span { font-size: 9px; }
  .event-card { grid-column: 1/-1; margin: 0 12px 12px; min-height: 42px; padding: 10px 12px; }
  .event-card strong, .event-card span { display: inline; font-size: 10px; }
  .event-card span { margin-left: 8px; }
  .preview-toolbar { font-size: 10px; gap: 8px; margin-top: 12px; }
  .system-strip-grid { gap: 24px 16px; }
  .system-item { gap: 10px; }
  .system-item strong { font-size: 12px; }
  .system-item > span > span { font-size: 10px; }
  .system-item > svg { width: 20px; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .privacy-layout h2, .contact-copy h2 { font-size: 32px; }
  .section-label { font-size: 14px; margin-bottom: 12px; }
  .flow-visual { height: 280px; }
  .flow-caption { inset: auto 16px 16px; font-size: 10px; }
  .flow-step h3 { font-size: 24px; }
  .flow-steps { min-height: 240px; }
  .cap-grid { grid-template-columns: minmax(0,1fr); }
  .cap-item { padding: 32px; min-height: 0; }
  .cap-item h3 { font-size: 24px; }
  .privacy-band { padding-block: 64px; }
  .privacy-layout p { font-size: 21px; }
  .plan-row { display: flex; padding: 28px; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .footer-main { gap: 24px; }
  .footer-col { min-width: 90px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width:419px) {
  h1 { font-size: 28px; }
  .global-nav .container > div { gap: 24px; }
  .brand-text strong { font-size: 19px; }
}
@media (prefers-reduced-transparency:reduce) {
  .header { background: var(--parchment); backdrop-filter: none; }
  .map-status { background: #fff; }
}
@media (prefers-contrast:more) {
  :root { --muted: #454549; --line: #86868b; }
  .header { background: var(--parchment); border-bottom-color: var(--ink); }
  .flow-step p, .flow-caption, .flow-data, .privacy-layout p { color: #fff; }
}
