/* Otto site
 *
 * Palette and proportions taken from the reference design: a warm grey shell,
 * ivory cards, one apricot accent, near-black ink, nothing else.
 * No framework, no build step, no dependencies.
 */

:root {
  --bg: #f0eeed;
  --bg-deep: #eae7e6;
  --surface: #fbf8f5;
  --surface-2: #faf7f3;
  --surface-3: #fffdfb;
  --ink: #1c1a18;
  --ink-soft: #3a3632;
  --muted: #6f665e;
  --muted-2: #918880;
  --line: #e4ddd5;
  --line-strong: #d5ccc3;
  --peach: #f6c38e;
  --peach-deep: #e8ac74;
  --peach-tint: #fcefe2;
  --peach-tint-2: #f9e6d3;
  --ok: #2f6b4f;
  --warn: #9a6a1f;
  --stop: #a8462f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 24, 0.04), 0 8px 24px rgba(28, 26, 24, 0.04);
  --shadow-md: 0 2px 4px rgba(28, 26, 24, 0.05), 0 18px 48px rgba(28, 26, 24, 0.07);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1140px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.16;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 238, 237, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--peach), var(--peach-deep));
  box-shadow: inset 0 0 0 1px rgba(28, 26, 24, 0.08);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(28, 26, 24, 0.045);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fdfaf7;
}

.btn-primary:hover {
  background: #000;
}

.btn-peach {
  background: linear-gradient(180deg, var(--peach), var(--peach-deep));
  border-color: rgba(28, 26, 24, 0.16);
  color: var(--ink);
  font-weight: 600;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(28, 26, 24, 0.045);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
      60% 60% at 26% 30%,
      rgba(246, 195, 142, 0.55) 0%,
      rgba(246, 195, 142, 0) 70%
    ),
    radial-gradient(50% 50% at 78% 18%, rgba(252, 239, 226, 0.9) 0%, rgba(252, 239, 226, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 26, 24, 0.1);
  background: rgba(255, 253, 251, 0.8);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(232, 172, 116, 0.22);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 5.4vw, 4.05rem);
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  padding: 0 2px;
  background-image: linear-gradient(180deg, rgba(246, 195, 142, 0.3), rgba(246, 195, 142, 0.85));
  background-repeat: no-repeat;
  background-size: 100% 0.34em;
  background-position: 0 88%;
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

/* command pill */

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 26px auto 0;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.cmd-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
  user-select: none;
}

.cmd code {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: auto;
  scrollbar-width: none;
}

.cmd code::-webkit-scrollbar {
  display: none;
}

.cmd .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tick {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}

/* ---------- generic sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- cost cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-tint {
  background: linear-gradient(180deg, var(--peach-tint) 0%, var(--surface-2) 62%);
}

.card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14.6px;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--muted);
}

.price-line b {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
}

/* ---------- demo ---------- */

.demo-section {
  padding-top: 24px;
}

.demo-shell {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.demo-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.demo-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface-2);
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.demo-title {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-title b {
  color: var(--ink);
}

.demo-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--surface-2);
  padding: 16px 18px;
}

.stat span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.stat.is-live strong {
  color: var(--peach-deep);
}

.demo-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 13px 12px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.demo-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(28, 26, 24, 0.07);
  color: var(--ink-soft);
}

.demo-panel {
  padding: 20px;
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
}

.draft {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.draft-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.draft-to {
  color: var(--ink-soft);
  font-weight: 500;
}

.draft-subject {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.draft-body {
  font-family: var(--mono);
  font-size: 12.4px;
  line-height: 1.62;
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 0 0 12px;
  max-height: 168px;
  overflow: hidden;
  position: relative;
}

.draft-body.is-open {
  max-height: none;
}

.draft-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.draft-kind {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--peach-tint);
  color: #8a5a1e;
}

.draft-kind.is-reply {
  background: rgba(47, 107, 79, 0.1);
  color: var(--ok);
}

.more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}

.rowline {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.rowline strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.rowline:last-child {
  border-bottom: 0;
}

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.tag-int { border-color: rgba(47, 107, 79, 0.3); color: var(--ok); background: rgba(47, 107, 79, 0.07); }
.tag-obj { border-color: rgba(154, 106, 31, 0.3); color: var(--warn); background: rgba(154, 106, 31, 0.07); }
.tag-out { border-color: rgba(168, 70, 47, 0.3); color: var(--stop); background: rgba(168, 70, 47, 0.07); }

.demo-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 20px;
  background: var(--peach-tint);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #6d4a1d;
}

.demo-note b {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fdfaf7;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.step-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 15.5px;
  margin: 10px 0 6px;
}

.step p {
  font-size: 13.8px;
  color: var(--muted);
}

.step code {
  display: block;
  margin-top: 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #f3ece4;
  font-size: 11.6px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- two column: priority + quote ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 16px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.panel-head h3 {
  font-size: 15.5px;
}

.panel-head span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

.priority {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
}

.priority li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.priority li + li {
  border-top: 1px solid var(--line);
}

.priority .rank {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.priority .what {
  font-family: var(--mono);
  font-size: 13px;
}

.priority .why {
  display: block;
  font-family: var(--sans);
  font-size: 12.6px;
  color: var(--muted);
}

.priority li.is-active {
  background: var(--peach-tint);
}

.terminal {
  background: var(--ink);
  color: #ece4db;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.75;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
}

.terminal .dim {
  color: #9a8f85;
}

.terminal .peach {
  color: var(--peach);
}

.terminal .ok {
  color: #9ad4a8;
}

/* ---------- faq ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 15.6px;
  font-weight: 500;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: 14.8px;
}

.faq .answer p + p {
  margin-top: 10px;
}

/* ---------- final cta ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--peach-tint) 0%, var(--surface-2) 55%, var(--surface) 100%);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 195, 142, 0.55), rgba(246, 195, 142, 0));
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  position: relative;
}

.cta-panel p {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--ink-soft);
  position: relative;
}

.cta-panel .cmd {
  position: relative;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
  font-size: 13.8px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 10px;
  max-width: 280px;
  font-size: 13.2px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-base {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .nav,
  .header-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface-3);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav a {
    padding: 11px 12px;
  }
  .hero {
    padding-top: 44px;
  }
  section {
    padding: 56px 0;
  }
  .demo-panel {
    padding: 14px;
    max-height: none;
  }
  .draft-body {
    max-height: 140px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cmd {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 12px 14px;
  }
  .cmd code {
    width: 100%;
    font-size: 12.5px;
  }
  .cmd .btn {
    margin-left: auto;
  }
  .footer-links {
    gap: 28px;
  }
  .cta-panel {
    padding: 40px 20px;
  }
}
