:root {
  --bg: #f7f8f7;
  --paper: #ffffff;
  --ink: #111312;
  --muted: #666b68;
  --soft: #eef0ee;
  --line: #dfe3df;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --sun: #d8a43a;
  --blue: #4f67e8;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(17, 19, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(247, 248, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
  min-height: 720px;
  padding: 88px 0 72px;
}

.hero-copy,
.page-hero {
  display: grid;
  gap: 22px;
  align-content: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 760;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 730;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.narrow {
  max-width: 680px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.savings-panel {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.savings-panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sun), var(--blue));
  border-radius: var(--radius) var(--radius) 0 0;
}

.panel-top,
.cost-grid,
.calculator-controls label,
.example-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-top {
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.signal {
  color: var(--accent-dark);
  font-weight: 700;
}

.saving-number {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 30px 0 18px;
}

.saving-number strong {
  font-size: 86px;
  line-height: 0.85;
}

.saving-number span {
  color: var(--muted);
  font-size: 18px;
  padding-bottom: 8px;
}

.meter {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 77%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cost-grid div {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cost-grid span,
.price-card span,
.doc-card span,
.example-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cost-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.calculator-controls {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.calculator-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.calculator-controls output {
  color: var(--ink);
  font-weight: 700;
}

.calculator-controls input {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  accent-color: var(--accent);
}

.metrics-band,
.split-section,
.code-section,
.cta-band,
.doc-section,
.savings-example {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-band div {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band strong {
  display: block;
  font-size: 34px;
}

.metrics-band span {
  color: var(--muted);
  font-size: 14px;
}

.split-section,
.code-section,
.doc-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 56px;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-card,
.doc-card,
.price-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.step-card h3 {
  margin-top: 14px;
}

.step-card p,
.section-note,
.price-card li {
  color: var(--muted);
  line-height: 1.6;
}

.code-section {
  align-items: start;
}

.code-block {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 22px;
  background: #111312;
  color: #f7f8f7;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.65;
}

.code-block.compact {
  margin-top: 14px;
  padding: 16px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 86px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.page-main {
  padding: 72px 0 0;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
}

.doc-grid,
.pricing-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 32px 0 0;
}

.doc-card {
  min-width: 0;
}

.doc-section h2 {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px 0 48px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price-card p {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card h2 {
  font-size: 34px;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--accent);
}

.price-card .button {
  margin-top: auto;
}

.savings-example {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.72fr 0.72fr;
  gap: 0;
  padding: 0 0 90px;
}

.savings-example > div {
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.savings-example > div:first-child {
  border-left: 1px solid var(--line);
}

.example-row {
  align-items: center;
  background: var(--paper);
}

.example-row strong {
  font-size: 26px;
}

.example-row.strong {
  background: var(--ink);
  color: var(--paper);
}

.example-row.strong span {
  color: rgba(255, 255, 255, 0.74);
}


.form-section {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.form-group,
.form-section fieldset {
  margin-bottom: 24px;
  border: 0;
  padding: 0;
}

.form-section label,
.form-section legend {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section textarea {
  width: 100%;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
}

.form-section input[type="text"]:focus,
.form-section input[type="email"]:focus,
.form-section textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 400;
  cursor: pointer;
}

.radio-group label.is-checked {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent-dark);
}

.radio-group label.is-checked input {
  accent-color: var(--paper);
}

.radio-group label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.radio-group input {
  accent-color: var(--accent-dark);
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 19, 18, 0.55);
}

.modal {
  width: min(520px, 100%);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal h2 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 760;
}

.modal p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  .hero,
  .split-section,
  .code-section,
  .doc-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .savings-example {
    grid-template-columns: 1fr;
  }

  .savings-example > div,
  .savings-example > div:first-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .savings-example > div:last-child {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav-links,
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand img {
    width: 120px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .lede {
    font-size: 18px;
  }

  .hero,
  .metrics-band,
  .split-section,
  .code-section,
  .cta-band,
  .doc-section,
  .savings-example,
  .page-hero,
  .doc-grid,
  .pricing-grid {
    width: min(1180px, calc(100% - 28px));
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 48px;
  }

  .savings-panel {
    padding: 18px;
  }

  .saving-number strong {
    font-size: 64px;
  }

  .cost-grid,
  .metrics-band,
  .doc-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-band div:last-child {
    border-bottom: 0;
  }

  .split-section,
  .code-section,
  .doc-section {
    padding: 64px 0;
  }

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-block {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .hero,
  .metrics-band,
  .split-section,
  .code-section,
  .cta-band,
  .doc-section,
  .savings-example,
  .page-hero,
  .doc-grid,
  .pricing-grid {
    width: 362px;
    max-width: calc(100% - 28px);
  }
}
