:root {
  --paper: #fcfbf8;
  --paper-quiet: #f3f1ec;
  --ink: #050505;
  --muted: rgba(5, 5, 5, 0.5);
  --faint: rgba(5, 5, 5, 0.055);
  --rule: rgba(5, 5, 5, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 20px;
}

.brand {
  grid-column: 2;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-wrap {
  position: relative;
  justify-self: end;
}

.menu-wrap::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  height: 18px;
  content: "";
}

.menu {
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.menu-mark {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  transition: transform 460ms ease;
}

.menu-mark span {
  position: absolute;
  top: 8px;
  left: 0;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transform-origin: center;
}

.menu-mark span:first-child {
  transform: rotate(45deg);
}

.menu-mark span:last-child {
  transform: rotate(-45deg);
}

.menu:hover .menu-mark,
.menu:focus-visible .menu-mark,
.menu[aria-expanded="true"] .menu-mark {
  transform: rotate(90deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(240px, calc(100vw - 34px));
  background: rgba(252, 251, 248, 0.98);
  box-shadow: 0 18px 42px rgba(5, 5, 5, 0.06);
  opacity: 0;
  padding: 22px 0 14px;
  pointer-events: none;
  transform: translateY(-10px) scaleY(0.96);
  transform-origin: top right;
  transition: opacity 260ms ease, transform 260ms ease;
  backdrop-filter: blur(14px);
}

.menu-wrap:hover .dropdown-menu,
.menu-wrap:focus-within .dropdown-menu,
.menu-wrap.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  opacity: 0.52;
}

.dropdown-menu a:last-child {
  min-height: 42px;
  margin: 18px 14px 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 0 14px;
}

.dropdown-menu a:last-child:hover,
.dropdown-menu a:last-child:focus-visible {
  opacity: 1;
  background: var(--paper);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0 30px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease;
}

.button::after {
  margin-left: 26px;
  content: "→";
}

.button.no-arrow::after {
  content: none;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.page-hero {
  border-bottom: 1px solid var(--faint);
}

.page-hero-inner,
.page-section {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
}

.page-hero-inner {
  display: grid;
  align-content: center;
  min-height: 58vh;
  padding: 82px 0 96px;
}

.kicker,
.small-label,
.meta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 18px 0 24px;
  font-size: clamp(56px, 7vw, 100px);
  line-height: 0.9;
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.25vw, 58px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.28;
}

.lead {
  max-width: 720px;
  color: rgba(5, 5, 5, 0.62);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.72;
}

.legal-page .page-hero,
.legal-copy {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-page .page-hero {
  display: grid;
  align-content: end;
  min-height: 42vh;
  padding: 82px 0 72px;
}

.legal-page .page-hero h1 {
  max-width: 640px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.label {
  color: var(--accent);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-copy {
  padding: 72px 0 108px;
}

.legal-copy h2 {
  margin: 56px 0 16px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.legal-copy ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
  padding-left: 20px;
}

.page-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--faint);
}

.quiet {
  background: var(--paper-quiet);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(56px, 8vw, 104px);
  align-items: start;
}

.form-wide-section {
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1.54fr);
  gap: clamp(28px, 5vw, 72px);
}

.form-wide-section .form-shell {
  max-width: 860px;
}

.stack {
  display: grid;
  gap: 28px;
}

.row-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included {
  display: grid;
  gap: 14px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.row-list li,
.panel {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.article-card {
  display: grid;
  align-content: start;
  min-height: 300px;
  border-top: 1px solid var(--rule);
  color: inherit;
  padding-top: 24px;
  text-decoration: none;
}

.article-card h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.article-card .meta {
  margin-top: auto;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin-top: 56px;
}

.row-list p,
.included li,
.panel p,
.legal p,
.legal li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.form-shell {
  display: grid;
  gap: 20px;
  max-width: 620px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 0;
}

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

button.button {
  width: fit-content;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.compact-form {
  max-width: 440px;
}

.form-status {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 0;
}

.form-status.is-error {
  color: #7d1d1d;
}

.form-status.is-success {
  color: #1d5b38;
}

.faq-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.resources-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.96;
}

.billing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.billing-card {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.billing-card.is-featured {
  border-color: var(--ink);
}

.billing-price {
  margin: 18px 0 18px;
  font-size: clamp(54px, 6vw, 86px);
  line-height: 0.9;
}

.billing-price span {
  font-size: 15px;
  color: var(--muted);
}

.billing-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.billing-card .included {
  margin: 28px 0 32px;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-height: 40px;
  border-color: rgba(5, 5, 5, 0.9);
  padding: 0 24px;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(10px);
}

.floating-cta::after {
  margin-left: 18px;
}

footer {
  position: relative;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav,
  .page-hero-inner,
  .legal-page .page-hero,
  .legal-copy,
  .page-section,
  .footer-inner {
    width: min(100% - 34px, 1160px);
  }

  .brand {
    font-size: 13px;
  }

  .menu {
    width: 28px;
    height: 28px;
  }

  .dropdown-menu {
    position: fixed;
    top: 76px;
    right: 17px;
    width: min(240px, calc(100vw - 34px));
  }

  .menu-wrap::after {
    right: 0;
    width: 260px;
    height: 24px;
  }

  .page-hero-inner {
    min-height: auto;
    padding: 70px 0;
  }

  .legal-page .page-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .legal-copy {
    padding: 60px 0 84px;
  }

  h1 {
    font-size: clamp(48px, 12vw, 70px);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .form-wide-section {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .billing-options {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 70px 0;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}
