:root {
  --paper: #f3f5f4;
  --ink: #10233a;
  --ink-2: rgba(16, 35, 58, 0.64);
  --ink-3: rgba(16, 35, 58, 0.44);
  --hairline: rgba(16, 35, 58, 0.12);
  --accent: #0077b6;
  --shoal: #dceaf2;
  --contour: #a9c4d4;
  --land: #e4eae8;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* Top bar */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--gutter);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.logo { width: 28px; height: 28px; border-radius: 7px; display: block; }
.bar .store { display: block; line-height: 0; transition: transform 0.18s ease; }
.bar .store img { width: 122px; height: auto; display: block; }
.bar .store:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--paper) 0 38%, rgba(243, 245, 244, 0) 62%);
}
.copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 118px;
  max-width: 620px;
}
@media (min-width: 900px) {
  .veil { background: linear-gradient(90deg, var(--paper) 0 30%, rgba(243, 245, 244, 0) 64%); }
  .copy { top: 50%; bottom: auto; right: auto; transform: translateY(-50%); }
}
h1 {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
h1 .w span { display: inline-block; will-change: transform; }
.lede {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
}
.badge { display: inline-block; line-height: 0; }
/* The hover transition is enabled only after the intro tween, because a CSS
   transition on a property GSAP is animating stops the tween from rendering. */
.badge.is-live { transition: transform 0.18s ease; }
.badge img { width: 168px; height: auto; display: block; }
.badge:hover { transform: translateY(-1px); }
.badge:active { transform: translateY(0); }

/* Phones: three real screens over the chart */
.phones { position: absolute; z-index: 1; display: flex; align-items: flex-end; margin: 0; }
.phone {
  margin: 0;
  flex: none;
  aspect-ratio: 738 / 1600;
  padding: 6px;
  border-radius: 40px;
  background: #0b1626;
  box-shadow: 0 40px 70px -30px rgba(16, 35, 58, 0.45), 0 0 0 1px rgba(16, 35, 58, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; }
.phone.main { width: clamp(190px, 17.5vw, 262px); z-index: 1; }
.phone.side { width: clamp(150px, 14vw, 214px); margin-bottom: -26px; }
.phone.l { margin-right: -44px; transform: rotate(-5deg); }
.phone.r { margin-left: -44px; transform: rotate(5deg); }
@media (min-width: 900px) {
  .phones { right: calc(var(--gutter) + 8px); top: 50%; transform: translateY(-46%); }
}
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  .phones { position: static; justify-content: center; margin: 96px auto 0; }
  .phone.main { width: 41vw; max-width: 200px; }
  .phone.side { width: 32vw; max-width: 158px; margin-bottom: -18px; }
  .phone.l { margin-right: -30px; }
  .phone.r { margin-left: -30px; }
  .copy { position: static; transform: none; margin: 22px var(--gutter) 0; padding-bottom: 8px; }
}

/* Footer row (shares the viewport on the landing page) */
.foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  padding: 22px var(--gutter);
  font-size: 13px;
  color: var(--ink-3);
}
.foot a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.foot a:hover { border-color: currentColor; }
.foot .note { margin-left: auto; }
@media (max-width: 899px) {
  .foot { position: static; margin-top: auto; }
  .foot .note { margin-left: 0; flex-basis: 100%; }
}

/* Chart drawing */
.chart .land { fill: var(--land); stroke: var(--contour); stroke-width: 1.25; }
.chart .shoal { fill: var(--shoal); opacity: 0.6; }
.chart .c { fill: none; stroke: var(--contour); stroke-width: 1.25; stroke-linecap: round; }
.chart .depth { font: 600 12px var(--font); fill: var(--contour); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.chart #route { fill: none; stroke: var(--contour); stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; }
.chart #progress { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.chart .wp circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.chart .wp text { font: 600 13px var(--font); fill: var(--ink); opacity: 0; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.chart .wp .t { fill: var(--ink-2); }
.chart .wp .d { fill: var(--accent); font-weight: 700; }
.chart #boat { opacity: 0; }
.chart #boat path { fill: var(--ink); }

/* Legal pages */
.doc-page .bar { position: static; }
.doc { max-width: 68ch; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; letter-spacing: -0.03em; }
.doc .meta { margin: 0 0 40px; font-size: 14px; color: var(--ink-3); }
.doc h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.doc p, .doc li { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: rgba(16, 35, 58, 0.84); }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc a { color: var(--accent); }
.doc-page .foot { position: static; padding-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .badge, .bar .store, .foot a { transition: none; }
}
