:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e5ded4;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-soft: #fdf0e6;
  --on-accent: #ffffff;
  --code-bg: #1f1b18;
  --code-text: #f4eee7;
  --ok: #166534;
  --error: #b91c1c;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181512;
    --surface: #211d19;
    --surface-2: #2a251f;
    --text: #f2ede6;
    --muted: #b5aca1;
    --border: #3a332b;
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --accent-soft: #33221a;
    --on-accent: #1a1410;
    --code-bg: #110e0c;
    --code-text: #f4eee7;
    --ok: #86efac;
    --error: #fca5a5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.12rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 750; }
.logo { width: 30px; height: 30px; flex: none; }
.logo .flame { fill: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.97rem; padding: 4px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }
.site-header nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; }

main { display: block; padding-bottom: 3rem; }
main > section, main > article { margin-top: 3.5rem; margin-bottom: 3.5rem; }
main > .hero { margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; padding: 2rem 0 2.5rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Hero */

.hero { padding: 4.5rem 0 1rem; }
.hero h1 { max-width: 22ch; }
.hero-pro h1 { max-width: 22ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.eyebrow { font-size: 0.85rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow a { color: inherit; }
.badge { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 1px 10px; margin-right: 8px; letter-spacing: 0.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 20px;
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.button:disabled { opacity: 0.6; cursor: progress; }

/* Cards and grids */

.points ul, .channels, .guides, .features, .plans {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0 0 1.2em;
  list-style: none;
}
.points ul { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.channels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); }
.channel.wide { grid-column: 1 / -1; }
.guides { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); max-width: 46rem; }

.points li, .channel, .guides li, .features > section, .plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0;
  min-width: 0;
}
.points li { color: var(--muted); font-size: 0.97rem; }
.points li strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.channel h3 { margin-bottom: 0.4em; }
.channel p { font-size: 0.96rem; }
.channel > :last-child, .features > section > :last-child, .plan > :last-child { margin-bottom: 0; }

.guides li { padding: 0; }
.guides a { display: block; padding: 16px 20px 4px; text-decoration: none; color: var(--text); }
.guides a strong { font-size: 1.08rem; }
.guides a span { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.guides a:hover strong { color: var(--accent); }
.guides p { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 0.94rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 32px 48px; }
.split > div { min-width: 0; }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.band > div { max-width: 44rem; }
.band p:last-child { margin-bottom: 0; }

.plan h3 { margin-bottom: 0.3em; }
.price { margin-bottom: 0.4em; }
.price strong { font-size: 2rem; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 0.92rem; }
.note { color: var(--muted); font-size: 0.92rem; max-width: 46rem; }

.timeline, .steps { padding-left: 0; list-style: none; }
.steps { counter-reset: step; }
.timeline li, .steps li { position: relative; padding-left: 1.6em; }
.timeline li::before { content: ""; position: absolute; left: 0.25em; top: 0.55em; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--accent); }
.steps li { counter-increment: step; padding-left: 2.2em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.9em; text-align: center; line-height: 1.55em; }
.timeline strong, .steps strong { display: block; }

/* Code */

pre.code {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 1em;
  overflow-x: auto;
  font: 0.84rem/1.55 var(--mono);
  tab-size: 2;
}
pre.code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
pre.code.has-copy { padding-top: 40px; }
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: 600 0.78rem/1 var(--font);
  color: var(--code-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.16); }

/* Tables */

.table { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.compare tbody th { font-weight: 650; white-space: nowrap; }
td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* Form */

.waitlist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label:not(.check), .field > legend { display: block; font-weight: 650; margin-bottom: 6px; padding: 0; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 16px; }
input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 4.5em; }
input[type="email"]:focus, select:focus, textarea:focus { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.check input { margin: 0.35em 0 0; accent-color: var(--accent); width: 1.05em; height: 1.05em; flex: none; }
.other { display: block; margin: 12px 0 6px; font-size: 0.95rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; margin: 0 0 14px; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--error); }
.waitlist.sent .form-status { font-size: 1.1rem; margin: 0; }
.fine { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }

/* FAQ, guides, legal, notices */

.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 4px; color: var(--muted); }

.guide h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.guide .notes li { margin-bottom: 0.5em; }
.aside { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.aside h2 { font-size: 1.1rem; margin-top: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.notice { padding: 3rem 16px; }
.notice form { margin: 1.5rem 0; }
