:root {
  --bg: #f4efe6;
  --bg-deep: #ebe4d6;
  --card: #fffdf8;
  --ink: #1c1916;
  --muted: #5d564c;
  --line: #d8cfc0;
  --stamp: #b42318;
  --stamp-ink: #fff8f4;
  --ok: #2f4d3a;
  --ok-bg: #e7efe8;
  --bound: #6b4a2f;
  --bound-bg: #f3e8db;
  --focus: #1c1916;
  --shadow: 0 12px 32px rgba(28, 25, 22, 0.08);
  --radius: 16px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  display: block;
}

a {
  color: var(--stamp);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.15em;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(640px, calc(100% - 32px));
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.02em;
}

.topbar__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
}

.hero {
  padding: 36px 0 20px;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(28, 25, 22, 0.035) 28px
  );
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px dashed var(--stamp);
  color: var(--stamp);
  font-size: 0.86rem;
}

.hero h1,
.section h2 {
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.55rem, 6.2vw, 2.35rem);
  max-width: 20em;
}

.lede,
.gap-copy {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero__actions {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--stamp);
  color: var(--stamp-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(0.95);
}

.btn:focus-visible,
.topbar__link:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  color: var(--ink);
  font-size: 0.95rem;
}

.receipt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
}

.receipt__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.receipt__rows {
  list-style: none;
  padding: 0;
}

.receipt__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.98rem;
}

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

.section {
  padding: 36px 0;
  scroll-margin-top: 72px;
}

.section--gap,
.section--cta {
  background: var(--bg-deep);
}

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--stamp);
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(1.25rem, 4.4vw, 1.7rem);
}

.split,
.pricing,
.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

.card h3,
.price-card h3,
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card--ok {
  background: var(--ok-bg);
  border-color: #c9d8cc;
}

.card--ok h3 {
  color: var(--ok);
}

.card--bound {
  background: var(--bound-bg);
  border-color: #e2d1bb;
}

.card--bound h3 {
  color: var(--bound);
}

.card li + li,
.step p {
  margin-top: 8px;
}

.card p,
.step p,
.price-card dd {
  color: var(--muted);
}

.gap-copy {
  font-size: 1.08rem;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: none;
}

.step__num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.price {
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.2;
}

.price span,
.price-sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-sub {
  margin: 4px 0 0;
}

.price-card dl {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.price-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-card--focus {
  border-color: var(--stamp);
  box-shadow: var(--shadow);
}

.price-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--stamp);
  background: var(--card);
  color: var(--muted);
}

.form {
  margin-top: 8px;
  display: grid;
  gap: 12px;
  width: 100%;
}

.section--cta .form {
  margin-top: 22px;
}

.form--hero {
  max-width: 420px;
}

.form input[type="email"],
.form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
}

.form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--stamp);
  color: var(--stamp-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.form button:hover,
.form button:focus-visible {
  filter: brightness(0.95);
}

.thanks-banner {
  background: var(--ok-bg);
  color: var(--ok);
  padding: 14px 0;
  border-bottom: 1px solid #c9d8cc;
}

.thanks-banner[hidden] {
  display: none;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .hero {
    padding: 56px 0 28px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    align-items: center;
  }

  .phrase {
    white-space: nowrap;
  }

  .btn {
    width: auto;
  }

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

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

  .section {
    padding: 48px 0;
  }
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
