/* Equus Metric marketing site -- design tokens ported 1:1 from
   src/theme/tokens.ts so this site and the app never visually drift.
   Dark-section tokens (--brand-darker, --accent-bright, --cream) are
   new additions for this site only, built from the same palette
   family, not a second unrelated theme. */

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-alt: #FBF8F2;
  --ink: #1C2420;
  --ink-muted: #5B655D;
  --line: #E3DFD5;
  --brand: #2F4A3B;
  --brand-dark: #24392C;
  --brand-darker: #16211A;
  --brand-tint: #E7ECE7;
  --accent: #B08251;
  --accent-bright: #D9A868;
  --accent-tint: #F3E7D8;
  --flag: #B5502F;
  --flag-tint: #F5E3DB;
  --cream: #F2ECDC;
  --badge-green-bg: #E4EEE6;
  --badge-green-text: #2F4A3B;
  --badge-amber-bg: #F5E9D8;
  --badge-amber-text: #8A5A24;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(28, 36, 32, 0.05), 0 8px 28px rgba(28, 36, 32, 0.06);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Spectral", Georgia, serif;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

p { margin: 0; }

a { color: var(--brand); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* scroll-reveal -- resting state is fully visible content; this only
   adds polish once JS confirms it can run. No-JS or reduced-motion
   visitors simply see everything settled already. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-lockup img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-lockup span {
  font-family: "Spectral", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.header-nav a:hover { color: var(--ink); }

.header-nav .cta {
  color: var(--white);
  background: var(--brand);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.header-nav .cta:hover { background: var(--brand-dark); }

/* ---------- hero (dark) ---------- */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 78% 8%, #23372a 0%, var(--brand-darker) 46%, #0f1712 100%);
  color: var(--cream);
  padding: 84px 0 0;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 560px;
}

.hero-copy { position: relative; z-index: 2; padding-bottom: 64px; }

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(242, 236, 220, 0.18);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(242, 236, 220, 0.72);
  max-width: 44ch;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-bright);
  color: #24190C;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(217, 168, 104, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(217, 168, 104, 0.36); }

.btn-ghost-link {
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(242, 236, 220, 0.4);
  padding-bottom: 2px;
}
.btn-ghost-link:hover { border-color: var(--cream); }

.btn-primary.on-light {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary.on-light:hover { background: var(--brand-dark); }
.btn-ghost-link.on-light { color: var(--ink); border-color: var(--line); }
.btn-ghost-link.on-light:hover { border-color: var(--ink-muted); }

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(242, 236, 220, 0.55);
}

.hero-art {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 440px;
}
.hero-art img {
  position: absolute;
  left: 50%;
  bottom: -8%;
  transform: translateX(-50%);
  height: 122%;
  width: auto;
  max-width: none;
}

/* discipline marquee, bridges hero into the light content below */
.marquee {
  position: relative;
  background: var(--brand-darker);
  border-top: 1px solid rgba(242, 236, 220, 0.08);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span {
  font-family: "Spectral", serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(242, 236, 220, 0.55);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 24px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.6;
  vertical-align: middle;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- sections (light) ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .kicker {
  display: block;
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }

.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 16.5px;
  line-height: 1.6;
}

/* bento feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  grid-column: span 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card.wide { grid-column: span 4; display: flex; gap: 28px; align-items: center; }

.feature-card h3 { font-size: 19px; }
.feature-card p { margin-top: 10px; color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }
.feature-card .feature-art { flex: none; width: 168px; height: 168px; border-radius: var(--radius-md); overflow: hidden; }
.feature-card.wide .feature-copy { flex: 1; }

.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card:not(.wide) .feature-art {
  width: 100%;
  height: 210px;
  margin-bottom: 18px;
}

/* pricing: one plan */

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}

.plan-price { display: flex; flex-direction: column; gap: 6px; }

.plan-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.plan-trial { font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--ink); }
.plan-then { font-size: 18px; color: var(--ink-muted); }
.plan-then strong { color: var(--ink); font-weight: 800; }
.plan-fine { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.plan-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}

.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--brand); font-size: 16px; line-height: 1.3; }

.pricing-note {
  text-align: center;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* trust strip */

.trust-strip {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}

.trust-strip p {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.trust-strip .disclaimer {
  margin-top: 10px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* final cta (dark bookend) */

.final-cta {
  position: relative;
  text-align: center;
  padding: 96px 0;
  background: radial-gradient(120% 160% at 50% 120%, #23372a 0%, var(--brand-darker) 55%, #0f1712 100%);
  color: var(--cream);
  overflow: hidden;
}
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; margin: 0 auto; color: var(--cream); }
.final-cta p { margin-top: 18px; color: rgba(242, 236, 220, 0.65); font-size: 16px; }
.final-cta .hero-ctas { justify-content: center; margin-top: 32px; position: relative; z-index: 2; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy { color: var(--ink-muted); font-size: 13px; }

/* ---------- legal pages ---------- */

.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 720px; }
.legal-page h1 { font-size: 30px; margin-bottom: 8px; }
.legal-updated { color: var(--ink-muted); font-size: 13px; margin-bottom: 16px; }
.legal-intro { color: var(--ink); font-size: 15px; line-height: 1.65; margin-bottom: 40px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-family: "Spectral", serif; font-size: 17px; margin-bottom: 8px; }
.legal-section p { color: var(--ink-muted); font-size: 15px; line-height: 1.65; }
.legal-section ul { margin: 0; padding-left: 20px; }
.legal-section li { color: var(--ink-muted); font-size: 15px; line-height: 1.65; margin-bottom: 4px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-back:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero { padding-top: 56px; }
  .hero-copy { padding-bottom: 40px; text-align: left; }
  .hero-art { min-height: 320px; height: 320px; order: -1; margin-bottom: 8px; opacity: 0.85; }
  .hero-art img { left: 50%; bottom: -6%; height: 118%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-column: span 2 !important; }
  .feature-card.wide { flex-direction: column; align-items: flex-start; }
  .feature-card.wide .feature-art { width: 100%; height: 210px; margin-bottom: 18px; }
  .plan-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .header-nav { gap: 16px; }
  .header-nav a:not(.cta) { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }

  .plan-trial { font-size: 28px; }
}

/* ---------- horse weight calculator ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calc-hero { padding: 64px 0 8px; }
.calc-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.calc-hero .lede { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 56ch; }

.eyebrow-chip.eyebrow-light {
  background: var(--brand-tint);
  border-color: transparent;
  color: var(--brand);
  margin-bottom: 20px;
}

.calc-tool { padding: 36px 0 56px; }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-card-title { font-family: "Spectral", Georgia, serif; font-weight: 700; font-size: 20px; }

.calc-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--badge-amber-text);
  background: var(--badge-amber-bg);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.calc-chip[hidden] { display: none; }

.calc-units { border: 0; margin: 0; padding: 4px; display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-pill); width: max-content; max-width: 100%; }
.calc-unit { position: relative; cursor: pointer; }
.calc-unit input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-unit span {
  display: block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.calc-unit input:checked + span { background: var(--brand); color: var(--white); }
.calc-unit input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.calc-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.calc-input { position: relative; }
.calc-input input,
.calc-field select {
  width: 100%;
  height: 56px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 60px 0 16px;
  appearance: none;
  -moz-appearance: textfield;
}
.calc-field select {
  padding-right: 16px;
  font-size: 17px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 25px, calc(100% - 16px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input input:focus,
.calc-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 74, 59, 0.14); }
.calc-input span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  pointer-events: none;
}
.calc-help { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

.calc-result {
  background: radial-gradient(120% 140% at 80% 0%, #23372a 0%, var(--brand-darker) 55%, #0f1712 100%);
  color: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.calc-result-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright); }
.calc-kg { display: flex; align-items: baseline; gap: 10px; font-family: "Spectral", Georgia, serif; font-weight: 700; line-height: 1; }
.calc-kg > span:first-child { font-size: clamp(64px, 9vw, 96px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-kg-unit { font-size: 28px; color: rgba(242, 236, 220, 0.7); }
.calc-alt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); opacity: 0.7; }
.calc-range { font-size: 14.5px; line-height: 1.55; color: rgba(242, 236, 220, 0.78); }
.calc-forage { font-size: 13.5px; line-height: 1.55; color: rgba(242, 236, 220, 0.62); padding-top: 14px; border-top: 1px solid rgba(242, 236, 220, 0.14); }
.calc-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: #F5E9D8;
  background: rgba(176, 130, 81, 0.22);
  border: 1px solid rgba(217, 168, 104, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.calc-error { font-size: 15px; font-weight: 700; color: #F4C7B6; }
.calc-note[hidden], .calc-error[hidden] { display: none; }
.calc-result.is-empty .calc-kg > span:first-child,
.calc-result.is-empty .calc-alt { opacity: 0.35; }

.calc-disclaimer, .calc-noscript { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--ink-muted); max-width: 70ch; }

.calc-measure, .calc-formula, .calc-faq { padding: 64px 0; }
.calc-measure { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-narrow { max-width: 760px; }
.calc-narrow .section-head { max-width: none; text-align: left; margin-bottom: 30px; }

.calc-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.calc-steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px 22px 72px;
}
.calc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.calc-steps h3 { font-size: 18px; }
.calc-steps p { margin-top: 6px; color: var(--ink-muted); font-size: 15px; line-height: 1.65; }

.calc-table-wrap { overflow-x: auto; }
.calc-table { width: 100%; max-width: 420px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.calc-table th, .calc-table td { text-align: left; padding: 12px 18px; font-size: 15px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc-table th { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-alt); }
.calc-table tr:last-child td { border-bottom: 0; }
.calc-fine { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); max-width: 62ch; }

.calc-faq-list { display: flex; flex-direction: column; gap: 10px; }
.calc-faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 22px; }
.calc-faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
}
.calc-faq-list summary::-webkit-details-marker { display: none; }
.calc-faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.calc-faq-list details[open] summary::after { content: "\2212"; }
.calc-faq-list summary:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }
.calc-faq-list p { padding: 0 0 20px; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-hero { padding-top: 40px; }
}

@media (max-width: 480px) {
  .calc-card { padding: 24px 20px; }
  .calc-result { padding: 28px 22px; }
  .calc-steps li { padding: 20px 18px 20px 62px; }
  .calc-steps li::before { left: 16px; top: 20px; }
}

/* ---------- guide articles ---------- */

.article { padding: 48px 0 72px; }
.article .wrap { max-width: 740px; }
.article h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.article-meta { margin-top: 14px; font-size: 13.5px; color: var(--ink-muted); }
.article .lede { margin-top: 20px; font-size: 19px; line-height: 1.65; color: var(--ink); }
.article h2 { font-size: 26px; line-height: 1.2; margin: 44px 0 14px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.75; color: #2b352f; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; font-size: 16.5px; line-height: 1.7; color: #2b352f; }
.article a { color: var(--brand); font-weight: 600; }
.article strong { color: var(--ink); }

.article-keys {
  margin: 28px 0 8px;
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.article-keys h2 { font-size: 17px; margin: 0 0 10px; font-family: "Manrope", system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand); }
.article-keys ul { margin: 0; }
.article-keys li { margin-bottom: 6px; font-size: 15.5px; }

.article-formula {
  margin: 20px 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.7;
}
.article-formula strong { display: block; font-family: "Spectral", Georgia, serif; font-size: 19px; margin-bottom: 4px; }

.article-table-wrap { overflow-x: auto; margin: 20px 0 24px; }
.article-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: 15px; }
.article-table th, .article-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.article-table th { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-alt); white-space: nowrap; }
.article-table tr:last-child td { border-bottom: 0; }
.article-table td:first-child { font-weight: 700; white-space: nowrap; }

.article-note { margin: 22px 0; padding: 16px 20px; background: var(--badge-amber-bg); border-radius: var(--radius-md); font-size: 15px; line-height: 1.65; color: #5b3d17; }

.article-cta {
  margin: 44px 0 8px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 140% at 80% 0%, #23372a 0%, var(--brand-darker) 55%, #0f1712 100%);
  color: var(--cream);
}
.article .article-cta h2 { margin: 0 0 10px; font-size: 24px; color: var(--cream); }
.article .article-cta p { color: rgba(242, 236, 220, 0.78); font-size: 16px; }
.article .article-cta .btn-primary { color: #24190C; font-weight: 800; }
.article-cta .hero-ctas { margin-top: 22px; }
.article .article-cta .btn-ghost-link { color: var(--cream); border-color: rgba(242, 236, 220, 0.4); font-weight: 700; }
.article .article-cta .btn-ghost-link:hover { border-color: var(--cream); }

.article-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-related h2 { margin: 0 0 12px; font-size: 20px; }
.article-related ul { list-style: none; padding: 0; margin: 0; }
.article-related li { margin-bottom: 10px; }

.calc-related { padding: 56px 0 64px; }
.calc-related .calc-narrow { max-width: 760px; }
.calc-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.calc-related li a {
  display: block;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.calc-related li a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.calc-related li strong { display: block; font-family: "Spectral", Georgia, serif; font-size: 19px; }
.calc-related li span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-muted); line-height: 1.55; }

/* the wide six-area table turns into one readable card per area on phones */
@media (max-width: 640px) {
  .article-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .article-table.stack,
  .article-table.stack tbody,
  .article-table.stack tr,
  .article-table.stack td { display: block; }
  .article-table.stack tr { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
  .article-table.stack tr:last-child { border-bottom: 0; }
  .article-table.stack td { border: 0; padding: 6px 18px; white-space: normal; }
  .article-table.stack td:first-child { padding-top: 14px; font-family: "Spectral", Georgia, serif; font-size: 19px; }
  .article-table.stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
  }
}

@media (max-width: 480px) {
  .article { padding-top: 32px; }
  .article .lede { font-size: 17.5px; }
  .article h2 { font-size: 23px; }
  .article-cta { padding: 24px 20px; }
}

/* ---------- launch list signup (sits on the dark call-to-action sections) ---------- */

.signup { margin: 28px 0 0; max-width: 520px; text-align: left; }
.final-cta .signup { margin-left: auto; margin-right: auto; }
.signup-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.signup-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.signup-row input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1C2420;
  background: #FFFFFF;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
}
.signup-row input[type="email"]::placeholder { color: #7B847D; font-weight: 500; }
.signup-row input[type="email"]:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgba(217, 168, 104, 0.3); }
.signup-row .btn-primary { height: 52px; padding: 0 26px; border: 0; cursor: pointer; font-family: inherit; justify-content: center; }
.signup-row .btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }

.signup-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: rgba(242, 236, 220, 0.82); cursor: pointer; }
.signup-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-bright); }
.signup-consent a, .article .signup-consent a { color: var(--accent-bright); font-weight: 700; text-decoration: underline; }

.signup-status { min-height: 22px; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--cream); }
.article .signup-status, .final-cta .signup-status { font-size: 14.5px; }
.signup-status.is-error { color: #F4C7B6; }
.signup-status.is-ok { color: #BFE0C4; font-size: 16px; }
.signup.is-done .signup-row, .signup.is-done .signup-consent { display: none; }

@media (max-width: 480px) {
  .signup-row .btn-primary { width: 100%; }
}
