/* ==========================================================================
   Datemax home page. Tokens from /styles.css; type and components follow
   DESIGN.md: Space Grotesk 500 headlines, system body, gold eyebrows,
   black-on-gold capsule buttons, 20pt cards, photo fades as the only gradient.
   ========================================================================== */

.home { background: var(--canvas); }
.h-shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---- Type ---- */
.h-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.home h1, .h-h2, .h-h3, .h-feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.home h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; }
.h-h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; max-width: 18ch; }
.h-h3 { font-size: 24px; line-height: 1.2; }
.h-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--body-text); margin: 18px 0 0; max-width: 34ch; }
.home p { line-height: 1.6; }
.h-fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---- Nav ---- */
.h-nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.h-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.h-wordmark { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--ink); }
.h-wordmark:hover { text-decoration: none; }
.h-nav__links { display: none; gap: 28px; font-size: 14px; }
.h-nav__links a { color: var(--body-text); }
.h-nav__links a:hover { color: var(--ink); text-decoration: none; }
.h-nav__account { font-size: 14px; font-weight: 600; color: var(--gold); }

/* ---- Buttons ---- */
.h-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.h-ctas--center { justify-content: center; }
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #0A0A0B;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.h-btn:hover { text-decoration: none; }
.h-btn:active { transform: scale(0.97); }
.h-btn--auto { margin-top: 8px; }
.h-store { display: inline-flex; height: 54px; transition: transform 0.15s ease; }
.h-store:active { transform: scale(0.97); }
.h-store img { height: 54px; width: auto; display: block; }

/* ---- Hero: photo fading into the canvas ---- */
.h-hero { position: relative; overflow: hidden; padding: 0 0 24px; }
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background: url("/images/hero.webp") center 30% / cover no-repeat;
  opacity: 0.55;
}
.h-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 421px;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.2) 0%, rgba(10, 10, 11, 0.85) 62%, var(--canvas) 100%);
}
.h-hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 120px; }
.h-hero__phone { display: flex; justify-content: center; }
.h-hero__phone img { width: min(72vw, 340px); height: auto; }

/* ---- Proof strip ---- */
.h-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.h-strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; padding-top: 28px; padding-bottom: 28px; }
.h-strip p { margin: 0; }
.h-strip strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.h-strip span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; line-height: 1.4; }

/* ---- Sections ---- */
.h-features, .h-how, .h-reviews, .h-faq, .h-final { padding: 88px 0; }
.h-features .h-h2 { margin-bottom: 24px; }

.h-feature { display: grid; gap: 28px; align-items: center; padding: 48px 0; border-top: 1px solid var(--hairline); }
.h-feature:first-of-type { border-top: 0; }
.h-feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin-bottom: 14px; }
.h-feature__copy p:not(.h-eyebrow) { color: var(--body-text); font-size: 17px; max-width: 46ch; margin: 0; }
.h-feature__phone { display: flex; justify-content: center; }
.h-feature__phone img { width: min(64vw, 300px); height: auto; }

.h-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.h-steps li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; }
.h-steps__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.h-steps strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 24px; color: var(--ink); }
.h-steps li > span:not(.h-steps__n) { display: block; color: var(--body-text); font-size: 15px; line-height: 1.5; margin-top: 8px; }

.h-private { padding: 0 0 24px; }
.h-private__inner { display: flex; gap: 20px; align-items: flex-start; background: var(--raised); border: 1.5px solid var(--gold-dark); border-radius: 20px; padding: 28px 24px; max-width: calc(var(--shell) - 48px); }
.h-private__icon { width: 34px; height: 34px; color: var(--gold); flex: none; }
.h-private p { color: var(--body-text); margin: 10px 0 0; max-width: 64ch; }

.h-reviews__grid { display: grid; gap: 14px; margin-top: 36px; }
.h-review { margin: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px 24px; display: flex; flex-direction: column; }
.h-stars { color: var(--gold); letter-spacing: 0.18em; margin: 0 0 12px; }
.h-review blockquote { margin: 0 0 16px; color: var(--ink); font-size: 17px; line-height: 1.5; flex: 1; }
.h-review figcaption { color: var(--muted); font-size: 14px; }
.h-review--founder { background: var(--raised); border-color: var(--gold-dark); }
.h-monogram {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 0 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #0A0A0B; font-weight: 700; letter-spacing: 1px;
}

.h-platinum { padding: 0 0 24px; }
.h-platinum__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  padding: 220px 24px 32px;
  background: var(--surface);
}
.h-platinum__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  background: url("/images/bar.webp") center / cover no-repeat;
}
.h-platinum__card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 301px;
  background: linear-gradient(to bottom, rgba(23, 22, 26, 0) 0%, rgba(23, 22, 26, 0.85) 62%, var(--surface) 100%);
}
.h-platinum__card > * { position: relative; z-index: 1; }
.h-platinum__card p:not(.h-eyebrow) { color: var(--body-text); max-width: 52ch; margin: 14px 0 20px; }

.h-faq__inner { max-width: 820px; }
.h-faq .h-h2 { margin-bottom: 24px; }
.h-faq details { border-top: 1px solid var(--hairline); }
.h-faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.h-faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 36px 20px 0; color: var(--ink); font-size: 17px; font-weight: 600;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--gold); font-size: 24px; line-height: 1; }
.h-faq details[open] summary::after { content: "−"; }
.h-faq details p { color: var(--body-text); margin: 0 0 20px; max-width: 68ch; }

.h-final { text-align: center; border-top: 1px solid var(--hairline); }
.h-final .h-h2 { margin: 0 auto; max-width: 20ch; }

/* ---- Tablet and up ---- */
@media (min-width: 720px) {
  .h-strip__grid { grid-template-columns: repeat(4, 1fr); }
  .h-steps { grid-template-columns: repeat(3, 1fr); }
  .h-reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .h-platinum__card { padding: 48px; padding-left: 52%; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
  .h-platinum__card::before { inset: 0 auto 0 0; width: 55%; height: auto; }
  .h-platinum__card::after { inset: 0 auto 0 0; width: 55.2%; height: auto; background: linear-gradient(to right, rgba(23, 22, 26, 0) 0%, rgba(23, 22, 26, 0.85) 70%, var(--surface) 100%); }
  .h-private__inner { padding: 36px; }
}

/* ---- Desktop ---- */
@media (min-width: 960px) {
  .h-nav__links { display: flex; }
  .h-hero::before, .h-hero::after { height: 100%; }
  .h-hero::before { background-position: left 30%; opacity: 0.5; }
  .h-hero::after { background: linear-gradient(to right, var(--canvas) 0%, rgba(10, 10, 11, 0.7) 45%, rgba(10, 10, 11, 0.95) 100%); }
  .h-hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 72px; padding-bottom: 48px; }
  .h-hero__phone img { width: 380px; }
  .h-feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .h-feature--flip .h-feature__copy { order: 2; }
  .h-feature__phone img { width: 320px; }
  .h-features, .h-how, .h-reviews, .h-faq, .h-final { padding: 112px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-store { transition: none; }
}

/* ---- Phone screenshots: cropped to the bezel, corners follow the phone ---- */
.h-hero__phone img, .h-feature__phone img {
  border-radius: 14% / 6.8%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---- Chat example (AI Coach) ---- */
.h-chat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.h-chat__tones { display: flex; gap: 8px; margin-bottom: 18px; }
.h-chat__tones span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px; padding: 6px 12px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--hairline); color: var(--muted);
}
.h-chat__tones span.on { background: var(--gold); border-color: var(--gold); color: #0A0A0B; }
.home .h-chat__them {
  margin: 0 0 18px auto; max-width: 88%; background: var(--ink); color: #0A0A0B;
  border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-size: 15px; line-height: 1.45;
}
.home .h-chat__label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.h-chat__reply { background: var(--raised); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px; }
.h-chat__reply + .h-chat__reply { margin-top: 10px; }
.home .h-chat__reply p { margin: 0 0 8px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.h-chat__reply span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---- Phones: buttons stacked, same height, centered together ---- */
@media (max-width: 719px) {
  .h-hero__copy { text-align: left; }
  .h-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .h-ctas .h-btn { width: 100%; }
  .h-ctas .h-store { align-self: center; }
  .h-ctas--center { align-items: stretch; }
  .h-hero__grid { padding-top: 96px; }
  .h-fine { text-align: center; }
}

.h-platinum__card .h-btn { align-self: flex-start; }
