/* Speech Layer pricing page (extends home.css) */

/* ---------- hero ---------- */
.pricing-hero { padding: 88px 0 72px; }
.pricing-hero h1 { margin-bottom: 16px; }
.pricing-hero p.lede { margin-bottom: 0; }

/* ---------- tier cards ---------- */
.tiers-section { padding-top: 20px; }
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 30px 30px;
}
.tier:hover { border-color: var(--card-edge); box-shadow: none; }
.tier-featured {
  border-color: var(--accent-edge);
  box-shadow: 0 14px 36px rgba(16, 21, 29, 0.09);
}
.tier-featured:hover { border-color: var(--accent-edge); box-shadow: 0 14px 36px rgba(16, 21, 29, 0.09); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 5px 14px;
  white-space: nowrap;
}
.tier-name { font-size: 21px; letter-spacing: -0.01em; }
.tier-tag { color: var(--muted); font-size: 14.5px; margin: 4px 0 22px; }
.tier-price { display: flex; align-items: baseline; gap: 8px; }
.tier-price .amount {
  font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.tier-price .per { color: var(--faint); font-size: 15px; }
.tier-alt { color: var(--faint); font-size: 13.5px; margin-top: 6px; min-height: 20px; }
.tier-cta { justify-content: center; margin: 22px 0 26px; }
.tier-list { list-style: none; display: grid; gap: 12px; margin-top: auto; }
.tier-list li {
  position: relative; padding-left: 28px;
  color: var(--muted); font-size: 15px; line-height: 1.5;
}
.tier-list li strong { color: var(--text); font-weight: 600; }
.tier-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
}
.tier-list li::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tiers-note {
  text-align: center; color: var(--faint); font-size: 14px; margin-top: 30px;
}

/* ---------- comparison table ---------- */
.compare-scroll { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-edge);
  text-align: center;
}
.compare thead th {
  background: var(--bg-soft);
  font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
  padding: 16px 20px;
}
.compare thead th:first-child { text-align: left; }
.compare tbody th {
  text-align: left; font-weight: 500; color: var(--text);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover th,
.compare tbody tr:hover td { background: var(--bg-soft); }
.compare td.yes { color: var(--accent); font-weight: 600; }
.compare td.no { color: var(--faint); }
.compare .col-featured { background: var(--accent-soft); }
.compare tbody tr:hover .col-featured { background: var(--accent-soft); }
.compare thead .col-featured { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .15s ease;
}
.faq details:hover { border-color: var(--accent-edge); }
.faq details[open] { border-color: var(--accent-edge); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .15s ease, border-color .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; border-color: var(--accent); }
.faq details p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }

/* ---------- final CTA ---------- */
.cta-section .panel {
  background: var(--card);
  border: 1px solid var(--card-edge); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(16, 21, 29, 0.07);
  padding: 52px 48px;
  text-align: center;
  max-width: 780px; margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.cta-section .panel > p { color: var(--muted); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier-featured { order: -1; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 11px 10px; }
  .compare thead th { font-size: 11.5px; letter-spacing: 0.05em; padding: 13px 10px; }
}
@media (max-width: 640px) {
  .pricing-hero { padding: 60px 0 48px; }
  .cta-section .panel { padding: 36px 26px; }
  /* keep header within narrow viewports (home.css gaps are too wide below ~400px) */
  .site-header .wrap { gap: 12px; }
  .main-nav { gap: 12px; }
}
