:root {
  --ink: #16181d;
  --muted: #5b6170;
  --line: #e4e6eb;
  --bg: #ffffff;
  --tint: #f6f5f1;
  --accent: #d9480f;
  --accent-ink: #ffffff;
  --code-bg: #1d1f27;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

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

.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8em 1.3em;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button--small { padding: 0.45em 0.9em; font-size: 0.9rem; }

.top { border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top__nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top__nav a:not(.button) { text-decoration: none; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand__mark {
  width: 20px; height: 24px; border-radius: 3px;
  background: linear-gradient(135deg, transparent 6px, var(--accent) 0);
}

.hero { padding: 72px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

.signup { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; }
.signup input {
  flex: 1; min-width: 0;
  padding: 0.8em 1em;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup__note { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.signup__note.is-done { color: var(--ink); font-weight: 600; }

.code {
  margin: 0;
  background: var(--code-bg);
  color: #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(22, 24, 29, 0.18);
  overflow: hidden;
}
.code__bar { display: flex; gap: 6px; padding: 12px 14px; background: #262935; }
.code__bar span { width: 10px; height: 10px; border-radius: 50%; background: #4a4e5c; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code .k { color: #9ecbff; }
.code .s { color: #f9c97c; }
.code .n { color: #b5e8a0; }
.code .c { color: #8b90a0; }
.code .m { color: #f08c5a; }

.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__lead { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps__num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; border: 2px solid var(--accent);
  color: var(--accent); font-weight: 700;
}
.steps p, .features p, .plan p { color: var(--muted); }

.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features li { border-top: 2px solid var(--ink); padding-top: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.plan--featured { border: 2px solid var(--accent); }
.plan__price { font-size: 2rem; font-weight: 700; color: var(--ink) !important; margin-bottom: 0.3em; }
.plan__price span { font-size: 1rem; font-weight: 400; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.foot__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid, .steps, .features, .plans { grid-template-columns: 1fr; }
  .hero__grid { gap: 36px; }
}

@media (max-width: 520px) {
  .top__nav a:not(.button) { display: none; }
  .signup { flex-direction: column; }
  .section { padding: 52px 0; }
}
