.labv2-body {
  --lab-ink: #091f33;
  --lab-ink-soft: #15334c;
  --lab-paper: #f4f1e8;
  --lab-white: #fffdf8;
  --lab-gold: #e3b864;
  --lab-gold-deep: #a97c2d;
  --lab-line: rgba(9, 31, 51, 0.14);
}

.labv2-hero {
  position: relative;
  padding: clamp(54px, 6vw, 82px) 0 clamp(70px, 8vw, 108px);
  border-bottom: 1px solid var(--lab-line);
  overflow: clip;
}

.labv2-hero::before,
.labv2-hero::after {
  position: absolute;
  border: 1px solid rgba(9, 31, 51, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.labv2-hero::before {
  top: -310px;
  right: -210px;
  width: 680px;
  height: 680px;
}

.labv2-hero::after {
  right: 22vw;
  bottom: -110px;
  width: 220px;
  height: 220px;
  background: rgba(227, 184, 100, 0.08);
}

.labv2-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, 0.64fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: center;
}

.labv2-hero .expert-breadcrumb {
  margin-bottom: 24px;
}

.labv2-hero h1 {
  max-width: 870px;
  margin: 17px 0 0;
  font-size: clamp(3.7rem, 6.2vw, 6.5rem);
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.labv2-hero h1 span {
  display: inline;
  color: var(--lab-gold-deep);
}

.labv2-hero h1 span::after {
  display: none;
}

.labv2-hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #455563;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.58;
}

.labv2-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.labv2-hero-points span {
  padding: 8px 11px;
  color: rgba(9, 31, 51, 0.68);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(9, 31, 51, 0.12);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 750;
}

.labv2-hero .button {
  margin-top: 30px;
}

.labv2-preview {
  padding: clamp(26px, 3.2vw, 38px);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(9, 31, 51, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(9, 31, 51, 0.1);
  backdrop-filter: blur(14px);
}

.labv2-preview > p {
  margin: 0;
  color: var(--lab-gold-deep);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.labv2-preview ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.labv2-preview li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--lab-line);
}

.labv2-preview li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--lab-ink);
  background: rgba(227, 184, 100, 0.3);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
}

.labv2-preview strong,
.labv2-preview small {
  display: block;
}

.labv2-preview strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.labv2-preview small {
  margin-top: 5px;
  color: rgba(9, 31, 51, 0.58);
  font-size: 0.75rem;
  line-height: 1.45;
}

.labv2-private {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  color: rgba(9, 31, 51, 0.58);
  border-top: 1px solid var(--lab-line);
  font-size: 0.7rem;
  font-weight: 700;
}

.labv2-private i {
  width: 8px;
  height: 8px;
  background: #50c889;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(80, 200, 137, 0.13);
}

.labv2-calculator {
  padding: clamp(82px, 9vw, 124px) 0;
  color: var(--lab-white);
  background:
    radial-gradient(circle at 8% 8%, rgba(227, 184, 100, 0.1), transparent 25rem),
    var(--lab-ink);
}

.labv2-section-head,
.labv2-subhead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
}

.labv2-section-head {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.labv2-section-head h2 {
  max-width: 750px;
  margin: 16px 0 0;
  color: var(--lab-white);
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.labv2-section-head > p,
.labv2-subhead > p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.labv2-progress {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 30px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.labv2-progress .is-active {
  color: var(--lab-gold);
}

.labv2-progress i {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.19);
}

.labv2-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.labv2-input-panel {
  color: var(--lab-ink);
  background: var(--lab-paper);
  border-radius: 30px;
  overflow: hidden;
}

.labv2-input-section {
  padding: clamp(27px, 3.8vw, 46px);
}

.labv2-input-section + .labv2-input-section {
  border-top: 1px solid var(--lab-line);
}

.labv2-input-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.labv2-input-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--lab-ink);
  background: var(--lab-gold);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
}

.labv2-input-heading h3 {
  margin: 1px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.labv2-input-heading p {
  margin: 7px 0 0;
  color: rgba(9, 31, 51, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.labv2-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 27px;
}

.labv2-model {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 16px 10px;
  color: var(--lab-ink);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--lab-line);
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.labv2-model img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.labv2-model:hover,
.labv2-model:focus-visible {
  border-color: rgba(169, 124, 45, 0.55);
  transform: translateY(-3px);
}

.labv2-model.is-active {
  background: var(--lab-gold);
  border-color: var(--lab-gold-deep);
  box-shadow: 0 15px 34px rgba(169, 124, 45, 0.2);
}

.labv2-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 27px;
}

.labv2-field {
  display: flex;
  min-width: 0;
  min-height: 172px;
  flex-direction: column;
  padding: 17px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--lab-line);
  border-radius: 17px;
  cursor: text;
  transition: border-color 180ms ease, background 180ms ease;
}

.labv2-field:focus-within {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--lab-gold-deep);
}

.labv2-field > span {
  min-height: 37px;
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.35;
}

.labv2-field > small {
  min-height: 42px;
  margin-top: 5px;
  color: rgba(9, 31, 51, 0.5);
  font-size: 0.61rem;
  line-height: 1.4;
}

.labv2-field > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.labv2-field input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--lab-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 850;
}

.labv2-field b {
  color: var(--lab-gold-deep);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.labv2-field-optional {
  border-style: dashed;
}

.labv2-result-panel {
  position: sticky;
  top: 108px;
  padding: clamp(27px, 3.5vw, 44px);
  color: var(--lab-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.48), transparent 20rem),
    var(--lab-gold);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.labv2-result-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.labv2-result-status span {
  padding: 8px 11px;
  color: var(--lab-white);
  background: var(--lab-ink);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
}

.labv2-result-status span[data-tone="positive"] { background: #13623d; }
.labv2-result-status span[data-tone="warning"] { background: #8a5811; }
.labv2-result-status span[data-tone="negative"] { background: #8d2931; }
.labv2-result-status span[data-tone="neutral"] { background: var(--lab-ink); }

.labv2-result-status small {
  color: rgba(9, 31, 51, 0.58);
  font-size: 0.64rem;
  font-weight: 750;
}

.labv2-result-panel > h3 {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.labv2-result-panel > p {
  margin: 15px 0 0;
  color: rgba(9, 31, 51, 0.72);
  font-size: 0.84rem;
  line-height: 1.58;
}

.labv2-primary-result {
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(9, 31, 51, 0.2);
  border-bottom: 1px solid rgba(9, 31, 51, 0.2);
}

.labv2-primary-result span,
.labv2-primary-result strong,
.labv2-primary-result small {
  display: block;
}

.labv2-primary-result span {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.labv2-primary-result strong {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 6.2vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.labv2-primary-result small {
  margin-top: 7px;
  color: rgba(9, 31, 51, 0.6);
  font-size: 0.67rem;
}

.labv2-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(9, 31, 51, 0.2);
}

.labv2-result-grid > div {
  min-width: 0;
  padding: 19px 13px 19px 0;
}

.labv2-result-grid > div + div {
  padding-left: 13px;
  border-left: 1px solid rgba(9, 31, 51, 0.2);
}

.labv2-result-grid span,
.labv2-result-grid strong,
.labv2-result-grid small {
  display: block;
}

.labv2-result-grid span {
  min-height: 32px;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.labv2-result-grid strong {
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  white-space: nowrap;
}

.labv2-result-grid small {
  margin-top: 4px;
  color: rgba(9, 31, 51, 0.55);
  font-size: 0.56rem;
  line-height: 1.35;
}

.labv2-comparison {
  margin-top: 23px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(9, 31, 51, 0.16);
  border-radius: 17px;
}

.labv2-comparison.is-hidden {
  display: none;
}

.labv2-comparison > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.72rem;
  font-weight: 850;
}

.labv2-comparison-track {
  position: relative;
  height: 10px;
  margin-top: 14px;
  background: rgba(9, 31, 51, 0.13);
  border-radius: 999px;
}

.labv2-comparison-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--lab-ink);
  border-radius: inherit;
  transition: width 300ms ease;
}

.labv2-comparison-track i {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 31, 51, 0.16);
  transition: left 300ms ease;
}

.labv2-comparison p {
  margin: 12px 0 0;
  color: rgba(9, 31, 51, 0.68);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.45;
}

.labv2-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.labv2-result-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--lab-ink);
  background: transparent;
  border: 1px solid rgba(9, 31, 51, 0.25);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

.labv2-result-actions button:last-child {
  color: var(--lab-white);
  background: var(--lab-ink);
  border-color: var(--lab-ink);
}

.labv2-result-actions .ui-icon {
  font-size: 0.8rem;
}

.labv2-scenario,
.labv2-levers,
.labv2-checks {
  margin-top: clamp(58px, 7vw, 90px);
}

.labv2-subhead {
  padding-bottom: 26px;
}

.labv2-subhead h3 {
  margin: 13px 0 0;
  color: var(--lab-white);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.labv2-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
}

.labv2-flow > div {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 16px;
}

.labv2-flow > div.is-emphasis {
  color: var(--lab-ink);
  background: var(--lab-gold);
}

.labv2-flow > i {
  align-self: center;
  color: var(--lab-gold);
}

.labv2-flow span,
.labv2-flow small {
  display: block;
}

.labv2-flow span {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.labv2-flow small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.65rem;
  line-height: 1.4;
}

.labv2-flow .is-emphasis small {
  color: rgba(9, 31, 51, 0.62);
}

.labv2-lever-grid,
.labv2-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.labv2-lever-grid article,
.labv2-check-grid article {
  min-height: 205px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
}

.labv2-lever-grid article > span,
.labv2-check-grid article > span {
  color: var(--lab-gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.labv2-lever-grid strong,
.labv2-check-grid strong {
  display: block;
  margin-top: 32px;
  color: var(--lab-white);
  font-size: 1.14rem;
  line-height: 1.3;
}

.labv2-lever-grid p,
.labv2-check-grid p {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.58;
}

.labv2-check-grid article {
  position: relative;
  min-height: 185px;
  padding-left: 66px;
}

.labv2-check-grid article::before {
  position: absolute;
  top: 26px;
  left: 24px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--lab-ink);
  background: var(--lab-gold);
  border-radius: 50%;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.labv2-check-grid strong {
  margin-top: 30px;
}

.labv2-method {
  padding: clamp(80px, 9vw, 124px) 0;
  background: var(--lab-paper);
}

.labv2-method-head {
  display: grid;
  grid-template-columns: 0.72fr 1.18fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
}

.labv2-method-head .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.labv2-method-head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.labv2-method-head > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(9, 31, 51, 0.62);
  font-size: 1rem;
  line-height: 1.65;
}

.labv2-formulas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.labv2-formulas article {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--lab-line);
  border-radius: 22px;
}

.labv2-formulas article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--lab-ink);
  background: var(--lab-gold);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
}

.labv2-formulas h3 {
  margin: 38px 0 0;
  font-size: 1.35rem;
}

.labv2-formulas p {
  margin: 13px 0 0;
  font-weight: 800;
  line-height: 1.5;
}

.labv2-formulas small {
  display: block;
  margin-top: 9px;
  color: rgba(9, 31, 51, 0.55);
  font-size: 0.73rem;
  line-height: 1.55;
}

.labv2-disclaimer {
  max-width: 900px;
  margin: 28px 0 0;
  color: rgba(9, 31, 51, 0.5);
  font-size: 0.72rem;
  line-height: 1.55;
}

.labv2-cta {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .labv2-hero-grid,
  .labv2-workspace {
    grid-template-columns: 1fr;
  }

  .labv2-preview {
    max-width: 720px;
  }

  .labv2-result-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .labv2-section-head,
  .labv2-subhead,
  .labv2-method-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .labv2-method-head .section-kicker {
    grid-column: auto;
    margin-bottom: 0;
  }

  .labv2-models,
  .labv2-fields,
  .labv2-lever-grid,
  .labv2-check-grid,
  .labv2-formulas {
    grid-template-columns: 1fr;
  }

  .labv2-models {
    grid-template-columns: repeat(3, 1fr);
  }

  .labv2-model {
    min-height: 135px;
  }

  .labv2-model img {
    width: 62px;
    height: 62px;
  }

  .labv2-field {
    min-height: 144px;
  }

  .labv2-flow {
    grid-template-columns: 1fr 1fr;
  }

  .labv2-flow > i {
    display: none;
  }
}

@media (max-width: 620px) {
  .labv2-hero {
    padding-top: 34px;
  }

  .labv2-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.6rem);
  }

  .labv2-hero-grid {
    gap: 38px;
  }

  .labv2-progress {
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .labv2-progress i {
    width: 14px;
  }

  .labv2-models {
    grid-template-columns: 1fr;
  }

  .labv2-model {
    min-height: 112px;
    grid-template-columns: 74px 1fr;
    justify-items: start;
    text-align: left;
  }

  .labv2-model img {
    width: 62px;
    height: 62px;
  }

  .labv2-result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .labv2-result-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid rgba(9, 31, 51, 0.2);
    border-left: 0;
  }

  .labv2-result-actions,
  .labv2-result-actions button {
    width: 100%;
  }

  .labv2-flow {
    grid-template-columns: 1fr;
  }

  .labv2-flow > div {
    padding: 18px;
  }

  .labv2-check-grid article {
    padding-left: 61px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .labv2-model,
  .labv2-comparison-track span,
  .labv2-comparison-track i {
    transition: none;
  }
}
