/* ============================================
   PRICING PAGE STYLES — HighFlowAI
   Two plan cards + founding banner + setup row +
   minutes explainer + comparison + FAQ + CTA.

   Loaded after commonStyles.css / headerStyles.css
   / footerStyles.css. Deliberately self-contained:
   the plan-card family (.services-grid /
   .service-card / .service-features /
   .service-footer) and the FAQ family (.faq-*)
   are mirrored from indexStyles.css so this page
   doesn't depend on the homepage stylesheet.
   Keep visual changes in sync with indexStyles.css
   §2 (services) and §7 (FAQ).

   Sections:
     0. Surface tints (mirrored from indexStyles §0)
     1. Hero
     2. Founding banner
     3. Plan cards (mirrored card family)
     4. Setup fees row
     5. Minutes explainer + trial line
     6. Comparison table
     7. FAQ (mirrored family)
     8. CTA
     9. Responsive
   ============================================ */


/* ============================================
   0. SURFACE TINTS
   Mirrored from indexStyles.css §0.
   ============================================ */
.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
   ============================================ */
.pricing-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 1000px;
  aspect-ratio: 1.8;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  filter: blur(30px);
  opacity: 0.4;
  pointer-events: none;
}

.pricing-display {
  margin-top: 28px;
  max-width: 16ch;
}

.pricing-hero .lead {
  margin-top: 28px;
}


/* ============================================
   2. FOUNDING BANNER — prominent
   ============================================ */
.founding-banner {
  position: relative;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.08), transparent 55%),
    var(--bg-base);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
  box-shadow: 0 0 60px -30px var(--accent-glow);
  margin-bottom: clamp(40px, 6vw, 56px);
}

.founding-banner-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

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

.founding-banner h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.founding-banner h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.founding-banner p {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 72ch;
}

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


/* ============================================
   3. PLAN CARDS
   Card family mirrored from indexStyles.css §2,
   narrowed to two columns, plus the price
   typography from the homepage pricing section.
   Cards here are <div>s (not links), so hover
   styling is kept subtle.
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  --card-accent: var(--accent);
  --card-accent-rgb: var(--accent-rgb);
  --card-accent-glow: var(--accent-glow);
  --card-accent-soft: var(--accent-soft);

  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  padding: 44px 36px 32px;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card--voice {
  --card-accent: var(--accent-voice);
  --card-accent-rgb: var(--accent-voice-rgb);
  --card-accent-glow: var(--accent-voice-glow);
  --card-accent-soft: var(--accent-voice-soft);
}

.service-card:hover {
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1px rgba(var(--card-accent-rgb), 0.22);
}

.card-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.5s var(--ease-out);
}

.card-corner::before,
.card-corner::after {
  content: '';
  position: absolute;
  background: var(--card-accent);
  box-shadow: 0 0 8px var(--card-accent-glow);
}

.card-corner::before { top: 0; right: 0; width: 22px; height: 1px; }
.card-corner::after  { top: 0; right: 0; width: 1px;  height: 22px; }

.service-card:hover .card-corner {
  opacity: 0.8;
  transform: translate(0, 0);
}

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

.service-card:hover .service-num { color: var(--card-accent); }

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

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.service-card h3 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.service-card > p {
  color: var(--text-mid);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-primary);
  padding-left: 22px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--card-accent);
}

.service-footer {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.service-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-transform: uppercase;
}

/* Price typography — mirrors the homepage pricing
   section's scoped style block. */
.pricing-price {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-headline);
}

.pricing-price .pricing-per { font-size: 0.9rem; color: var(--text-dim); }

.pricing-founding {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--card-accent, var(--accent));
  margin-bottom: 20px;
}

.pricing-card-cta {
  margin-top: 20px;
}


/* ============================================
   4. SETUP FEES ROW
   ============================================ */
.setup-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

/* Tuck the setup row under the cards. */
.services-grid--with-setup {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.setup-cell {
  background: rgba(5, 9, 8, 0.6);
  padding: 20px 36px;
}

.setup-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.setup-value {
  font-size: 0.92rem;
  color: var(--text-primary);
}

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

.setup-value .setup-free {
  color: var(--accent);
  font-weight: 500;
}


/* ============================================
   5. MINUTES EXPLAINER + TRIAL LINE
   ============================================ */
.pricing-notes {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 56px);
}

.pricing-note {
  background: var(--bg-base);
  padding: clamp(24px, 3.5vw, 36px);
}

.pricing-note h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-note h3 .note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-voice);
  box-shadow: 0 0 10px var(--accent-voice);
  flex-shrink: 0;
}

.pricing-note--trial h3 .note-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.pricing-note p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

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


/* ============================================
   6. COMPARISON TABLE — compact what's-included
   Wide content scrolls inside its own container.
   ============================================ */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--bg-base);
}

.compare-table th,
.compare-table td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  font-weight: 500;
  background: rgba(5, 9, 8, 0.6);
}

.compare-table thead th:nth-child(2) { color: var(--accent); }
.compare-table thead th:nth-child(3) { color: var(--accent-voice); }

.compare-table tbody th {
  font-weight: 400;
  color: var(--text-primary);
}

.compare-table td {
  color: var(--text-mid);
  white-space: nowrap;
}

.compare-yes {
  color: var(--accent);
  font-weight: 500;
}

.compare-table td .compare-no {
  color: var(--text-dim);
}


/* ============================================
   7. FAQ — mirrored from indexStyles.css §7
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.faq-intro h2 { margin-top: 28px; }
.faq-intro .lead { margin-top: 24px; }

.faq-list {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-headline);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--text-mid);
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 56px 28px 0;
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 60ch;
}


/* ============================================
   8. CTA
   Builds on .cta-section from commonStyles.css.
   ============================================ */
.pricing-cta .cta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

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

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

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

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


/* ============================================
   9. RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px 28px; }
  .setup-row { grid-template-columns: 1fr; }
  .setup-cell { padding: 18px 28px; }
  .pricing-notes { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-question { font-size: 1rem; }
}
