:root {
  --ink: #1b1c29;
  --ink-soft: #4a4b5e;
  --ink-mute: #767790;
  --line: #e4e5ef;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-tint: #f3f2ff;
  --violet: #6b5bd2;
  --violet-deep: #4c3fa8;
  --violet-soft: #ecebf7;
  --mint: #0b6e4f;
  --radius: 14px;
  --wrap: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--violet-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(76, 63, 168, 0.26);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(76, 63, 168, 0.32); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(52px, 8vw, 104px) 0 clamp(44px, 6vw, 76px);
  background:
    radial-gradient(1100px 520px at 78% -12%, var(--violet-soft), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-deep);
  background: var(--violet-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-mute); }

/* shelf illustration */
.shelf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(27, 28, 41, 0.1);
}
.shelf-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  letter-spacing: 0.04em;
}
.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.shelf-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 9px 0;
  border-bottom: 2px solid #d8d9e6;
}
.shelf-row:last-child { border-bottom: 0; }
.slot {
  height: 46px;
  border-radius: 5px;
  background: linear-gradient(180deg, #dfe0ee, #cfd1e6);
  border: 1px solid #c8cade;
}
.slot.ok { background: linear-gradient(180deg, #d6efe3, #bfe4d2); border-color: #a9d6c1; }
.slot.gap { background: repeating-linear-gradient(45deg, #f7e6e6, #f7e6e6 5px, #fbf2f2 5px, #fbf2f2 10px); border: 1px dashed #e0b4b4; }
.slot.bad { background: linear-gradient(180deg, #f5ecd6, #ecdcb8); border-color: #dfc893; }
.shelf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.shelf-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 44em; margin-bottom: 42px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- loop / steps ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.loop-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.loop-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--violet);
  opacity: 0.45;
  letter-spacing: 0.05em;
}
.loop-item h3 { margin-bottom: 8px; padding-right: 34px; }
.loop-item p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.loop-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  background: #e3f4ec;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.loop-tag.soon { color: var(--ink-mute); background: #eceded; }

/* ---------- value cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; font-size: 1.06rem; }
.card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--violet-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 18px;
}

/* ---------- comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-col {
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.compare-col.highlight {
  border-color: #cfc9f5;
  background: linear-gradient(180deg, var(--bg-tint), #fff);
  box-shadow: 0 12px 34px rgba(76, 63, 168, 0.1);
}
.compare-col h3 { font-size: 1rem; }
.compare-col ul { margin: 0; padding-left: 0; list-style: none; }
.compare-col li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.compare-col li::before {
  content: "–";
  position: absolute;
  left: 6px;
  color: var(--ink-mute);
  font-weight: 700;
}
.compare-col.highlight li::before { content: "✓"; color: var(--mint); left: 4px; }

/* ---------- pilot band ---------- */
.band {
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: #fff;
  border-radius: 20px;
  padding: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: rgba(255, 255, 255, 0.86); margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.72); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  max-width: 40em;
  margin: 0 auto;
}
.cta p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9cad8;
  padding: 54px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8f90a6; }
.site-footer p { color: #9b9db1; margin: 14px 0 0; max-width: 30em; }
.footer-col h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8f90a6;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.site-footer a { color: #d6d7e4; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: #84869c;
  font-size: 0.82rem;
}

/* ---------- legal / content pages ---------- */
.page-head {
  padding: clamp(44px, 6vw, 72px) 0 34px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-head .lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 44em; margin: 0; }
.page-meta { font-size: 0.86rem; color: var(--ink-mute); margin-top: 14px; }
.prose { max-width: 760px; padding: clamp(38px, 5vw, 60px) 0 clamp(56px, 7vw, 80px); }
.prose h2 { font-size: 1.42rem; margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.04rem; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute); }
.prose code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.88em;
}
.callout {
  background: var(--bg-tint);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 0 0 1.4em;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1px solid #cfd1e1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
  border-color: var(--violet);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.82rem; color: var(--ink-mute); margin: 6px 0 0; }
.form-status { margin-top: 16px; font-size: 0.92rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band, .compare, .cards, .loop, .footer-grid { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .shelf-card { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .loop { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .site-nav .btn { width: 100%; margin-top: 6px; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
