/* Quiet Forge — shared styles for pricing block, legal pages, and standalone pages.
 * The homepage (index.html) keeps its own inline CSS. This file extends shared
 * design tokens and provides components that exist on multiple pages.
 */

:root {
  --bg-deep: #0d0d0d;
  --bg-dark: #1a1a1a;
  --steel: #3a3d42;
  --steel-light: #5a5d62;
  --steel-lighter: #7a7d82;
  --white: #e8e8e8;
  --white-dim: #b8b8b8;
  --white-muted: #888888;
  --spark: #ff9d4a;
  --spark-bright: #ffb870;
  --spark-dim: #d67a2e;
  --glow: rgba(255, 157, 74, 0.4);
  --font-display: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ─── PRICING SECTION ────────────────────────────────────────────── */

#pricing {
  padding: 160px 80px;
  border-top: 1px solid rgba(58, 61, 66, 0.3);
  position: relative;
  z-index: 2;
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pricing-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--spark);
  font-weight: 700;
}

.pricing-title {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pricing-pitch {
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 560px;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--steel);
  background: rgba(13, 13, 13, 0.6);
  margin: 8px 0 8px;
}

.billing-toggle button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-muted);
  background: transparent;
  border: none;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  position: relative;
}

.billing-toggle button:hover { color: var(--white); }

.billing-toggle button.active {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--spark), var(--spark-bright));
  font-weight: 600;
}

.billing-toggle .save-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  background: rgba(255, 157, 74, 0.2);
  color: var(--spark);
  padding: 2px 6px;
  letter-spacing: 0.08em;
  border-radius: 1px;
  font-weight: 600;
}

.billing-toggle button.active .save-tag {
  background: rgba(13, 13, 13, 0.2);
  color: var(--bg-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(58, 61, 66, 0.2);
  margin-top: 16px;
}

.plan-card {
  padding: 44px 32px 36px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
  background: rgba(26, 26, 26, 0.85);
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(255, 157, 74, 0.08) 0%, rgba(26, 26, 26, 1) 100%);
  border: 1px solid rgba(255, 157, 74, 0.4);
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: linear-gradient(135deg, var(--spark), var(--spark-bright));
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
}

.plan-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--white);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 56px;
}

.plan-price .amount {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 200;
  line-height: 1;
  color: var(--white);
}

.plan-price .currency {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 200;
  color: var(--white-muted);
}

.plan-price .period {
  font-size: 11px;
  color: var(--white-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.plan-price .custom {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.plan-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin: 4px 0 8px;
}

.plan-bullets li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--white-dim);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-bullets li::before {
  content: '';
  flex: 0 0 auto;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: linear-gradient(135deg, var(--spark), var(--spark-bright));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l4 4L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l4 4L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--white);
}

.plan-cta:hover {
  border-color: var(--spark);
  color: var(--spark);
}

.plan-cta.primary {
  border-color: transparent;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--spark), var(--spark-bright));
  box-shadow: 0 0 24px rgba(255, 157, 74, 0.25);
}

.plan-cta.primary:hover {
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 30px rgba(255, 157, 74, 0.45);
}

@media (max-width: 1024px) {
  #pricing { padding: 100px 28px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 12px; background: transparent; }
  .plan-card { border: 1px solid rgba(58, 61, 66, 0.5); }
}

/* ─── PRICING PAGE COMPARISON TABLE ─────────────────────────────── */

.pricing-compare {
  margin-top: 120px;
}

.pricing-compare-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(58, 61, 66, 0.5);
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(58, 61, 66, 0.3);
  color: var(--white-dim);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--white);
}

.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--spark);
  font-weight: 700;
  background: rgba(13, 13, 13, 0.4);
}

.compare-table tbody tr:hover {
  background: rgba(26, 26, 26, 0.4);
}

.compare-yes { color: var(--spark); font-weight: 500; }
.compare-no { color: var(--white-muted); opacity: 0.4; }

@media (max-width: 1024px) {
  .compare-table { font-size: 12px; display: block; overflow-x: auto; }
  .compare-table th, .compare-table td { padding: 12px 10px; min-width: 100px; }
}

/* ─── FAQ ──────────────────────────────────────────────────────── */

.faq-section {
  margin-top: 120px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 200;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-top: 1px solid rgba(58, 61, 66, 0.4);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(58, 61, 66, 0.4);
}

.faq-question {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  color: var(--white);
  letter-spacing: -0.01em;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--spark);
  transition: transform 0.3s;
  flex: 0 0 auto;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--white-dim);
}

/* ─── LEGAL PAGE LAYOUT ─────────────────────────────────────────── */

.legal-page {
  padding: 160px 28px 100px;
  position: relative;
  z-index: 2;
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--spark);
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-muted);
  margin-bottom: 56px;
  text-transform: uppercase;
}

.legal-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--white-dim);
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin: 28px 0 8px;
}

.legal-body p {
  margin-bottom: 18px;
}

.legal-body ul,
.legal-body ol {
  margin: 12px 0 22px 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--spark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 157, 74, 0.3);
  transition: border-color 0.3s;
}

.legal-body a:hover {
  border-color: var(--spark);
}

.legal-body strong {
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .legal-page { padding: 120px 22px 60px; }
}

/* ─── SHARED FOOTER LINKS BLOCK ─────────────────────────────────── */

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-meta a {
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-meta a:hover { color: var(--spark); }

.footer-meta .sep {
  color: var(--steel-light);
  opacity: 0.5;
}

/* Visually-hidden helper for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
