:root {
  --paper: #f6f1e7;
  --paper-deep: #ece3d2;
  --ink: #1d1a17;
  --muted: #6f6a63;
  --line: #d9d2c5;
  --accent: #c96f4a;
  --accent-dark: #a95535;
  --sage: #7d8f69;
  --gold: #c9a227;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(29, 26, 23, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(125, 143, 105, 0.16), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(201, 111, 74, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.14em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.header-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 6vw, 76px) 0 clamp(36px, 5vw, 64px);
}

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

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h1 em {
  color: var(--accent);
  font-style: italic;
}

.lead {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(125, 143, 105, 0.16);
}

.hero-card {
  background: var(--white);
  border: 1px solid rgba(217, 210, 197, 0.8);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.code-card {
  display: grid;
  gap: 10px;
}

.code-card label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-card input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.code-card input::placeholder {
  color: rgba(111, 106, 99, 0.4);
}

.code-card input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 111, 74, 0.14);
}

.hint {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  width: 100%;
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 111, 74, 0.28);
}

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

.button-secondary {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.button-secondary:hover {
  background: #000;
}

.form-status {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  text-align: center;
}

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

.success {
  display: grid;
  gap: 18px;
}

.success-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.success-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(125, 143, 105, 0.16);
  color: var(--sage);
  font-size: 22px;
  font-weight: 700;
}

.success h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.success-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.item-picker {
  display: grid;
  gap: 6px;
}

.item-picker label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-picker select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.success-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bot-block {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.bot-block img {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  background: #fff;
}

.bot-block h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.bot-block p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.link-button {
  justify-self: center;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 0 56px;
  border-top: 1px solid var(--line);
}

.benefits article {
  padding: 22px 4px;
}

.benefit-number {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.benefits h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.how {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.how h2 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.steps p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 620px;
  }

  .benefits,
  .steps {
    grid-template-columns: 1fr;
  }

  .benefits {
    gap: 0;
  }

  .benefits article {
    border-bottom: 1px solid var(--line);
  }

  .benefits article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .shell,
  .site-header {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-top: 20px;
  }

  .header-link {
    display: none;
  }

  .bot-block {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bot-block p {
    max-width: 30ch;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .button,
  .code-card input {
    transition: none;
  }
}
