/* MissedMe — GBP & Reviews site */
:root {
  --navy: #0b2545;
  --navy-deep: #081a33;
  --orange: #f2762e;
  --orange-dark: #d95f1a;
  --bg: #fafaf7;
  --ink: #1c2733;
  --muted: #5b6877;
  --line: #e4e2da;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow-light { color: #ffd9bd; }

.lead { font-size: 1.15rem; color: var(--muted); margin: 1.25rem 0 1.75rem; max-width: 34em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242, 118, 46, 0.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 118, 46, 0.4); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 12px 26px; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #ffe9d9; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-full { width: 100%; font-size: 1.1rem; padding: 16px; }

/* Hero */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-line { margin-top: 1.1rem; font-size: 0.88rem; color: var(--muted); }

/* Review card stack */
.hero-visual { position: relative; height: 360px; }
.review-card {
  position: absolute;
  width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  color: var(--ink);
}
.card-back  { top: 0;    right: 130px; transform: rotate(-4deg); opacity: 0.75; }
.card-mid   { top: 95px; right: 40px;  transform: rotate(2deg);  opacity: 0.9; }
.card-front { top: 200px; right: 100px; transform: rotate(-1.5deg); z-index: 2; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.av-2 { background: #2e6b4f; }
.av-3 { background: var(--orange); }
.review-name { font-weight: 700; font-size: 0.9rem; }
.stars { color: #f4b400; letter-spacing: 2px; font-size: 0.85rem; }

/* Sections */
.section { padding: 88px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-sub { color: var(--muted); max-width: 44em; margin-bottom: 2rem; font-size: 1.05rem; }
.section-dark .section-sub { color: #b9c6d8; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Problem cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.5rem; }
.info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.info-card p { color: #b9c6d8; font-size: 0.95rem; }
.info-num { font-weight: 800; color: var(--orange); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 2.5rem; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: 0.97rem; }

/* Scrollytelling — profile demo */
.scrolly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 2rem;
}
.scrolly-steps .s-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26em;
  opacity: 0.3;
  transition: opacity 0.35s ease;
}
.s-step.active { opacity: 1; }
.scrolly-sticky { position: sticky; top: 110px; }

.gcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: box-shadow 0.5s ease;
}
.gcard-glow { box-shadow: 0 16px 48px rgba(242, 118, 46, 0.30); }
.gcard-head { display: flex; gap: 14px; align-items: center; }
.gcard-logo {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.gcard-name { font-weight: 700; }
.gcard-cat { font-size: 0.85rem; color: var(--muted); }
.gcard-rating { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.gcard-num { font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.gstars {
  position: relative; display: inline-block;
  font-size: 1.15rem; letter-spacing: 2px; line-height: 1;
  color: #ddd8cb;
}
.gstars-fill {
  position: absolute; left: 0; top: 0;
  color: #f4b400; overflow: hidden; white-space: nowrap;
  width: 78%;
}
.gcard-count { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.gcard-rank {
  margin-top: 16px; display: inline-block;
  font-size: 0.85rem; font-weight: 700;
  padding: 8px 14px; border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.rank-low  { background: #f3f1ea; color: #8a8577; }
.rank-mid  { background: #fdeadd; color: var(--orange-dark); }
.rank-high { background: #e3f3ea; color: #1e7a4d; }
.gcard-ticker { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 116px; }
.tick {
  background: #f7f6f1; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 0.85rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.tick.on { opacity: 1; transform: none; }
.tick-stars { color: #f4b400; margin-right: 6px; letter-spacing: 1px; }
.gcard-caption { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .tick { opacity: 1; transform: none; transition: none; }
  .s-step { opacity: 1; }
}

/* Offer */
.section-offer { padding: 64px 0; }
.offer-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  color: #fff;
}
.offer-box h2 { color: #fff; }
.offer-text { max-width: 38em; margin: 0 auto 2rem; font-size: 1.1rem; color: #d7e0ec; }
.offer-text strong { color: #fff; }

/* Check list */
.check-list { list-style: none; max-width: 640px; }
.check-list li {
  padding: 12px 0 12px 38px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 4px;
  color: var(--orange);
  font-weight: 800;
}

/* Trades */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 2.5rem 0;
}
.trade {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 600;
}
details[open] summary::after { content: "–"; }
details p { padding: 0 0 18px; color: var(--muted); }

/* Signup */
.section-signup { background: #f1efe8; }
.signup-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signup-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.signup-form input,
.signup-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #cfcdc4;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.signup-form input:focus,
.signup-form select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.form-fine { text-align: center; font-size: 0.83rem; color: var(--muted); margin-top: 14px; }

/* Legal pages */
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-page h3 { margin-top: 2rem; }
.legal-page p { color: var(--muted); margin-top: 0.5rem; }
.legal-date { font-size: 0.85rem; }
.legal-page a { color: var(--orange-dark); }

/* Footer */
.footer { background: var(--navy-deep); color: #b9c6d8; padding: 56px 0 32px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.logo-footer { color: #fff; }
.footer-inner p { font-size: 0.9rem; margin-top: 8px; max-width: 28em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #b9c6d8; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal p { font-size: 0.8rem; padding-top: 24px; color: #7a8aa0; }

/* Mobile */
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 330px; max-width: 380px; margin: 0 auto; width: 100%; }
  .card-back  { right: auto; left: 0; }
  .card-mid   { right: 0; }
  .card-front { right: auto; left: 30px; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .scrolly-grid { grid-template-columns: 1fr; gap: 0; }
  .scrolly-sticky { order: -1; top: 76px; z-index: 5; }
  .gcard { padding: 18px; }
  .gcard-ticker { min-height: 0; }
  .tick { padding: 7px 10px; font-size: 0.8rem; }
  .scrolly-steps .s-step { min-height: 58vh; opacity: 1; }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 64px 0; }
}
