/* MANWRD — Milestone 1 cinematic prototype
   Palette: obsidian near-black / warm ivory / steel-blue / restrained amber */

:root {
  --obsidian: #07070a;
  --obsidian-2: #0d0e13;
  --panel: #121319;
  --ivory: #f3ede1;
  --ivory-dim: #c9c2b3;
  --steel: #6c86a3;
  --steel-dim: #3f5266;
  --amber: #d99a4e;
  --amber-dim: #8a6636;
  --line: rgba(243, 237, 225, 0.12);
  --max-w: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { line-height: 1.6; color: var(--ivory-dim); margin: 0 0 1em; }

a { color: var(--ivory); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--obsidian);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: linear-gradient(to bottom, rgba(7,7,10,0.85), transparent);
  padding: 20px 0;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-logo { height: 16px; width: auto; opacity: 0.95; }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-dim); transition: color .2s;
}
.header-nav a:hover { color: var(--ivory); }
.header-cta {
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--amber-dim); color: var(--amber);
  padding: 8px 18px; text-decoration: none; transition: all .2s;
}
.header-cta:hover { background: var(--amber); color: var(--obsidian); }

@media (max-width: 720px) {
  .header-nav { display: none; }
}

/* ---------------- CINEMATIC OPENING ---------------- */
.cinematic {
  position: relative;
  height: 500vh; /* scroll distance driving the sequence */
  background: var(--obsidian);
}

.cinematic-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.cine-frames {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: var(--obsidian);
}

.cine-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}
.cine-frame:first-child { opacity: 1; }

/* soft vignette to keep the ivory captions legible over any frame */
.cine-frames::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,10,0.75) 0%, rgba(7,7,10,0.15) 32%, rgba(7,7,10,0) 55%);
  pointer-events: none;
}

.cine-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 14%;
  padding: 0 6%;
  max-width: 760px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.cine-caption.is-visible { opacity: 1; transform: translateY(0); }

.cine-eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 10px;
}
.cine-caption h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  margin: 0;
}
.cine-scroll-hint {
  margin-top: 18px; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-dim);
}

.cine-progress {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 160px; background: var(--line);
}
.cine-progress-fill {
  width: 100%; height: 0%; background: var(--amber);
  transition: height .05s linear;
}
@media (max-width: 720px) { .cine-progress { display: none; } }

.static-fallback {
  padding: 140px 24px 80px; max-width: 760px; margin: 0 auto;
}

/* prefers-reduced-motion: freeze the sequence at the final desert frame,
   remove scroll-pin, present it as a single static hero instead */
@media (prefers-reduced-motion: reduce) {
  .cinematic { height: 100vh; }
  .cinematic-pin { position: relative; }
  .cine-caption { transition: none; }
}

/* ---------------- SHARED SECTION LAYOUT ---------------- */
.section { padding: 110px 24px; border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner.center { text-align: center; }
.section-inner.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.section-inner.two-col.reverse { direction: rtl; }
.section-inner.two-col.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .section { padding: 72px 20px; }
  .section-inner.two-col { grid-template-columns: 1fr; gap: 40px; }
  .section-inner.two-col.reverse { direction: ltr; }
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--ivory);
  max-width: 20ch;
}
.section-lede { font-size: 18px; max-width: 56ch; }
.accent-line {
  color: var(--amber); font-size: 15px; letter-spacing: 0.02em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
}

/* ---------------- STORE BADGES ---------------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 10px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); padding: 10px 16px;
  font-size: 12px; color: var(--ivory-dim); line-height: 1.3;
  opacity: 0.7; cursor: default; user-select: none;
}
.store-badge svg { width: 22px; height: 22px; fill: var(--ivory-dim); flex: none; }
.store-badge strong { color: var(--ivory-dim); font-weight: 600; }
.store-note { font-size: 13px; color: var(--ivory-dim); opacity: 0.7; }
.center .store-badges { justify-content: center; }

/* ---------------- MOCK PHONE PANEL ---------------- */
.mock-panel { display: flex; justify-content: center; }
.mock-phone {
  width: 280px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 28px; padding: 22px 18px; position: relative;
}
.mock-phone-notch {
  width: 60px; height: 6px; background: var(--line); border-radius: 4px;
  margin: 0 auto 20px;
}
.mock-bubble {
  padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 10px;
  max-width: 90%;
}
.mock-bubble-user { background: #1c1e27; margin-left: auto; color: var(--ivory-dim); }
.mock-bubble-manwrd { background: rgba(217,154,78,0.12); border: 1px solid var(--amber-dim); color: var(--ivory); }
.mock-tone-row {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; color: var(--ivory-dim); margin-bottom: 10px;
}
.mock-tone-row.mock-tone-active { border-color: var(--amber); color: var(--ivory); }

/* ---------------- PILLARS ---------------- */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 40px;
}
.pillar { background: var(--obsidian); padding: 32px 26px; }
.pillar h3 { color: var(--amber); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; font-family: inherit; }
.pillar p { font-size: 14px; margin: 0; }
@media (max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------------- HOW IT WORKS ---------------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.how-index { color: var(--amber); font-size: 13px; letter-spacing: 0.1em; }
.how-step h3 { font-family: inherit; font-size: 18px; margin-top: 10px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------- PRICING ---------------- */
.pricing-meta { font-size: 14px; }
.pricing-tbc { color: var(--amber); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-size: 16px; color: var(--ivory);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--amber); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 14px; font-size: 14px; }

/* ---------------- CLOSING ---------------- */
.section-closing { border-bottom: none; }
.section-closing h2 { max-width: 26ch; margin: 0 auto 8px; }

/* ---------------- FOOTER ---------------- */
.site-footer { padding: 48px 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { height: 13px; opacity: 0.8; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--ivory-dim); text-decoration: none; }
.footer-social { display: flex; gap: 14px; }
.social-icon { width: 18px; height: 18px; opacity: 0.5; cursor: default; }
.social-icon svg { width: 100%; height: 100%; fill: var(--ivory-dim); }
.footer-copy { font-size: 12px; color: var(--ivory-dim); opacity: 0.6; margin: 0; width: 100%; text-align: center; }
@media (min-width: 721px) { .footer-copy { width: auto; text-align: left; } }
