:root {
  --ink: #101623;
  --ink-soft: #283243;
  --paper: #f4f1e8;
  --paper-bright: #fffdf6;
  --line: #c9c4b7;
  --muted: #687080;
  --acid: #b9ff66;
  --acid-dark: #78b82e;
  --orange: #ff6846;
  --blue: #3569ff;
  --shadow: 8px 8px 0 var(--ink);
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 22, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 35, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(16, 22, 35, 0.85);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 8px 32px rgba(16, 22, 35, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-weight: 800;
  text-decoration: none;
}

.brand em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 2px 2px 0 var(--ink);
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav a {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-star {
  padding: 8px 15px;
  color: var(--paper-bright);
  border-radius: 999px;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.hero,
.lab-section,
.difference-section,
.demo-section,
.method-section,
.final-cta {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
  min-height: 710px;
  padding: 82px 0 70px;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  max-width: 740px;
  margin-bottom: 26px;
  font-size: clamp(3.25rem, 6.9vw, 6.2rem);
  font-weight: 850;
}

h1 i {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 i::after {
  position: absolute;
  right: -0.03em;
  bottom: 0.02em;
  left: -0.03em;
  z-index: -1;
  height: 0.23em;
  background: var(--acid);
  content: "";
  transform: rotate(-1.2deg);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.button-primary {
  background: var(--acid);
}

.button-secondary {
  background: var(--paper-bright);
}

.button-dark {
  color: var(--paper-bright);
  background: var(--ink);
}

.microcopy {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
}

.hero-terminal {
  overflow: hidden;
  color: #f6f3e9;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.terminal-top {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #30394b;
  background: #1a2231;
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.terminal-top span:nth-child(2) {
  background: #ffd45e;
}

.terminal-top span:nth-child(3) {
  background: var(--acid);
}

.terminal-top b {
  margin-left: auto;
  color: #8e99ab;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
}

.terminal-body {
  padding: 23px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.terminal-body > p {
  margin-bottom: 22px;
  color: #bfc7d4;
}

.terminal-body small {
  color: var(--acid);
}

.terminal-body strong {
  color: #fff;
}

.terminal-body ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terminal-body li {
  display: grid;
  grid-template-columns: 30px 62px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #3b4557;
}

.terminal-body li span {
  color: #687589;
}

.terminal-body li b {
  color: var(--acid);
}

.terminal-body li em {
  color: #aab5c5;
  font-style: normal;
}

.terminal-body mark {
  color: #fff;
  background: transparent;
}

.terminal-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--acid);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-block: 1px solid var(--ink);
  background: var(--paper-bright);
}

.proof-strip div {
  display: grid;
  min-height: 125px;
  padding: 25px clamp(18px, 4vw, 50px);
  border-right: 1px solid var(--ink);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.proof-strip span {
  align-self: end;
  color: var(--muted);
  font-size: 0.8rem;
}

.lab-section,
.difference-section,
.demo-section,
.method-section {
  padding-block: 120px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-heading h2,
.method-section h2,
.final-cta h2,
.demo-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.section-heading > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.lab-shell {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.controls {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--ink);
  background: #e9e5da;
}

.control-group {
  display: grid;
  gap: 8px;
}

label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 7px;
  outline: none;
  background: var(--paper-bright);
  font: 700 0.9rem var(--sans);
}

select:focus,
input:focus,
.share-button:focus,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  top: 50%;
  left: 13px;
  font-family: var(--mono);
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 29px;
}

.share-button {
  min-height: 46px;
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  font: 800 0.78rem var(--mono);
  cursor: pointer;
}

.share-button[data-copied="true"] {
  color: var(--ink);
  background: var(--acid);
}

.control-note {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.results {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper-bright);
}

.result-kicker {
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.result-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-main div {
  display: grid;
  gap: 6px;
}

.result-main span {
  color: var(--muted);
  font-size: 0.78rem;
}

.result-main strong {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.07em;
}

.comparison-bars {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.comparison-bars div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.comparison-bars span {
  color: var(--muted);
  font: 0.68rem var(--mono);
}

.comparison-bars i {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #e1ddd2;
}

.comparison-bars b {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--acid-dark);
  transition: width 300ms ease;
}

.comparison-bars div:last-child b {
  background: var(--orange);
}

.saving-callout {
  display: flex;
  gap: 17px;
  align-items: baseline;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.saving-callout strong {
  color: var(--acid-dark);
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.saving-callout span {
  max-width: 180px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.budget-answer {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #e9eeff;
  font-size: 0.82rem;
}

.route-panel {
  margin-top: 56px;
}

.route-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.route-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.route-head span {
  color: var(--muted);
  font: 0.7rem var(--mono);
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.route-card {
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: rgba(255, 253, 246, 0.78);
}

.route-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}

.route-card header strong {
  font-size: 0.95rem;
}

.route-card header span {
  color: var(--muted);
  font: 0.7rem var(--mono);
}

.route-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-step {
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.route-step b {
  color: var(--acid-dark);
  font: 0.65rem var(--mono);
  text-transform: uppercase;
}

.route-step span {
  font-size: 0.7rem;
  font-weight: 700;
}

.data-error {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #a8251b;
  background: #ffe9e4;
}

.difference-section {
  border-top: 1px solid var(--line);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--ink);
}

.difference-grid article {
  min-height: 275px;
  padding: 24px;
  border-right: 1px solid var(--ink);
}

.difference-grid article:last-child {
  border-right: 0;
}

.difference-grid article > span {
  display: block;
  margin-bottom: 70px;
  color: var(--orange);
  font: 0.72rem var(--mono);
}

.difference-grid h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.difference-grid p {
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 44px;
  align-items: center;
}

.demo-copy p:not(.eyebrow) {
  color: var(--muted);
}

pre {
  overflow-x: auto;
  padding: 17px;
  color: var(--acid);
  border-radius: 10px;
  background: var(--ink);
  font: 0.72rem/1.7 var(--mono);
}

.demo-section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.method-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.method-copy > p {
  font-size: 1.15rem;
  font-weight: 650;
}

.method-copy ol {
  display: grid;
  gap: 9px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}

.source-links a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-bright);
  font: 0.66rem var(--mono);
  text-decoration: none;
}

.text-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.final-cta {
  margin-bottom: 80px;
  padding: clamp(35px, 7vw, 80px);
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--orange);
}

.final-cta > p {
  color: var(--acid);
  font: 0.76rem var(--mono);
  text-transform: uppercase;
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta .button-primary {
  color: var(--ink);
}

.final-cta .button-dark {
  border-color: #7d8798;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px max(20px, calc((100% - 1120px) / 2));
  color: #bbc4d1;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  font: 0.68rem var(--mono);
}

@media (max-width: 900px) {
  .hero,
  .demo-section,
  .method-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-terminal {
    max-width: 620px;
    transform: none;
  }

  .proof-strip,
  .difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip div:nth-child(2),
  .difference-grid article:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .difference-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .lab-shell {
    grid-template-columns: 1fr;
  }

  .controls {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .method-section {
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .site-header {
    border-radius: 14px;
  }

  .brand em,
  nav > a:not(.nav-star) {
    display: none;
  }

  .nav-star {
    padding: 8px 11px;
  }

  .hero,
  .lab-section,
  .difference-section,
  .demo-section,
  .method-section,
  .final-cta {
    width: min(100% - 26px, 1120px);
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .terminal-body {
    padding: 17px;
  }

  .terminal-body li {
    grid-template-columns: 24px 55px 1fr;
  }

  .terminal-body li mark {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip div {
    min-height: 110px;
  }

  .lab-section,
  .difference-section,
  .demo-section,
  .method-section {
    padding-block: 82px;
  }

  .result-main,
  .route-list,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .difference-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .difference-grid article > span {
    margin-bottom: 35px;
  }

  .route-head {
    display: grid;
    gap: 5px;
  }

  .saving-callout {
    display: grid;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
