/* Sail Tactician — site styles
   Layered on top of colors_and_type.css tokens. */

* { box-sizing: border-box; }
html, body { background: var(--brand-deeper, #08080A); }

html { overflow-x: hidden; }

body {
  background: #07090C;
  color: var(--fg);
  overflow-x: hidden;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--lg { padding: 128px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lay);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--lay);
  display: inline-block;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 0 20px;
  text-wrap: balance;
}
.headline em {
  font-style: normal;
  color: var(--lay);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 32px;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7,9,12,0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: block;
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-brand-text b { font-weight: 800; color: var(--fg); }
.nav-brand-text span { font-weight: 800; color: var(--fg-2); margin-right: 5px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 800px) { .nav-links { display: none; } }

.nav-cta {
  background: var(--brand-tactic);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 120ms var(--ease-out);
}
.nav-cta:hover { background: var(--brand-tactic-hi); color: #fff; text-decoration: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% 0;
  z-index: -2;
  background:
    radial-gradient(120% 70% at 70% 0%, var(--brand-tactic) 0%, var(--brand-deep) 45%, #07090C 80%);
}
/* Default (image bg) — shows the photographic / cellular ocean image */
.hero[data-hero-bg="image"] .hero-bg {
  background:
    linear-gradient(180deg, rgba(7,9,12,0) 80%, #07090C 100%),
    url("../assets/hero-bg.png") center center / cover no-repeat,
    #0A2A44;
}
/* Grid variant — original radial + dot/grid lines */
.hero[data-hero-bg="grid"] .hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.045) 0 14%, transparent 15%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.04) 0 11%, transparent 12%),
    radial-gradient(circle at 86% 62%, rgba(255,255,255,.05) 0 9%, transparent 10%),
    radial-gradient(circle at 28% 78%, rgba(255,255,255,.04) 0 12%, transparent 13%),
    radial-gradient(circle at 56% 44%, rgba(255,255,255,.035) 0 10%, transparent 11%);
  mix-blend-mode: screen;
  filter: blur(0.5px);
}
.hero[data-hero-bg="grid"] .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,.04) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,.03) 95%);
  background-size: 80px 80px, 80px 80px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 560px;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--lay);
  font-style: normal;
  display: inline-block;
}
.hero p.lede {
  font-size: 1.2rem;
  color: rgba(244,247,250,0.78);
  max-width: 52ch;
  margin: 0 0 36px;
  line-height: 1.5;
}

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

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 20px 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 120ms var(--ease-out), transform 80ms var(--ease-out);
}
.app-store-btn, .app-store-btn:hover { color: #fff; }
.app-store-btn:hover { border-color: rgba(255,255,255,0.40); text-decoration: none; }
.app-store-btn:active { transform: scale(0.98); }
.app-store-btn svg { width: 24px; height: 24px; flex: none; }
.app-store-btn .tx { display: flex; flex-direction: column; line-height: 1; }
.app-store-btn .tx small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.app-store-btn .tx span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms var(--ease-out);
}
.ghost-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); color: #fff; text-decoration: none; }
.ghost-btn .play {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--lay);
  color: #07090C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  max-width: 540px;
}
.hero-stats .st { padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.08); }
.hero-stats .st:last-child { border-right: none; padding-right: 0; padding-left: 16px; }
.hero-stats .st:not(:first-child):not(:last-child) { padding-left: 16px; }
.hero-stats .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums slashed-zero;
}
.hero-stats .lab {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(244,247,250,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Watch + phone visuals (in hero)
   ============================================================ */

.hero-device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

/* ============================================================
   Pillars strip
   ============================================================ */

.pillars {
  background: #0A0C10;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 36px 0;
}
.pillars .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .pillars .wrap { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.pillar { display: flex; flex-direction: column; gap: 6px; }
.pillar .lab {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pillar .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums slashed-zero;
}
.pillar .num .u { font-size: 14px; color: var(--fg-3); margin-left: 4px; font-weight: 500; }
.pillar .desc { font-size: 13px; color: var(--fg-2); line-height: 1.4; }

/* ============================================================
   Feature blocks
   ============================================================ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
@media (max-width: 920px) {
  .feature, .feature.reverse { grid-template-columns: minmax(0, 1fr); gap: 48px; direction: ltr; }
  /* Grid items default to min-width:auto — zero it out so a wide child (storyboard)
     can't force the track wider than the viewport */
  .feature > * { min-width: 0; }
}

.feature-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 20px;
  text-wrap: balance;
}
.feature-copy p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 50ch;
}

.feature-bullets {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-bullets li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
}
.feature-bullets li b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature-bullets li span { color: var(--fg-2); font-weight: 400; }
.feature-bullets .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--lay);
  margin-top: 8px;
  margin-left: 10px;
  box-shadow: 0 0 0 4px rgba(70,197,255,0.12);
}
.feature-bullets .dot.lift { background: var(--lift); box-shadow: 0 0 0 4px rgba(60,224,161,0.12); }
.feature-bullets .dot.burn { background: var(--burn); box-shadow: 0 0 0 4px rgba(255,179,0,0.12); }
.feature-bullets .dot.foul { background: var(--foul); box-shadow: 0 0 0 4px rgba(255,59,71,0.12); }

/* ============================================================
   Diagram (line bias) panel
   ============================================================ */

.diagram-frame {
  background: #0A0C10;
  border: 1px solid var(--hairline-soft);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.diagram-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,.04) 95%);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.4;
}
.diagram-readout {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.diagram-readout .item .lab {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.diagram-readout .item .val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ============================================================
   VMG / compass panel
   ============================================================ */

.vmg-stage {
  background: #000;
  border: 1px solid var(--hairline-soft);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Phone composite (review section)
   ============================================================ */

.review-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
  padding: 24px 0;
}

/* ============================================================
   Privacy pull quote
   ============================================================ */

.privacy {
  background: var(--brand-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.05) 0 13%, transparent 14%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.04) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.04) 0 12%, transparent 13%),
    radial-gradient(circle at 22% 78%, rgba(255,255,255,.03) 0 9%, transparent 10%);
  z-index: -1;
}
.privacy .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 800px) { .privacy .wrap { grid-template-columns: 1fr; gap: 32px; } }
.privacy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 16px;
}
.privacy h2 em { font-style: normal; color: var(--lay); }
.privacy p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  max-width: 48ch;
}
.privacy .panel {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.privacy .panel .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.privacy .panel .row svg { width: 18px; height: 18px; flex: none; color: var(--lift); margin-top: 1px; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  padding: 24px 28px;
  background: #0A0C10;
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
}
.faq-item h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0 0 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials .section-head .placeholder-note {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.85em;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  margin: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-soft);
}
.testimonial .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--lay);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums slashed-zero;
}
.testimonial .stat-unit {
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.testimonial blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.testimonial figcaption {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  text-align: center;
  padding: 128px 0 96px;
  position: relative;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.final-cta h2 em { font-style: normal; color: var(--lay); }
.final-cta p {
  font-size: 1.125rem;
  color: var(--fg-2);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.final-cta .ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 48px 0 32px;
  background: #07090C;
}
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h5 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--fg-2); font-size: 14px; text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: none; }
.footer .col-brand p {
  font-size: 13px;
  color: var(--fg-3);
  max-width: 42ch;
  margin: 12px 0 0;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
}

/* ============================================================
   Section header (left-aligned, instrument-style)
   ============================================================ */

.section-head {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  color: var(--fg);
  text-wrap: balance;
}
.section-head p {
  font-size: 1rem;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Tweaks panel host shim
   ============================================================ */

#tweaks-root { position: relative; z-index: 200; }

/* ============================================================
   Mobile responsive fixes
   ============================================================ */

/* Pre-start storyboard: 3 watches (~595px) exceed mobile viewport —
   wrap in a horizontal scroll container */
.prestart-storyboard-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  /* Reduce tall section padding */
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }

  /* Hero: no forced min-height for device stage on small screens */
  .hero-device-stage { min-height: 0; padding: 16px 0; }

  /* Hide the Pause/Reset pill — overlaps the watch at mobile widths */
  .hero-countdown-pill { display: none; }

  /* Hero stats: 3 equal columns are too narrow at 390px — 2+1 layout */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
  .hero-stats .st:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0 0 !important;
    margin-top: 8px;
  }

  /* Phone/review stages: drop the large fixed min-height */
  .review-stage { min-height: 0; padding: 32px 0; }

  /* Diagram frame: tighter padding; kill aspect-ratio+minHeight that force 506px width */
  .diagram-frame { padding: 24px; aspect-ratio: auto !important; min-height: 0 !important; }
  .vmg-stage { padding: 20px; }
}
