:root {
  --ink: #151515;
  --muted: #5f635f;
  --line: #dadbd3;
  --surface: #f6f5ef;
  --panel: #fff;
  --accent: #155f83;
  --accent-dark: #0e405a;
  --green: #17664f;
  --warm: #a9432c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

main,
section,
.hero > *,
.section-heading > *,
.panel,
.card,
form {
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 239, 0.95);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: 100% 36px, auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 21px;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 11px 15px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
}

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

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.stats {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats div {
  padding: 18px;
  background: #fff;
}

.stats strong {
  display: block;
  font-size: 28px;
}

.stats span {
  color: var(--muted);
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.card p {
  color: var(--muted);
  line-height: 1.48;
}

.price {
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.mono {
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f0efe8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

  .hero {
    display: block;
  }

  .panel {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .hero > div,
  .hero .panel,
  .section-heading,
  form {
    width: 340px;
  }

  h1 {
    width: 340px;
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    width: 340px;
    font-size: 30px;
  }

  .lede {
    width: 340px;
    font-size: 18px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button,
  .actions button {
    width: 100%;
  }

  .panel,
  .card {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .hero > div,
  .hero .panel,
  .section-heading,
  form,
  h1,
  h2,
  .lede {
    width: 300px;
  }
}
