:root {
  --ink: #132d2a;
  --muted: #64736f;
  --paper: #f5f3ed;
  --panel: #fffefa;
  --line: #d8ddd8;
  --mint: #bdebd6;
  --mint-strong: #3c9b77;
  --lime: #d8ef9f;
  --coral: #ee745e;
  --yellow: #e7b34e;
  --shadow: 0 22px 70px rgba(25, 52, 47, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 6%, rgba(189, 235, 214, 0.6), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

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

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(19, 45, 42, 0.12);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1480px;
  padding: 18px 32px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--lime);
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.topbar-actions { align-items: center; display: flex; gap: 14px; }

.privacy-chip {
  align-items: center;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(19,45,42,0.14);
  border-radius: 999px;
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  gap: 8px;
  padding: 9px 12px;
}

.privacy-chip span { background: #38a36e; border-radius: 50%; height: 7px; width: 7px; }

.button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  letter-spacing: 0.02em;
  min-height: 38px;
  padding: 0 15px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); border: 1px solid var(--ink); color: white; }
.button-primary:hover { background: #214740; }
.button-secondary { background: rgba(255,255,255,0.55); border: 1px solid rgba(19,45,42,0.18); }

.section-shell { margin: 0 auto; max-width: 1420px; padding-left: 42px; padding-right: 42px; }
.hero { padding-bottom: 42px; padding-top: 82px; }
.eyebrow, .mini-label { color: #5d716d; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow::before { background: var(--coral); content: ""; display: inline-block; height: 8px; margin-right: 9px; width: 8px; }
.hero-grid { align-items: end; display: grid; gap: 60px; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr); margin-top: 22px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px, 6.8vw, 98px); letter-spacing: -0.065em; line-height: 0.94; margin-bottom: 30px; max-width: 980px; }
h1 em { color: var(--mint-strong); font-style: normal; }
.hero-copy { color: #586864; font-size: 18px; line-height: 1.7; margin: 0; max-width: 760px; }
.hero-verdict { background: var(--panel); border: 1px solid rgba(19,45,42,.12); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; position: relative; }
.hero-verdict::before { background: var(--lime); border-radius: 20px 20px 0 0; content: ""; height: 7px; left: -1px; position: absolute; right: -1px; top: -1px; }
.verdict-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; margin-bottom: 18px; text-transform: uppercase; }
.verdict-name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.verdict-value { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 6px 0; }
.verdict-delta { color: var(--mint-strong); font-size: 12px; font-weight: 700; margin-bottom: 22px; }
.hero-verdict .button { width: 100%; }

.metric-strip { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.metric { padding: 23px 24px 20px 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric-label { color: var(--muted); display: block; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .06em; margin-bottom: 5px; text-transform: uppercase; }
.metric strong { display: block; font-size: 25px; letter-spacing: -.035em; }
.metric small { color: #70807c; display: block; font-size: 11px; margin-top: 3px; }

.simulator { padding-bottom: 100px; padding-top: 90px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 38px; }
.section-heading h2, .method h2 { font-size: clamp(38px, 4.2vw, 64px); letter-spacing: -.055em; line-height: 1; margin: 14px 0 0; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 360px; }

.workspace { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr); }
.assumptions-panel, .results-panel { background: rgba(255,254,250,.88); border: 1px solid rgba(19,45,42,.13); border-radius: 18px; }
.assumptions-panel { max-height: calc(100vh - 28px); overflow: auto; padding: 22px; position: sticky; top: 14px; }
.panel-title-row { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.panel-title-row h3 { font-size: 21px; margin: 0; }
.panel-title-row span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
details { border-top: 1px solid var(--line); padding: 17px 0 5px; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; margin-bottom: 15px; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-family: "DM Mono", monospace; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
.input-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span { align-items: center; color: #5d6c68; display: flex; font-size: 10px; font-weight: 700; justify-content: space-between; margin-bottom: 6px; min-height: 14px; }
.input-wrap { align-items: center; background: white; border: 1px solid #d7dcd7; border-radius: 7px; display: flex; min-height: 43px; overflow: hidden; transition: border .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(60,155,119,.12); }
.input-wrap input { background: transparent; border: 0; color: var(--ink); font-size: 13px; font-weight: 700; min-width: 0; outline: 0; padding: 0 10px; width: 100%; }
.input-wrap b, .input-wrap em { color: #71807c; font-family: "DM Mono", monospace; font-size: 9px; font-style: normal; font-weight: 500; padding-right: 10px; }
.input-wrap.prefix b { padding-left: 10px; padding-right: 0; }
.info { align-items: center; background: transparent; border: 1px solid #bbc6c1; border-radius: 50%; color: #6a7975; cursor: help; display: inline-flex; font-family: serif; font-size: 9px; height: 14px; justify-content: center; padding: 0; position: relative; width: 14px; }
.info.open::after { background: var(--ink); border-radius: 7px; color: white; content: attr(data-tip); font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 500; line-height: 1.45; padding: 9px; position: absolute; right: 0; text-align: left; top: 20px; width: 210px; z-index: 4; }
.segmented { background: #e8ebe6; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; padding: 3px; }
.segment { background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 700; padding: 8px; }
.segment.active { background: white; box-shadow: 0 2px 7px rgba(19,45,42,.1); }
.hidden { display: none; }

.results-panel { padding: 25px; }
.results-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 19px; }
.results-toolbar h3, .chart-heading h3 { font-size: 19px; margin: 5px 0 0; }
.strategy-cards { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.strategy-card { background: #f1f1ec; border: 1px solid transparent; border-radius: 12px; display: flex; flex-direction: column; min-height: 166px; padding: 16px; position: relative; }
.strategy-card.winner { background: #e7f3e8; border-color: #a8d2b6; }
.rank { color: #8a9692; font-family: "DM Mono", monospace; font-size: 10px; position: absolute; right: 14px; top: 13px; }
.strategy-name { font-size: 11px; font-weight: 800; max-width: 120px; min-height: 39px; text-transform: uppercase; }
.strategy-card strong { font-size: 28px; letter-spacing: -.045em; margin-top: 10px; }
.strategy-delta { color: var(--muted); font-size: 10px; margin-top: 2px; }
.strategy-card.winner .strategy-delta { color: #277e5b; font-weight: 800; }
.strategy-hours { border-top: 1px solid rgba(19,45,42,.1); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 9px; gap: 4px 12px; margin-top: auto; padding-top: 9px; }
.strategy-hours b { color: var(--ink); }

.chart-card { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 24px; }
.chart-heading { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.legend { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 9px; gap: 12px; }
.legend span { align-items: center; display: inline-flex; gap: 5px; }
.dot { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.direct { background: var(--ink); }
.delay { background: var(--coral); }
.review { background: var(--yellow); }
.cost-chart { display: grid; gap: 24px; margin-top: 27px; }
.bar-label { display: flex; font-size: 11px; justify-content: space-between; margin-bottom: 7px; }
.bar-label span { font-weight: 700; }
.bar-label b { font-family: "DM Mono", monospace; font-size: 10px; }
.bar-track { background: #e9ebe7; border-radius: 5px; display: flex; height: 15px; overflow: hidden; }
.bar-segment { display: block; height: 100%; transition: width .3s ease; }
.bar-values { color: #788480; display: flex; font-family: "DM Mono", monospace; font-size: 8px; gap: 15px; margin-top: 5px; }

.break-even-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.break-even-card { background: #eff0eb; border-radius: 12px; min-height: 146px; padding: 18px; }
.break-even-card.accent { background: var(--ink); color: white; }
.break-even-card.accent .mini-label { color: #9db4ae; }
.break-even-card strong { display: block; font-size: 24px; letter-spacing: -.04em; margin: 12px 0 6px; }
.break-even-card p { color: #687570; font-size: 10px; line-height: 1.55; margin: 0; }
.break-even-card.accent p { color: #b5c5c1; }
.current-marker { background: #e7f3e8; border-radius: 999px; color: #337659; font-family: "DM Mono", monospace; font-size: 9px; padding: 7px 10px; }
.sensitivity-chart { margin-top: 16px; overflow: hidden; width: 100%; }
.sensitivity-chart svg { display: block; overflow: visible; width: 100%; }
.sensitivity-chart text { fill: #76837f; font-family: "DM Mono", monospace; font-size: 9px; }
.grid-line { stroke: #dfe3de; stroke-width: 1; }
.reference-line { stroke-dasharray: 5 5; stroke-width: 1.25; }
.reference-line.traditional { stroke: #98a49f; }
.reference-line.llm { stroke: var(--coral); }
.reference-label.traditional { fill: #64736f; }
.reference-label.llm { fill: #b95645; }
.sensitivity-area { fill: none; }
.sensitivity-line { fill: none; stroke: var(--mint-strong); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.current-line { stroke: #93a6a0; stroke-dasharray: 3 4; }
.current-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 3; }
.current-bubble rect { fill: var(--ink); }
.current-bubble text { fill: white; font-weight: 500; }

.method { align-items: start; background: var(--ink); border-radius: 24px 24px 0 0; color: white; display: grid; gap: 60px; grid-template-columns: .7fr 1.3fr; max-width: 1480px; padding-bottom: 72px; padding-top: 72px; }
.method .eyebrow { color: #9eb3ad; }
.method .eyebrow::before { background: var(--lime); }
.method h2 { color: white; }
.method-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.method-grid article { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
.method-grid article > span { color: var(--lime); font-family: "DM Mono", monospace; font-size: 10px; }
.method-grid h3 { font-size: 16px; margin: 18px 0 8px; }
.method-grid p { color: #aabbb7; font-size: 11px; line-height: 1.7; }
.formula-note { border: 1px solid rgba(255,255,255,.15); border-radius: 12px; grid-column: 2; padding: 14px 16px; }
.formula-note strong { font-size: 11px; }
.formula-note p { color: #9cafaa; font-size: 10px; line-height: 1.6; margin: 4px 0 0; }

.implementation { padding-bottom: 90px; padding-top: 80px; }
.implementation-intro { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 760px; margin: 18px 0 54px; }
.implementation-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 48px; }
.implementation-grid article { border-top: 1px solid var(--line); padding-top: 18px; }
.implementation-grid article > span { color: var(--lime); font-family: "DM Mono", monospace; font-size: 10px; }
.implementation-grid h3 { font-size: 17px; margin: 14px 0 8px; }
.implementation-grid p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.implementation-cta { align-items: center; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.implementation-note { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; margin: 0; }
.implementation-note a { color: var(--mint-strong); }

.toast { background: var(--ink); border-radius: 999px; bottom: 24px; color: white; font-size: 11px; left: 50%; opacity: 0; padding: 11px 18px; pointer-events: none; position: fixed; transform: translate(-50%, 12px); transition: .2s; z-index: 20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero-grid, .workspace, .method { grid-template-columns: 1fr; }
  .hero-verdict { max-width: 520px; }
  .assumptions-panel { max-height: none; position: static; }
  .method-grid, .formula-note { grid-column: 1; }
}

@media (max-width: 680px) {
  .topbar { padding: 14px 18px; }
  .privacy-chip { display: none; }
  .section-shell { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 54px; }
  .hero-grid { gap: 34px; }
  h1 { font-size: 49px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .input-grid { grid-template-columns: 1fr; }
  .strategy-cards { grid-template-columns: 1fr; }
  .strategy-card { min-height: 132px; }
  .break-even-grid, .method-grid { grid-template-columns: 1fr; }
  .chart-heading { flex-direction: column; }
  .method { border-radius: 18px 18px 0 0; gap: 38px; }
}

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