/* 8xQuant — premium pricing and contact pages */

/* ---------- home-matched typography (pricing only) ----------
   Same roles as the About page: Georgia serif headlines in natural case,
   system-sans paragraphs. Scoped to .terms-page (pricing) so the shared
   .manrope-heading treatment on contact and the other pages is untouched. */
.terms-page h1.manrope-heading,
.terms-page h2.manrope-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
  text-wrap: balance;
}
.terms-page .tape-hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
.terms-page .terms-section-intro h2,
.terms-page .terms-final-cta h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; }
.terms-page .tape-hero-copy > p,
.terms-page .terms-section-intro p,
.terms-page .terms-route-description,
.terms-page .terms-route-list,
.terms-page .terms-route-note span,
.terms-page .agreement-item p,
.terms-page .terms-final-cta p,
.terms-page .terms-disclaimer p {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* ---------- home-matched typography (contact only) ----------
   Same roles as About/Pricing: Georgia serif headlines in natural case,
   system-sans paragraphs. Scoped to .contact-page; panel titles and step
   labels keep their designed Doto/mono treatments. */
.contact-page h1.manrope-heading,
.contact-page h2.manrope-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
  text-wrap: balance;
}
.contact-page .tape-hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; }
.contact-page .contact-context h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; }
.contact-page .tape-hero-copy > p,
.contact-page .contact-hero-aside p,
.contact-page .contact-context > p,
.contact-page .contact-step p,
.contact-page .contact-note p,
.contact-page .form-panel-title p {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* ---------- shared page frame ---------- */
.premium-page {
  --ink: var(--text);
  --quiet: #77746e;
}
.premium-page main { padding-bottom: 76px; }
.premium-page .btn { border-radius: 7px; }
.premium-page .btn.primary { background: var(--ember); }
.premium-page .section-index {
  color: var(--ember);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.premium-page h2 span,
.premium-page h3 span { color: var(--ember); }

/* ---------- pricing: access routes ---------- */
.terms-page .tape-hero { padding-bottom: 88px; }
.terms-page .tape-hero-copy > p { max-width: 680px; }
.terms-hero-aside {
  min-width: 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 4px;
}
.terms-hero-figure {
  color: var(--ink);
  font-family: var(--dot);
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: 2px;
  line-height: .9;
  text-transform: uppercase;
}
.terms-hero-figure span { color: var(--ember); }

.terms-routes,
.premium-section,
.terms-final,
.contact-workspace {
  border-top: 1px solid var(--line);
}
.terms-routes { padding: 86px 0 104px; }
.terms-section-intro {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr);
  gap: 54px;
  align-items: start;
}
.terms-section-intro h2,
.contact-context h2,
.terms-final-cta h2 {
  color: var(--ink);
  font-family: var(--dot);
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 400;
  letter-spacing: 2.5px;
  line-height: 1.02;
  text-transform: uppercase;
}
.terms-section-intro p {
  max-width: 590px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.terms-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 54px;
}
.terms-route {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.terms-route.featured { border-color: rgba(236,1,28, .58); }
.terms-route-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 23px;
  border-bottom: 1px dashed var(--line);
}
.route-index {
  color: var(--ember);
  font-family: var(--dot);
  font-size: 42px;
  line-height: .8;
}
.route-kicker {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: right;
}
.terms-route-title-row { margin-top: 26px; }
.terms-route h3 {
  color: var(--ink);
  font-family: var(--dot);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.15;
  text-transform: uppercase;
}
.terms-route-basis {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-transform: uppercase;
}
.terms-route-description {
  margin-top: 21px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.terms-route-facts {
  margin-top: 26px;
  border-top: 1px dashed var(--line);
}
.terms-route-facts div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.terms-route-facts dt {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.terms-route-facts dd {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}
.terms-route-bottom { margin-top: auto; padding-top: 24px; }
.terms-route-list {
  list-style: none;
  margin: 0 0 26px;
  border-top: 1px dashed var(--line);
}
.terms-route-list li {
  position: relative;
  padding: 11px 0 11px 16px;
  color: #d8d5cd;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.5;
}
.terms-route-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--ember);
}
.terms-route .btn { align-self: flex-start; }
.terms-route-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-bottom: 24px;
  padding: 13px 14px;
  background: #000;
  border: 1px dashed var(--line2);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}
.terms-route-note strong {
  color: var(--ember);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ---------- pricing: agreement map ---------- */
.premium-section { padding: 92px 0 104px; }
.agreement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 58px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.agreement-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0 27px;
  border-bottom: 1px dashed var(--line);
}
.agreement-number {
  color: var(--ember);
  font-family: var(--dot);
  font-size: 30px;
  line-height: .9;
}
.agreement-item h3 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  line-height: 1.35;
  text-transform: uppercase;
}
.agreement-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- pricing: next step ---------- */
.terms-final {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 20px;
  padding: 86px 0 8px;
}
.terms-final-cta,
.terms-disclaimer {
  padding: 30px;
  border-radius: 12px;
}
.terms-final-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 300px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.terms-final-cta h2 { margin-top: 22px; }
.terms-final-cta p {
  max-width: 600px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.terms-final-cta .btn { margin-top: auto; }
.terms-disclaimer {
  align-self: stretch;
  margin: 0;
  border: 1px dashed var(--line2);
}

/* ---------- contact ---------- */
.contact-page .tape-hero { padding-bottom: 88px; }
.contact-page .tape-hero-copy > p { max-width: 600px; }
.contact-hero-aside {
  max-width: 260px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 0 5px 22px;
  border-left: 1px dashed var(--line2);
}
.contact-signal {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.contact-signal .status-dot { margin-right: 8px; }
.contact-hero-aside p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(430px, 1.22fr);
  gap: clamp(42px, 7vw, 100px);
  padding: 90px 0 104px;
}
.contact-context > p {
  max-width: 440px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.contact-context h2 { margin-top: 20px; }
.contact-steps {
  list-style: none;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}
.contact-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 22px;
  border-bottom: 1px dashed var(--line);
}
.contact-step > span {
  color: var(--ember);
  font-family: var(--dot);
  font-size: 27px;
  line-height: .95;
}
.contact-step h3 {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.contact-step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.contact-note {
  margin-top: 34px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.contact-note-label,
.form-meta {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.contact-note p {
  max-width: 430px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}
.inline-link {
  color: var(--ember);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
}
.inline-link:hover { color: var(--ink); }
.form-panel {
  min-width: 0;
  padding: 30px;
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.form-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.form-panel-title { padding: 26px 0 25px; }
.form-panel-title h2 {
  color: var(--ink);
  font-family: var(--dot);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}
.form-panel-title p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}
.contact-page #contactForm { gap: 18px; }
.contact-page .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-page .field { min-width: 0; }
.contact-page label { display: block; margin: 0 0 8px; font-size: 9px; letter-spacing: 1.7px; }
.contact-page input,
.contact-page textarea {
  width: 100%;
  background: #0d0b09;
  border-color: var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.contact-page input { min-height: 44px; }
.contact-page textarea { min-height: 170px; }
.contact-page input:focus,
.contact-page textarea:focus { border-color: var(--ember); }
.contact-page .fielderr { margin-top: 0; }
.contact-page .ok { margin-top: 0; }
.contact-page .btn.full { margin-top: 0; min-height: 48px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .terms-section-intro { grid-template-columns: 1fr; gap: 20px; }
  .terms-route-grid { grid-template-columns: 1fr; }
  .terms-route { min-height: 0; }
  .contact-workspace { grid-template-columns: 1fr; gap: 64px; }
  .contact-context > p { max-width: 620px; }
  .contact-hero-aside { max-width: 380px; }
}

@media (max-width: 700px) {
  .premium-page main { padding-bottom: 54px; }
  .terms-page .tape-hero,
  .contact-page .tape-hero { padding-bottom: 70px; }
  .terms-hero-aside { min-width: 0; }
  .terms-hero-figure { font-size: 29px; }
  .terms-routes,
  .premium-section,
  .contact-workspace { padding: 68px 0 78px; }
  .terms-section-intro h2,
  .contact-context h2,
  .terms-final-cta h2 { font-size: clamp(32px, 10vw, 48px); }
  .terms-route { padding: 23px; }
  .terms-route-top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .route-kicker { text-align: left; }
  .terms-route h3 { font-size: 23px; }
  .terms-route-facts div { grid-template-columns: 1fr; gap: 5px; }
  .terms-route-facts dd { text-align: left; }
  .agreement-list { grid-template-columns: 1fr; margin-top: 38px; }
  .terms-final { grid-template-columns: 1fr; padding-top: 68px; }
  .terms-final-cta,
  .terms-disclaimer,
  .form-panel { padding: 23px; }
  .contact-hero-aside { padding-left: 16px; }
  .contact-workspace { gap: 52px; }
  .contact-page .field-row { grid-template-columns: 1fr; gap: 18px; }
  .form-panel-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ---------- scroll reveal (same gate as home: home-reveal.js adds .js-reveal
   + .is-shown; content stays fully visible without JS, observers, or motion) ---------- */
.js-reveal .reveal { opacity: 0; translate: 0 22px; }
.js-reveal .reveal.is-shown { animation: reveal-in .7s cubic-bezier(.22,.61,.36,1) both; }
.js-reveal .terms-route-grid .terms-route:nth-child(2).is-shown { animation-delay: .1s; }
.js-reveal .agreement-list .agreement-item:nth-child(2).is-shown { animation-delay: .07s; }
.js-reveal .agreement-list .agreement-item:nth-child(3).is-shown { animation-delay: .14s; }
.js-reveal .agreement-list .agreement-item:nth-child(4).is-shown { animation-delay: .21s; }
.js-reveal .agreement-list .agreement-item:nth-child(5).is-shown { animation-delay: .28s; }
.js-reveal .agreement-list .agreement-item:nth-child(6).is-shown { animation-delay: .35s; }
@keyframes reveal-in {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-page .status-dot { box-shadow: none; }
  .js-reveal .reveal { opacity: 1; translate: none; }
  .js-reveal .reveal.is-shown { animation: none; }
}
