:root {
  color-scheme: light;
  --paper: #f6f3e8;
  --ink: #1d2722;
  --muted: #4a574e;
  --forest: #204535;
  --deep: #192e26;
  --lime: #e0ef9b;
  --clay: #a63d27;
  --rule: #d3d5c6;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .26em; }
a:hover { text-decoration-thickness: .14em; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.frame { width: min(100% - 72px, 1240px); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 16px; top: 12px; padding: 12px; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 1.15rem; font-weight: 720; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 21px; height: 21px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; background: var(--clay); border-radius: 50%; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 3px clamp(12px, 2.5vw, 36px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .89rem; font-weight: 620; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav [hreflang] { color: var(--clay); }

.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 84px); padding-block: clamp(36px, 5.3vw, 78px); }
.product { color: var(--forest); font-size: .87rem; font-weight: 750; letter-spacing: .16em; margin-bottom: 23px; }
h1 { font-size: clamp(2.65rem, 5.25vw, 5.35rem); font-weight: 725; line-height: .99; letter-spacing: -.073em; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--clay); letter-spacing: -.065em; }
.lead { max-width: 39ch; margin-top: 28px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.64; }
.hero-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: .94rem; text-decoration: none; }
.primary { background: var(--clay); color: white; }
.primary:hover { background: #80311f; }
.plain-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 650; }

.demo {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 30px);
  scroll-margin-top: 16px;
  border-radius: 20px;
  color: var(--paper);
  background: var(--deep);
  box-shadow: 0 18px 34px -25px #152b20a8;
}
.demo :focus-visible { outline-color: var(--lime); }
.demo-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 16px; flex-wrap: wrap; }
.demo-heading h2 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); letter-spacing: -.045em; }
.demo-label { color: #b6c8b7; font-size: .82rem; }
.map {
  --line-color: #839685;
  --active-route: var(--lime);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10px, 2.6vw, 35px) minmax(0, 1fr) clamp(10px, 2.6vw, 35px) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(64px, 1fr));
  align-items: center;
  margin-block: 18px 12px;
  min-height: 153px;
  padding: 7px 0;
  background-image: radial-gradient(circle, #78928242 1px, transparent 1px);
  background-size: 15px 15px;
}
.node {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 60px;
  width: 100%;
  padding: 7px 4px;
  border: 1px solid #6b826e;
  border-radius: 8px;
  font-size: clamp(.73rem, 1.6vw, .87rem);
  font-weight: 650;
  line-height: 1.18;
  text-wrap: balance;
  color: inherit;
  background: #263f32;
  z-index: 1;
}
.node:hover { background: #355643; }
.node[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--deep); }
.node.request { grid-area: 1 / 1 / 3; }
.node.match { grid-area: 1 / 3 / 3; }
.node.fresh { grid-area: 1 / 5; }
.node.reuse { grid-area: 2 / 5; }
.station { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; }
.match .station { border-radius: 2px; transform: rotate(45deg); }
.fresh .station { border-radius: 2px; }
.reuse .station { background: currentColor; box-shadow: inset 0 0 0 2px #263f32; }
.reuse[aria-pressed="true"] .station { box-shadow: inset 0 0 0 2px var(--lime); }

.rail { position: relative; display: block; color: var(--line-color); }
.rail.start { grid-area: 1 / 2 / 3; border-top: 1px solid; }
.rail.branch { height: 50%; border-inline-start: 1px solid; }
.rail.fresh { grid-area: 1 / 4; align-self: end; border-top: 1px solid; border-top-left-radius: 8px; }
.rail.reuse { grid-area: 2 / 4; align-self: start; border-bottom: 1px solid; border-bottom-left-radius: 8px; }
.map[data-phase="lookup"] .rail.start,
.map[data-phase="travel"] .rail.start,
.map[data-phase="done"] .rail.start,
.map[data-route="fresh"]:is([data-phase="travel"],[data-phase="done"]) .rail.fresh,
.map[data-route="reuse"]:is([data-phase="travel"],[data-phase="done"]) .rail.reuse { color: var(--active-route); }
.rail::after { content: ""; display: none; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.map[data-phase="lookup"] .rail.start::after { display: block; animation: pulse-start .44s ease-out both; }
.map[data-phase="travel"][data-route="fresh"] .rail.fresh::after { display: block; animation: pulse-fresh .48s ease-out both; }
.map[data-phase="travel"][data-route="reuse"] .rail.reuse::after { display: block; animation: pulse-reuse .48s ease-out both; }
@keyframes pulse-start { from { top: 0; left: 0; } to { top: 0; left: 100%; } }
@keyframes pulse-fresh { 0% { top: 100%; left: 0; } 55% { top: 0; left: 0; } 100% { top: 0; left: 100%; } }
@keyframes pulse-reuse { 0% { top: 0; left: 0; } 55% { top: 100%; left: 0; } 100% { top: 100%; left: 100%; } }

.map-detail { min-height: 105px; padding: 14px 15px; border-left: 2px solid var(--lime); border-radius: 0 8px 8px 0; background: #243f31; }
.map-detail h3 { font-size: 1rem; line-height: 1.3; }
.map-detail p { margin-top: 5px; color: #d7e3d6; font-size: .88rem; line-height: 1.5; }
.scenarios { min-width: 0; margin: 17px 0 0; padding: 0; border: 0; }
.scenarios legend { padding: 0; font-size: .85rem; font-weight: 680; margin-bottom: 7px; }
.scenario-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.scenario-list label { position: relative; display: block; cursor: pointer; }
.scenario-list input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.scenario-list span { display: flex; align-items: center; min-height: 44px; height: 100%; padding: 6px 9px; gap: 7px; border: 1px solid #657e6c; border-radius: 6px; font-size: .8rem; line-height: 1.25; }
.scenario-list span::before { content: ""; width: 11px; height: 11px; flex: 0 0 11px; border: 1px solid currentColor; border-radius: 50%; }
.scenario-list label:hover span { background: #31503e; }
.scenario-list :checked + span { color: var(--lime); border-color: #a0b56d; background: #344c35; }
.scenario-list :checked + span::before { background: currentColor; box-shadow: inset 0 0 0 2px #344c35; }
.scenario-list :focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 17px; }
.demo-run { background: var(--lime); color: var(--deep); }
.demo-run:hover { background: #f0ffc0; }
.demo-run[aria-disabled="true"] { color: #d7e3d6; background: #344c35; cursor: progress; }
.demo-run span { font-size: .64em; }
.demo-actions p, .demo noscript p { font-size: .79rem; color: #b6c8b7; }
.demo noscript p { margin-top: 12px; }

.comparison { background: #e9ebdb; border-block: 1px solid var(--rule); padding-block: clamp(42px, 6vw, 82px); scroll-margin-top: 14px; }
.comparison-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(34px, 6vw, 92px); align-items: center; }
.comparison h2, .install h2 { font-size: clamp(1.75rem, 3.5vw, 3.1rem); line-height: 1.06; letter-spacing: -.05em; }
.comparison-copy p, .install p { max-width: 45ch; color: var(--muted); line-height: 1.6; margin-top: 15px; }
.range-label { display: flex; gap: 9px; align-items: center; font-weight: 700; margin-top: 25px; }
.range-label output { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--paper); background: var(--forest); font-variant-numeric: tabular-nums; }
#assistants { display: block; width: min(100%, 300px); height: 38px; margin: 3px 0 0; accent-color: var(--forest); cursor: pointer; }
.range-ends { display: flex; max-width: 300px; justify-content: space-between; font-size: .83rem; color: var(--muted); }
.chart { --separate: 60%; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--rule); border-radius: 15px; background: var(--paper); }
.chart figcaption { margin-bottom: 23px; color: var(--muted); font-size: .85rem; }
.bar-label { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 8px; font-size: .9rem; }
.bar-label strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-track { height: 19px; margin-bottom: 16px; border-radius: 3px; background: #e3e3d6; }
.bar { height: 100%; border-radius: inherit; transition: width .22s ease-out; }
.bar.separate { width: var(--separate); background: var(--clay); }
.bar.shared { width: 20%; background: var(--forest); }
.scale { display: flex; justify-content: space-between; margin-top: -6px; color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.scale span { display: flex; justify-content: center; width: 0; }
.scale span:first-child { justify-content: flex-start; }
.scale span:last-child { justify-content: flex-end; }
button:disabled, #assistants:disabled, fieldset:disabled label { cursor: default; }
.demo-run:disabled { color: #d7e3d6; background: #344c35; }
.savings { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin-top: 23px; padding-top: 14px; border-top: 1px solid var(--rule); font-weight: 610; }
.savings strong { font-size: 1.35rem; color: var(--forest); font-variant-numeric: tabular-nums; }

.install { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: clamp(42px, 5.7vw, 78px); }
.install h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
.install p { max-width: 58ch; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 21px 27px; border-top: 1px solid var(--rule); font-size: .88rem; }

@media (max-width: 940px) {
  .frame { width: min(100% - 48px, 1240px); }
  .hero { gap: 30px; }
  h1 { font-size: clamp(2.55rem, 5.4vw, 4.1rem); }
}
@media (max-width: 760px) {
  .hero, .comparison-layout { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.6rem, 9.5vw, 4.25rem); }
  .hero-copy { padding-top: 4px; }
  .lead { max-width: 49ch; }
  .hero-links { margin-top: 20px; }
  .map { grid-template-columns: minmax(0, 1fr) 9% minmax(0, 1fr) 9% minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .frame { width: calc(100% - 30px); }
  .site-header { min-height: auto; align-items: flex-start; flex-direction: column; padding-top: 15px; gap: 0; }
  .site-header nav { gap: 0 15px; }
  .site-header nav a { font-size: .84rem; }
  .product { margin-bottom: 14px; }
  .lead { margin-top: 19px; }
  .demo-label { font-size: .76rem; }
  .demo-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .rail::after { animation: none !important; display: none !important; }
  .bar { transition: none; }
}
