/* ============================================================
   CartRules — shared stylesheet
   ============================================================ */

:root {
  --bg: #f7f4ec;
  --bg-alt: #ffffff;
  --ink: #16140f;
  --ink-soft: #5c584c;
  --ink-faint: #948e7d;
  --line: #e6e0d1;
  --line-strong: #d8d0ba;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7d8;
  --accent-soft-line: #ffcda8;
  --good: #1f7a4d;
  --dark: #16140f;
  --dark-soft: #2a271e;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(22, 20, 15, 0.04);
  --maxw: 1180px;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

/* ============================================================
   ANIMATION PRIMITIVES
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffb280);
  transition: width 0.1s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drawUnderline {
  to { stroke-dashoffset: 0; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(255, 90, 31, 0); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- eyebrow / section labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow .num {
  color: var(--ink-faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.pill--soft {
  background: var(--accent-soft);
  color: #b13c0f;
  border: 1px solid var(--accent-soft-line);
}

.pill--dark {
  background: var(--dark);
  color: #fff;
}

.pill--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn--primary:hover {
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.4);
  transform: translateY(-2px);
}

.btn--primary:hover::after {
  left: 130%;
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--dark:hover {
  box-shadow: 0 10px 24px rgba(22, 20, 15, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: calc(var(--maxw) - 20px);
  padding: 0 20px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav.is-scrolled .nav__inner {
  box-shadow: 0 16px 40px rgba(22, 20, 15, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: #fff;
}

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

.nav__cta .btn {
  padding: 10px 18px;
  font-size: 15px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 6px;
}

.nav__toggle svg { width: 22px; height: 22px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--dark);
  border-radius: 20px;
  margin-top: 8px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.18);
}

.nav__mobile a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
}

.nav__mobile a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.nav.is-open .nav__mobile { display: flex; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 76px 0 40px;
}

.hero__top {
  max-width: 760px;
}

.hero__top > * {
  opacity: 0;
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__top > *:nth-child(1) { animation-delay: 0.05s; }
.hero__top > *:nth-child(2) { animation-delay: 0.16s; }
.hero__top > *:nth-child(3) { animation-delay: 0.32s; }
.hero__top > *:nth-child(4) { animation-delay: 0.46s; }

.hero h1 {
  font-size: clamp(43px, 6vw, 67px);
  margin-top: 22px;
}

.hero .accent-underline {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero .accent-underline svg {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 10px;
}

.hero .accent-underline svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawUnderline 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero__lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
}

.hero__lede strong { color: var(--ink); }

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero__actions .fine {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- mockup shell (browser chrome) ---------- */

.mockup {
  margin-top: 48px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 15, 0.35);
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.mockup.is-floating {
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards, floaty 6s ease-in-out 1.4s infinite;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbf9f3;
}

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

.mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mockup__dots span:nth-child(1) { background: #ff8a75; }
.mockup__dots span:nth-child(2) { background: #ffcf6b; }
.mockup__dots span:nth-child(3) { background: #8fd19e; }

.mockup__url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--ink-faint);
}

.mockup__body {
  display: flex;
  min-height: 340px;
}

.mockup__side {
  width: 190px;
  flex: none;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  background: #fdfcf8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mockup__side a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.mockup__side a.is-current {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}

.mockup__side a .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.mockup__side a.is-current .dot { background: var(--accent); }

.mockup__main {
  flex: 1;
  padding: 24px 26px;
  min-width: 0;
}

.mockup__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 16px;
}

.mockup__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mockup__stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}

.mockup__stat .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mockup__stat .val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-top: 5px;
}

.mockup__stat .delta {
  font-size: 12px;
  color: var(--good);
  margin-top: 2px;
}

/* rules table mockup */

.rtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rtable th {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.rtable td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.rtable tr:last-child td { border-bottom: none; }

.rtable .rule-name { font-weight: 600; }
.rtable .rule-target { color: var(--ink-soft); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.status-chip.active { background: #e7f5ec; color: var(--good); }
.status-chip.paused { background: #f1efe6; color: var(--ink-faint); }
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.active::before { animation: dotPulse 1.6s ease-in-out infinite; }

/* wizard mockup */

.wizard {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #fff;
}

.wizard__steps {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #fbf9f3;
}

.wizard__steps .step {
  flex: 1;
  padding: 13px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard__steps .step:last-child { border-right: none; }

.wizard__steps .step .n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}

.wizard__steps .step.is-active {
  color: var(--ink);
  background: #fff;
}

.wizard__steps .step.is-active .n {
  background: var(--accent);
  color: #fff;
}

.wizard__body { padding: 20px 22px; }

.wizard__q {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}

.choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choice {
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.choice.is-picked {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #b13c0f;
  font-weight: 600;
}

.field-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-faint);
}

.tag-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.msg-box {
  margin-top: 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

/* cart mockup */

.cart-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  padding: 20px 22px;
}

.cart-mock__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 14px;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line__thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffd9c2, var(--accent-soft));
  flex: none;
}

.cart-line__name { font-weight: 600; font-size: 15px; }
.cart-line__price { margin-left: auto; font-weight: 600; font-size: 15px; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

.qty-stepper span {
  padding: 5px 10px;
  border-right: 1px solid var(--line-strong);
}

.qty-stepper span:last-child { border-right: none; }

.notice {
  margin-top: 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-line);
  color: #8a3a13;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
}

.notice svg { flex: none; margin-top: 2px; width: 15px; height: 15px; }

.discount-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.discount-row input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.discount-row button {
  border: none;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 45px);
  margin-top: 14px;
}

.section-head .accent { color: var(--accent); }

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
}

.section--tint {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- problem cards ---------- */

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

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

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

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card,
.howit-step,
.roadmap-card,
.recipe-card,
.trouble-item,
.plan {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.howit-step:hover,
.roadmap-card:hover,
.recipe-card:hover,
.trouble-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -24px rgba(22, 20, 15, 0.35);
  border-color: var(--line-strong);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(22, 20, 15, 0.28);
}

.plan--pop:hover {
  transform: translateY(-14px);
}

.problem-card .quote-mark {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.problem-card p.body {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.problem-card .src {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- principle cards ---------- */

.principle-card .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.principle-card h3 {
  font-size: 20px;
  margin-top: 10px;
}

.principle-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--bg-alt);
}

table.compare th,
table.compare td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

table.compare thead th {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #fbf9f3;
}

table.compare td:first-child,
table.compare th:first-child {
  text-align: left;
  font-weight: 500;
}

table.compare th.us,
table.compare td.us {
  background: var(--accent-soft);
  font-weight: 700;
  color: #8a3a13;
}

table.compare thead th.us {
  background: var(--dark);
  color: #fff;
}

table.compare thead th.us .sub {
  display: block;
  font-weight: 500;
  color: var(--accent);
  margin-top: 3px;
  font-size: 11px;
}

table.compare .yes { color: var(--good); font-weight: 700; }
table.compare .no { color: var(--ink-faint); }
table.compare tbody tr:last-child td { border-bottom: none; }

/* ---------- how it works teaser ---------- */

.howit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.howit-step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}

.howit-step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.howit-step h4 {
  font-size: 17px;
  margin-top: 14px;
}

.howit-step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 30px 34px;
}

.guide-cta h3 {
  font-size: 23px;
  color: #fff;
}

.guide-cta p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15.5px;
  max-width: 480px;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan--pop {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  transform: translateY(-8px);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  animation: badgePulse 2.4s ease-in-out infinite;
}

.plan__name {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan--pop .plan__name { color: rgba(255, 255, 255, 0.55); }

.plan__price {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 43px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__price .per {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}

.plan--pop .plan__price .per { color: rgba(255, 255, 255, 0.55); }

.plan__desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.plan--pop .plan__desc { color: rgba(255, 255, 255, 0.72); }

.plan__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan__list li {
  display: flex;
  gap: 9px;
  font-size: 15px;
}

.plan__list li::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

.plan__cta { margin-top: 24px; }

/* ---------- roadmap ---------- */

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

.roadmap-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}

.roadmap-card h4 {
  font-size: 18px;
  margin-top: 12px;
}

.roadmap-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.status-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-tag.planned { background: #eef1fb; color: #3b4fb0; }
.status-tag.exploring { background: #f1efe6; color: var(--ink-faint); }

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.faq-q .icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink-soft);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-q .icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a__inner {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 760px;
}

/* ---------- support / contact ---------- */

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: radial-gradient(140% 140% at 0% 0%, #3a2116 0%, var(--dark) 55%);
  color: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 10%), rgba(255, 122, 66, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-info,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-info {
  padding: 44px 40px;
}

.contact-info h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
}

.contact-info > p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  max-width: 420px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.contact-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex: none;
  color: rgba(255, 255, 255, 0.8);
}

.contact-row__icon svg { width: 17px; height: 17px; }

.contact-row .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-row .val {
  margin-top: 2px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.contact-row a.val { color: var(--accent); }

.contact-form {
  background: rgba(0, 0, 0, 0.22);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
}

.cf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.cf-field select option {
  color: #16140f;
}

.cf-field textarea {
  resize: vertical;
  font-family: "Inter", sans-serif;
}

.contact-form .cf-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -4px;
}

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

footer.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand { color: #fff; }

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  padding: 5px 0;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   GUIDE PAGE (docs layout)
   ============================================================ */

.guide-hero {
  padding: 56px 0 20px;
}

.guide-hero .eyebrow { margin-bottom: 16px; }

.guide-hero h1 {
  font-size: clamp(34px, 5vw, 49px);
}

.guide-hero p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 640px;
}

.guide-meta {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.guide-meta .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.guide-meta .item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  padding: 40px 0 100px;
}

.guide-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.guide-toc .toc-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.guide-toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.guide-toc a:hover { color: var(--ink); }

.guide-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.guide-toc-select {
  display: none;
}

.guide-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 76px;
}

.g-section .g-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.g-section h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-top: 10px;
}

.g-section > p.lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 640px;
}

.g-section .g-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.g-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.g-block.reverse .g-text { order: 2; }
.g-block.reverse .g-visual { order: 1; }

.g-text h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.g-text h3 .step-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  flex: none;
}

.g-text p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.g-text ul.checklist {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g-text ul.checklist li {
  display: flex;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-soft);
}

.g-text ul.checklist li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

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

.recipe-card {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-m);
  padding: 20px;
}

.recipe-card .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.recipe-card h4 {
  font-size: 16.5px;
  margin-top: 10px;
}

.recipe-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.recipe-card .setup {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.7;
}

.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trouble-item {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
}

.trouble-item svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.trouble-item h4 { font-size: 15.5px; }
.trouble-item p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }

.help-box {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.help-box h3 { color: #fff; font-size: 22px; }
.help-box p { margin-top: 8px; color: rgba(255,255,255,0.65); font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .grid-3, .grid-4, .pricing-grid, .roadmap-grid, .howit-steps, .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan--pop { transform: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc {
    position: static;
    max-height: none;
  }
  .guide-toc .toc-label,
  .guide-toc a {
    display: none;
  }
  .guide-toc-select {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--bg-alt);
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero { padding-top: 54px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .roadmap-grid, .howit-steps, .recipe-grid {
    grid-template-columns: 1fr;
  }
  .mockup__side { display: none; }
  .mockup__stats { grid-template-columns: repeat(2, 1fr); }
  .g-block, .g-block.reverse {
    grid-template-columns: 1fr;
  }
  .g-block .g-text, .g-block.reverse .g-text,
  .g-block .g-visual, .g-block.reverse .g-visual { order: initial; }
  .footer-top { flex-direction: column; }
  .guide-cta, .help-box { flex-direction: column; align-items: flex-start; }
  table.compare { min-width: 640px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .cf-row--split { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .wizard__steps { flex-direction: column; }
  .wizard__steps .step { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   REDUCED MOTION — always wins, regardless of source order
   ============================================================ */

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__top > *,
  .hero .mockup {
    opacity: 1 !important;
    animation: none !important;
  }

  .hero .accent-underline svg path {
    stroke-dashoffset: 0 !important;
  }

  .mockup.is-floating,
  .plan__badge,
  .status-chip.active::before {
    animation: none !important;
  }

  .scroll-progress {
    display: none !important;
  }
}
