/* Nautis — mobile landing page
   Standalone stylesheet for /m/index.html. Mirrors the desktop design
   language (desktop.css) but tuned for a single-column, natural vertical
   scroll. The shared /style.css (used by legal pages) is untouched.
   Palette + fonts unchanged from the brand: navy, blue, near-white, slate.
*/

:root {
  --nautis-bg: #F8FCFF;
  --nautis-surface: #FFFFFF;
  --nautis-surface-highlight: #E3F2FD;
  --nautis-border-subtle: #E3F2FD;

  --nautis-navy: #0A3D62;
  --nautis-navy-deep: #072A44;
  --nautis-blue: #3B82F6;

  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;

  --gutter: clamp(22px, 7vw, 40px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--nautis-bg);
  color: var(--slate-800);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--nautis-blue); text-decoration: none; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ────────────────────────────────────────────────────────────
   Typography
   ──────────────────────────────────────────────────────────── */
h1, h2, h3 {
  color: var(--nautis-navy);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
}

.lede {
  font-size: clamp(1.05rem, 4.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0;
  text-wrap: pretty;
}

.lede + .lede { margin-top: 1em; }
h2 + .lede { margin-top: 20px; }

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nautis-blue);
  margin-bottom: 16px;
  font-weight: 500;
}

.caption {
  margin-top: 18px;
  text-align: center;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.68rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────
   Sticky header
   The header (sticky chrome + mobile hamburger/drawer) now lives in
   src/components/Header.astro with scoped styles shared by every page. Its
   base visibility rules are :global, so the homepage's hidden-over-hero
   toggle below still applies.
   ──────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--gutter) 72px;
  overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }

.hero .logo { width: 96px; height: 96px; margin: 0 auto; }

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-top: 28px;
  color: var(--nautis-navy);
  letter-spacing: -0.025em;
}

.hero .lockup {
  font-size: 26px;
  font-weight: 300;
  color: var(--nautis-navy);
  margin-top: 28px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--slate-400);
  z-index: 1;
  animation: bob 2.4s var(--ease-out) infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ────────────────────────────────────────────────────────────
   Feature sections — single column, centered
   ──────────────────────────────────────────────────────────── */
.feature {
  padding: clamp(56px, 12vh, 96px) 0;
}

.feature .feature-copy {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.feature-media {
  margin-top: clamp(36px, 8vh, 56px);
  display: flex;
  justify-content: center;
}

/* Stacked phones (front over behind, peeking) */
.devices {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  filter: drop-shadow(0 24px 48px rgba(10, 61, 98, 0.16));
}

.devices img { width: clamp(150px, 42vw, 210px); position: relative; }
.devices .front { z-index: 2; }
.devices .behind {
  margin-left: clamp(-72px, -18vw, -58px);
  margin-top: 0;
  z-index: 1;
  opacity: 0.96;
}

/* Single device */
.device-single {
  width: clamp(220px, 64vw, 300px);
  filter: drop-shadow(0 24px 48px rgba(10, 61, 98, 0.16));
}

/* Spread — center phone forward with two peeking behind (layered) */
.devices-spread {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(10, 61, 98, 0.16));
}

.devices-spread .center {
  width: clamp(150px, 42vw, 210px);
  position: relative;
  z-index: 3;
}

.devices-spread .side {
  width: clamp(112px, 31vw, 156px);
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.devices-spread .left { margin-right: clamp(-72px, -19vw, -56px); }
.devices-spread .right { margin-left: clamp(-72px, -19vw, -56px); }

/* ────────────────────────────────────────────────────────────
   Dark full-bleed band — The Radar
   ─────────────────────────────���────────────────────────────── */
.band-dark {
  background: radial-gradient(140% 120% at 80% 0%, var(--nautis-navy) 0%, var(--nautis-navy-deep) 60%);
  color: #EAF2F8;
  padding: clamp(64px, 13vh, 104px) 0;
}

.band-dark h2 { color: #FFFFFF; }
.band-dark .eyebrow { color: #7FB2F5; }
.band-dark .lede { color: #B9CCDC; }
.band-dark .caption { color: #8FA6B8; }

.band-head { max-width: 34rem; margin: 0 auto; text-align: center; }

/* Radar — layered spread (map center, trip left, log right).
   Reuses .feature-media for spacing so it matches the Friends section
   exactly; only the drop-shadow differs for the dark band. */
.radar-spread {
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.42));
}

/* ────────────────────────────────────────────────────────────
   On Watch — showcase (MacBook + phone overlap)
   ──────────────────────────────────────────────────────────── */
.onwatch {
  padding: clamp(56px, 12vh, 96px) 0 clamp(72px, 14vh, 120px);
}

.onwatch .band-head { text-align: center; max-width: 36rem; }

.showcase {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: clamp(44px, 9vh, 72px) auto 0;
}

.showcase .showcase-mac {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(10, 61, 98, 0.2));
}

.showcase .showcase-phone {
  position: absolute;
  bottom: -8%;
  right: -4%;
  width: 30%;
  filter: drop-shadow(0 20px 40px rgba(10, 61, 98, 0.28));
}

/* ────────────────────────────────────────────────────────────
   Offline-first — sync diagram
   ──────────────────────────────────────────────────────────── */
.offline {
  padding: clamp(56px, 12vh, 96px) 0;
  border-top: 1px solid var(--nautis-border-subtle);
}

.offline .band-head { text-align: center; max-width: 36rem; }

.sync-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: clamp(40px, 8vh, 64px) auto 0;
  background: var(--nautis-surface);
  border: 1px solid var(--nautis-border-subtle);
  border-radius: 22px;
  padding: clamp(32px, 8vw, 48px) clamp(20px, 6vw, 40px);
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(10, 61, 98, 0.06);
}

.diagram-node { text-align: center; }
.diagram-node.compact .diagram-label { font-size: 0.85rem; margin-top: 8px; }
.diagram-node.compact .diagram-sublabel { font-size: 0.7rem; }

.diagram-label { margin-top: 12px; font-size: 0.95rem; font-weight: 600; color: var(--nautis-navy); }
.diagram-sublabel { font-size: 0.78rem; color: var(--slate-500); margin-top: 2px; }

/* Vertical arrow between boat → cloud */
.diagram-arrow { text-align: center; }
.diagram-arrow svg { display: block; margin: 44px auto 26px; transform: rotate(90deg); }
.arrow-caption {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 0;
  font-weight: 600;
}

/* Fork to the two audiences */
.audience-fork { width: 100%; }
.fork-svg { display: block; margin: 6px auto 0; width: 200px; max-width: 80%; }

.audience-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.audience-cell { display: flex; justify-content: center; }

/* ────────────────────────────────────────────────────────────
   Footer
   The footer now lives in src/components/Footer.astro with scoped styles
   shared by every page; its responsive sizing folds the mobile scale into
   clamp() there.
   ──────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────
   Scroll-reveal motion
   ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
