:root {
  color-scheme: light dark;
  --paper: #f3f8f5;
  --surface: #ffffff;
  --ink: #173d56;
  --ink-soft: #46606f;
  --line: #d3e2da;
  --green: #0e7444;
  --pro: #e1f6ea;
  --btn-bg: #0e7444;
  --btn-ink: #ffffff;
  --btn-alt: #173d56;
  --focus: #0e7444;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #06121c;
    --surface: #0c1e2b;
    --ink: #e6eef3;
    --ink-soft: #a1b6c4;
    --line: #1d3545;
    --green: #5be89a;
    --pro: #0d2a26;
    --btn-bg: #3ddc84;
    --btn-ink: #04210f;
    --btn-alt: #e6eef3;
    --focus: #5be89a;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 750; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.site-header nav { display: flex; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 550; }
.site-header nav a:hover { color: var(--green); }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; color: var(--ink-soft); font-size: 0.94rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; }
.site-footer nav a { color: var(--ink); }
.fine { font-size: 0.84rem; max-width: 70ch; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-ink); font: 650 1rem/1.2 var(--text);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--btn-alt); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--btn-alt); filter: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
form.inline { display: contents; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; padding: 40px 0 72px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-bottom: 28px; }
.hero .note { margin-top: 18px; font-size: 0.94rem; color: var(--ink-soft); }
.stage { position: relative; }

.hop { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mirror { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hop { animation: hop 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both; }
  .landing { animation: land 300ms ease-out 1050ms both; }
  .mirror { animation: land 500ms ease-out 1100ms both; }
}
@keyframes hop { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
section { padding: 64px 0 0; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font: 750 2.6rem/1 var(--display); color: var(--green); margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); margin: 0; }
.more { margin: 28px 0 0; font-weight: 600; }

.tiers { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
.tier { padding: 28px 28px 20px; }
.tier.free { border: 1px solid var(--line); border-radius: 22px; }
.tier.pro { background: var(--pro); border-radius: 22px; }
.tier header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tier header h3 { font-size: 1.5rem; margin: 0; }
.tier header span { color: var(--ink-soft); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.checks small { display: block; color: var(--ink-soft); font-size: 0.9rem; }
.tier.pro .checks { columns: 2; column-gap: 28px; }
.tier.pro .checks li { break-inside: avoid; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan .price { font: 750 2.8rem/1 var(--display); letter-spacing: -0.03em; margin: 6px 0 14px; color: var(--ink); }
.plan .price span { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; }
.plan > p { color: var(--ink-soft); }
.buy { display: grid; gap: 14px; margin-top: auto; padding-top: 8px; }
.buy-path { display: grid; gap: 6px; }
.buy-path p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.buy-path .btn { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-weight: 700; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink-soft); }

.callout { border-left: 4px solid var(--green); background: var(--surface); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.soon { display: none; }
.soon.show { display: block; }

/* Long-form pages */
.page { padding-top: 32px; }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 18ch; }
.page h2 { font-size: 1.6rem; margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.page li { margin-bottom: 0.4em; }
.updated { color: var(--ink-soft); font-size: 0.94rem; }

.guide { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guide > li { counter-increment: g; position: relative; padding: 0 0 8px 60px; margin: 0 0 24px; }
.guide > li::before {
  content: counter(g); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); font: 750 1.2rem/1 var(--display);
}
.guide h2 { margin-top: 0; font-size: 1.35rem; padding-top: 6px; }
.path { font-weight: 600; color: var(--ink); }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }
details p:last-child { margin-bottom: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 8px; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ink-soft);
  background: var(--paper); color: var(--ink); font: inherit; margin-bottom: 12px;
}
.status { min-height: 1.5em; margin: 12px 0 0; }

.key {
  display: block; width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 0.9rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all; resize: none; margin-bottom: 16px;
}
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 28px; }
  .stage { max-width: 560px; }
  .tiers, .plans, .two { grid-template-columns: 1fr; }
  .tier.pro .checks { columns: 1; }
  .steps, .facts { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 4px 14px; font-size: 0.95rem; }
  .brand span { font-size: 1.1rem; }
  .tier, .plan, .panel { padding: 22px 18px; }
  .guide > li { padding-left: 52px; }
  .actions .btn { width: 100%; }
}
