:root {
  --ink: #153229;
  --green-950: #0b2b20;
  --green-900: #123f2c;
  --green-800: #185a3d;
  --green-700: #20724d;
  --green-100: #dceee4;
  --green-50: #eff8f2;
  --gold: #e5ac3e;
  --gold-soft: #f8e8bd;
  --cream: #f7f4eb;
  --paper: #fffefa;
  --muted: #66776f;
  --line: #dfe7e1;
  --danger: #a24438;
  --shadow: 0 24px 70px rgba(12, 45, 33, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button, input { font: inherit; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(21, 50, 41, 0.08);
  background: rgba(255, 254, 250, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(18, 63, 44, 0.12);
}

.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: "Manrope", sans-serif; font-size: 18px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }

nav { display: flex; gap: 30px; }
nav a, .footer-links a { text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover, .footer-links a:hover { color: var(--green-700); }

.site-header > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green-900);
  box-shadow: 0 10px 24px rgba(18, 63, 44, 0.17);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); background: var(--green-800); box-shadow: 0 14px 30px rgba(18, 63, 44, 0.22); }
.button-small { min-height: 42px; padding: 0 17px; border-radius: 10px; font-size: 14px; }
.button-light { width: 100%; color: var(--green-950); background: white; box-shadow: none; }
.button-light:hover { color: white; background: var(--green-800); }
.button-gold { color: var(--green-950); background: var(--gold); box-shadow: none; }
.button-gold:hover { background: #efbd5a; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  min-height: calc(100vh - 78px);
  overflow: hidden;
  padding: 80px clamp(24px, 7vw, 110px) 96px;
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 172, 62, 0.12), transparent 30%),
    linear-gradient(135deg, #fffefa 0%, #f6f3e8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(32, 114, 77, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(32, 114, 77, 0.03), 0 0 0 148px rgba(32, 114, 77, 0.025);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span { width: 28px; height: 2px; background: var(--gold); }

h1, h2, h3 {
  margin-top: 0;
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 { max-width: 790px; margin-bottom: 24px; font-size: clamp(46px, 5.4vw, 80px); }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 56px); }
h3 { margin-bottom: 0; font-size: 20px; }

.hero-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.text-link { color: var(--green-800); font-weight: 700; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow-one { width: 460px; height: 460px; background: rgba(32, 114, 77, 0.14); }
.glow-two { width: 320px; height: 320px; background: rgba(229, 172, 62, 0.14); transform: translate(120px, -110px); }

.preview-card {
  position: relative;
  width: min(100%, 500px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: rotate(1.5deg);
}

.preview-head, .price-preview, .savings-preview, .result-top, .scenario-heading, .scenario-heading > div, .tour-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-head > div { display: flex; flex-direction: column; }
.mini-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-head strong { margin-top: 3px; font-family: "Manrope", sans-serif; font-size: 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--green-700); background: var(--green-50); font-size: 11px; font-weight: 700; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #35a56d; box-shadow: 0 0 0 4px rgba(53, 165, 109, 0.12); }

.price-preview { gap: 12px; margin: 28px 0 16px; }
.price-preview > div { flex: 1; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.price-preview span, .savings-preview span, .preview-note { color: var(--muted); font-size: 12px; }
.price-preview strong { display: block; margin-top: 6px; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 19px; }

.savings-preview { justify-content: flex-start; gap: 14px; padding: 18px; border-radius: 15px; background: var(--green-950); }
.savings-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--green-950) !important; background: var(--gold); font-weight: 800; }
.savings-preview > div { display: flex; flex-direction: column; }
.savings-preview span { color: #b8cbbf; }
.savings-preview strong { color: white; font-size: 20px; }
.preview-bars { margin-top: 25px; }
.preview-bar { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 14px; margin: 11px 0; color: var(--muted); font-size: 11px; }
.preview-bar i { position: relative; height: 7px; overflow: hidden; border-radius: 99px; background: #edf0ed; }
.preview-bar i::after { content: ""; position: absolute; inset: 0; width: var(--bar); border-radius: inherit; background: linear-gradient(90deg, var(--green-700), #58a47d); }
.preview-note { margin: 23px 0 0; text-align: center; }

.cost-lab { padding: 110px clamp(24px, 6vw, 90px); background: white; }
.section-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 80px; max-width: 1280px; margin: 0 auto 44px; }
.section-heading h2 { max-width: 700px; margin-bottom: 0; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }

.example-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faf8;
}

.example-picker > span { padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.example-button { padding: 9px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.example-button:hover { color: var(--green-800); background: white; }
.example-button.active { color: white; background: var(--green-800); box-shadow: 0 5px 14px rgba(18, 63, 44, 0.15); }

.lab-grid { display: grid; grid-template-columns: 1fr 1fr 0.85fr; gap: 18px; max-width: 1280px; margin: auto; }
.scenario-panel, .result-panel { border: 1px solid var(--line); border-radius: 21px; }
.scenario-panel { padding: 23px; background: #fcfdfa; }
.scenario-panel-highlight { border-color: #aacdb9; background: #f8fcf9; box-shadow: 0 12px 35px rgba(18, 63, 44, 0.08); }
.scenario-heading { margin-bottom: 21px; }
.scenario-heading > div { justify-content: flex-start; gap: 12px; }
.scenario-heading small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.scenario-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: white; background: var(--green-900); font-family: "Manrope", sans-serif; font-weight: 800; }
.locked-label, .editable-label { padding: 6px 8px; border-radius: 7px; color: var(--muted); background: #edf1ee; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.editable-label { color: var(--green-700); background: var(--green-100); }

.input-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.input-row:first-child { border-top: 0; }
.ingredient-name { display: flex; flex-direction: column; }
.ingredient-name strong { font-size: 14px; }
.ingredient-name small { color: var(--muted); font-size: 11px; }
.price-field { position: relative; display: flex; align-items: center; width: 112px; }
.price-field span { position: absolute; left: 11px; color: var(--muted); font-size: 13px; }
.price-field input { width: 100%; height: 39px; padding: 0 9px 0 27px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-weight: 700; outline: none; }
.price-field input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(32, 114, 77, 0.12); }
.price-field input[readonly] { color: var(--muted); background: #f3f5f3; }

.scenario-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.scenario-total span { color: var(--muted); font-size: 12px; }
.scenario-total strong { font-family: "Manrope", sans-serif; font-size: 20px; }

.result-panel { display: flex; flex-direction: column; padding: 25px; color: white; border-color: var(--green-950); background: var(--green-950); }
.result-status { padding: 6px 9px; border-radius: 7px; color: #a5e2bc; background: rgba(89, 179, 122, 0.12); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.result-status.higher { color: #ffd4c8; background: rgba(224, 120, 99, 0.12); }
.result-panel .mini-label { color: #9fb4a7; }
.big-result { display: flex; flex-direction: column; margin: 25px 0 20px; }
.big-result > span { color: #aebfb4; font-size: 13px; }
.big-result strong { margin: 2px 0; color: var(--gold); font-family: "Manrope", sans-serif; font-size: 42px; line-height: 1.1; }
.big-result small { color: #aebfb4; font-size: 12px; }
.result-metrics { border-top: 1px solid rgba(255,255,255,0.11); }
.result-metrics > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.11); }
.result-metrics span { color: #aebfb4; font-size: 11px; }
.result-metrics strong { font-size: 13px; }
.insight-card { margin: 18px 0; padding: 13px 14px; border-radius: 11px; background: rgba(255,255,255,0.06); }
.insight-card span { color: #aebfb4; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.insight-card p { margin: 3px 0 0; color: white; font-size: 12px; line-height: 1.5; }
.result-panel .button { margin-top: auto; }

.lab-disclaimer { display: flex; align-items: flex-start; gap: 15px; max-width: 1280px; margin: 18px auto 0; padding: 16px 20px; border-radius: 13px; color: var(--muted); background: var(--cream); font-size: 13px; }
.lab-disclaimer strong { color: var(--ink); white-space: nowrap; }
.lab-disclaimer p { margin: 0; }

.guided-tour {
  padding: 110px clamp(24px, 7vw, 110px) 0;
  color: white;
  background:
    radial-gradient(circle at 90% 15%, rgba(229, 172, 62, 0.13), transparent 28%),
    var(--green-950);
}

.guided-tour { display: grid; grid-template-columns: 0.85fr 1.15fr; column-gap: clamp(45px, 7vw, 100px); }
.tour-intro { align-self: center; padding-bottom: 110px; }
.eyebrow-light { color: #a8cbb6; }
.tour-intro h2 { max-width: 560px; }
.tour-intro > p:not(.eyebrow) { max-width: 540px; margin: 0 0 30px; color: #adc0b4; font-size: 17px; }

.tour-console { align-self: center; margin-bottom: 110px; overflow: hidden; border: 1px solid rgba(255,255,255,0.13); border-radius: 23px; background: rgba(255,255,255,0.055); box-shadow: 0 34px 90px rgba(0,0,0,0.18); }
.tour-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,0.1); }
.tour-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 62px; border: 0; border-right: 1px solid rgba(255,255,255,0.09); color: #8fa89a; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.tour-tabs button:last-child { border-right: 0; }
.tour-tabs button[aria-selected="true"] { color: white; background: rgba(255,255,255,0.07); }
.tour-tabs span { color: var(--gold); font-family: "Manrope", sans-serif; font-size: 10px; }
.tour-screen { min-height: 360px; padding: 35px; }
.tour-screen-head { align-items: flex-start; margin-bottom: 28px; }
.tour-screen-head small { color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tour-screen-head h3 { margin-top: 5px; font-size: 27px; }
.tour-screen-head p { max-width: 310px; margin: 0; color: #a9bbb0; font-size: 13px; }
.mock-list { display: grid; gap: 10px; }
.mock-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 13px 15px; border: 1px solid rgba(255,255,255,0.09); border-radius: 11px; background: rgba(255,255,255,0.045); }
.mock-item > div { display: flex; align-items: center; gap: 11px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.mock-item strong { font-size: 13px; }
.mock-item span { color: #9eb2a6; font-size: 11px; }
.mock-amount { color: white !important; font-family: "Manrope", sans-serif; font-size: 13px !important; font-weight: 700; }
.tour-progress { height: 4px; background: rgba(255,255,255,0.08); }
.tour-progress i { display: block; width: 25%; height: 100%; background: var(--gold); transition: width 240ms ease; }

footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 100px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
footer > div:first-child { display: flex; flex-direction: column; }
footer strong { font-family: "Manrope", sans-serif; }
footer span, footer small { color: #8fa89a; font-size: 11px; }
.footer-links { display: flex; gap: 24px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 500px; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .result-panel { grid-column: 1 / -1; }
  .result-panel .button { margin-top: 10px; }
  .guided-tour { grid-template-columns: 1fr; }
  .tour-intro { padding-bottom: 60px; }
  .tour-console { margin-bottom: 80px; }
}

@media (max-width: 740px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; padding: 8px 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand small, nav { display: none; }
  .site-header .button { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .hero { min-height: auto; padding: 64px 20px 74px; }
  h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-actions { flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .trust-row { flex-direction: column; gap: 7px; }
  .hero-visual { min-height: 430px; }
  .preview-card { padding: 20px; transform: none; }
  .glow-one { width: 340px; height: 340px; }
  .glow-two { width: 220px; height: 220px; }
  .cost-lab, .guided-tour { padding-left: 18px; padding-right: 18px; }
  .cost-lab { padding-top: 78px; padding-bottom: 78px; }
  .guided-tour { padding-top: 78px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .lab-grid { grid-template-columns: 1fr; }
  .result-panel { grid-column: auto; }
  .lab-disclaimer { flex-direction: column; gap: 3px; }
  .tour-tabs { grid-template-columns: 1fr 1fr; }
  .tour-tabs button:nth-child(2) { border-right: 0; }
  .tour-tabs button:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.09); }
  .tour-screen { min-height: 420px; padding: 25px 20px; }
  .tour-screen-head { flex-direction: column; gap: 10px; }
  footer { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
