/* ============================================
   PRODUCT PAGE STYLES — HighFlowAI
   The receptionist deep-dive, told as "a day in
   the life of a missed call".

   Loaded after commonStyles.css / headerStyles.css
   / footerStyles.css. Everything here builds on
   the tokens and primitives in commonStyles.css
   (container, eyebrow, h2, lead, btn, section-
   surface). Colour convention (site-wide):
     – emerald (--accent)       = website reception
     – blue    (--accent-voice) = phone reception

   Sections:
     0. Surface tints (mirrored from indexStyles §0)
     1. Hero
     2. Story beats (shared)
     3. Portal screenshots
     4. Dashboard beat (full-width)
     5. How it starts (3 steps)
     6. Founding CTA
     7. Responsive
   ============================================ */


/* ============================================
   0. SURFACE TINTS
   Mirrored from indexStyles.css §0 so this page
   doesn't need to load the homepage stylesheet.
   Keep values in sync with the tokens in
   commonStyles.css (they only reference vars).
   ============================================ */
.section-surface--cool    { background: var(--bg-surface-cool); }
.section-surface--warm    { background: var(--bg-surface-warm); }
.section-surface--emerald { background: var(--bg-surface-emerald); }


/* ============================================
   1. HERO
   ============================================ */
.product-hero {
  padding: clamp(140px, 18vw, 220px) 0 clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}

/* Soft emerald + blue horizon glows — one for each
   half of the product. */
.product-hero::before,
.product-hero::after {
  content: '';
  position: absolute;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1.4;
  pointer-events: none;
  filter: blur(30px);
  z-index: 0;
}

.product-hero::before {
  top: -20%;
  right: -10%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  opacity: 0.5;
}

.product-hero::after {
  top: 10%;
  left: -25%;
  background: radial-gradient(ellipse at center, var(--accent-voice-glow), transparent 60%);
  opacity: 0.35;
}

.product-display {
  margin-top: 28px;
  max-width: 15ch;
}

.product-lead {
  margin-top: 28px;
  max-width: 58ch;
}

.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Secondary CTA — points visitors at the site's own
   chat widget (the widget IS the product). */
.product-hero-hint {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 18px;
}


/* ============================================
   2. STORY BEATS (shared)
   Each beat = a timestamped moment in the "day
   in the life of a missed call". Two-column
   grid: narrative content | visual.
   ============================================ */
.beat {
  padding: clamp(72px, 10vw, 130px) 0;
}

.beat-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.beat--reverse .beat-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.beat--reverse .beat-content { order: 2; }
.beat--reverse .beat-visual  { order: 1; }

/* Timestamp chip — mono, reads like a call-log entry. */
.beat-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--beat-accent, var(--accent));
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(5, 9, 8, 0.5);
}

.beat-time::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--beat-accent, var(--accent));
  box-shadow: 0 0 12px var(--beat-accent, var(--accent));
  animation: pulse 2.4s ease-in-out infinite;
}

.beat-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 24px;
  max-width: 20ch;
}

.beat-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.beat-copy {
  margin-top: 20px;
  color: var(--text-mid);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  max-width: 52ch;
}

/* Feature bullets — dash markers tinted with the
   beat's accent (blue = phone, emerald = website). */
.beat-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beat-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.beat-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--beat-accent, var(--accent));
  box-shadow: 0 0 8px var(--beat-accent, var(--accent));
}

/* Accent scoping per beat. */
.beat--phone   { --beat-accent: var(--accent-voice); }
.beat--website { --beat-accent: var(--accent); }

/* Blue variant of the standard eyebrow, for
   phone-reception contexts. */
.eyebrow--voice { color: var(--accent-voice); }
.eyebrow--voice::before {
  background: var(--accent-voice);
  box-shadow: 0 0 12px var(--accent-voice);
}


/* ============================================
   3. PORTAL SCREENSHOTS
   Real portal UI (demo data). Framed with a
   subtle border + accent glow so they read as
   product UI sitting on the dark backdrop.
   ============================================ */
.portal-shot {
  margin: 0;
}

.portal-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(5, 9, 8, 0.6),
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 80px -30px var(--shot-glow, var(--accent-glow));
}

.portal-shot--voice { --shot-glow: var(--accent-voice-glow); }

.portal-shot figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}


/* ============================================
   4. DASHBOARD BEAT (full-width)
   Beat 3 — "next morning". portal-calls.png is
   the hero image of the page, so it runs at
   near-container width with the narrative above
   and the stat strip below.
   ============================================ */
.beat--dashboard .beat-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.beat--dashboard .portal-shot--main {
  max-width: 1020px;
  margin: 0 auto;
}

.beat-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 64px);
}

/* The morning-after checklist. */
.morning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.morning-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

.morning-list li:first-child { border-top: 1px solid var(--border-subtle); }

.morning-list .morning-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.morning-list .morning-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.morning-list .morning-text strong {
  color: var(--text-headline);
  font-weight: 600;
}


/* ============================================
   5. HOW IT STARTS — 3 steps
   ============================================ */
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.start-step {
  background: var(--bg-base);
  padding: 40px 32px;
}

.start-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.start-num::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.start-step h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.start-step p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.55;
}


/* ============================================
   6. FOUNDING CTA
   Builds on .cta-section from commonStyles.css
   (radial glow + centering come from there).
   ============================================ */
.product-cta .cta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.product-cta .cta-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.product-cta .cta-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.product-cta .cta-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-mid);
  max-width: 54ch;
  line-height: 1.6;
}

/* Founding strip — slim banner above the actions. */
.founding-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  padding: 16px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(5, 9, 8, 0.55);
  position: relative;
  z-index: 1;
}

.founding-strip-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  white-space: nowrap;
}

.founding-strip p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.founding-strip p strong { color: var(--text-headline); font-weight: 600; }

.product-cta .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}


/* ============================================
   7. RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .beat-grid,
  .beat--reverse .beat-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Visual follows the narrative on mobile. */
  .beat--reverse .beat-content { order: 1; }
  .beat--reverse .beat-visual  { order: 2; }

  .beat-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .start-grid { grid-template-columns: 1fr; }
}
