/* ============================================================
   Oceanograph — oceanograph.app
   Marketing + legal styles. Designed light/dark bands (Apple-style),
   plus theme-aware legal pages.
   ============================================================ */

:root {
  --navy: #04121f;
  --navy-2: #072a3a;
  --teal: #0f9fb0;
  --teal-bright: #23c4d4;
  --cyan: #57e0ec;
  --ink: #0a1720;
  --muted: #5d6f7c;
  --line: #e5eaee;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --card: #ffffff;
  --titanium-1: #cfccc4;
  --titanium-2: #97948c;
  --titanium-3: #66645d;
  --action: #ff7a1a;
  --radius: 22px;
  --maxw: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.brand svg { width: 26px; height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px; font-weight: 650; color: #fff !important;
  background: var(--ink); padding: 8px 16px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  background: #fff; color: var(--navy); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--dark { background: var(--ink); color: #fff; }

/* ---------- Hero (full-bleed underwater photo) ---------- */
.hero { position: relative; color: #fff; background: #04121f; overflow: hidden; }
.hero__media {
  display: flex; align-items: flex-end;
  min-height: min(84vh, 780px);
  background:
    linear-gradient(90deg, rgba(4,18,31,.94) 0%, rgba(4,18,31,.6) 38%, rgba(4,18,31,.05) 70%, transparent 100%),
    linear-gradient(0deg, rgba(4,18,31,.9) 0%, rgba(4,18,31,.1) 42%, transparent 62%),
    url("/assets/hero-dive-app.webp");
  background-size: cover; background-position: 60% 40%;
}
.hero__media .wrap { position: relative; z-index: 2; padding: 128px 0 62px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 76px); font-weight: 700; letter-spacing: -.035em;
  line-height: 1.03; max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero .lead {
  margin-top: 22px; font-size: clamp(17px, 2vw, 22px); font-weight: 400;
  color: rgba(255,255,255,.86); max-width: 48ch;
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 40ch; }
.chip {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.94);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

/* ---------- Screenshot panels (clean, no fake bezel) ---------- */
.iphone { position: relative; width: 280px; }
.iphone::before, .iphone::after { display: none; }
.iphone__screen {
  position: relative; overflow: hidden; background: #000;
  border-radius: 13.5% / 6.2%;
  box-shadow: 0 44px 90px -28px rgba(4,18,31,.55), 0 4px 12px rgba(4,18,31,.18),
    inset 0 0 0 1px rgba(0,0,0,.06);
}
.iphone__screen img { width: 100%; display: block; }
.section--dark .iphone__screen, .section--dark .watch__screen { box-shadow: 0 44px 90px -26px rgba(0,0,0,.7); }

.watch { position: relative; width: 220px; }
.watch__action, .watch__crown, .watch__side { display: none; }
.watch__screen {
  position: relative; overflow: hidden; background: #000; border-radius: 24%;
  box-shadow: 0 30px 58px -20px rgba(4,18,31,.55), 0 3px 10px rgba(4,18,31,.2),
    inset 0 0 0 1px rgba(255,255,255,.05);
}
.watch__screen img { width: 100%; display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  color: #fff;
  background: radial-gradient(100% 120% at 20% 0%, rgba(35,196,212,.16), transparent 55%),
              linear-gradient(180deg, #05131f, #071c28);
}
.section h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; }
.section .kicker { max-width: 52ch; margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); }
.section--dark .kicker { color: rgba(255,255,255,.72); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split--reverse .copy { order: 2; }
.split--reverse .art { order: 1; }
.split .art { display: flex; justify-content: center; }
.split .art--pair { gap: 18px; }

.feature-list { margin-top: 28px; display: grid; gap: 18px; }
.feature-list .item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.feature-list .item svg { width: 22px; height: 22px; margin-top: 3px; color: var(--teal); }
.section--dark .feature-list .item svg { color: var(--cyan); }
.feature-list .item h3 { font-size: 17px; font-weight: 650; }
.feature-list .item p { font-size: 15.5px; color: var(--muted); margin-top: 2px; }
.section--dark .feature-list .item p { color: rgba(255,255,255,.68); }

/* ---------- Precision stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.stat-band .stat { border-left: 2px solid rgba(35,196,212,.5); padding-left: 18px; }
.stat-band .num { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.stat-band .lab { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.66); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; align-items: end; }
.gallery .iphone { width: 100%; }
.gallery figcaption { margin-top: 16px; text-align: center; }
.gallery figcaption b { display: block; font-size: 16px; font-weight: 650; }
.gallery figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- Safety ---------- */
.safety-card {
  margin-top: 36px; border-radius: 24px; padding: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.safety-card ul { list-style: none; display: grid; gap: 14px; }
.safety-card li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; font-size: 15.5px; color: rgba(255,255,255,.8); }
.safety-card li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }

/* ---------- CTA ---------- */
.closer { text-align: center; }
.closer h2 { margin: 0 auto; }
.closer .lead { max-width: 46ch; margin: 18px auto 0; color: rgba(255,255,255,.78); font-size: 19px; }

/* ---------- Footer ---------- */
footer.site {
  background: #06121c; color: rgba(255,255,255,.6); padding: 46px 0; font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer.site a { color: rgba(255,255,255,.75); font-weight: 550; margin-right: 20px; }
footer.site a:hover { color: #fff; }
footer.site .maker a { color: rgba(255,255,255,.5); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .copy { order: 1; } .split--reverse .art { order: 2; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; gap: 40px; }
  .hero-stage { flex-direction: column-reverse; align-items: center; min-height: 0; }
  .hero-stage .watch { left: 0; bottom: 0; margin-bottom: -30px; }
  .hero-stage .iphone { width: 260px; }
  /* Keep the two-watch pair inside the viewport on phones. */
  .art--pair { gap: 14px !important; }
  .art--pair .watch { width: clamp(128px, 39vw, 186px) !important; margin-top: 0 !important; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 68px 0; }
}

/* ============================================================
   Legal pages (privacy / terms / support) — theme-aware
   ============================================================ */
.legal { background: var(--bg); }
.legal .wrap { padding-top: 44px; padding-bottom: 76px; }
.legal h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 6px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal h3 { font-size: 16px; margin-top: 22px; }
.legal p, .legal li { color: #26323c; font-size: 15.5px; margin-top: 10px; }
.legal ul, .legal ol { margin-left: 22px; }
.legal strong { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root { --ink:#eaf1f5; --muted:#94a4b1; --line:#1d2a35; --bg:#0a121a; --bg-soft:#0e1822; --card:#111d28; }
  body { background: var(--bg); }
  .nav { background: rgba(10,18,26,.72); border-color: rgba(255,255,255,.08); }
  .brand { color: var(--ink); }
  .nav-cta { background:#fff; color:#06121c !important; }
  .legal p, .legal li { color:#c7d3dc; }
}

/* ============================================================
   Print (Save as PDF): keep backgrounds, cap media sizes,
   avoid breaking elements across pages.
   ============================================================ */
@media print {
  html, body { overflow: visible !important; background: #fff !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .nav { position: static !important; }
  .nav-links a:not(.nav-cta) { display: inline-block !important; }
  .section { padding: 34px 0 !important; }
  .hero__media { min-height: 470px !important; background-position: 58% 42% !important; }
  .hero h1 { font-size: 46px !important; }
  /* icons must never balloon in print */
  .feature-list .item svg, .safety-card li svg { width: 20px !important; height: 20px !important; }
  .brand svg { width: 24px !important; height: 24px !important; }
  /* device screenshots: modest and self-contained */
  .iphone { width: 200px !important; }
  .watch { width: 150px !important; margin-top: 0 !important; }
  .iphone__screen, .watch__screen { overflow: hidden !important; }
  .art--pair { gap: 16px !important; }
  img, svg { max-width: 100% !important; }
  /* keep logical blocks together */
  .split, .feature-list .item, figure, .card, .stat, .stat-band, .safety-card,
  .iphone, .watch, section { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  a:not(.btn):not(.nav-cta) { text-decoration: none !important; }
  .btn { color: var(--navy) !important; }
  .btn--ghost { color: #fff !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on .reveal.visible { opacity: 1; transform: none; }
.feature-list .item.reveal:nth-child(2) { transition-delay: .06s; }
.feature-list .item.reveal:nth-child(3) { transition-delay: .12s; }
.feature-list .item.reveal:nth-child(4) { transition-delay: .18s; }
.gallery figure.reveal:nth-child(2) { transition-delay: .08s; }
.gallery figure.reveal:nth-child(3) { transition-delay: .16s; }
.stat.reveal:nth-child(2) { transition-delay: .06s; }
.stat.reveal:nth-child(3) { transition-delay: .12s; }
.stat.reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .reveal-on .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 42px; text-align: left; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(11,22,32,.05);
}
.price-card--pro { background: linear-gradient(165deg, #05131f, #0a3947); border: none; color: #fff; }
.price-card h3 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.price-card--pro h3 { color: var(--cyan); }
.price-card .price { margin-top: 10px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.price-card .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card--pro .price span { color: rgba(255,255,255,.7); }
.price-card ul { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.price-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: #37444e; }
.price-card--pro li { color: rgba(255,255,255,.85); }
.price-card li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
.price-card--pro li svg { color: var(--cyan); }
.price-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
