:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --night: #20235f;
  --light: #f6f5fd;
  --lavender: #dad8fa;
  --ink: #242649;
  --muted: #5c5e78;
  --line: #dedff0;
  --violet: #4746aa;
  --lavender-button: #d4d3ff;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: linear-gradient(125deg, #24276b5c, #1b1e59c2), url("texture.png") center / cover fixed, var(--night);
  color: #fff;
}
::selection { color: #191943; background: #c7c6ff; }
:focus-visible { outline: 3px solid #8b7aef; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button, select, summary, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button, input, select, textarea { min-width: 0; }
button, .secondary, .primary { min-height: 42px; }
button, .secondary, .primary { border-radius: 9px; padding: 8px 15px; font-weight: 650; }
.primary, .secondary, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; }
.primary { color: #fff; background: var(--violet); }
.primary:hover:not(:disabled) { background: #36368c; }
.ghost { color: #fff; border-color: #9294ca85; background: #292d7490; }
.ghost:hover:not(:disabled) { background: #41458d; }
.secondary { color: #343585; background: #eeedfd; border-color: #dddafa; }
.secondary:hover:not(:disabled) { background: #e1dffc; }
.link-button { background: none; border: 0; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.top, .bottom { padding: 12px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top { border-bottom: 1px solid #aaa9e039; background: #1e215a85; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 1.25rem; font-weight: 750; letter-spacing: -.04em; }
.brand span { color: #c3c3ff; }
.brand img { width: 30px; height: auto; }
.top nav { display: flex; gap: clamp(2px, .6vw, 12px); }
.top nav a { padding: 8px clamp(7px, 1vw, 16px); border-radius: 8px; color: var(--lavender); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; background: #b7b6ed28; }
.fullscreen { width: 42px; padding: 0; font-size: 1.4rem; flex: 0 0 auto; }
main { width: min(100%, 1450px); margin: auto; }
.slide { padding: clamp(26px, 4vw, 63px) clamp(20px, 5vw, 76px); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 84px); align-items: center; }
.intro { max-width: 610px; }
.intro.wide { max-width: 850px; margin-bottom: 26px; }
h1, h2, h3, p { margin: 0; }
h1, .intro h2, .slide-heading h2 { font-size: clamp(2.1rem, 4.35vw, 4.35rem); line-height: 1.05; letter-spacing: -.052em; font-weight: 750; text-wrap: balance; }
h1 { text-wrap: initial; }
h2[tabindex="-1"]:focus, h1[tabindex="-1"]:focus { outline: none; }
h3 { font-size: 1.36rem; letter-spacing: -.02em; }
p { line-height: 1.48; }
.chapter { color: #d2d1ff; margin-bottom: 17px; font-size: 1rem; font-weight: 630; }
.lead { margin-top: .65em; color: var(--lavender); font-size: clamp(1.04rem, 1.55vw, 1.32rem); max-width: 38em; }
.prompt { border-left: 3px solid #aca8ff; margin-top: clamp(22px, 4vw, 52px); padding: 2px 0 2px 16px; max-width: 29em; }
.surface, dialog { color-scheme: light; color: var(--ink); background: var(--light); border: 1px solid #d6d6e8; border-radius: var(--radius); }
.surface { box-shadow: 0 12px 30px #181a4c30; }
.workspace { overflow: hidden; }
.appbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 19px; color: #ebeaff; background: #303376; font-size: .89rem; }
.appbar span:first-child { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.appbar img { width: 19px; height: auto; }
.panel-body { padding: clamp(14px, 2vw, 25px); }
.panel-body h2, .panel-body h3 { font-size: 1.6rem; margin-top: 11px; line-height: 1.12; letter-spacing: -.035em; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.label { font-weight: 680; color: var(--violet); font-size: .88rem; }
.status { width: fit-content; border-radius: 7px; padding: 4px 8px; font-size: .84rem; font-weight: 680; }
.good { color: #26594f; background: #e1f4ec; }
.caution { color: #715217; background: #fff0cb; }
.muted { color: var(--muted); }
.evidence { margin-top: 16px; border-top: 1px solid var(--line); }
.evidence details, .pricing details { border-bottom: 1px solid var(--line); }
.evidence summary, .pricing summary { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) 12px; align-items: center; gap: 9px; list-style: none; padding: 10px 2px; }
.evidence summary::-webkit-details-marker, .pricing summary::-webkit-details-marker { display: none; }
.evidence summary::after, .pricing summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid var(--violet);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -4px;
}
.evidence details[open] summary::after, .pricing details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.evidence summary strong, .pricing summary strong { color: var(--violet); font-weight: 680; }
blockquote { margin: 0 0 10px; border-left: 3px solid #a19df7; border-radius: 0 7px 7px 0; padding: 11px 13px; background: #edecfb; line-height: 1.4; }
#call-quote { margin-top: 15px; font-size: 1.14rem; }
.call-next { margin: 14px 0; }
.reading { margin-top: 12px; font-size: .89rem; }
.reading summary, .dark-details summary { font-weight: 670; }
.reading summary { color: var(--violet); }
.reading p, .dark-details p { margin-top: 8px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; }
.action-row label { font-weight: 670; font-size: .9rem; }
select, input:not([type="range"], [type="checkbox"]), textarea { color: var(--ink); background: #fff; border: 1px solid #c4c5df; border-radius: 7px; padding: 7px 9px; }
select { max-width: 100%; appearance: none; padding-right: 30px; background-image: url("chevron.svg"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.segmented { display: flex; gap: 4px; background: #eae9f8; border-radius: 11px; padding: 4px; width: fit-content; margin-bottom: 14px; }
.segmented button { color: #45466f; border: 1px solid transparent; background: transparent; font-size: .9rem; padding: 6px 10px; min-height: 36px; }
.segmented button[aria-pressed="true"] { color: #343585; background: #fff; border-color: #dad9ee; }
.flow { list-style-position: inside; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin: 22px 0 25px; }
.flow li { border-top: 2px solid #b7b5f0; padding: 13px 16px 10px 0; }
.flow li::marker { color: #cbcaff; font-weight: 700; }
.flow b { font-size: 1.06rem; }
.flow span { display: block; margin-top: 5px; color: var(--lavender); line-height: 1.4; }
.diagram-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; }
.diagram-card p { margin-top: 7px; }
.diagram-card button { flex-shrink: 0; }
#roi { padding-block: clamp(24px, 4.5vh, 50px); }
.slide-heading { margin-bottom: 18px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: clamp(14px, 2vw, 27px); align-items: start; }
.calc-inputs, .calc-results, .pricing, .pilot-form { padding: clamp(15px, 2vw, 25px); }
.calc-inputs .segmented { margin-bottom: 8px; }
.calc-tools { margin-bottom: 10px; }
.calc-tools button { min-height: 34px; padding-block: 5px; font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 15px; }
.calc-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(58px, 81px); align-items: center; gap: 3px 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.calc-field label, .pilot-form label { font-size: .9rem; font-weight: 650; line-height: 1.2; }
.calc-field label span { color: var(--muted); white-space: nowrap; font-weight: 500; }
.calc-field input:not([type="range"]) { width: 100%; padding: 6px; font-variant-numeric: tabular-nums; }
.calc-field input[aria-invalid="true"] { border-color: #b14c56; }
input[type="range"] { margin: 2px 0 0; width: 100%; grid-column: 1 / -1; accent-color: var(--violet); }
.check { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; }
.check input { width: 16px; height: 16px; accent-color: var(--violet); }
.calc-results h3 { margin: 7px 0 10px; }
.time-result { display: grid; gap: 2px; background: #e9e7fc; color: #383782; border-radius: 12px; padding: 12px 14px; }
.time-result strong { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.time-result span { font-size: .91rem; }
.bars { display: grid; gap: 5px; margin-top: 12px; font-size: .9rem; }
.bars div, .totals div { display: flex; justify-content: space-between; gap: 10px; }
.bars i { display: block; background: #e5e3f6; height: 5px; border-radius: 6px; }
.bars i::before { content: ""; display: block; height: 100%; width: var(--fill); border-radius: inherit; background: #7775c8; }
.bars i:last-child::before { background: #4948a9; }
.totals { font-size: .91rem; margin: 10px 0 0; }
.totals div { padding: 4px 0; border-bottom: 1px solid var(--line); }
.totals dd { margin: 0; font-weight: 700; text-align: right; }
.effect { color: #393990; font-weight: 700; }
.micro { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.pricing { max-width: 970px; }
.pricing summary { grid-template-columns: minmax(0, 1fr) auto 12px; padding: 13px 2px; }
.pricing details p { margin: 0 0 9px; max-width: 68ch; }
.price-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin-top: 13px; padding: 12px 14px; border-radius: 10px; background: #e9e7fc; }
.price-total b { font-size: 1.17rem; }
.price-total span { color: var(--muted); }
.price-total a { grid-area: 1 / 2 / span 2 / 3; }
.pilot-layout { align-items: start; }
.pilot-layout .ghost { margin: 18px 0 0; }
.pilot-form h3 { margin-bottom: 13px; }
.pilot-form label { display: grid; gap: 5px; align-content: start; }
.pilot-form .full { grid-column: 1 / -1; }
.pilot-form textarea { resize: vertical; }
.pilot-form button { margin-top: 15px; }
.dark-details { color: var(--lavender); margin-top: 15px; }
.faq { border-top: 1px solid #aaa9e055; padding-top: 14px; max-width: 960px; }
.faq dt { color: #fff; font-weight: 700; margin-top: 10px; }
.faq dd { margin: 4px 0 0; line-height: 1.42; }
.bottom { position: sticky; bottom: 0; min-height: 64px; border-top: 1px solid #aaa9e039; color: var(--lavender); font-size: .88rem; background: #252960; }
.bottom .primary { background: var(--lavender-button); color: #292961; min-width: 85px; }
.bottom .primary:hover:not(:disabled) { background: #e6e5ff; }
.key-hint { margin-left: 17px; }
.nav-actions { display: flex; align-items: center; gap: 7px; }
dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-width: none; max-height: none; padding: 0; overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #121333c9; }
.diagram-header { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.diagram-header h2 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); }
.diagram-header p { max-width: 74ch; }
#diagram-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: #e9e9f6; }
#diagram-image { display: block; height: auto; margin: auto; }
@media (max-width: 900px) {
  .top, .bottom { padding-inline: 20px; }
  .split { gap: 26px; }
  .calc-field { grid-template-columns: minmax(0, 1fr) 61px; }
}
@media (max-width: 720px) {
  .top { display: grid; grid-template-columns: 1fr auto; }
  .top nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; grid-row: 2; grid-column: 1 / -1; padding: 3px; margin: -8px -3px 0; }
  .split, .calc { grid-template-columns: 1fr; }
  .slide { padding: 25px 20px 30px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .diagram-card { flex-wrap: wrap; gap: 10px; }
  .key-hint { display: none; }
  .price-total { grid-template-columns: 1fr; }
  .price-total a { grid-area: auto; justify-self: start; }
}
@media (max-width: 380px) {
  .fields { grid-template-columns: 1fr; }
  .appbar { padding-inline: 10px; font-size: .8rem; }
  .evidence summary { font-size: .88rem; }
  .pricing summary { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) 12px; }
}
