/* Marine AI Copilot website. One stylesheet, no framework, no external fonts:
   system faces keep the site fast and mean the pages request nothing from
   third parties, which keeps the privacy policy short. */

:root {
  --navy: #182340;
  --navy-deep: #111a30;
  --navy-line: #2a3760;
  --ink: #1c2130;
  --muted: #5c6674;
  --paper: #f3f5f8;
  --line: #dde2e9;
  --white: #ffffff;
  --gold: #d9a441;
  --gold-ink: #8a5f10;
  --link: #1a5c9e;
  --link-on-dark: #9fc6f0;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--gold); color: var(--navy-deep);
  padding: 8px 12px; border-radius: 6px; z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; padding-block: 8px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none; font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--white); text-decoration: none; opacity: 0.85; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; border-bottom: 2px solid var(--gold); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding-block: clamp(40px, 7vw, 88px);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.2rem; color: #d8deeb; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }
.hero .cta a { color: var(--link-on-dark); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; letter-spacing: 0.02em;
}
.hero-figure { margin: 0; justify-self: center; }
.hero-figure img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

/* Sections */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px;
}
.eyebrow .spark { color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.features li { border-top: 3px solid var(--gold); padding-top: 14px; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 1rem; }

.callout {
  margin-top: 36px; padding: 22px 26px; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper);
}
.callout h3 { margin-bottom: 6px; }
.callout p { color: var(--ink); font-size: 1rem; max-width: 72ch; }

.free-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px 48px; align-items: center; }
.free-list { display: grid; grid-template-columns: 1fr; gap: 20px 40px; margin: 0; padding: 0; list-style: none; }
.side-photo { margin: 0; }
.side-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(16, 24, 48, 0.22); }
.side-photo figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; text-align: center; }
.free-list li { padding-left: 26px; position: relative; }
.free-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--navy);
}
.free-list strong { display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.steps img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Screenshot gallery: a row that scrolls sideways with snap points */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--navy-line) transparent;
}
.gallery figure {
  flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: start;
}
.gallery img { width: 250px; aspect-ratio: 640 / 1391; }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.gallery-hint { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* Subscription */
.plan {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 30px;
}
.plan .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.plan .price small { display: block; font-family: var(--sans); font-size: 0.95rem; color: #c9d2e6; margin-top: 8px; }
.plan p { color: #e2e7f2; }
.plan a { color: var(--link-on-dark); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Text pages (support, legal) */
.page { padding-block: clamp(36px, 5vw, 64px); }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page h3 { margin-top: 1.5em; }
.page ul, .page ol { max-width: var(--measure); padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.notice {
  border-left: 4px solid var(--gold); background: var(--paper);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em;
}
.contact-card {
  display: grid; gap: 6px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 1.5em 0;
}
.contact-card .email { font-size: 1.25rem; font-weight: 650; }
.dateline { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d2e6; padding-block: 36px; font-size: 0.93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-footer a { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer p { margin: 0 0 4px; max-width: none; }

/* Phone width */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-figure { justify-self: start; }
  .hero-figure img { width: min(240px, 60vw); }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .free-layout { grid-template-columns: 1fr; }
  .free-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .features, .steps, .free-list { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .gallery figure, .gallery img { width: 220px; }
}

/* Full-width photograph between sections */
.photo-band {
  position: relative; min-height: 46vh; max-height: 560px; overflow: hidden;
  background: var(--navy-deep); display: flex; align-items: flex-end;
}
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .caption {
  position: relative; z-index: 1; width: 100%; margin: 0; max-width: none;
  padding: 80px 24px 22px; color: var(--white); font-size: 1rem;
  background: linear-gradient(to top, rgba(10, 14, 28, 0.72), rgba(10, 14, 28, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.photo-band .caption span { display: block; width: min(1120px, 100% - 8px); margin-inline: auto; }
.photo-band img { object-position: center 46%; }
