:root {
  --ink: #102a26;
  --ink-2: #24433d;
  --ink-soft: #526b65;
  --forest: #0b2520;
  --forest-2: #123c33;
  --forest-3: #1a4b40;
  --lime: #d9ff67;
  --lime-2: #c8f24c;
  --lime-dark: #8fab20;
  --cream: #f7f3e8;
  --cream-2: #efeadd;
  --paper: #fffdf7;
  --white: #ffffff;
  --line: #d7ddd4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #71817c;
  --danger: #993d35;
  --danger-bg: #fff0ed;
  --safe: #1f6b4e;
  --safe-bg: #eaf7ef;
  --shadow-sm: 0 8px 28px rgba(13, 40, 34, 0.07);
  --shadow-md: 0 24px 70px rgba(13, 40, 34, 0.12);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.22);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --section-space: clamp(88px, 10vw, 144px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--forest);
  background: var(--lime);
  font-weight: 850;
}
.skip-link:focus { top: 1rem; }

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

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--safe);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow > span { width: 26px; height: 2px; flex: 0 0 auto; background: currentColor; }
.eyebrow-light { color: var(--lime); }

h1, h2, h3, p { text-wrap: pretty; }
h1, h2 {
  margin: 0;
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.058em;
  line-height: 0.99;
}
h1 em, h2 em {
  color: var(--safe);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(159, 197, 38, 0.55);
  outline-offset: 3px;
}
.button-small { min-height: 44px; padding-inline: 17px; font-size: 0.86rem; }
.button-dark { color: var(--white); background: var(--forest); }
.button-dark:hover { background: var(--forest-2); box-shadow: 0 10px 24px rgba(11, 37, 32, 0.18); }
.button-primary { color: var(--forest); background: var(--lime); box-shadow: 0 12px 28px rgba(168, 208, 44, 0.19); }
.button-primary:hover { background: #e3ff88; box-shadow: 0 15px 34px rgba(168, 208, 44, 0.3); }
.button-light { width: 100%; color: var(--forest); background: var(--white); border-color: rgba(255, 255, 255, 0.2); }
.button-light:hover { background: var(--lime); }
.button-arrow span { font-size: 1.05em; transition: transform 180ms ease; }
.button-arrow:hover span { transform: translateX(3px); }

/* Header */
.site-header {
  width: min(1260px, calc(100% - 30px));
  margin: 12px auto 0;
  position: sticky;
  top: 10px;
  z-index: 80;
}
.header-inner {
  min-height: 74px;
  padding: 9px 10px 9px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(16, 42, 38, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.91);
  box-shadow: 0 9px 35px rgba(16, 42, 38, 0.04);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.site-header.scrolled .header-inner { min-height: 66px; background: rgba(255, 253, 247, 0.97); box-shadow: var(--shadow-sm); }
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; color: var(--forest); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { color: var(--ink); font-size: 1.15rem; font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.01em; }
.site-header nav { display: flex; align-items: center; gap: 31px; }
.site-header nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--lime-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  min-height: 720px;
  padding: clamp(72px, 8vw, 106px) 0 clamp(80px, 9vw, 116px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
  align-items: center;
  gap: clamp(58px, 8vw, 112px);
  position: relative;
}
.hero::before {
  content: "";
  width: 520px;
  height: 520px;
  position: absolute;
  top: 10px;
  left: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 255, 103, 0.27), transparent 69%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; font-size: clamp(4rem, 6.7vw, 6.15rem); }
.hero-lede { max-width: 610px; margin: 29px 0 0; color: var(--ink-2); font-size: clamp(1.03rem, 1.55vw, 1.19rem); line-height: 1.62; }
.hero-actions { margin-top: 35px; display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 0.86rem; font-weight: 850; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.trust-list { margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 13px 24px; list-style: none; color: var(--ink-soft); font-size: 0.76rem; font-weight: 750; }
.trust-list span { margin-right: 5px; color: var(--safe); font-weight: 900; }

.hero-audit {
  min-width: 0;
  padding: 25px;
  color: var(--white);
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: rotate(1deg);
  position: relative;
}
.hero-audit::before {
  content: "";
  position: absolute;
  inset: 11px -13px -14px 13px;
  z-index: -1;
  border: 1px solid rgba(16, 42, 38, 0.21);
  border-radius: var(--radius-lg);
}
.audit-chrome { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #aec3bc; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.11em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 99px; color: #e9f3f0; background: rgba(255, 255, 255, 0.08); letter-spacing: 0.06em; }
.live-pill i,
.result-topline > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 255, 103, 0.11); }
.audit-property { margin: 22px 0 0; padding: 15px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.property-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--lime); background: rgba(217, 255, 103, 0.09); }
.property-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audit-property > div:last-child { display: grid; gap: 2px; }
.audit-property strong { font-size: 0.81rem; }
.audit-property span { color: #9fb6af; font-size: 0.7rem; }
.audit-price-row { padding: 25px 0 23px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.audit-price-row > div:first-child { display: grid; }
.audit-price-row > div:first-child > span { color: #abc0b9; font-size: 0.76rem; }
.audit-price-row > div:first-child > strong { margin-top: 2px; font-size: clamp(3.55rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.07em; }
.audit-price-row > div:first-child > small { margin-top: 5px; color: #8ca69e; font-size: 0.65rem; }
.margin-ring,
.result-dial { display: grid; place-content: center; flex: 0 0 auto; border-radius: 50%; text-align: center; }
.margin-ring { width: 94px; height: 94px; background: radial-gradient(circle at center, var(--forest) 57%, transparent 59%), conic-gradient(var(--lime) 0 35.2%, #31534b 35.2%); }
.margin-ring span { color: var(--white); font-size: 1.25rem; font-weight: 900; line-height: 1; }
.margin-ring small { margin-top: 3px; color: #a8bbb5; font-size: 0.6rem; }
.audit-split { padding: 17px; border-radius: 13px; background: rgba(255, 255, 255, 0.045); }
.audit-split-labels { display: flex; justify-content: space-between; gap: 20px; color: #9fb6af; font-size: 0.67rem; }
.audit-split-labels b { margin-left: 4px; color: var(--white); }
.split-bar { height: 8px; margin-top: 10px; display: flex; overflow: hidden; border-radius: 99px; background: #294a43; }
.split-bar i { width: 64.8%; background: #6f8f85; }
.split-bar b { width: 35.2%; background: var(--lime); }
.audit-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.11); }
.audit-grid > div { padding: 13px 14px; display: grid; gap: 2px; background: #11352e; }
.audit-grid span { color: #91aaa2; font-size: 0.63rem; }
.audit-grid strong { font-size: 0.83rem; }
.audit-footnote { margin: 15px 0 0; color: #839e95; text-align: center; font-size: 0.61rem; }

.confidence-strip { color: var(--forest); background: var(--lime); }
.confidence-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.confidence-inner p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.confidence-inner ul { margin: 0; padding: 0; display: flex; gap: 26px; flex: 0 0 auto; list-style: none; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.confidence-inner li + li::before { content: ""; width: 4px; height: 4px; display: inline-block; margin: 0 14px 2px 0; border-radius: 50%; background: var(--forest); }

/* Calculator */
.calculator-section { padding: var(--section-space) 0; }
.section-intro h2 { font-size: clamp(3rem, 5vw, 4.8rem); }
.split-intro { display: grid; grid-template-columns: 1.08fr 0.72fr; gap: clamp(42px, 8vw, 110px); align-items: end; }
.split-intro > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.68; }
.calculator-progress { margin: 47px 0 20px; padding-inline: 18px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 16px; }
.calculator-progress span { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.69rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.07em; }
.calculator-progress span i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-style: normal; font-size: 0.62rem; }
.calculator-progress b { height: 1px; background: var(--line); }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(360px, 0.83fr); gap: 24px; align-items: start; }
.calculator-card,
.results-card { border-radius: 22px; box-shadow: var(--shadow-sm); }
.calculator-card { padding: 31px; border: 1px solid var(--line); background: var(--paper); }
.form-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-toolbar > div:first-child p { margin: 0 0 2px; color: var(--safe); font-size: 0.63rem; font-weight: 900; letter-spacing: 0.11em; }
.form-toolbar h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.form-toolbar-actions { display: flex; align-items: center; gap: 11px; }
.reset-button { padding: 5px; border: 0; color: var(--muted); background: none; font-size: 0.68rem; font-weight: 750; text-decoration: underline; text-decoration-color: #b7c0bb; text-underline-offset: 3px; }
.reset-button:hover { color: var(--ink); }
.currency-field select { min-width: 94px; padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); font-size: 0.77rem; font-weight: 850; }
.calculator-card fieldset { margin: 0; padding: 27px 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.calculator-card legend { width: 100%; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 29px auto 1fr; align-items: center; gap: 9px; }
.calculator-card legend > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--forest); background: var(--lime); font-size: 0.62rem; font-weight: 900; }
.calculator-card legend b { color: var(--ink); font-size: 0.79rem; letter-spacing: 0.025em; }
.calculator-card legend small { color: var(--muted); font-size: 0.67rem; font-weight: 600; text-align: right; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid label { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--ink-2); font-size: 0.78rem; font-weight: 760; }
.field-grid label > span:first-child { min-height: 21px; }
.field-grid label > span:first-child small { color: var(--muted); font-size: 0.65rem; font-weight: 600; }
.field-grid input,
.money-input,
.percent-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ccd4cc;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field-grid > label > input { padding: 10px 13px; }
.money-input,
.percent-input { display: grid; align-items: center; }
.money-input { grid-template-columns: auto 1fr; }
.percent-input { grid-template-columns: 1fr auto; }
.money-input b,
.percent-input b { color: var(--muted); font-size: 0.84rem; }
.money-input b { padding-left: 13px; }
.percent-input b { padding-right: 13px; }
.money-input input,
.percent-input input { min-width: 0; padding: 10px 9px; border: 0; outline: 0; background: transparent; }
.money-input:focus-within,
.percent-input:focus-within { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(159, 197, 38, 0.17); }
.field-help { min-height: 30px; color: var(--muted); font-size: 0.61rem; font-weight: 550; line-height: 1.4; }
.form-assurance { margin-top: 24px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; border-radius: 11px; background: #f1f5ef; }
.form-assurance svg { width: 22px; flex: 0 0 auto; fill: none; stroke: var(--safe); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-assurance p { margin: 0; color: var(--ink-soft); font-size: 0.68rem; }
.form-assurance strong { color: var(--ink); }

.results-card { padding: 29px; position: sticky; top: 100px; color: var(--white); background: var(--forest); box-shadow: var(--shadow-md); }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-label { margin: 0; color: #a8bbb5; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.result-topline > span { display: flex; align-items: center; gap: 7px; color: #c7d6d1; font-size: 0.61rem; font-weight: 800; }
.result-hero { padding: 19px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-price { font-size: clamp(4rem, 6.5vw, 5.5rem); font-weight: 900; letter-spacing: -0.075em; line-height: 1; }
.result-subcopy { max-width: 250px; min-height: 38px; margin: 6px 0 0; color: #a9bdb7; font-size: 0.72rem; line-height: 1.45; }
.result-dial {
  --margin-angle: 35.2%;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at center, var(--forest) 57%, transparent 59%), conic-gradient(var(--lime) 0 var(--margin-angle), #31534b var(--margin-angle));
}
.result-dial span { font-size: 1.16rem; font-weight: 900; line-height: 1; }
.result-dial small { margin-top: 3px; color: #9db3ac; font-size: 0.58rem; }
.profit-composition { padding: 15px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); }
.composition-labels { display: flex; justify-content: space-between; gap: 20px; color: #9fb5ae; font-size: 0.64rem; }
.composition-labels strong { margin-left: 3px; color: var(--white); }
.composition-bar { --cost-share: 64.8%; height: 8px; margin-top: 10px; display: flex; overflow: hidden; border-radius: 99px; background: #31534b; }
.composition-bar i { width: var(--cost-share); background: #759188; transition: width 220ms ease; }
.composition-bar b { flex: 1; background: var(--lime); }
.metric-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.metric-grid > div { padding: 13px; display: grid; gap: 3px; background: #143a32; }
.metric-grid span { color: #9eb4ad; font-size: 0.62rem; }
.metric-grid strong { font-size: 0.98rem; }
.margin-status { margin: 15px 0; padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 11px; border-radius: 11px; }
.margin-status.safe { color: var(--safe); background: var(--safe-bg); }
.margin-status.warning { color: var(--danger); background: var(--danger-bg); }
.status-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: currentColor; font-size: 0.75rem; font-weight: 900; }
.margin-status strong { font-size: 0.77rem; }
.margin-status p { margin: 1px 0 0; font-size: 0.64rem; line-height: 1.4; }
.discount-impact { margin: -3px 0 14px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 10px; color: #b5c7c1; font-size: 0.65rem; }
.discount-impact[hidden] { display: none; }
.discount-impact strong { color: #ffd1c9; font-size: 0.76rem; }
.result-details { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.result-details summary { padding: 12px 0; cursor: pointer; color: #c0d0cb; font-size: 0.68rem; font-weight: 800; list-style: none; }
.result-details summary::-webkit-details-marker { display: none; }
.result-details summary::after { content: "+"; float: right; color: var(--lime); font-size: 0.92rem; }
.result-details[open] summary::after { content: "-"; }
.result-breakdown { padding: 2px 0 13px; display: grid; gap: 8px; }
.result-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 17px; color: #9fb5ae; font-size: 0.67rem; }
.result-breakdown strong { color: var(--white); }
.result-breakdown .total-line { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line-dark); color: var(--white); font-weight: 800; }
.result-actions { margin-top: 16px; display: grid; gap: 12px; }
.result-product-link { display: flex; align-items: center; justify-content: center; gap: 6px; color: #c1d0cc; text-align: center; text-decoration: none; font-size: 0.64rem; font-weight: 750; }
.result-product-link span { color: var(--lime); transition: transform 160ms ease; }
.result-product-link:hover { color: var(--white); }
.result-product-link:hover span { transform: translateX(3px); }
.privacy-note { margin: 12px 0 0; color: #819d94; text-align: center; font-size: 0.59rem; }

/* Margin explanation */
.margin-section { padding: var(--section-space) 0; color: var(--white); background: var(--forest); position: relative; overflow: hidden; }
.margin-section::before { content: ""; width: 620px; height: 620px; position: absolute; top: -340px; right: -230px; border: 95px solid rgba(217, 255, 103, 0.055); border-radius: 50%; }
.margin-layout { display: grid; grid-template-columns: 0.93fr 1.07fr; gap: clamp(60px, 10vw, 130px); align-items: center; position: relative; z-index: 1; }
.margin-copy h2 { font-size: clamp(3rem, 5vw, 4.9rem); }
.margin-copy h2 em { color: var(--lime); }
.margin-copy > p:last-of-type { max-width: 560px; margin: 25px 0 0; color: #b8cbc5; font-size: 1rem; }
.formula-card { margin-top: 31px; padding: 17px 19px; border: 1px solid var(--line-dark); border-radius: 13px; background: rgba(255, 255, 255, 0.035); }
.formula-card > span { color: var(--lime); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; }
.formula-card > div { margin-top: 9px; display: flex; align-items: center; gap: 11px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.35rem); }
.formula-card i { color: var(--lime); font-style: normal; }
.comparison-card { padding: 29px; border: 1px solid var(--line-dark); border-radius: 22px; background: #103129; box-shadow: var(--shadow-lg); }
.comparison-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line-dark); }
.comparison-head span { color: var(--lime); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; }
.comparison-head small { color: #89a198; font-size: 0.64rem; }
.comparison-row { padding: 23px 0; border-bottom: 1px solid var(--line-dark); }
.comparison-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.comparison-row > div:first-child span { color: #b4c6c0; font-size: 0.76rem; }
.comparison-row > div:first-child strong { font-size: 1.65rem; letter-spacing: -0.04em; }
.comparison-meter { height: 9px; margin: 12px 0 8px; overflow: hidden; border-radius: 99px; background: #274940; }
.comparison-meter i { display: block; height: 100%; border-radius: inherit; }
.comparison-row.weak .comparison-meter i { background: #80948e; }
.comparison-row.strong .comparison-meter i { background: var(--lime); }
.comparison-row p { margin: 0; color: #92aaa2; font-size: 0.67rem; }
.comparison-row p b { color: var(--white); }
.comparison-delta { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comparison-delta span { color: #a6bcb5; font-size: 0.72rem; }
.comparison-delta strong { color: var(--lime); font-size: 1.05rem; }

/* Workflow */
.workflow-section { padding: var(--section-space) 0; }
.centered-intro { max-width: 790px; margin: 0 auto; text-align: center; }
.centered-intro .eyebrow { justify-content: center; }
.centered-intro h2 { font-size: clamp(3rem, 5vw, 4.8rem); }
.centered-intro > p:last-child { max-width: 650px; margin: 22px auto 0; color: var(--ink-soft); }
.workflow-grid { margin: 55px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); list-style: none; overflow: hidden; }
.workflow-grid li { min-height: 300px; padding: 31px; position: relative; }
.workflow-grid li + li { border-left: 1px solid var(--line); }
.workflow-grid li > span { position: absolute; top: 22px; right: 24px; color: #a8b6b1; font-family: Georgia, serif; font-size: 0.76rem; font-style: italic; }
.workflow-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: var(--forest); background: var(--lime); }
.workflow-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.workflow-grid h3 { margin: 58px 0 10px; font-size: 1.22rem; letter-spacing: -0.03em; }
.workflow-grid p { margin: 0; color: var(--ink-soft); font-size: 0.83rem; }

/* Product */
.toolkit-section { padding: var(--section-space) 0; color: var(--white); background: var(--forest); position: relative; overflow: hidden; }
.toolkit-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 14% 25%, rgba(217, 255, 103, 0.07), transparent 28%), linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: auto, 50px 50px, 50px 50px; pointer-events: none; }
.toolkit-section > .section-shell { position: relative; z-index: 1; }
.toolkit-heading { display: grid; grid-template-columns: 1.18fr 0.72fr; align-items: end; gap: clamp(50px, 9vw, 120px); }
.toolkit-heading h2 { font-size: clamp(3rem, 5vw, 4.85rem); }
.toolkit-heading h2 em { color: var(--lime); }
.toolkit-heading > p { margin: 0 0 5px; color: #b7cac4; font-size: 0.98rem; line-height: 1.65; }
.product-showcase { margin-top: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 24px; }
.workbook-window { min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 20px; color: var(--ink); background: #f6f8f5; box-shadow: var(--shadow-lg); }
.window-bar { min-height: 43px; padding: 0 15px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; color: #c2d0cc; background: #08201b; font-size: 0.64rem; }
.window-bar > div { display: flex; gap: 6px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4b6860; }
.window-bar i:first-child { background: var(--lime); }
.window-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar b { justify-self: end; font-size: 0.6rem; }
.workbook-body { min-height: 390px; display: grid; grid-template-columns: 150px 1fr; }
.sheet-rail { padding: 20px 13px; display: grid; align-content: start; gap: 6px; border-right: 1px solid #d9e0da; background: #edf1ed; }
.sheet-rail span { padding: 10px 11px; border-radius: 8px; color: #61746e; font-size: 0.67rem; font-weight: 750; }
.sheet-rail span.active { color: var(--forest); background: var(--lime); font-weight: 900; }
.sheet-content { padding: 28px; }
.sheet-title { padding-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d8ded9; }
.sheet-title > div { display: grid; gap: 3px; }
.sheet-title small { color: var(--safe); font-size: 0.59rem; font-weight: 900; letter-spacing: 0.1em; }
.sheet-title strong { font-size: 1.08rem; }
.sheet-title > span { padding: 5px 8px; border: 1px solid #cbd5cd; border-radius: 6px; color: #586e67; font-size: 0.64rem; font-weight: 850; background: white; }
.sheet-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 0.75fr; gap: 17px; }
.sheet-inputs { display: grid; gap: 7px; }
.sheet-inputs label { min-height: 43px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #d5ddd6; border-radius: 7px; color: #657871; background: white; font-size: 0.62rem; }
.sheet-inputs label span { min-width: 85px; padding: 6px 8px; border-radius: 4px; color: var(--forest); background: #edffd0; font-weight: 850; text-align: right; }
.sheet-result { padding: 20px; border-radius: 12px; color: var(--white); background: var(--forest); }
.sheet-result > small { color: #a8bcb5; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.08em; }
.sheet-result > strong { display: block; margin: 5px 0 19px; font-size: 3.1rem; letter-spacing: -0.075em; line-height: 1; }
.sheet-result > div { padding: 8px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.13); color: #a9bcb6; font-size: 0.62rem; }
.sheet-result > div b { color: white; }
.sheet-result > p { margin: 14px 0 0; padding: 8px; border-radius: 7px; color: var(--safe); background: var(--safe-bg); text-align: center; font-size: 0.57rem; font-weight: 900; }
.sheet-result > p i { width: 6px; height: 6px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--safe); }
.sheet-tabs { min-height: 38px; padding: 0 11px; display: flex; align-items: end; gap: 3px; overflow: hidden; border-top: 1px solid #d8ded9; background: #eef2ee; }
.sheet-tabs span { padding: 8px 10px 7px; flex: 0 0 auto; border-radius: 5px 5px 0 0; color: #697a75; background: #e1e7e2; font-size: 0.53rem; font-weight: 800; }
.sheet-tabs span.active { color: var(--forest); background: var(--lime); }
.showcase-notes { display: grid; gap: 10px; }
.showcase-notes > div { padding: 16px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; border: 1px solid var(--line-dark); border-radius: 13px; background: rgba(255, 255, 255, 0.035); }
.showcase-notes > div > span { color: var(--lime); font-family: Georgia, serif; font-size: 0.72rem; font-style: italic; }
.showcase-notes p { margin: 0; color: #aabdb7; font-size: 0.67rem; line-height: 1.45; }
.showcase-notes strong { display: block; margin-bottom: 3px; color: var(--white); font-size: 0.76rem; }
.offer-grid { margin-top: 27px; display: grid; grid-template-columns: 1fr minmax(380px, 0.73fr); gap: 24px; align-items: stretch; }
.value-stack { padding: 28px; border: 1px solid var(--line-dark); border-radius: 20px; background: rgba(255, 255, 255, 0.03); }
.value-label { margin: 0 0 11px; color: var(--lime); font-size: 0.61rem; font-weight: 900; letter-spacing: 0.1em; }
.value-row { min-height: 52px; display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line-dark); }
.value-row > span { font-size: 0.82rem; font-weight: 850; }
.value-row small { color: #9eb4ad; font-size: 0.67rem; }
.offer-assurances { margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: #bdccc7; font-size: 0.66rem; font-weight: 750; }
.offer-assurances span { margin-right: 4px; color: var(--lime); }
.waitlist-card { padding: 29px; border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-lg); }
.waitlist-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.launch-badge { display: inline-flex; margin: 0; padding: 5px 8px; border-radius: 5px; color: var(--forest); background: var(--lime); font-size: 0.61rem; font-weight: 900; letter-spacing: 0.09em; }
.waitlist-topline > span { color: var(--muted); font-size: 0.63rem; text-decoration: line-through; }
.launch-price { margin: 18px 0 8px; display: flex; align-items: baseline; }
.launch-price > span { font-size: 1.5rem; font-weight: 900; }
.launch-price strong { font-size: 4.5rem; line-height: 1; letter-spacing: -0.075em; }
.launch-price small { margin-left: 10px; color: var(--muted); font-size: 0.67rem; }
.waitlist-card h3 { margin: 15px 0 6px; font-size: 1.24rem; letter-spacing: -0.035em; }
.waitlist-card > p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; }
.waitlist-form { margin-top: 21px; }
.waitlist-form > label:first-of-type { display: block; margin-bottom: 7px; font-size: 0.68rem; font-weight: 850; }
.email-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.email-control input { min-width: 0; min-height: 50px; padding: 10px 12px; border: 1px solid #cbd4cc; border-radius: 10px; color: var(--ink); background: white; }
.email-control .button { min-height: 50px; padding-inline: 17px; font-size: 0.76rem; }
.consent-control { margin-top: 11px; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; color: var(--muted); font-size: 0.59rem; font-weight: 550; line-height: 1.45; }
.consent-control input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--safe); }
.consent-control a { color: var(--ink); text-underline-offset: 2px; }
.waitlist-form .button:disabled { cursor: wait; opacity: .72; transform: none; }
.waitlist-turnstile:not(:empty) { min-height: 65px; margin-top: 12px; }
.waitlist-turnstile { width: 100%; max-width: 100%; display: flex; justify-content: center; overflow: visible; border-radius: 9px; }
.waitlist-message { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #d7ded8; border-radius: 9px; color: var(--ink-soft); background: #f2f5f1; font-size: .65rem; font-weight: 700; line-height: 1.45; }
.waitlist-message[data-type="success"] { border-color: #b8dacd; color: #0d664e; background: #edf8f3; }
.waitlist-message[data-type="error"],
.waitlist-message[data-type="security"] { border-color: #e4c0b9; color: #9f4134; background: #fff2ef; }
.waitlist-footnote { margin-top: 15px; padding-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.6rem; }
.waitlist-footnote svg { width: 16px; fill: none; stroke: var(--safe); stroke-width: 1.7; stroke-linecap: round; }
.hidden-field { display: none; }

/* FAQ and closing */
.faq-section { padding: var(--section-space) 0; }
.faq-intro { align-items: center; }
.faq-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faq-grid details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); transition: border-color 160ms ease, box-shadow 160ms ease; }
.faq-grid details:hover { border-color: #bac5bc; }
.faq-grid details[open] { box-shadow: var(--shadow-sm); }
.faq-grid summary { cursor: pointer; color: var(--ink); font-size: 0.83rem; font-weight: 850; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; float: right; margin-left: 15px; color: var(--safe); font-size: 1rem; }
.faq-grid details[open] summary::after { content: "-"; }
.faq-grid p { margin: 13px 0 2px; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.58; }
.closing-section { padding: 0 0 28px; }
.closing-card { min-height: 290px; padding: clamp(34px, 5vw, 62px); display: flex; align-items: center; justify-content: space-between; gap: 50px; border-radius: 26px; color: var(--white); background: var(--forest); position: relative; overflow: hidden; }
.closing-card::after { content: ""; width: 340px; height: 340px; position: absolute; right: -110px; bottom: -190px; border: 60px solid rgba(217,255,103,.08); border-radius: 50%; }
.closing-card > div { position: relative; z-index: 1; }
.closing-card h2 { font-size: clamp(2.6rem, 4.5vw, 4.2rem); }
.closing-card p:not(.eyebrow) { margin: 17px 0 0; color: #b4c7c0; }
.closing-card > .button { flex: 0 0 auto; position: relative; z-index: 1; }

/* Footer */
.site-footer { padding: 70px 0 92px; color: #c2d1cc; background: #071a17; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 52px; }
.brand-footer .brand-mark { color: #153f36; }
.brand-footer .brand-copy strong { color: var(--white); }
.brand-footer .brand-copy small { color: #819a92; }
.footer-brand-column > p { max-width: 290px; margin: 14px 0 0; color: #819a92; font-size: 0.76rem; }
.footer-grid > div:not(.footer-brand-column) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-title { margin: 0 0 6px; color: var(--white); font-size: 0.63rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.footer-grid a:not(.brand) { color: #bacbc5; text-decoration: none; font-size: 0.72rem; }
.footer-grid a:not(.brand):hover { color: var(--white); }
.footer-grid span { color: #728d84; font-size: 0.68rem; }
.footer-bottom { margin-top: 55px; padding-top: 19px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #809990; font-size: 0.65rem; }

.mobile-cta { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; padding: 12px 16px; border-radius: 10px; color: var(--forest); background: var(--lime); box-shadow: var(--shadow-md); font-size: 0.76rem; font-weight: 850; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 220ms ease, transform 220ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

/* Legal and confirmation pages */
.plain-page { min-height: 100vh; padding: 26px 0 80px; background: var(--cream); }
.plain-header { width: min(900px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.plain-header > a:last-child { color: var(--ink-soft); font-size: 0.75rem; font-weight: 750; }
.legal-card { width: min(800px, calc(100% - 32px)); margin: 55px auto 0; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.legal-card h1 { font-size: clamp(2.7rem, 7vw, 4.7rem); }
.legal-card h2 { margin-top: 34px; font-family: inherit; font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.2; }
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.7; }
.legal-card .legal-updated { color: var(--muted); font-size: 0.7rem; }

/* Responsive */
@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr); gap: 45px; }
  .hero h1 { font-size: clamp(3.7rem, 7vw, 5.4rem); }
  .calculator-grid { grid-template-columns: minmax(0, 1fr) 370px; }
  .product-showcase { grid-template-columns: 1fr; }
  .showcase-notes { grid-template-columns: repeat(4, 1fr); }
  .showcase-notes > div { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  :root { --section-space: 96px; }
  .header-inner { position: relative; }
  .header-cta { display: none; }
  .menu-toggle { width: 42px; height: 42px; padding: 0; display: grid; place-content: center; gap: 5px; justify-self: end; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); }
  .menu-toggle span:not(.sr-only) { width: 17px; height: 2px; display: block; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 14px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 247, 0.98);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 180ms ease;
  }
  .site-header nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-header nav a { padding: 11px; border-radius: 8px; }
  .site-header nav a:hover { background: #eef3eb; }
  .site-header nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 760px; }
  .hero-audit { width: min(610px, 100%); justify-self: center; }
  .split-intro,
  .margin-layout,
  .toolkit-heading { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .split-intro > p,
  .toolkit-heading > p { max-width: 660px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .results-card { position: static; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid li { min-height: auto; }
  .workflow-grid li + li { border-top: 1px solid var(--line); border-left: 0; }
  .workflow-grid h3 { margin-top: 35px; }
  .showcase-notes { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .waitlist-card { width: min(620px, 100%); }
  .footer-grid { grid-template-columns: 1.7fr repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 650px) {
  :root { --section-space: 82px; }
  html { scroll-padding-top: 90px; }
  body { padding-bottom: 73px; }
  .section-shell { width: min(100% - 26px, 1180px); }
  .site-header { width: calc(100% - 18px); margin-top: 8px; top: 7px; }
  .header-inner { min-height: 62px; padding: 8px 9px 8px 11px; border-radius: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 1.03rem; }
  .brand-copy small { display: none; }
  .hero { min-height: auto; padding: 65px 0 76px; gap: 54px; }
  .hero h1 { font-size: clamp(3rem, 14.6vw, 4.2rem); }
  .hero-lede { margin-top: 23px; font-size: 0.98rem; }
  .hero-actions { margin-top: 29px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .trust-list { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 18px; }
  .hero-audit { padding: 20px; border-radius: 22px; transform: none; }
  .hero-audit::before { display: none; }
  .audit-price-row > div:first-child > strong { font-size: 3.55rem; }
  .margin-ring { width: 78px; height: 78px; }
  .margin-ring span { font-size: 1.03rem; }
  .audit-grid { grid-template-columns: 1fr 1fr; }
  .confidence-inner { padding-block: 21px; align-items: flex-start; flex-direction: column; gap: 15px; }
  .confidence-inner ul { width: 100%; justify-content: space-between; gap: 8px; font-size: 0.57rem; }
  .confidence-inner li + li::before { display: none; }
  .section-intro h2,
  .margin-copy h2,
  .toolkit-heading h2,
  .centered-intro h2 { font-size: clamp(2.65rem, 12vw, 3.65rem); }
  .calculator-progress { padding-inline: 0; gap: 7px; }
  .calculator-progress span { font-size: 0; gap: 5px; }
  .calculator-progress span i { font-size: 0.6rem; }
  .calculator-progress span::after { font-size: 0.56rem; }
  .calculator-progress span:nth-of-type(1)::after { content: "Labor"; }
  .calculator-progress span:nth-of-type(2)::after { content: "Costs"; }
  .calculator-progress span:nth-of-type(3)::after { content: "Margin"; }
  .calculator-card,
  .results-card { padding: 21px; border-radius: 18px; }
  .form-toolbar { align-items: flex-start; }
  .form-toolbar-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .calculator-card legend { grid-template-columns: 29px auto; }
  .calculator-card legend small { display: none; }
  .field-grid,
  .field-grid.three-up { grid-template-columns: 1fr; }
  .field-help { min-height: 0; }
  .result-price { font-size: 4.25rem; }
  .result-dial { width: 80px; height: 80px; }
  .result-hero { align-items: flex-start; }
  .formula-card > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .comparison-card { padding: 21px; }
  .workflow-grid li { padding: 25px; }
  .workbook-body { min-height: 365px; grid-template-columns: 1fr; }
  .sheet-rail { padding: 9px; grid-template-columns: repeat(4, auto); gap: 4px; border-right: 0; border-bottom: 1px solid #d9e0da; overflow: hidden; }
  .sheet-rail span { padding: 7px 8px; font-size: 0.53rem; white-space: nowrap; }
  .sheet-content { padding: 18px; }
  .sheet-grid { grid-template-columns: 1fr; }
  .sheet-inputs { display: none; }
  .sheet-result { min-height: 250px; }
  .sheet-tabs { display: none; }
  .showcase-notes { grid-template-columns: 1fr; }
  .value-stack,
  .waitlist-card { padding: 21px; }
  .value-row { min-height: 64px; grid-template-columns: 1fr; align-content: center; gap: 3px; }
  .offer-assurances { display: grid; }
  .launch-price strong { font-size: 4rem; }
  .launch-price small { max-width: 100px; line-height: 1.25; }
  .email-control { grid-template-columns: 1fr; }
  .waitlist-turnstile:not(:empty) { justify-content: flex-start; }
  .faq-grid { grid-template-columns: 1fr; }
  .closing-section { padding-bottom: 13px; }
  .closing-card { min-height: 360px; padding: 30px 24px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .closing-card > .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 25px; }
  .footer-brand-column { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .mobile-cta { height: 65px; padding: 8px 10px 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; position: fixed; right: 8px; bottom: 8px; left: 8px; z-index: 75; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: white; background: rgba(11, 37, 32, 0.96); box-shadow: 0 18px 50px rgba(0,0,0,.24); backdrop-filter: blur(14px); }
  .mobile-cta > div { min-width: 0; display: grid; }
  .mobile-cta span { color: #98aea7; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .mobile-cta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
  .mobile-cta .button { min-height: 42px; }
  .toast { right: 14px; bottom: 83px; left: 14px; text-align: center; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 3.15rem; }
  .audit-price-row { align-items: flex-start; }
  .audit-price-row > div:first-child > strong { font-size: 3.1rem; }
  .margin-ring { width: 70px; height: 70px; }
  .audit-grid { grid-template-columns: 1fr; }
  .result-price { font-size: 3.75rem; }
  .result-dial { width: 72px; height: 72px; }
  .confidence-inner ul { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Professional visual refinement */
.section-shell { width: min(1240px, calc(100% - 52px)); }

.hero {
  min-height: 790px;
  padding: clamp(76px, 7vw, 104px) 0 clamp(92px, 8vw, 124px);
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 6vw, 82px);
}
.hero h1 { max-width: 680px; font-size: clamp(3.9rem, 5.8vw, 5.65rem); }
.hero-lede { max-width: 570px; }
.hero-visual { min-width: 0; padding: 0 0 74px 42px; position: relative; isolation: isolate; }
.hero-visual::before {
  content: "";
  width: 118px;
  height: 118px;
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: -1;
  border-radius: 28px;
  background: var(--lime);
  transform: rotate(8deg);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 16px -16px 58px 58px;
  z-index: -1;
  border: 1px solid rgba(16, 42, 38, 0.16);
  border-radius: 30px;
}
.hero-photo {
  aspect-ratio: 1.06;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 38, 0.12);
  border-radius: 30px;
  background: #d9ddcf;
  box-shadow: 0 32px 90px rgba(13, 40, 34, 0.16);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 25, 21, 0.03) 45%, rgba(5, 25, 21, 0.5) 100%);
  pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 59% center; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.hero-visual:hover .hero-photo img { transform: scale(1.025); }
.hero-photo figcaption {
  max-width: 270px;
  padding: 13px 15px;
  display: grid;
  gap: 3px;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: white;
  background: rgba(8, 32, 27, 0.76);
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
  backdrop-filter: blur(13px);
}
.hero-photo figcaption span { color: var(--lime); font-size: 0.57rem; font-weight: 900; letter-spacing: 0.12em; }
.hero-photo figcaption strong { font-size: 0.72rem; line-height: 1.35; }
.hero-visual .hero-audit {
  width: min(470px, 78%);
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  border-radius: 20px;
  transform: rotate(-0.65deg);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.hero-visual:hover .hero-audit { transform: rotate(0) translateY(-4px); box-shadow: 0 28px 80px rgba(5, 27, 22, .28); }
.hero-visual .hero-audit::before { display: none; }
.hero-visual .audit-property { margin-top: 14px; padding: 11px 0; }
.hero-visual .property-icon { width: 34px; height: 34px; }
.hero-visual .audit-price-row { padding: 16px 0; }
.hero-visual .audit-price-row > div:first-child > strong { font-size: clamp(3rem, 5vw, 3.65rem); }
.hero-visual .margin-ring { width: 76px; height: 76px; }
.hero-visual .margin-ring span { font-size: 1.02rem; }
.hero-visual .audit-split { padding: 13px; }

.calculator-card { border-color: rgba(16, 42, 38, .13); box-shadow: 0 18px 55px rgba(13, 40, 34, .075); }
.results-card { border: 1px solid rgba(255,255,255,.08); }
.field-grid input,
.money-input,
.percent-input { box-shadow: inset 0 1px 0 rgba(16,42,38,.025); }
.field-grid > label > input:hover,
.money-input:hover,
.percent-input:hover { border-color: #abbab0; }

.margin-status { align-items: start; border: 1px solid transparent; }
.margin-status.safe { border-color: rgba(31, 107, 78, .14); }
.margin-status.warning { border-color: rgba(153, 61, 53, .15); }
.status-icon {
  color: var(--white);
  background: var(--safe);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 12px rgba(10,40,30,.12);
}
.margin-status.warning .status-icon { color: var(--white); background: var(--danger); }
.margin-status.safe .status-icon { color: var(--white); background: var(--safe); }

.workflow-grid { gap: 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.workflow-grid li,
.workflow-grid li + li {
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(13, 40, 34, .055);
  transition: transform 230ms ease, border-color 230ms ease, box-shadow 230ms ease;
}
.workflow-grid li:hover { transform: translateY(-6px); border-color: #bcc8bf; box-shadow: 0 24px 58px rgba(13, 40, 34, .1); }
.workflow-icon { box-shadow: 0 10px 24px rgba(159,197,38,.18); }

.faq-grid { margin-top: 54px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq-column { min-width: 0; display: grid; gap: 14px; align-content: start; }
.faq-grid details {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13,40,34,.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.faq-grid details:hover { transform: translateY(-2px); border-color: #b7c4ba; box-shadow: 0 15px 38px rgba(13,40,34,.08); }
.faq-grid details[open] { border-color: rgba(31,107,78,.42); box-shadow: 0 18px 46px rgba(13,40,34,.09); }
.faq-grid summary {
  min-height: 64px;
  padding: 17px 18px 17px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  line-height: 1.35;
}
.faq-grid summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  margin: 0;
  display: grid;
  place-items: center;
  float: none;
  border-radius: 50%;
  color: var(--forest);
  background: #eef3eb;
  font-size: 1rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.faq-grid details[open] summary::after { content: "−"; color: var(--lime); background: var(--forest); transform: rotate(180deg); }
.faq-grid p { margin: 0; padding: 0 64px 20px 20px; font-size: 0.78rem; animation: faq-reveal 200ms ease both; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.reveal-target { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal-target.is-visible { opacity: 1; transform: translateY(0); }
.reveal-target:nth-child(2) { transition-delay: 70ms; }

.closing-card {
  min-height: 330px;
  border: 1px solid rgba(255,255,255,.13);
  background-image:
    linear-gradient(90deg, rgba(7,26,23,.99) 0%, rgba(7,26,23,.95) 43%, rgba(7,26,23,.7) 67%, rgba(7,26,23,.24) 100%),
    url("assets/quotemath-closing-still-life-v1.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 76px rgba(10,35,29,.18);
}
.closing-card::after {
  width: auto;
  height: auto;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 19px;
  background: none;
  pointer-events: none;
}
.closing-card > div { max-width: 660px; }

@media (max-width: 1050px) {
  .section-shell { width: min(100% - 40px, 1240px); }
  .hero { grid-template-columns: minmax(0, .86fr) minmax(470px, 1.14fr); gap: 38px; }
  .hero h1 { font-size: clamp(3.55rem, 6.7vw, 4.9rem); }
  .hero-visual { padding-left: 28px; }
  .hero-visual .hero-audit { width: min(440px, 82%); }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(760px, 100%); padding: 0 0 66px 32px; justify-self: center; }
  .hero-photo { aspect-ratio: 1.38; }
  .hero-visual .hero-audit { width: min(450px, 70%); }
  .workflow-grid li,
  .workflow-grid li + li { min-height: auto; border: 1px solid var(--line); }
}

@media (max-width: 650px) {
  .section-shell { width: min(100% - 28px, 1240px); }
  .hero { padding-top: 62px; gap: 48px; }
  .hero-visual { width: 100%; padding: 0; }
  .hero-visual::before { width: 76px; height: 76px; top: -10px; right: -5px; border-radius: 20px; }
  .hero-visual::after { inset: 12px -7px 86px 16px; border-radius: 23px; }
  .hero-photo { aspect-ratio: 1.18; border-radius: 23px; }
  .hero-photo img { object-position: 63% center; }
  .hero-photo figcaption { top: 13px; left: 13px; max-width: 220px; padding: 10px 12px; }
  .hero-visual .hero-audit { width: calc(100% - 22px); margin: -84px auto 0; padding: 17px; position: relative; bottom: auto; left: auto; border-radius: 18px; transform: none; }
  .hero-visual:hover .hero-audit { transform: none; }
  .hero-visual .audit-property { display: none; }
  .hero-visual .audit-price-row { padding: 13px 0; }
  .hero-visual .audit-price-row > div:first-child > strong { font-size: 3.05rem; }
  .hero-visual .margin-ring { width: 72px; height: 72px; }
  .faq-grid { grid-template-columns: 1fr; gap: 12px; }
  .faq-column { gap: 12px; }
  .faq-grid summary { min-height: 62px; padding-left: 17px; }
  .faq-grid p { padding: 0 52px 18px 17px; }
  .closing-card {
    background-image:
      linear-gradient(180deg, rgba(7,26,23,.98) 0%, rgba(7,26,23,.91) 62%, rgba(7,26,23,.68) 100%),
      url("assets/quotemath-closing-still-life-v1.jpg");
    background-position: 66% center;
  }
}

@media (max-width: 390px) {
  .hero-visual .audit-chrome { gap: 8px; font-size: .54rem; }
  .hero-visual .audit-property strong { font-size: .73rem; }
  .hero-visual .audit-price-row > div:first-child > strong { font-size: 2.75rem; }
  .hero-visual .margin-ring { width: 66px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-target { opacity: 1; transform: none; }
}

/* Interactive workbook demo */
.workbook-window {
  position: relative;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), border-color 300ms ease, box-shadow 300ms ease;
}
.workbook-window:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 255, 103, .32);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .28);
}
.window-live { display: inline-flex; align-items: center; justify-self: end; gap: 6px; color: #dce8e4; white-space: nowrap; }
.window-live i { background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 255, 103, .1); }
.workbook-shell { min-height: 446px; display: grid; grid-template-columns: 164px minmax(0, 1fr); }
.sheet-rail {
  padding: 18px 12px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  border-right: 1px solid #d9e0da;
  background: #edf1ed;
}
.sheet-nav {
  width: 100%;
  min-width: 0;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  color: #5f736c;
  background: transparent;
  font-size: .67rem;
  font-weight: 800;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.sheet-nav > i { width: 7px; height: 7px; border: 1px solid #9eada7; border-radius: 50%; transition: inherit; }
.sheet-nav:hover { color: var(--forest); background: rgba(255, 255, 255, .72); transform: translateX(2px); }
.sheet-nav:focus-visible { outline: 3px solid rgba(31, 107, 78, .23); outline-offset: 2px; }
.sheet-nav.active { color: var(--forest); background: var(--lime); box-shadow: 0 8px 18px rgba(159, 197, 38, .18); }
.sheet-nav.active > i { border-color: var(--forest); background: var(--forest); box-shadow: 0 0 0 3px rgba(11, 37, 32, .09); }
.sheet-stage { min-width: 0; min-height: 446px; padding: 27px 28px 25px; position: relative; overflow: hidden; background: #f6f8f5; }
.sheet-panel { min-width: 0; min-height: 394px; }
.sheet-panel[hidden] { display: none; }
.sheet-panel.is-entering { animation: workbook-panel-in 360ms cubic-bezier(.2,.75,.2,1) both; }
@keyframes workbook-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sheet-inputs > div {
  min-height: 43px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d5ddd6;
  border-radius: 7px;
  color: #657871;
  background: white;
  font-size: .62rem;
}
.sheet-inputs > div > span { min-width: 85px; padding: 6px 8px; border-radius: 4px; color: var(--forest); background: #edffd0; font-weight: 850; text-align: right; }
.sheet-tabs { align-items: stretch; }
.sheet-tabs button {
  min-width: max-content;
  padding: 9px 11px 8px;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid rgba(16, 42, 38, .04);
  border-radius: 5px 5px 0 0;
  color: #697a75;
  background: #e1e7e2;
  font-size: .52rem;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease;
}
.sheet-tabs button:hover { color: var(--forest); background: #f3f6f3; }
.sheet-tabs button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--safe); outline-offset: -2px; }
.sheet-tabs button.active { color: var(--forest); background: var(--lime); }
.sheet-tabs > span { margin-left: auto; padding: 0 13px; display: flex; align-items: center; color: #7c8d87; font-size: .5rem; font-weight: 750; white-space: nowrap; }

.settings-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) .68fr; gap: 17px; }
.settings-list { display: grid; gap: 7px; }
.settings-list > div { min-height: 57px; padding: 8px 10px 8px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border: 1px solid #d5ddd6; border-radius: 8px; background: white; }
.settings-list span { color: #657871; font-size: .63rem; }
.settings-list strong { color: var(--forest); font-size: .68rem; }
.settings-list small { padding: 4px 6px; border-radius: 4px; color: #668077; background: #edf2ee; font-size: .48rem; font-weight: 800; text-transform: uppercase; }
.baseline-card { padding: 21px; display: flex; flex-direction: column; justify-content: center; border-radius: 12px; color: white; background: var(--forest); }
.baseline-card > small { color: #a8bcb5; font-size: .54rem; font-weight: 900; letter-spacing: .09em; }
.baseline-card > strong { margin-top: 8px; font-size: 3.65rem; letter-spacing: -.075em; line-height: .95; }
.baseline-card > span { color: var(--lime); font-size: .67rem; font-weight: 800; }
.baseline-card > p { margin: 23px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .13); color: #adbfba; font-size: .61rem; line-height: 1.45; }

.tracker-summary { margin: 17px 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #64776f; font-size: .56rem; }
.tracker-summary > span { display: inline-flex; align-items: center; gap: 7px; }
.tracker-summary i { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 4px rgba(31, 107, 78, .09); }
.tracker-summary strong { color: var(--ink); font-size: .57rem; }
.tracker-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7ded8; border-radius: 10px; background: white; scrollbar-width: thin; }
.tracker-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: .58rem; }
.tracker-table th { padding: 9px 11px; color: #76877f; background: #eef2ee; font-size: .49rem; font-weight: 900; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.tracker-table td { padding: 10px 11px; border-top: 1px solid #e1e6e2; color: #455d55; }
.tracker-table td:first-child { min-width: 135px; }
.tracker-table td strong { display: block; color: var(--ink); font-size: .61rem; }
.tracker-table td small { color: #81918b; font-size: .5rem; }
.tracker-table td > span { padding: 5px 7px; border-radius: 99px; color: var(--safe); background: var(--safe-bg); font-size: .49rem; font-weight: 900; white-space: nowrap; }
.tracker-table td > span.watch { color: #86611c; background: #fff5d9; }

.dashboard-kpis { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dashboard-kpis > div { min-width: 0; padding: 12px; display: grid; gap: 3px; border: 1px solid #d7ded8; border-radius: 9px; background: white; }
.dashboard-kpis small { color: #788a83; font-size: .48rem; font-weight: 900; letter-spacing: .07em; }
.dashboard-kpis strong { overflow: hidden; color: var(--forest); font-size: 1.06rem; letter-spacing: -.04em; text-overflow: ellipsis; }
.dashboard-kpis span { color: var(--safe); font-size: .5rem; font-weight: 750; }
.dashboard-chart { height: 205px; margin-top: 13px; padding: 11px 12px 8px; position: relative; overflow: hidden; border: 1px solid #d7ded8; border-radius: 10px; background: white; }
.chart-grid { position: absolute; inset: 18px 12px 31px; display: grid; grid-template-rows: repeat(3, 1fr); }
.chart-grid i { border-top: 1px dashed #dce3dd; }
.chart-bars { height: 100%; padding: 9px 10px 0; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: clamp(7px, 2vw, 16px); position: relative; z-index: 1; }
.chart-bars > span { height: 100%; display: grid; grid-template-rows: 1fr 18px; align-items: end; gap: 4px; }
.chart-bars i { width: 100%; height: var(--bar); display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--lime), #a5d52f); box-shadow: 0 7px 16px rgba(143, 171, 32, .17); transform-origin: bottom; }
.sheet-panel.is-entering .chart-bars i { animation: chart-grow 620ms cubic-bezier(.2,.75,.2,1) both; }
.sheet-panel.is-entering .chart-bars span:nth-child(2) i { animation-delay: 45ms; }
.sheet-panel.is-entering .chart-bars span:nth-child(3) i { animation-delay: 90ms; }
.sheet-panel.is-entering .chart-bars span:nth-child(4) i { animation-delay: 135ms; }
.sheet-panel.is-entering .chart-bars span:nth-child(5) i { animation-delay: 180ms; }
.sheet-panel.is-entering .chart-bars span:nth-child(6) i { animation-delay: 225ms; }
.chart-bars .projected i { background: repeating-linear-gradient(135deg, #cad5cc 0 5px, #e1e7e2 5px 10px); box-shadow: none; }
.chart-bars b { color: #7d8e87; font-size: .45rem; text-align: center; }
@keyframes chart-grow { from { opacity: 0; transform: scaleY(.05); } to { opacity: 1; transform: scaleY(1); } }

.script-list { margin-top: 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.script-list article { min-width: 0; min-height: 225px; padding: 15px; display: flex; flex-direction: column; border: 1px solid #d7ded8; border-radius: 10px; background: white; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.script-list article:hover { transform: translateY(-3px); border-color: #aebdb2; box-shadow: 0 12px 24px rgba(16, 42, 38, .08); }
.script-list article.featured { border-color: rgba(31, 107, 78, .42); box-shadow: inset 0 3px 0 var(--lime); }
.script-list article > span { color: var(--safe); font-size: .48rem; font-weight: 900; letter-spacing: .07em; }
.script-list article > strong { margin-top: 12px; color: var(--ink); font-size: .72rem; line-height: 1.3; }
.script-list article > p { margin: 10px 0 16px; color: #657871; font-family: Georgia, serif; font-size: .62rem; font-style: italic; line-height: 1.55; }
.script-list article > small { margin-top: auto; padding-top: 10px; border-top: 1px solid #e1e6e2; color: #899992; font-size: .49rem; font-weight: 800; }

/* Closing conversion panel: media is contained, never behind the copy */
.closing-card {
  min-height: 410px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: stretch;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: var(--forest);
  background-image: none;
  box-shadow: 0 28px 76px rgba(10, 35, 29, .18);
}
.closing-card::after { inset: 10px; z-index: 0; border: 1px solid rgba(255,255,255,.065); border-radius: 19px; pointer-events: none; }
.closing-copy { max-width: none; padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; z-index: 2; }
.closing-card h2 { max-width: 700px; font-size: clamp(2.75rem, 4.4vw, 4.35rem); }
.closing-copy > p:not(.eyebrow) { max-width: 570px; }
.closing-proof { margin: 24px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; color: #b7c8c3; font-size: .65rem; font-weight: 750; }
.closing-proof span { margin-right: 4px; color: var(--lime); }
.closing-media { min-width: 0; margin: 0; position: relative; overflow: hidden; border-radius: 20px; background: #182f29; }
.closing-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(5, 24, 20, .58) 100%); pointer-events: none; }
.closing-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 78% center; transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.closing-card:hover .closing-media img { transform: scale(1.035); }
.closing-media figcaption { min-width: 215px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; position: absolute; right: 16px; bottom: 16px; z-index: 2; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; color: white; background: rgba(7, 28, 24, .82); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); backdrop-filter: blur(14px); }
.closing-media figcaption span { grid-row: 1 / 3; align-self: center; color: var(--lime); font-size: 1.75rem; font-weight: 900; letter-spacing: -.06em; }
.closing-media figcaption strong { align-self: end; font-size: .62rem; }
.closing-media figcaption small { color: #a9bdb7; font-size: .52rem; }

@media (max-width: 880px) {
  .workbook-shell { grid-template-columns: 145px minmax(0, 1fr); }
  .sheet-stage { padding-inline: 22px; }
  .settings-layout { grid-template-columns: 1fr; }
  .baseline-card { min-height: 140px; }
  .script-list { grid-template-columns: 1fr; }
  .script-list article { min-height: auto; }
  .closing-card { width: min(100% - 40px, 760px); grid-template-columns: 1fr; }
  .closing-media { min-height: 310px; }
}

@media (max-width: 650px) {
  .workbook-window { border-radius: 17px; }
  .workbook-window:hover { transform: none; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-bar > span { display: none; }
  .workbook-shell { min-height: 0; grid-template-columns: 1fr; }
  .sheet-rail { padding: 8px; display: flex; gap: 5px; border-right: 0; border-bottom: 1px solid #d9e0da; overflow-x: auto; scrollbar-width: none; }
  .sheet-rail::-webkit-scrollbar { display: none; }
  .sheet-nav { width: auto; min-width: max-content; padding: 9px 10px; grid-template-columns: 6px auto; font-size: .57rem; }
  .sheet-nav:hover { transform: none; }
  .sheet-stage { min-height: 620px; padding: 18px 16px; }
  .sheet-panel { min-height: 584px; }
  .sheet-grid { grid-template-columns: 1fr; }
  .workbook-window .sheet-inputs { display: grid; }
  .sheet-result { min-height: 230px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .settings-list small { display: none; }
  .baseline-card { min-height: 168px; }
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-kpis > div:last-child { grid-column: 1 / -1; }
  .dashboard-chart { height: 210px; }
  .sheet-tabs { display: none; }
  .closing-card { width: min(100% - 28px, 1240px); min-height: 0; padding: 9px; display: grid; gap: 9px; }
  .closing-copy { padding: 27px 17px 23px; }
  .closing-card h2 { font-size: clamp(2.55rem, 12vw, 3.35rem); }
  .closing-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .closing-copy > .button { width: 100%; }
  .closing-media { min-height: 270px; aspect-ratio: 1.25; border-radius: 16px; }
  .closing-media img { object-position: 76% center; }
  .closing-media figcaption { min-width: 0; right: 11px; bottom: 11px; left: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .window-live i { animation: live-signal 2.2s ease-in-out infinite; }
  .closing-media figcaption { animation: closing-card-float 5s ease-in-out infinite; }
}
@keyframes live-signal { 0%, 100% { box-shadow: 0 0 0 3px rgba(217, 255, 103, .08); } 50% { box-shadow: 0 0 0 6px rgba(217, 255, 103, .18); } }
@keyframes closing-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .sheet-panel.is-entering,
  .sheet-panel.is-entering .chart-bars i,
  .window-live i,
  .closing-media figcaption { animation: none; }
  .workbook-window,
  .closing-media img { transition: none; }
}

/* Guided calculator flow */
.calculator-progress {
  margin: 42px 0 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, .72);
  box-shadow: 0 10px 30px rgba(13, 40, 34, .04);
  list-style: none;
}
.calculator-progress li { min-width: 0; position: relative; }
.calculator-progress button {
  width: 100%;
  min-height: 62px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  transition: color 190ms ease, background 190ms ease, box-shadow 190ms ease, transform 190ms ease;
}
.calculator-progress button:hover:not([aria-disabled="true"]) { color: var(--ink); background: #f0f4ee; transform: translateY(-1px); }
.calculator-progress button:focus-visible { outline: 3px solid rgba(159, 197, 38, .25); outline-offset: 1px; }
.calculator-progress button > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5cd;
  border-radius: 10px;
  color: #71827c;
  background: white;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  transition: inherit;
}
.calculator-progress button > span { min-width: 0; display: grid; gap: 1px; }
.calculator-progress button b { overflow: hidden; font-size: .69rem; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.calculator-progress button small { color: #81918b; font-size: .53rem; font-weight: 650; }
.calculator-progress li.is-active button { color: white; background: var(--forest); box-shadow: 0 10px 25px rgba(11, 37, 32, .15); }
.calculator-progress li.is-active button > i { border-color: var(--lime); color: var(--forest); background: var(--lime); }
.calculator-progress li.is-active button small { color: #9fb4ad; }
.calculator-progress li.is-complete:not(.is-active) button { color: var(--safe); background: #edf7ee; }
.calculator-progress li.is-complete:not(.is-active) button > i { border-color: rgba(31, 107, 78, .18); color: transparent; background: #dff1e4; position: relative; }
.calculator-progress li.is-complete:not(.is-active) button > i::after { content: "\2713"; position: absolute; color: var(--safe); font-size: .75rem; }
.calculator-progress li.is-locked button { opacity: .5; cursor: not-allowed; }

.calculator-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, .78fr); gap: 22px; }
.calculator-left { min-width: 0; display: grid; align-content: start; gap: 16px; }
.calculator-card { padding: 25px 27px 22px; overflow: hidden; }
.calculator-card .form-toolbar { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calculator-card fieldset.calculator-step { margin: 0; padding: 24px 0 0; border: 0; }
.calculator-card fieldset.calculator-step[hidden] { display: none; }
.calculator-card .calculator-step > legend.sr-only { width: 1px !important; max-width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; position: absolute !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.calculator-card fieldset.calculator-step.step-entering { animation: calculator-step-in 360ms cubic-bezier(.2,.75,.2,1) both; }
@keyframes calculator-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.calculator-card .step-heading {
  width: 100%;
  margin: 0 0 21px;
  padding: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
}
.calculator-card .step-heading > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 8px 20px rgba(159, 197, 38, .16);
  font-size: .63rem;
  font-weight: 900;
}
.step-legend-copy { min-width: 0; display: grid; gap: 2px; }
.calculator-card .step-legend-copy b { color: var(--ink); font-size: .87rem; letter-spacing: -.015em; }
.calculator-card .step-legend-copy small { color: var(--muted); font-size: .61rem; font-weight: 580; line-height: 1.4; text-align: left; }
.step-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: #edf2ee; font-size: .69rem; font-style: normal; font-weight: 900; transform: scale(.8); transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.calculator-step.is-complete .step-check { color: white; background: var(--safe); transform: scale(1); }
.calculator-step .field-grid { gap: 15px 16px; }
.calculator-step .field-grid label { gap: 6px; position: relative; }
.calculator-step .field-grid label > span:first-child { min-height: 19px; display: flex; align-items: center; gap: 5px; }
.calculator-step .step-field > span:first-child::after { content: ""; width: 15px; height: 15px; margin-left: auto; display: grid; place-items: center; border-radius: 50%; color: transparent; background: transparent; font-size: .5rem; transition: color 150ms ease, background 150ms ease; }
.calculator-step .step-field.is-complete > span:first-child::after { content: "\2713"; color: white; background: var(--safe); }
.calculator-step .field-grid input,
.calculator-step .money-input,
.calculator-step .percent-input { min-height: 48px; }
.calculator-step input::placeholder { color: #9caaa4; opacity: 1; font-weight: 550; }
.calculator-step .step-field.is-invalid > input,
.calculator-step .step-field.is-invalid > .money-input,
.calculator-step .step-field.is-invalid > .percent-input { border-color: #bd655c; box-shadow: 0 0 0 3px rgba(153, 61, 53, .1); }
.calculator-step .field-help { min-height: 18px; }
.calculator-step .optional-field > span:first-child small { padding: 2px 5px; border-radius: 4px; color: #70817a; background: #edf1ed; font-size: .48rem; font-weight: 800; text-transform: uppercase; }
.step-footer { margin-top: 22px; padding-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); }
.step-feedback { margin: 0 auto 0 0; color: var(--muted); font-size: .59rem; font-weight: 650; line-height: 1.4; }
.step-feedback > span { margin-right: 3px; color: var(--ink); font-weight: 900; }
.step-feedback.is-complete > span { color: var(--safe); }
.step-feedback.has-error { color: var(--danger); }
.step-feedback.has-error > span { color: var(--danger); }
.step-next,
.reveal-quote { min-height: 48px; padding-inline: 18px; font-size: .7rem; }
.step-next > span,
.reveal-quote > span,
.gate-reveal > span { transition: transform 180ms ease; }
.step-next:hover > span,
.reveal-quote:hover > span,
.gate-reveal:hover > span { transform: translateX(3px); }
.step-back { min-height: 42px; padding: 7px 5px; display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--muted); background: transparent; font-size: .65rem; font-weight: 800; }
.step-back:hover { color: var(--ink); }
.calculator-card .form-assurance { margin-top: 18px; padding-block: 11px; }

.calculator-next[hidden] { display: none; }
.calculator-next {
  padding: 23px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, .85fr);
  align-items: center;
  gap: 16px 24px;
  border: 1px solid rgba(143, 171, 32, .33);
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f8dd 0%, #fffdf7 74%);
  box-shadow: 0 14px 42px rgba(13, 40, 34, .065);
  animation: calculator-next-in 420ms cubic-bezier(.2,.75,.2,1) both;
}
.calculator-next > div > p { margin: 0 0 6px; color: var(--safe); font-size: .56rem; font-weight: 900; letter-spacing: .11em; }
.calculator-next h3 { margin: 0; color: var(--ink); font-size: 1.12rem; letter-spacing: -.035em; line-height: 1.2; }
.calculator-next > div > span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .65rem; line-height: 1.5; }
.calculator-next ul { margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .62rem; font-weight: 750; list-style: none; }
.calculator-next li { padding-bottom: 7px; border-bottom: 1px solid rgba(16,42,38,.09); }
.calculator-next li:last-child { padding-bottom: 0; border-bottom: 0; }
.calculator-next li i { margin-right: 6px; color: var(--safe); font-style: normal; }
.calculator-next > .button { grid-column: 1 / -1; min-height: 45px; justify-self: start; font-size: .67rem; }
@keyframes calculator-next-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.results-card.is-awaiting {
  min-height: 545px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 255, 103, .09), transparent 25%),
    linear-gradient(145deg, #0b2520 0%, #09211d 100%);
}
.result-gate { min-height: 487px; display: flex; flex-direction: column; align-items: stretch; position: relative; z-index: 1; }
.result-gate[hidden],
.result-content[hidden],
.gate-reveal[hidden] { display: none; }
.gate-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gate-topline > p { margin: 0; color: var(--lime); font-size: .59rem; font-weight: 900; letter-spacing: .1em; }
.gate-topline > span { display: inline-flex; align-items: center; gap: 6px; color: #a9bcb6; font-size: .55rem; font-weight: 750; }
.gate-topline i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,255,103,.1); }
.gate-progress {
  --gate-progress: 0%;
  width: 102px;
  height: 102px;
  margin: 32px auto 21px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--forest) 60%, transparent 61%), conic-gradient(var(--lime) 0 var(--gate-progress), #284a42 var(--gate-progress));
  text-align: center;
  transition: background 260ms ease;
}
.gate-progress span { color: white; font-size: 1.28rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.gate-progress small { margin-top: 3px; color: #8fa9a1; font-size: .52rem; }
.result-gate > h3 { margin: 0; color: white; font-size: clamp(1.55rem, 2.3vw, 1.9rem); letter-spacing: -.045em; line-height: 1.08; text-align: center; }
.result-gate > p:not(.gate-trust) { max-width: 360px; margin: 10px auto 0; color: #a9bdb7; font-size: .69rem; line-height: 1.5; text-align: center; }
.gate-checklist { margin: 25px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.gate-checklist li { padding: 10px 11px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; color: #8ca49c; background: rgba(255,255,255,.025); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.gate-checklist li > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #879f97; background: rgba(255,255,255,.055); font-size: .52rem; font-style: normal; font-weight: 900; }
.gate-checklist li > span { min-width: 0; display: grid; }
.gate-checklist strong { color: #b7c8c3; font-size: .65rem; }
.gate-checklist small { color: #78938a; font-size: .51rem; }
.gate-checklist li::after { content: ""; width: 7px; height: 7px; border: 1px solid #59746b; border-radius: 50%; }
.gate-checklist li.is-current { border-color: rgba(217,255,103,.28); background: rgba(217,255,103,.055); transform: translateX(3px); }
.gate-checklist li.is-current > i { color: var(--forest); background: var(--lime); }
.gate-checklist li.is-current strong { color: white; }
.gate-checklist li.is-current::after { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 4px rgba(217,255,103,.08); }
.gate-checklist li.is-complete { color: #b7d5c8; border-color: rgba(76, 159, 116, .2); background: rgba(53, 127, 91, .09); }
.gate-checklist li.is-complete > i { color: transparent; background: var(--safe); position: relative; }
.gate-checklist li.is-complete > i::after { content: "\2713"; position: absolute; color: white; font-size: .7rem; }
.gate-checklist li.is-complete strong { color: #d7ebe1; }
.gate-checklist li.is-complete small { color: #74ae90; }
.gate-checklist li.is-complete::after { content: "\2713"; width: 19px; height: 19px; display: grid; place-items: center; border: 0; color: var(--forest); background: var(--lime); font-size: .55rem; font-weight: 900; }
.gate-reveal { width: 100%; min-height: 49px; margin-top: 16px; }
.gate-trust { margin: auto 0 0; padding-top: 15px; color: #7f9a91; border-top: 1px solid rgba(255,255,255,.08); font-size: .55rem; text-align: center; }
.gate-trust span { margin-right: 4px; color: var(--lime); }
.result-content { position: relative; }
.result-content.is-revealing { animation: result-reveal 520ms cubic-bezier(.2,.75,.2,1) both; }
.result-content.is-revealing::before { content: ""; height: 2px; position: absolute; top: -10px; right: 45%; left: 45%; z-index: 3; border-radius: 99px; background: var(--lime); box-shadow: 0 0 28px rgba(217,255,103,.65); animation: result-sweep 720ms ease-out both; }
@keyframes result-reveal { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes result-sweep { 0% { right: 50%; left: 50%; opacity: 0; } 30% { opacity: 1; } 100% { right: 0; left: 0; opacity: 0; } }

@media (max-width: 1050px) {
  .calculator-grid { grid-template-columns: minmax(0, 1fr) 390px; }
}

@media (max-width: 880px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .results-card { position: static; }
  .results-card.is-awaiting { min-height: 0; }
  .result-gate { min-height: 470px; }
}

@media (max-width: 650px) {
  .calculator-progress { margin-top: 31px; padding: 4px; gap: 4px; border-radius: 13px; }
  .calculator-progress button { min-height: 54px; padding: 7px; grid-template-columns: 29px minmax(0, 1fr); gap: 7px; border-radius: 9px; }
  .calculator-progress button > i { width: 29px; height: 29px; border-radius: 8px; font-size: .52rem; }
  .calculator-progress button b { font-size: .57rem; }
  .calculator-progress button small { display: none; }
  .calculator-card { padding: 20px; }
  .calculator-card .form-toolbar { align-items: center; }
  .form-toolbar-actions { align-items: flex-end; }
  .calculator-card .step-heading { grid-template-columns: 38px minmax(0, 1fr) 26px; gap: 10px; }
  .calculator-card .step-heading > span:first-child { width: 38px; height: 38px; }
  .calculator-card .step-legend-copy small { font-size: .58rem; }
  .calculator-step .field-grid,
  .calculator-step .field-grid.three-up { grid-template-columns: 1fr; gap: 14px; }
  .step-footer { align-items: stretch; flex-wrap: wrap; }
  .step-feedback { width: 100%; order: -2; }
  .step-back { order: -1; margin-right: auto; }
  .step-next,
  .reveal-quote { width: 100%; }
  .calculator-next { padding: 21px; grid-template-columns: 1fr; gap: 17px; }
  .calculator-next > .button { width: 100%; }
  .results-card { padding: 22px; }
  .result-gate { min-height: 485px; }
  .gate-progress { margin-top: 28px; }
  .gate-checklist li { padding: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .calculator-progress li.is-complete:not(.is-active) button > i::after { animation: step-check-in 240ms cubic-bezier(.2,.8,.2,1) both; }
  .gate-checklist li.is-complete::after { animation: step-check-in 240ms cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes step-check-in { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .calculator-card fieldset.calculator-step.step-entering,
  .result-content.is-revealing,
  .result-content.is-revealing::before,
  .calculator-progress li.is-complete:not(.is-active) button > i::after,
  .gate-checklist li.is-complete::after { animation: none; }
  .calculator-next { animation: none; }
  .calculator-progress button,
  .step-check,
  .gate-checklist li { transition: none; }
}
