:root {
  --paper: #efe8dc;
  --paper-2: #e4dccb;
  --ink: #1c1914;
  --mute: #6f675c;
  --rule: #cfc6b6;
  --accent: #9c3d1a;
  --accent-ink: #efe8dc;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
}

.nav a:hover {
  color: var(--ink);
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark svg {
  width: 22px;
  height: 22px;
}

.mark-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta,
.meta a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 0 56px;
  padding: 56px 0 28px;
  align-items: end;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  max-width: 38rem;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.buy {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 22px 22px 20px;
  position: relative;
}

.buy::before {
  content: "01";
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.buy-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.buy-name {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.buy p {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 14px;
}

form {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  padding: 8px 0 9px;
  border-radius: 0;
  outline: none;
}

input[type="email"]:focus,
select:focus {
  border-bottom-color: var(--accent);
}

select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  padding: 8px 0 9px;
  border-radius: 0;
  outline: none;
  appearance: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button,
.buy button {
  margin-top: 8px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 16px;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fine,
.fine-block {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--mute);
}

.fine a,
.fine-block a,
.text-link {
  color: var(--ink);
}

.text-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 22px;
  max-width: 42rem;
}

.tight {
  gap: 16px;
}

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.rates th,
.rates td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.rates th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.rates td:nth-child(3) {
  font-family: var(--mono);
  color: var(--accent);
  white-space: nowrap;
}

.faq {
  gap: 22px;
}

.faq dt {
  font-size: 20px;
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.steps span {
  display: block;
  margin-top: 6px;
  color: var(--mute);
  max-width: 40rem;
}

.ok {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.ok.show {
  display: block;
}

.ok strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 8px 0 0;
}

.band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.band h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

dt {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

dd {
  margin: 6px 0 0;
  color: var(--mute);
  max-width: 40rem;
}

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

ol.steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 12px;
}

ol.steps b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--mute);
}

.notes {
  color: var(--mute);
  max-width: 42rem;
  margin: 0;
}

.notes + .notes {
  margin-top: 12px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 36px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.foot a {
  text-decoration: none;
  margin-left: 16px;
}

.page {
  padding: 48px 0 64px;
  max-width: 40rem;
}

.page h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.page h2 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page p {
  color: var(--mute);
}

.guide {
  padding: 48px 0 72px;
  max-width: 46rem;
}

.guide-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
}

.guide h1 {
  font-size: clamp(36px, 6vw, 58px);
  margin-bottom: 18px;
}

.guide .lede {
  margin-top: 0;
  margin-bottom: 36px;
}

.guide h2 {
  margin: 40px 0 12px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.guide p,
.guide li {
  color: var(--mute);
}

.guide ol,
.guide ul {
  margin: 0;
  padding-left: 1.15rem;
}

.guide li + li {
  margin-top: 8px;
}

.term {
  --term-chrome: #2b2a28;
  --term-ink: #1a1916;
  --term-text: #f3eee4;
  --term-dim: #9a9386;
  margin: 28px 0 16px;
  border: 1px solid #111;
  border-radius: 10px;
  background: var(--term-ink);
  overflow: hidden;
}

.term-top {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 12px;
  background: linear-gradient(180deg, #3a3936 0%, var(--term-chrome) 100%);
  border-bottom: 1px solid #111;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }

.term-title {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #c8c2b6;
  text-align: center;
}

.term-body {
  display: block;
  padding: 16px 16px 20px;
  background: var(--term-ink);
  min-height: 7rem;
}

.term-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.term-prompt {
  font-family: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #7dcea0;
  user-select: none;
  white-space: nowrap;
}

.term code {
  display: block;
  font-family: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--term-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.term button {
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #f4f1ea;
  color: #1a1916;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 12px;
  line-height: 1.2;
}

.term button:hover {
  filter: none;
  background: #fff;
  color: #1a1916;
}

.term button:disabled {
  opacity: 1;
  background: #7dcea0;
  color: #12301c;
}

.guide-date {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.rise {
  animation: rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.d1 { animation-delay: 80ms; }
.d2 { animation-delay: 160ms; }
.d3 { animation-delay: 240ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
}

@media (max-width: 820px) {
  .hero,
  .band,
  .top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .buy {
    margin-top: 12px;
  }

  .foot {
    flex-direction: column;
  }

  .foot a {
    margin-left: 0;
    margin-right: 14px;
  }
}
