/* ---- Fayn CGM Shield - product page ---- */
:root {
  --ink: #1d1d1f;
  --ink-soft: #55555a;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --accent: #0071e3;
  --radius: 28px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.028em; }
h1 { font-size: clamp(3.2rem, 7.5vw, 6.2rem); line-height: 1.0; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.06; }
p  { color: var(--ink-soft); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.lede { font-size: 1.25rem; line-height: 1.65; margin-top: 1.4rem; }

/* ---- nav ---- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-weight: 800; letter-spacing: 0.3em; font-size: 1rem;
  color: var(--ink); text-decoration: none;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-mark { height: 30px; width: auto; display: block; }
.logo-mark-foot { height: 52px; opacity: 0.92; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  border-radius: 999px; text-decoration: none;
  padding: 0.9rem 1.9rem; font-size: 1rem; font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.btn-large { padding: 1.1rem 2.6rem; font-size: 1.1rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(0,0,0,0.25);
}
.btn-ghost:hover { box-shadow: none; border-color: var(--ink); }

/* ---- hero ---- */
.hero {
  min-height: 92svh;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 8.5rem 1.5rem 1rem;
}
.hero .eyebrow { letter-spacing: 0.3em; }
.hero .sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  margin: 1.6rem auto 2.4rem; max-width: 40rem; line-height: 1.6;
}
.cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-stage { width: 100%; max-width: 640px; margin-top: 0.5rem; }
#viewer {
  width: 100%; aspect-ratio: 16 / 11; position: relative;
  cursor: grab; touch-action: pan-y;
}
#viewer:active { cursor: grabbing; }
#viewer canvas { display: block; width: 100% !important; height: 100% !important; }
#viewer-fallback {
  position: absolute; inset: 0; margin: auto;
  max-width: 72%; max-height: 100%; object-fit: contain;
}
.hint { font-size: 0.8rem; color: #a1a1a6; margin-top: 0.4rem; transition: opacity 1s ease; }

/* ---- feature rows ---- */
.feature {
  max-width: var(--max); margin: 0 auto; padding: 7.5rem 1.5rem;
  display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 4.5rem; align-items: center;
}
.feature-flip { grid-template-columns: 1.15fr 0.95fr; }
.feature-flip .feature-text { order: 2; }
.feature-flip .feature-media { order: 1; }
.feature-media img { width: 100%; border-radius: var(--radius); }
.feature-tint { max-width: none; background: var(--bg-alt); }
.feature-tint > * { max-width: calc(var(--max) / 2 - 2.25rem); }
.feature-tint { padding-left: max(1.5rem, calc(50vw - var(--max) / 2)); padding-right: max(1.5rem, calc(50vw - var(--max) / 2)); }

.specs { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.3rem; }
.specs li { display: grid; gap: 0.2rem; padding-left: 1.2rem; border-left: 3px solid var(--ink); }
.specs strong { font-size: 1.02rem; }
.specs span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- covers ---- */
.covers { padding: 8rem 1.5rem; }
.covers-head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.covers-head p { font-size: 1.2rem; margin-top: 1.1rem; }
.covers-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.covers-grid figure { text-align: center; }
.covers-grid img { width: 100%; transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1); }
.covers-grid figure:hover img { transform: translateY(-8px) scale(1.03); }
.covers-grid figcaption { font-weight: 600; margin-top: 1rem; color: var(--ink); letter-spacing: 0.04em; }

/* ---- lifestyle ---- */
.lifestyle {
  max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.life-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.life-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.life-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 4rem 2rem 1.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0));
  color: #fff;
}
.life-card h3 { font-size: 1.9rem; letter-spacing: -0.02em; }
.life-card p { color: rgba(255,255,255,0.92); font-size: 1.02rem; margin-top: 0.35rem; }

/* ---- statement ---- */
.statement { padding: 9rem 1.5rem; text-align: center; }
.statement p {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--ink); max-width: 60rem; margin: 0 auto;
}
.statement em { font-style: normal; color: #86868b; }

/* ---- steps ---- */
.steps { background: var(--bg-alt); padding: 8rem 1.5rem; }
.steps-media { max-width: 1000px; margin: 0 auto; }
.steps-media img { width: 100%; border-radius: var(--radius); }
.steps-list {
  max-width: 1000px; margin: 3rem auto 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  display: grid; gap: 0.35rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55;
}
.steps-list li::before {
  content: "0" counter(step);
  font-weight: 800; font-size: 2rem; color: #c7c7cc; letter-spacing: -0.02em;
}
.steps-list strong { color: var(--ink); font-size: 1.08rem; }

/* ---- unboxing ---- */
.unboxing { padding-top: 8rem; padding-bottom: 8rem; }
.unboxing .feature-media img { border-radius: var(--radius); }

/* ---- compat + final ---- */
.compat { text-align: center; padding: 4rem 1.5rem 9rem; }
.compat-chips { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.compat-note { margin-top: 2rem; font-size: 1rem; color: #86868b; }

.final-cta {
  text-align: center; padding: 8.5rem 1.5rem;
  background: #111; color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.65); margin: 1.2rem 0 2.4rem; font-size: 1.15rem; }
.final-cta .btn { background: #fff; color: var(--ink); }

/* ---- footer ---- */
footer { background: #111; border-top: 1px solid rgba(255,255,255,0.1); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 3.5rem; }
footer p { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin-top: 1.1rem; line-height: 1.65; max-width: 46rem; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .feature, .feature-flip, .unboxing { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .feature-flip .feature-text { order: 1; }
  .feature-flip .feature-media { order: 2; }
  .feature-tint > * { max-width: none; }
  .covers-grid { grid-template-columns: 1fr; max-width: 440px; gap: 2rem; }
  .covers-grid img { max-width: 280px; margin: 0 auto; display: block; }
  .lifestyle { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .steps-list { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; min-height: auto; }
  .statement { padding: 5.5rem 1.5rem; }
}

/* ---- hero enlarged + hotspots ---- */
.hero-stage { max-width: 860px; }
#viewer { aspect-ratio: 16 / 10; }
.hotspot {
  position: absolute; top: 0; left: 0; z-index: 5;
  pointer-events: none;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.hotspot i {
  position: absolute; top: -5px; left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #1d1d1f; border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.hotspot b {
  position: absolute; top: -13px; left: 14px;
  white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; color: #1d1d1f;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px; padding: 0.28rem 0.7rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
/* compat chips as links */
.compat-chips a {
  border: 1.5px solid rgba(0,0,0,0.16); border-radius: 999px;
  padding: 0.9rem 2rem; font-size: 1.15rem; font-weight: 600; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.compat-chips a span { color: #86868b; font-size: 0.95em; }
.compat-chips a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
@media (max-width: 640px) { .hotspot { display: none; } }

/* hotspot label placements */
.hotspot b { top: -13px; left: 14px; }
.hs-top b { top: -40px; left: 50%; transform: translateX(-50%); }
.hs-left b { left: auto; right: 14px; }
.hs-bottom b { top: 16px; left: 50%; transform: translateX(-50%); }
.hs-bottomright b { top: 14px; left: 12px; }

/* hotspot leader lines */
.hotspot u { position: absolute; background: rgba(0,0,0,0.34); display: block; }
.hs-top u { width: 1px; height: 26px; left: 0; top: -31px; }
.hs-top b { top: -56px; }
.hs-right u { height: 1px; width: 24px; left: 7px; top: 0; }
.hs-right b { left: 36px; }
.hs-left u { height: 1px; width: 24px; right: 7px; left: auto; top: 0; }
.hs-left b { right: 36px; }
.hs-bottom u { width: 1px; height: 26px; left: 0; top: 7px; }
.hs-bottom b { top: 38px; }
