/* Meridian Software — shared stylesheet */

:root {
  --bg: #faf9f5;
  --dark: #0B0D0F;
  --cream: #E8E6E1;
  --accent: #D07B33;
  --accent-strong: #B8641F;
  --text: #23211f;
  --text-muted: #5f5952;
  --border: #ddd8d0;
  --card-bg: #ffffff;
  --section-alt-bg: #f1eee7;
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Tunable opacities so themes can dial text prominence independently */
  --nav-link: rgba(232, 230, 225, 0.82);
  --hero-sub: rgba(232, 230, 225, 0.74);
  --hero-mark-opacity: 0.55;
  --hero-glow: rgba(208, 123, 51, 0.13);
  --on-dark-muted: rgba(232, 230, 225, 0.6);
  --footer-text: rgba(232, 230, 225, 0.55);
}

/* --- Dark theme --- */
:root[data-theme="dark"] {
  --bg: #0e1113;
  --dark: #07080a;
  --cream: #ECEAE4;
  --accent: #E8A15C;
  --accent-strong: #F0B679;
  --text: #ECEAE4;
  --text-muted: #a29a90;
  --border: #262a2e;
  --card-bg: #16191c;
  --section-alt-bg: #121517;

  --nav-link: rgba(236, 234, 228, 0.75);
  --hero-sub: rgba(236, 234, 228, 0.7);
  --hero-mark-opacity: 0.6;
  --hero-glow: rgba(232, 161, 92, 0.12);
  --on-dark-muted: rgba(236, 234, 228, 0.62);
  --footer-text: rgba(236, 234, 228, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; }

/* --- Navigation --- */
.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
:root[data-theme="dark"] .nav { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo img { height: 34px; display: block; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--nav-link);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-decoration: none; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(232,230,225,0.75);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Theme toggle --- */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(232,230,225,0.16);
  background: rgba(232,230,225,0.04);
  color: rgba(232,230,225,0.85);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232,230,225,0.08);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* --- Hero --- */
.hero {
  background: var(--dark);
  color: var(--cream);
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-mark {
  width: 112px;
  height: 112px;
  margin: 0 auto 2.5rem;
  opacity: var(--hero-mark-opacity);
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}
.hero h1 { color: var(--cream); margin-bottom: 1.25rem; }
.hero .hero-sub {
  font-size: 1.15rem;
  color: var(--hero-sub);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(184, 100, 31, 0.25);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline:hover, .btn-outline-light:hover { opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(232,230,225,0.3);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-disabled, .btn-disabled:hover {
  opacity: 0.45;
  cursor: default;
  transform: none;
  border-color: rgba(232,230,225,0.3);
  color: var(--cream);
}

/* --- Coming soon / disabled nav states --- */
.soon-tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  color: var(--text-muted);
}
.nav-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  cursor: default;
}
.footer-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--footer-text);
  font-size: 0.85rem;
  cursor: default;
}
.footer-disabled .soon-tag { border-color: rgba(255,255,255,0.2); color: inherit; }
.product-card-disabled { cursor: default; }
.product-card-disabled:hover { border-color: var(--border); box-shadow: none; }
.product-card-link-disabled { color: var(--text-muted); }

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.section-heading { margin-bottom: 1rem; color: var(--text); }
.section-intro { max-width: 1000px; margin-bottom: 3rem; font-size: 1.05rem; line-height: 1.7; }

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

/* --- Styled list --- */
.list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}
.list-items li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.list-items li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Product Cards (homepage) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-decoration: none;
}
.product-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }
.product-card p { flex: 1; font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.product-card-link { font-size: 0.875rem; color: var(--accent); font-weight: 500; }

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.feature-item h4 { margin-bottom: 0.5rem; color: var(--text); }
.feature-item p { font-size: 0.9rem; line-height: 1.6; }

/* --- Screenshots --- */
.screenshots {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.screenshots-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.screenshot-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot-caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* --- Pricing --- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.billing-toggle-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.billing-toggle-label[data-active="true"] { color: var(--text); font-weight: 600; }
.billing-save-badge {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.billing-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.billing-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.15s ease, background 0.15s ease;
}
.billing-switch[aria-checked="true"] { border-color: var(--accent); }
.billing-switch[aria-checked="true"] .billing-switch-knob {
  transform: translateX(18px);
  background: var(--accent);
}
.pricing-period .period-yearly { display: none; }
.pricing-grid.yearly .pricing-period .period-monthly { display: none; }
.pricing-grid.yearly .pricing-period .period-yearly { display: inline; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricing-tier {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text); }
.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0 0.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.pricing-desc { font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.6; }
.pricing-features { list-style: none; }
.pricing-features li {
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

/* --- Data Table --- */
.data-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}
.data-table td {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}
.data-table td strong { color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.row-limit td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cell-upgrade {
  color: var(--accent);
  font-weight: 600;
}

.tier-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.tier-callout strong { color: var(--text); }

.pricing-features li.has-note { display: block; }
.pricing-features li.has-note::before { content: '—'; color: var(--accent); margin-right: 0.5rem; }
.feature-note {
  display: block;
  margin-left: 1.4rem;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Section alt (alternate background) --- */
.section-alt { background: var(--section-alt-bg); }

/* --- Product Components (SoaScape) --- */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.component-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  border-top: 3px solid var(--accent);
}
.component-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; color: var(--text); }
.component-card p { font-size: 0.9rem; line-height: 1.6; }

/* --- Principles list (homepage) --- */
.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.principles-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.principles-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 5.5rem 2rem;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner p {
  color: var(--on-dark-muted);
  max-width: 500px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--footer-text);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .cta-banner { border-color: var(--border); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo img { height: 27px; opacity: 0.6; display: block; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--footer-text); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { font-size: 0.8rem; }

/* --- Contact form --- */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form-field .required { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 146, 90, 0.15);
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) { border-color: #c2553f; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

/* Honeypot — hidden from people, tempting to bots. Not display:none, which
   some bots detect and skip. */
.form-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.form-consent { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-status {
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.form-status[hidden] { display: none; }
.form-status.is-success {
  background: rgba(212, 146, 90, 0.1);
  border: 1px solid var(--accent);
  color: var(--text);
}
.form-status.is-error {
  background: rgba(194, 85, 63, 0.08);
  border: 1px solid #c2553f;
  color: #7a3325;
}
:root[data-theme="dark"] .form-status.is-error { color: #e79a88; }
:root[data-theme="dark"] .form-field input:invalid:not(:placeholder-shown),
:root[data-theme="dark"] .form-field textarea:invalid:not(:placeholder-shown) { border-color: #e07a63; }

/* --- Feature group subheadings --- */
.feature-group { margin-top: 3rem; }
.feature-group:first-child { margin-top: 2.5rem; }
.feature-group-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 1.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .container { padding: 3.5rem 1.5rem; }
  .screenshots { padding: 0 1.5rem 3.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --- Pricing CTAs and commercial disclosure --- */
/* Equal-height cards so the Subscribe buttons line up across tiers even
   though the descriptions differ in length. */
.pricing-grid { align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-desc { flex: 1; }
.pricing-cta { margin: 0 0 1.5rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.pricing-cta-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
/* .btn-disabled is written for dark backgrounds; inside a pricing card it
   would render cream-on-white. Restate the colours for card surfaces. */
.btn-outline-light.btn-disabled { color: var(--text-muted); border-color: var(--border); }
.btn-primary.btn-disabled { color: #fff; }
/* A link whose destination is not configured yet keeps its label but stops
   behaving like a link (billing.js removes the href). */
a.is-unconfigured:not(.btn) { opacity: 0.5; cursor: default; }
a.is-unconfigured:not(.btn):hover { color: inherit; text-decoration: none; }

.pricing-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.pricing-note[hidden] { display: none; }
.pricing-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  background: var(--section-alt-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

/* Optional second currency, sits under the headline price. */
.pricing-price-alt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.pricing-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.pricing-secondary-item h4 { margin-bottom: 0.5rem; color: var(--text); }
.pricing-secondary-item p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.pricing-secondary-item a:not(.btn) { font-size: 0.875rem; font-weight: 500; }

/* --- Numbered steps (activation) --- */
.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.steps-list li {
  counter-increment: step;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.steps-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.steps-list h4 { margin-bottom: 0.5rem; color: var(--text); }
.steps-list p { font-size: 0.9rem; line-height: 1.6; }

/* --- Footer legal row --- */
.footer-legal {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
:root[data-theme="dark"] .footer-legal { border-top-color: var(--border); }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-links a { color: var(--footer-text); font-size: 0.8rem; text-decoration: none; }
.footer-legal-links a:hover { color: var(--accent); text-decoration: none; }
.footer-legal-note { font-size: 0.75rem; color: var(--footer-text); max-width: 52ch; }

@media (max-width: 768px) {
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* --- Legal / policy pages --- */
.legal { max-width: 760px; }
.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 1.3rem;
  margin: 2.75rem 0 0.85rem;
  color: var(--text);
}
.legal > h2:first-child, .legal-meta + h2 { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 2rem 0 0.6rem; color: var(--text); }
.legal p { margin-bottom: 1.1rem; line-height: 1.75; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal-list { margin: 0 0 1.4rem 1.35rem; }
ul.legal-list { list-style: disc; }
ol.legal-list { list-style: decimal; }
.legal-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}
.legal-list li::marker { color: var(--accent); }

/* Policy tables carry long cells; let them scroll rather than break the page. */
.table-scroll { overflow-x: auto; margin: 0 0 1.75rem; }
.table-scroll .data-table { margin-top: 0; min-width: 520px; }
.table-scroll .data-table td { font-size: 0.85rem; }
