/* ============================================================
   Grid & Glint — Landing page (outcome-first)
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy-700); color: var(--text-body);
  font-family: var(--font-mono); font-size: var(--text-base); line-height: var(--body-lh);
}
.wrap { max-width: var(--container-xl); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { padding: clamp(72px, 9vw, 128px) 0; }
h1, h2, h3 { color: var(--text-strong); margin: 0; }
h2 {
  font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-tight);
  font-size: clamp(28px, 3.4vw, 44px); line-height: var(--lh-snug); text-wrap: balance;
}
.sect-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: clamp(36px, 5vw, 64px); }
p { margin: 0; text-wrap: pretty; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 56px);
  border-bottom: var(--bw-1) solid var(--navy-900);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { width: 30px; height: 30px; display: block; }
.nav__brand span { color: var(--paper); font-weight: 700; font-size: 15px; letter-spacing: var(--ls-tight); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background-image: var(--grid-bg); background-size: var(--grid-unit) var(--grid-unit);
  padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 10vw, 140px);
}
.hero .wrap { position: relative; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.hero__title {
  font-size: clamp(42px, 7vw, 92px); line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter); text-transform: uppercase; max-width: 13ch; text-wrap: balance;
}
.hero__panel {
  border-radius: var(--radius-card); padding: clamp(20px, 3vw, 30px) clamp(22px, 3vw, 34px);
  max-width: 620px; box-shadow: var(--shadow-md);
}
.hero__panel p { color: var(--text-strong); font-size: var(--text-md); line-height: var(--lh-normal); }
.hero__cta { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta-micro { color: var(--text-muted); font-size: var(--text-sm); font-style: italic; }
.hero__stickers { position: absolute; right: clamp(20px, 5vw, 56px); top: 0; bottom: 0; pointer-events: none; }
.hero__stickers .gg-sticker { position: absolute; pointer-events: auto; }
.stick-hi { right: 30px; top: 56px; }
.stick-new { right: 140px; top: 190px; }

/* ---- The after (3 vignettes) ---- */
.after { border-top: var(--bw-2) solid var(--navy-900); }
.vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.vig { padding: var(--space-6) var(--space-5); }
.vig__n { display: block; color: var(--yellow); font-weight: 700; font-size: var(--text-2xs); letter-spacing: var(--ls-label); margin-bottom: var(--space-5); }
.vig h3 { font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin-bottom: var(--space-4); text-wrap: balance; }
.vig p { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-relaxed); }

/* ---- Before / after ---- */
.proof-visual { background: var(--navy-800); border-top: var(--bw-2) solid var(--navy-900); border-bottom: var(--bw-2) solid var(--navy-900); }
.ba { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.ba figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ba image-slot { width: 100%; aspect-ratio: 16 / 10; border: var(--bw-1) solid var(--navy-900); border-radius: var(--radius-card); background: var(--navy-600); }
.ba figcaption { color: var(--text-muted); font-size: var(--text-2xs); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; }
.ba .gg-sticker { position: absolute; left: calc(50% - 52px); top: -26px; z-index: 2; }

/* ---- What you wake up with ---- */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.outcome { border-top: var(--bw-2) solid var(--border-strong); padding-top: var(--space-5); }
.outcome h3 { font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin-bottom: var(--space-3); text-wrap: balance; }
.outcome p { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-relaxed); max-width: 46ch; }

/* ---- Proof ---- */
.manifesto {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--ls-tighter); line-height: var(--lh-snug); color: var(--text-strong);
  max-width: 22ch; margin: 0; text-wrap: balance;
}
.manifesto em { font-style: normal; color: var(--yellow); }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: clamp(36px, 5vw, 56px); }
.tst__quote { color: var(--text-muted); font-style: italic; font-size: var(--text-sm); line-height: var(--lh-relaxed); margin-bottom: var(--space-5); }
.tst__who { display: flex; align-items: center; gap: var(--space-4); }
.tst__who image-slot { width: 52px; height: 52px; flex: none; }
.tst__name { color: var(--text-faint); font-size: var(--text-2xs); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.5; }

/* ---- Terms strip ---- */
.terms { padding: clamp(40px, 5vw, 60px) 0; border-top: var(--bw-2) solid var(--navy-900); }
.terms .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.terms__line { color: var(--text-strong); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-tight); font-size: var(--text-md); }
.terms__sub { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

/* ---- FAQ ---- */
.faq-list { max-width: var(--container-md); }
.faq-list details { border-top: var(--bw-1) solid var(--border); }
.faq-list details:last-child { border-bottom: var(--bw-1) solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) var(--space-2); color: var(--text-strong); font-weight: 700;
  font-size: var(--text-md); text-transform: uppercase; letter-spacing: var(--ls-tight);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--yellow); font-size: var(--text-lg); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 var(--space-2) var(--space-6); color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-relaxed); max-width: 64ch; }

/* ---- Final CTA ---- */
.final { text-align: center; background-image: var(--grid-bg); background-size: var(--grid-unit) var(--grid-unit); border-top: var(--bw-2) solid var(--navy-900); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.final h2 { font-size: clamp(36px, 5.5vw, 72px); letter-spacing: var(--ls-tighter); }

/* ---- Footer ---- */
footer { border-top: var(--bw-1) solid var(--navy-900); padding: var(--space-6) 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand img { width: 22px; height: 22px; }
footer small { color: var(--text-faint); font-size: var(--text-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; }
footer a { color: var(--link); text-decoration: none; font-size: var(--text-sm); }
footer a:hover { color: var(--link-hover); }

/* ---- Dialog ---- */
.dlg-scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 16, 0.7);
  -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm));
  display: none; place-items: center; padding: 24px; overflow-y: auto;
}
.dlg-scrim.open { display: grid; }
.dlg {
  position: relative; width: 100%; max-width: 520px; background: var(--surface-card);
  border: var(--bw-2) solid var(--navy-900); border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-lg); padding: var(--space-6);
  max-height: 92vh; overflow-y: auto;
}
.dlg h3 { font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--ls-tight); margin-bottom: var(--space-2); }
.dlg__sub { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.dlg form { display: flex; flex-direction: column; gap: var(--space-4); }
.dlg__step-label { color: var(--text-faint); font-size: var(--text-2xs); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; }
.dlg__x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center;
  border: none; background: transparent; color: var(--text-muted); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 18px; font-family: var(--font-mono);
}
.dlg__x:hover { color: var(--text-strong); background: var(--surface-raised); }
.dlg__sent { display: none; text-align: center; padding: var(--space-6) 0 var(--space-4); }
.dlg.sent form, .dlg.sent .dlg__sub { display: none; }
.dlg.sent .dlg__sent { display: block; }
.dlg__sent p { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-3); }
.dlg__error { color: var(--coral); font-size: var(--text-sm); display: none; }
.dlg__error.show { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .vignettes { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .hero__stickers .stick-new { display: none; }
}
@media (max-width: 700px) {
  .ba { grid-template-columns: 1fr; }
  .ba .gg-sticker { left: auto; right: 8px; top: -22px; }
  .hero__stickers .stick-hi { top: 12px; right: 0; }
  .nav .gg-btn { height: 40px; padding: 0 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.gg-anim .hero__title, html.gg-anim .hero__panel, html.gg-anim .hero__cta { animation: gg-rise 0.6s var(--ease-out) backwards; }
  html.gg-anim .hero__panel { animation-delay: 0.1s; }
  html.gg-anim .hero__cta { animation-delay: 0.18s; }
  @keyframes gg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
