/* SeaVectors subscribe page — colors from the iOS paywall's PaywallStyle. */
:root {
  --bg: #08121f;
  --card: #111f30;
  --line: rgba(255, 255, 255, .08);
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .45);
  --cyan: #40d1ed;
  --sky: #73adff;
  --green: #5cdb94;
  --amber: #ffbd4d;
  --coral: #ff6b66;
  --violet: #b38cff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -.035em; line-height: 1.05; font-weight: 800; }
a { color: inherit; }
img, video { display: block; }

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

.btn {
  display: inline-block; padding: 15px 28px; border-radius: 14px;
  background: linear-gradient(90deg, #0d73f2, #1ab3e6); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { font-size: 17px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(8, 18, 31, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { height: 19px; width: auto; }

/* Hero */
.hero { padding: 88px 0 48px; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--green); background: rgba(92, 219, 148, .1); }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 7vw, 76px); }
.lede { margin: 20px auto 32px; max-width: 30em; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }

/* Thin iPad frame (landscape), matching the video gallery cards: an iPad Air 11-inch
   screen (2360 × 1640) with a slim dark bezel and a fine edge highlight, drawn as
   rings outside the screen. The screen takes its height from its own width
   (padding-top: 1640/2360), so the frame never depends on aspect-ratio or
   percentage heights — which Safari resolves differently from Chrome. */
.ipad {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: #000;
  box-shadow:
    0 0 0 6px #1b1d20,
    0 0 0 7px #3a3d42,
    0 40px 100px -20px rgba(0, 0, 0, .8),
    0 0 100px color-mix(in srgb, var(--c, #40a0f0) 14%, transparent);
}
.ipad-camera { display: none; }
.ipad-screen {
  position: relative; width: 100%; height: 0; padding-top: 69.49%;
  border-radius: inherit;
  overflow: hidden; background: #000;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: clip videos to the rounded corners */
}
.ipad-screen > video, .ipad-screen > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ipad-screen > video { object-fit: cover; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.clip.is-active { opacity: 1; }

/* Per-pillar tabs, like the paywall's media switch. */
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 22px auto 0; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; }
.tabs button { padding: 8px 16px; border: 0; border-radius: 9px; cursor: pointer; font: 600 14px Inter, sans-serif; color: var(--muted); background: none; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--c); color: var(--bg); }

/* Six pillars, each with its own iPad. */
/* No heading or divider: the first card follows the hero directly. */
.pillars { padding: 0 0 32px; }
.pillars h2, .pricing h2 { font-size: clamp(32px, 4.5vw, 48px); }
/* One centered column at every width: copy, then the iPad beneath it. */
.pillar { padding: 80px 0; }
.pillar:first-child { padding-top: 40px; }
.pillar-copy { max-width: 620px; margin: 0 auto 32px; }
.pillar-media { max-width: 820px; margin-inline: auto; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--c); }
.pillar h3 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pillar-copy p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--faint); }
.pulse { transform-origin: 866px 330px; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* Coverage globe */
.coverage { padding: 96px 0; border-top: 1px solid var(--line); }
.coverage h2 { font-size: clamp(32px, 4.5vw, 48px); }
.coverage .sub { margin: 16px auto 0; max-width: 34em; color: var(--muted); font-size: 17px; }
.map-card {
  position: relative; margin-top: 40px; border-radius: 28px; overflow: hidden;
  background: #0a1828;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.map { height: min(640px, 72vw); min-height: 380px; opacity: 0; transition: opacity .8s; }
.map.is-ready { opacity: 1; }
.map .maplibregl-ctrl-attrib { background: rgba(8, 18, 31, .6); color: var(--faint); font-size: 10px; }
.map .maplibregl-ctrl-attrib a { color: var(--faint); }
.map .maplibregl-cooperative-gesture-screen { font: 600 14px Inter, sans-serif; background: rgba(8, 18, 31, .7); }
.legend {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; border-radius: 14px;
  background: rgba(8, 18, 31, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legend button {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 13px Inter, sans-serif; color: #fff; background: none; white-space: nowrap;
}
.legend button span { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.legend button[aria-pressed="false"] { color: var(--faint); }
.legend button[aria-pressed="false"] span { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.current-dot {
  width: 10px; height: 10px; border-radius: 50%; cursor: default;
  background: var(--sky); box-shadow: 0 0 0 2px rgba(8, 18, 31, .9), 0 0 0 5px rgba(115, 173, 255, .25);
}
.current-tip {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font: 500 12px Inter, sans-serif; color: var(--muted); background: rgba(8, 18, 31, .9);
  box-shadow: inset 0 0 0 1px rgba(115, 173, 255, .5);
  opacity: 0; transition: opacity .15s;
}
.current-tip b { color: #fff; }
.current-dot:hover .current-tip, .current-dot:focus .current-tip { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.stats div { padding: 8px 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.stats span { font-size: 14px; color: var(--faint); }

/* Pricing */
.pricing { padding: 96px 0 112px; border-top: 1px solid var(--line); }
.plans { display: flex; justify-content: center; gap: 16px; margin: 40px 0 32px; }
.plan { position: relative; width: 200px; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan.best { box-shadow: inset 0 0 0 2px var(--cyan); }
.plan b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.plan span { color: var(--faint); font-size: 14px; }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--bg); font-size: 12px; font-weight: 800; white-space: nowrap; }
.timeline { max-width: 520px; margin: 36px auto 0; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.timeline h3 { margin: 0 0 16px; font-size: 20px; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li > i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; }
.timeline .t-green > i { color: var(--green); background: rgba(92, 219, 148, .15); }
.timeline .t-cyan > i { color: var(--cyan); background: rgba(64, 209, 237, .15); }
.timeline .t-sky > i { color: var(--sky); background: rgba(115, 173, 255, .15); }
.timeline b { display: block; font-size: 15px; }
.timeline span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pricing .fine { max-width: 34em; margin-inline: auto; font-size: 13px; }

/* Footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .pillar { padding: 48px 0; }
  .pillar-copy { margin-bottom: 28px; }
  .coverage, .pricing { padding-block: 64px; }
  .pillars { padding-bottom: 32px; }
  .pillar:first-child { padding-top: 24px; }
  .legend { left: 12px; right: 12px; transform: none; justify-content: center; flex-wrap: wrap; bottom: 12px; }
  .legend button { padding: 6px 8px; font-size: 12px; gap: 6px; }
  .map { height: 340px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stats div + div { border-left: 0; }
  .tabs button { padding: 7px 11px; font-size: 13px; }
  .plans { gap: 12px; }
  .plan { flex: 1; padding: 18px 10px; }
  .plan b { font-size: 28px; }
  .foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .clip { transition: none; }
  .pulse { animation: none; }
  .map { transition: none; }
}

/* Top line linking to the comparison page */
.topline {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  padding: 10px 16px; font-size: 14px; text-decoration: none;
  background: linear-gradient(90deg, rgba(13, 115, 242, .35), rgba(64, 209, 237, .25), rgba(92, 219, 148, .25));
  border-bottom: 1px solid var(--line);
}
.topline b { font-weight: 800; }
.topline span { color: var(--muted); }
.topline:hover span { color: #fff; }
.topline i { font-size: 12px; margin-left: 2px; transition: transform .2s; }
.topline:hover i { transform: translateX(3px); }
.map .maplibregl-ctrl-group { background: rgba(8, 18, 31, .8); box-shadow: inset 0 0 0 1px var(--line); }
.map .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) opacity(.75); }
.pillar-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--c); text-decoration: none; }
.pillar-link:hover { text-decoration: underline; }
.pillar-link i { font-size: 12px; }

.watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--cyan); text-decoration: none; }
.watch:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .ipad { border-radius: 12px; box-shadow: 0 0 0 5px #1b1d20, 0 0 0 6px #3a3d42, 0 30px 60px -20px rgba(0, 0, 0, .8); }
}
