/* Inner page styles — shared across features, pricing, affiliates, about, legal, contact */

.page-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, color-mix(in oklab, var(--saffron) 20%, transparent), transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 90%, color-mix(in oklab, var(--terracotta-soft) 30%, transparent), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 16px 0 20px;
  max-width: 900px;
}
.page-hero h1 em { color: var(--terracotta); font-style: italic; }
.page-hero p.lede { font-size: var(--t-xl); color: var(--fg-2); max-width: 640px; margin: 0; }

.breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex; gap: 8px;
}
.breadcrumb a:hover { color: var(--terracotta); }

/* Features page */
.f-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.f-block:nth-child(even) .f-copy { order: 2; }
@media (max-width: 860px) {
  .f-block { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .f-block:nth-child(even) .f-copy { order: 0; }
}
.f-num {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.f-copy h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 20px;
  line-height: 1.05;
  font-weight: 400;
}
.f-copy h2 em { font-style: italic; color: var(--terracotta); }
.f-copy p { font-size: var(--t-lg); color: var(--fg-2); line-height: 1.55; margin: 0 0 20px; max-width: 520px; }
.f-bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.f-bullets li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-top: 1px dashed var(--rule);
  font-size: 15px;
}
.f-bullets li::before {
  content: "→"; position: absolute; left: 0; top: 9px; color: var(--terracotta);
}

.f-visual {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
  min-height: 320px;
}
.f-code {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
}
.f-code .c { color: #7FB08F; }
.f-code .k { color: var(--saffron); }
.f-code .s { color: var(--terracotta-soft); }
.f-code .n { color: #a0d4ff; }

.f-invoice {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.f-invoice-head { display:flex; justify-content:space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.f-invoice-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.f-invoice-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px; font-weight: 600; font-size: 14px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.pp { padding: 40px 32px; display: flex; flex-direction: column; }
.pp-name { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.pp-price { font-family: var(--f-display); font-size: 4rem; line-height: 1; margin: 14px 0 4px; }
.pp-price span { font-size: 1rem; color: var(--fg-3); font-family: var(--f-ui); }
.pp-blurb { color: var(--fg-2); margin-bottom: 28px; min-height: 48px; font-size: 15px; }
.pp-cta { margin-bottom: 28px; }
.pp-feat { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--rule); padding-top: 16px; }
.pp-feat li { padding: 10px 0 10px 24px; position: relative; font-size: 14px; color: var(--fg-2); }
.pp-feat li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--terracotta); }
.pp-feat li.disabled { color: var(--fg-3); opacity: 0.6; }
.pp-feat li.disabled::before { content: "—"; color: var(--fg-3); }
.pp-highlight { background: var(--ink); color: var(--ivory); border-color: var(--ink); position: relative; }
.pp-highlight::before, .pp-highlight::after, .pp-highlight .n-bl, .pp-highlight .n-br { background: var(--terracotta); }
.pp-highlight .pp-name { color: var(--saffron); }
.pp-highlight .pp-price span { color: color-mix(in oklab, var(--ivory) 55%, transparent); }
.pp-highlight .pp-blurb { color: color-mix(in oklab, var(--ivory) 75%, transparent); }
.pp-highlight .pp-feat { border-color: rgba(255,255,255,0.12); }
.pp-highlight .pp-feat li { color: color-mix(in oklab, var(--ivory) 90%, transparent); }
.pp-highlight .pp-feat li::before { color: var(--saffron); }

/* Comparison table */
.comp-table { margin-top: 80px; border-top: 1px solid var(--rule); }
.comp-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.comp-row > div { padding: 16px 14px; font-size: 14px; }
.comp-row > div:first-child { color: var(--fg); font-weight: 500; }
.comp-row > div:not(:first-child) { text-align: center; color: var(--fg-2); font-family: var(--f-mono); font-size: 13px; }
.comp-head { background: var(--bg-sunken); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.comp-head > div:not(:first-child) { font-family: var(--f-mono); color: var(--fg-3); }
.comp-cat {
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Affiliates page */
.aff-hero {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.aff-card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
}
.aff-card-num { font-family: var(--f-display); font-size: 2.5rem; color: var(--terracotta); line-height: 1; }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .aff-stats { grid-template-columns: 1fr; } }

/* About */
.about-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding: 80px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .about-block { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; } }
.about-block h2 { font-family: var(--f-display); font-size: 2rem; font-weight: 400; margin: 0; line-height: 1.1; }
.about-block p { font-size: var(--t-lg); color: var(--fg-2); line-height: 1.6; margin: 0 0 16px; }

/* Legal / prose */
.prose {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 80px 24px;
}
.prose h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--ink); line-height: 1.05; margin: 0 0 16px; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; color: var(--ink); margin: 56px 0 16px; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.prose .lede { font-size: var(--t-xl); color: var(--fg); margin-bottom: 32px; font-family: var(--f-display); font-weight: 400; line-height: 1.3; }
.prose .meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose .placeholder-note {
  background: var(--ivory-2);
  border: 1px dashed var(--rule-strong);
  padding: 14px 18px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin: 24px 0 48px;
}

/* TOC */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 88px; align-self: start; font-family: var(--f-mono); font-size: 12px; }
.toc h5 { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; font-weight: 400; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { padding: 6px 0; border-left: 2px solid var(--rule); padding-left: 14px; counter-increment: toc; }
.toc li::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--fg-3); }
.toc a { color: var(--fg-2); }
.toc a:hover { color: var(--terracotta); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 80px 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-form { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 10px; padding: 32px; }
.contact-form label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 8px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 16px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--terracotta); }
.contact-channel {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 16px;
}
.contact-channel h4 { font-family: var(--f-display); font-size: 1.25rem; margin: 0 0 4px; font-weight: 400; }
.contact-channel a { color: var(--terracotta); font-family: var(--f-mono); font-size: 13px; }

/* Small responsive nav — we'll keep desktop-first */

/* Shared footer already in tokens */
