/* Marine Maps — site styles */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --ink: #0b1220;
  --muted: #5b6678;
  --line: #e3e8ef;
  --accent: #0a84ff;
  --navy: #061a33;
  --navy-2: #0b3157;
  --sea-ink: #eaf3ff;
  --gold: #f5c451;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080f;
    --surface: #0c1320;
    --ink: #eef3fa;
    --muted: #9aa8bb;
    --line: #1b2638;
    --accent: #4aa3ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

h1, h2, h3, h4 { letter-spacing: -0.025em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #ffffff; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 760px; }

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  header.site { background: rgba(5, 8, 15, .72); }
}

header.site .wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.site a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
nav.site a:hover { color: var(--ink); text-decoration: none; }

header.site.on-dark {
  background: rgba(6, 26, 51, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
header.site.on-dark .brand { color: #ffffff; }
header.site.on-dark nav.site a { color: rgba(255, 255, 255, .75); }
header.site.on-dark nav.site a:hover { color: #ffffff; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  font: 650 17px/1.2 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  color: #ffffff;
  background:
    radial-gradient(1200px 600px at 80% -10%, #12508f 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}

.hero .contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(255, 255, 255, .07);
  fill: none;
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: end;
}

.hero .copy { padding-bottom: 96px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero .eyebrow {
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 64px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin: 0 0 32px;
  max-width: 30em;
  font-size: 21px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.free {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(245, 196, 81, .38);
  border-radius: 999px;
  background: rgba(245, 196, 81, .1);
  color: var(--gold);
  font-size: 15px;
  font-weight: 650;
}

.trust {
  margin: 26px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

/* Device frames */

.devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 660px;
}

.phone {
  width: 300px;
  aspect-ratio: 1320 / 2868;
  padding: 10px;
  border-radius: 52px;
  background: #0d0f14;
  box-shadow: 0 0 0 2px #2a2f3a, 0 40px 80px rgba(0, 0, 0, .45);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
}

.watch {
  width: 170px;
  aspect-ratio: 422 / 514;
  padding: 12px;
  border-radius: 46px;
  background: #15181f;
  box-shadow: 0 0 0 2px #2c313c, 0 30px 60px rgba(0, 0, 0, .5);
}
.watch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.devices .watch {
  position: absolute;
  left: calc(50% - 205px);
  bottom: 24px;
}

.ipad {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 2064 / 2752;
  padding: 14px;
  border-radius: 36px;
  background: #0d0f14;
  box-shadow: 0 0 0 2px #2a2f3a, 0 40px 80px rgba(0, 0, 0, .35);
}
.ipad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Sections */

.section { padding: 112px 0; }
.section.alt { background: var(--surface); }

.section-head { margin: 0 0 56px; max-width: 760px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }

.section .eyebrow { color: var(--accent); }

.section h2 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
}

.lead {
  margin: 0;
  max-width: 36em;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.section-head.center .lead { margin: 0 auto; }

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature + .feature { margin-top: 104px; }

.feature .media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature.reverse .media { order: 2; }

.feature .text { max-width: 33em; }

.checks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230a84ff'/%3E%3Cpath d='M6.8 12.4l3.3 3.3L17.2 8.4' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* Watch strip */

.watch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Mini-feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.section.alt .tile { background: var(--bg); }

.tile .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(10, 132, 255, .1);
  color: var(--accent);
}
.tile .ico svg { width: 22px; height: 22px; display: block; }

.tile h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.tile p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Free band */

.band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(900px 400px at 85% 0%, #12508f 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.band h2 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}
.band p {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}
.band .gold { color: var(--gold); }

/* Safety note */

.safety {
  margin: 40px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
  color: var(--muted);
}
.section.alt .safety { background: var(--bg); }
.safety strong { color: var(--ink); }

/* Notices inside documents */

.note {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
}
.note strong { color: var(--ink); }

/* Footer */

footer.site {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

footer.site .cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

footer.site .brand { color: var(--ink); }

footer.site .about {
  margin: 16px 0 0;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

footer.site h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

footer.site ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
footer.site li { margin: 9px 0; }

footer.site ul a {
  color: var(--ink);
  font-size: 15px;
}
footer.site ul a:hover { color: var(--accent); text-decoration: none; }

footer.site .legal {
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Documents */

article.doc { padding: 64px 0 96px; }

article.doc h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
}

article.doc .updated {
  margin: 0 0 36px;
  font-size: 15px;
  color: var(--muted);
}

article.doc h2 {
  margin: 48px 0 12px;
  padding-top: 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}

article.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 650;
}

article.doc p,
article.doc li {
  font-size: 17px;
  line-height: 1.6;
}
article.doc li { margin: 8px 0; }

article.doc table {
  width: 100%;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

article.doc th,
article.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

article.doc th {
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

article.doc tr:last-child td { border-bottom: 0; }

article.doc a { text-decoration: none; }
article.doc a:hover { text-decoration: underline; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive */

@media (max-width: 980px) {
  .hero { padding-top: 96px; }
  .hero > .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero .copy { padding-bottom: 24px; }
  .hero h1 { font-size: 52px; }

  .devices {
    height: auto;
    padding: 8px 0 32px;
  }
  .devices .phone { width: 260px; }
  .devices .watch {
    width: 140px;
    left: calc(50% - 176px);
    bottom: 12px;
  }

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .feature.reverse .media { order: 0; }
  .feature .media { order: 0; }
  .feature .text { max-width: none; }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px;
  }

  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  nav.site { gap: 16px; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  /* Only Support stays in the bar on phones; the footer carries the rest. */
  nav.site a:not([href="/support"]) { display: none; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 19px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 32px; }
  .lead { font-size: 18px; }
  .band { padding: 32px; }
  .band h2 { font-size: 30px; }
  article.doc h1 { font-size: 34px; }
  article.doc h2 { font-size: 23px; }
  footer.site { padding: 44px 0 32px; }
  footer.site .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
