/* home.css — landing page ONLY. Never loaded by CRM/portal/affiliate pages. */

:root {
  /* Blueprint-blue theme (Avoca-inspired). Var names kept from the original
     cream/terracotta theme: --cream = page base, --terra = accent. */
  --cream: #f6f8fc;
  --cream-deep: #ecf0f8;
  --ink: #202c4a;
  --ink-soft: #5d6a84;
  --terra: #3a72b6;
  --terra-deep: #2f5c93;
  --dark: #182238;
  --dark-soft: #232f4e;
  --dark-ink: #e9eef8;
  --dark-ink-soft: #9aa6c0;
  --line: rgba(32, 44, 74, 0.14);
  --line-dark: rgba(233, 238, 248, 0.14);
  --amber: #dd9921;
  --grid-minor: rgba(58, 114, 182, 0.07);
  --grid-major: rgba(58, 114, 182, 0.15);
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-condensed: "Anton", "Arial Narrow", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shell: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.section--dark :focus-visible { outline-color: var(--dark-ink); }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Shared ---------- */
.section-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
h1, h2 {
  font-family: var(--font-condensed);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 10vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: 20px; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.num { font-family: var(--font-mono); }
.section-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover { background: var(--ink); color: var(--dark-ink); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.section--dark .btn-primary:hover { background: var(--dark-ink); color: var(--ink); }
.btn-primary--lg { padding: 20px 44px; font-size: 1.15rem; }

.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .section-lead { color: var(--dark-ink-soft); }

/* Reveal (progressive enhancement) — only hides content when JS is running,
   so a blocked or failed script can never leave the page blank */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero load-in sequence — CSS-only so it runs with or without JS */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stage-rise {
  from { opacity: 0; transform: translateY(30px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > .eyebrow       { animation-delay: 0.05s; }
.hero-copy > h1             { animation-delay: 0.14s; }
.hero-copy > .hero-sub      { animation-delay: 0.26s; }
.hero-copy > .hero-actions  { animation-delay: 0.38s; }
.hero-copy > .hero-checks   { animation-delay: 0.48s; }
.hero-stage { animation: stage-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-stage { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .nav-inner { grid-template-columns: 1fr auto 1fr; }
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}
.nav-link:hover { color: var(--ink); }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
  margin-left: 14px;
}
@media (min-width: 760px) {
  .nav-logo { font-size: 1.25rem; letter-spacing: 0.16em; justify-self: center; margin-left: 0; }
}
.nav-right { justify-self: end; }
.nav-cta-outline {
  display: inline-block;
  white-space: nowrap;
  color: var(--terra);
  border: 1.5px solid var(--terra);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (min-width: 760px) {
  .nav-cta-outline { font-size: 0.9rem; padding: 9px 18px; }
}
.nav-cta-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--dark-ink); }
.nav-hamburger {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
}
.nav-dropdown {
  display: none;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
}
.nav-dropdown.is-open { display: block; }
.nav-dropdown__link {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
@media (min-width: 760px) {
  .nav-link { display: inline; }
  .nav-hamburger { display: none; }
  .nav-dropdown { display: none !important; }
  .nav-inner { padding: 0 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vh, 110px) 0 clamp(64px, 9vh, 110px);
}
/* Two-scale blueprint grid (16px minor / 80px major) fading down the page */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 16px 16px, 80px 80px, 16px 16px, 80px 80px;
  -webkit-mask-image: linear-gradient(#000 15%, transparent 85%);
  mask-image: linear-gradient(#000 15%, transparent 85%);
}
.hero .section-shell { position: relative; z-index: 1; }
.h1-accent { color: var(--terra); }

/* Hero + ticker fill the first viewport (minus the 65px nav); ticker pinned to bottom */
.hero-viewport {
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  display: flex;
  flex-direction: column;
}
.hero-viewport .hero { flex: 1 0 auto; display: flex; align-items: center; padding: 48px 0; }
.hero-viewport .hero .section-shell { width: 100%; }
.hero-viewport .ticker { flex: 0 0 auto; }
.hero-grid { display: grid; gap: 56px; text-align: center; }
.hero h1 { margin-bottom: 26px; }
.hero-sub {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-sublink {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.hero-sublink:hover { color: var(--terra); }
.hero-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-checks li { display: flex; align-items: center; gap: 10px; }
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check svg,
.vig-check svg { width: 55%; height: 55%; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; text-align: left; gap: 64px; }
  .hero h1 { font-size: clamp(3rem, 4.2vw, 4.2rem); }
  .hero-sub { margin: 0 0 34px; }
  .hero-actions { align-items: flex-start; }
  .hero-checks { align-items: flex-start; }
}

/* Hero stage — the vignette elevated over a blueprint-grid panel */
.hero-stage { position: relative; }
.stage-panel {
  position: relative;
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(242, 245, 251, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 251, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  border-radius: 18px;
  padding: 56px 28px 40px;
  box-shadow: 0 28px 64px rgba(14, 21, 38, 0.11);
}
.stage-badge {
  position: absolute;
  top: -16px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(14, 21, 38, 0.09);
}
.stage-badge .vig-dot { background: var(--amber); }
.stage-panel .vig-card { box-shadow: 0 20px 48px rgba(3, 8, 20, 0.45); transform: rotate(-1deg); }

/* Drafting-bracket corner marks on the stage */
.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--terra);
}
.hero-stage::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}
.hero-stage::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* ---------- Ticker — jobs landing on the board ---------- */
.ticker {
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--cream);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker-item em {
  font-style: normal;
  color: var(--terra);
  font-weight: 600;
}
.ticker-item em.em-alert { color: var(--amber); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Hero vignette — looping call-to-booked-job demo (decorative, aria-hidden) */
.hero-vignette {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}
.vig-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(14, 21, 38, 0.07);
  display: grid;
  gap: 14px;
}
.vig-row { display: flex; align-items: center; gap: 12px; }
.vig-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  animation: vig-pulse 1.4s ease-out infinite;
}
.vig-title { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.vig-meta { font-size: 0.82rem; color: var(--ink-soft); }
.vig-meta .num { font-size: 0.8rem; }
.vig-answered p { font-size: 0.9rem; color: var(--ink-soft); }
.vig-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vig-bubble {
  background: var(--cream-deep);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.vig-cal {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vig-cal .vig-check { width: 16px; height: 16px; }

/* Loop timeline: 9s — call appears, answered, booking bubble, calendar line, fade out */
.vig-call, .vig-answered, .vig-bubble, .vig-cal { opacity: 0; }
.vig-call     { animation: vig-a 9s ease infinite; }
.vig-answered { animation: vig-b 9s ease infinite; }
.vig-bubble   { animation: vig-c 9s ease infinite; transform-origin: bottom left; }
.vig-cal      { animation: vig-d 9s ease infinite; }
@keyframes vig-a {
  0%, 3%   { opacity: 0; transform: translateY(8px); }
  7%, 91%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes vig-b {
  0%, 20%  { opacity: 0; transform: translateY(8px); }
  24%, 91% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes vig-c {
  0%, 38%  { opacity: 0; transform: scale(0.94) translateY(6px); }
  43%, 91% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes vig-d {
  0%, 54%  { opacity: 0; }
  58%, 91% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes vig-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 114, 182, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(58, 114, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 114, 182, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .vig-call, .vig-answered, .vig-bubble, .vig-cal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .vig-dot { animation: none; }
}

/* ---------- The Leak ---------- */
.leak { padding: clamp(70px, 10vh, 120px) 0; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.stat-card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--terra); }
.stat-value {
  display: block;
  font-family: var(--font-condensed);
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-value.num { font-family: var(--font-condensed); }
.stat-label { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

.ledger {
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
  padding: 30px 8px;
  text-align: center;
}
.ledger-line {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
}
.ledger-line .num { font-weight: 600; }
.ledger-op { color: var(--terra); font-weight: 600; }
.ledger-total { color: var(--amber); font-weight: 700; }
.ledger-note {
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- The Fix ---------- */
.fix { padding: clamp(70px, 10vh, 120px) 0; background: var(--cream-deep); }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 56px;
}
@media (min-width: 760px) { .diff-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 56px; } }
.step-card { position: relative; border-top: 2px solid rgba(32, 44, 74, 0.3); padding-top: 22px; }
/* measurement tick on the rule — extends on hover like a dimension being drawn */
.step-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--terra);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover::before { width: 100%; }
.step-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 0.98rem; }
.fix-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  text-align: center;
  max-width: 30ch;
  margin: 0 auto;
}

/* ---------- Case Study ---------- */
.case { padding: clamp(80px, 11vh, 130px) 0; }
.case h2 .num { color: var(--terra); font-weight: 700; }
.case-body {
  max-width: 62ch;
  color: var(--dark-ink-soft);
  display: grid;
  gap: 18px;
  margin-bottom: 52px;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 36px 0;
  margin-bottom: 52px;
}
.case-stat { text-align: center; }
.case-stat-value {
  display: block;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--terra);
  line-height: 1.1;
  margin-bottom: 6px;
}
.case-stat p { color: var(--dark-ink-soft); font-size: 0.92rem; }
.testimonial {
  background: var(--dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 40px 34px;
  max-width: 640px;
}
.stars {
  color: #f0b429; /* review-gold, deliberately off-palette */
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  border: none;
  margin-bottom: 18px;
}
.testimonial figcaption { color: var(--dark-ink-soft); font-size: 0.92rem; }

/* ---------- The Trial (7-Day Free Lead Capture) ---------- */
.trial {
  padding: clamp(80px, 11vh, 130px) 0;
  background-image:
    linear-gradient(rgba(242, 245, 251, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 251, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.trial .section-shell { position: relative; }
/* drafting corner brackets, same treatment as the final CTA */
.trial .section-shell::before,
.trial .section-shell::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--terra);
}
.trial .section-shell::before {
  top: -34px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}
.trial .section-shell::after {
  bottom: -34px;
  right: 20px;
  border-left: none;
  border-top: none;
}
.trial .eyebrow,
.h2-accent { color: #7fa8d9; }
.trial .section-lead { max-width: 52ch; }
.trial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 52px;
}
@media (min-width: 900px) { .trial-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trial-step { position: relative; border-top: 2px solid rgba(233, 238, 248, 0.28); padding-top: 22px; }
.trial-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: #7fa8d9;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.trial-step:hover::before { width: 100%; }
.trial-step .step-num { color: #7fa8d9; }
.trial-step h3 { margin-bottom: 10px; }
.trial-step p { color: var(--dark-ink-soft); font-size: 0.98rem; }
.trial-terms {
  border-top: 2px dashed var(--line-dark);
  border-bottom: 2px dashed var(--line-dark);
  padding: 26px 8px;
  text-align: center;
  margin-bottom: 44px;
}
.trial-terms__line {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--dark-ink-soft);
}
.trial-terms__line strong { color: var(--dark-ink); }
.trial-cta { text-align: center; }
.trial-cta__note {
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink-soft);
}

/* ---------- Upgrades ---------- */
.upgrades { padding: clamp(70px, 10vh, 120px) 0; }
.upgrade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 760px) { .upgrade-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.upgrade-card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease;
}
.upgrade-card:hover { transform: translateY(-4px); border-color: var(--terra); }
.upgrade-card h3 { margin-bottom: 12px; }
.upgrade-card p { color: var(--ink-soft); font-size: 0.98rem; }
.upgrades-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- The Math ---------- */
.math { padding: clamp(70px, 10vh, 120px) 0; background: var(--cream-deep); }
.math h2 { margin-bottom: 48px; }
.math-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .math-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; } }
.math-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.math-card:hover { transform: translateY(-4px); }
.math-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.math-price {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  color: var(--terra);
  line-height: 1.1;
  margin-bottom: 20px;
}
.math-card--servex .math-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--dark-ink);
  line-height: 1.3;
}
.math-card ul { list-style: none; display: grid; gap: 10px; }
.math-card li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
}
.math-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 600;
}
.math-card--servex {
  border: 2px solid var(--terra);
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(242, 245, 251, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 251, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--dark-ink);
}
.math-card--servex li { color: var(--dark-ink-soft); }
.math-card--servex li::before { content: "+"; }
.math-cta {
  display: inline-block;
  margin-top: 22px;
  color: var(--terra);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
}
.math-cta:hover { color: var(--terra-deep); }
.math-card--servex .math-cta {
  background: var(--terra);
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.math-card--servex .math-cta:hover { background: var(--dark-ink); color: var(--ink); }

/* ---------- Final CTA ---------- */
.final {
  padding: clamp(90px, 13vh, 150px) 0;
  text-align: center;
  background-image:
    linear-gradient(rgba(242, 245, 251, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 251, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.final .section-shell { position: relative; }
.final .section-shell::before,
.final .section-shell::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--terra);
}
.final .section-shell::before {
  top: -34px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}
.final .section-shell::after {
  bottom: -34px;
  right: 20px;
  border-left: none;
  border-top: none;
}
.final h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.final-sub {
  color: var(--dark-ink-soft);
  max-width: 44ch;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}
.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; padding: 0 32px 40px; }
}
.site-footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.1rem;
}
.site-footer__tagline { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }
.site-footer__links { display: grid; gap: 10px; align-content: start; }
.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer__links a:hover { color: var(--ink); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
