/* ---------- Tokens ---------- */
:root {
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --coral: #ea4b71;
  --orange: #ff7a45;
  --magenta: #e040fb;
  --violet: #7c5cff;
  --blue: #4f7bff;
  --success: #3ddc84;

  --grad-brand: linear-gradient(135deg, var(--orange) 0%, var(--coral) 45%, var(--violet) 100%);
  --grad-icon-a: linear-gradient(135deg, #ff9d3d, #ff5a3c);
  --grad-icon-b: linear-gradient(135deg, #ff5ec9, #b13bff);
  --grad-icon-c: linear-gradient(135deg, #5e8dff, #3d4bff);
  --grad-icon-d: linear-gradient(135deg, #a53c86, #4d2a7a);

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
}

:root[data-theme='dark'] {
  --bg-0: #0a0712;
  --bg-1: #140d24;
  --bg-2: #1b1230;
  --card: rgba(255, 255, 255, .035);
  --card-solid: #181026;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f4f1fa;
  --muted: #b1a9c6;
  --faint: #7d7494;
  --on-brand: #fff;
  --glow-a: rgba(124, 92, 255, .38);
  --glow-b: rgba(234, 75, 113, .28);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg-0: #fbfaff;
  --bg-1: #f4f0ff;
  --bg-2: #ece6ff;
  --card: rgba(255, 255, 255, .8);
  --card-solid: #fff;
  --border: rgba(38, 24, 74, .1);
  --border-strong: rgba(38, 24, 74, .22);
  --text: #17122b;
  --muted: #5b5375;
  --faint: #8d85a6;
  --on-brand: #fff;
  --glow-a: rgba(124, 92, 255, .22);
  --glow-b: rgba(234, 75, 113, .18);
  --shadow: 0 20px 60px -24px rgba(60, 30, 120, .28);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
a { color: inherit; }
b, strong { font-weight: 600; color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--coral); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg-0) 60%); transition: background .35s var(--ease); }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9; }
.bg__glow--a { width: 60vw; height: 60vw; left: -15vw; top: -20vw; background: var(--glow-a); animation: drift 18s ease-in-out infinite alternate; }
.bg__glow--b { width: 50vw; height: 50vw; right: -15vw; top: 10vh; background: var(--glow-b); animation: drift 22s ease-in-out infinite alternate-reverse; }
.bg__bolts { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(6vw, 4vh, 0); } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-0) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--coral); }
.brand__mark { width: 52px; height: 26px; }
.brand__text { color: var(--text); font-size: 18px; letter-spacing: .01em; }
.brand__text b { font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.progress-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.progress-pill__bar { width: 90px; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress-pill__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad-brand); transition: width .6s var(--ease); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: transform .2s var(--ease), border-color .2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; }
:root[data-theme='dark'] .ico-moon { display: none; }
:root[data-theme='light'] .ico-sun { display: none; }

/* ---------- Shared ---------- */
.app { flex: 1; width: 100%; outline: none; }
.view { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 10px 30px -10px rgba(234, 75, 113, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(234, 75, 113, .75); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--card); transform: translateY(-1px); }
.btn--soft { background: var(--card); border-color: var(--border); color: var(--text); }
.btn--soft:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn.is-done { background: var(--success); color: #0a2415; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-btn:hover { color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral); white-space: nowrap;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* ---------- Home ---------- */
.hero { padding: clamp(56px, 10vh, 120px) 0 40px; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 14px; font-weight: 500;
  animation: rise .6s var(--ease) both;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--coral); }
.hero h1 {
  margin: 22px auto 14px; max-width: 12ch;
  font-size: clamp(44px, 8vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em;
  animation: rise .7s .05s var(--ease) both;
}
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto; max-width: 46ch; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); animation: rise .7s .12s var(--ease) both; }
.hero__cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: rise .7s .2s var(--ease) both; }
.hero__cta .btn--primary { padding: 18px 30px; font-size: 18px; border-radius: 16px; }
.hero__sub { color: var(--faint); font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hero__sub:hover { color: var(--text); }
.hero__sub svg { width: 16px; height: 16px; }

.stack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 40px auto 0; animation: rise .7s .3s var(--ease) both; }
.stack__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: transform .25s var(--ease), border-color .25s;
}
.stack__item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stack__item b { color: var(--text); font-size: 15px; }
.orb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.orb svg { width: 22px; height: 22px; }
.orb--a { background: var(--grad-icon-a); }
.orb--b { background: var(--grad-icon-b); }
.orb--c { background: var(--grad-icon-c); }
.orb--d { background: var(--grad-icon-d); }
.orb--brand { background: var(--grad-brand); }

.overview { padding: 56px 0 80px; }
.overview__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.overview__head h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.overview__head span { color: var(--faint); font-size: 14px; }
.overview__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ov {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  text-decoration: none; color: var(--text); text-align: left; width: 100%;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.ov:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.ov__num {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
}
.ov.is-done .ov__num { background: var(--success); border-color: transparent; color: #0a2415; }
.ov.is-done .ov__num svg { width: 18px; height: 18px; }
.ov.is-next .ov__num { background: var(--grad-brand); border-color: transparent; color: #fff; }
.ov__text { display: flex; flex-direction: column; min-width: 0; }
.ov__text b { font-weight: 600; }
.ov__text span { font-size: 13px; color: var(--faint); }
.ov__arrow { margin-left: auto; color: var(--faint); width: 18px; height: 18px; flex: none; }

/* ---------- Step view ---------- */
.step-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 44px; padding: 36px 0 80px; align-items: start; }
.stepper { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.stepper__title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 8px 12px; }
.st {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  text-decoration: none; color: var(--muted); border: 1px solid transparent; background: none; width: 100%; text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}
.st:hover { background: var(--card); color: var(--text); }
.st__dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; border: 1.5px solid var(--border-strong); color: var(--faint);
  transition: all .3s var(--ease);
}
.st__dot svg { width: 14px; height: 14px; }
.st__label { font-size: 15px; font-weight: 500; line-height: 1.25; }
.st.is-done .st__dot { background: var(--success); border-color: transparent; color: #0a2415; }
.st.is-done { color: var(--muted); }
.st.is-current { background: var(--card); border-color: var(--border); color: var(--text); }
.st.is-current .st__dot { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }
.stepper .btn { margin-top: 12px; }

.step { min-width: 0; }
.step__head { margin-bottom: 26px; }
.step__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.step__time { font-size: 13px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.step__time svg { width: 14px; height: 14px; }
.step h1 { margin: 12px 0 10px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.step h1 small { display: block; font-size: 15px; font-weight: 500; color: var(--faint); letter-spacing: .02em; margin-bottom: 6px; }
.step__intro { margin: 0; font-size: 19px; color: var(--muted); max-width: 56ch; }
.blocks { display: flex; flex-direction: column; gap: 16px; }
.block { padding: 22px 24px; animation: rise .45s var(--ease) both; }
.block:nth-child(2) { animation-delay: .06s; }
.block:nth-child(3) { animation-delay: .12s; }
.block:nth-child(4) { animation-delay: .18s; }
.block:nth-child(5) { animation-delay: .24s; }
.block__title { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* Checklist */
.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check label {
  display: flex; align-items: flex-start; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  transition: background .2s;
}
.check label:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 26px; height: 26px; border-radius: 9px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: transparent;
  font-size: 12px; font-weight: 700;
  transition: all .25s var(--ease);
}
.check--num .check__box { color: var(--faint); }
.check__box svg { width: 15px; height: 15px; }
.check input:focus-visible + .check__box { outline: 3px solid var(--coral); outline-offset: 2px; }
.check input:checked + .check__box { background: var(--success); border-color: transparent; color: #0a2415; animation: pop .35s var(--ease); }
.check__text { color: var(--text); line-height: 1.45; transition: color .2s; }
.check input:checked ~ .check__text { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.check input:checked ~ .check__text b { color: inherit; }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Callout */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-left: 3px solid var(--coral); }
.callout .orb { width: 36px; height: 36px; }
.callout .orb svg { width: 18px; height: 18px; }
.callout p { margin: 0; color: var(--muted); }
.callout a { color: var(--text); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.callout--lock { border-left-color: var(--orange); }
.callout--spark { border-left-color: var(--violet); }
.callout--info { border-left-color: var(--blue); }
.callout--heart { border-left-color: var(--magenta); }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 12px; padding: 18px; transition: transform .25s var(--ease), border-color .25s; }
.tool:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.tool b { font-size: 17px; }
.tool p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.tool .btn { align-self: flex-start; }
.tool__chip { align-self: flex-start; font-size: 13px; color: var(--faint); padding: 8px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; }

/* Link rows */
.linkrow { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
.linkrow:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.linkrow__text { display: flex; flex-direction: column; min-width: 0; }
.linkrow__text b { font-size: 17px; }
.linkrow__text span { font-size: 14px; color: var(--muted); }
.linkrow__go { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); }
.linkrow__go svg { width: 18px; height: 18px; }
.linkrow--primary { background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 18%, transparent), color-mix(in srgb, var(--violet) 14%, transparent)); border-color: color-mix(in srgb, var(--coral) 35%, var(--border)); }
.linkrow--primary .linkrow__go { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* Copy block */
.copyblock__row { display: flex; gap: 12px; align-items: flex-start; }
.copyblock pre { flex: 1; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-0); border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.copyblock__hint { margin: 10px 0 0; font-size: 14px; color: var(--faint); }
.copy-btn { flex: none; }
.copy-btn.is-copied { background: var(--success); border-color: transparent; color: #0a2415; }

/* Paths (two option cards) */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.path { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.path--0 { border-color: color-mix(in srgb, var(--coral) 40%, var(--border)); }
.path--0::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.path__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.path h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.path p { margin: 0; color: var(--muted); flex: 1; }
.path .copyblock { margin-top: 4px; }
.path .copyblock__row { flex-direction: column; }
.path .copy-btn { align-self: flex-end; }
.path .btn { align-self: flex-start; }

/* Video */
.video { padding: 0; overflow: hidden; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.video__foot b { font-size: 15px; }

/* Diagram */
.diagram { padding: 22px 12px 18px; overflow-x: auto; }
.diagram__title { margin: 0 0 18px 12px; }
.flow { display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr)); align-items: start; min-width: 740px; padding: 0 12px; row-gap: 6px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.node__box {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card-solid); border: 1.5px solid var(--border-strong); color: var(--text);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); position: relative; z-index: 1;
  transition: transform .25s var(--ease), border-color .25s;
}
.node:hover .node__box { transform: translateY(-3px); border-color: var(--coral); }
.node__box svg { width: 26px; height: 26px; }
.node__box--agent { width: 120px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 25%, var(--card-solid)), color-mix(in srgb, var(--violet) 25%, var(--card-solid))); border-color: color-mix(in srgb, var(--coral) 60%, var(--border-strong)); }
.node__box--trigger::before { content: ''; position: absolute; left: -10px; top: 50%; width: 6px; height: 14px; background: var(--coral); clip-path: polygon(60% 0, 0 55%, 45% 55%, 40% 100%, 100% 45%, 55% 45%); transform: translateY(-50%); }
.node__label { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.25; max-width: 104px; }
.node__label small { display: block; color: var(--faint); font-size: 11px; font-weight: 400; }
.node::after { content: ''; position: absolute; top: 30px; left: calc(50% + 32px); right: calc(-50% + 32px); height: 1.5px; background: var(--border-strong); }
.node--agent::after { left: calc(50% + 62px); }
.node.no-wire::after { display: none; }
.flow__tools { grid-column: 1 / 6; display: flex; justify-content: center; gap: 22px; position: relative; padding-top: 34px; margin-top: 4px; }
.flow__tools::before { content: ''; position: absolute; top: 0; left: 50%; height: 34px; border-left: 1.5px dashed var(--border-strong); }
.flow__tools::after { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 0; border-top: 1.5px dashed var(--border-strong); }
.tnode { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; position: relative; padding-top: 14px; text-align: center; }
.tnode::before { content: ''; position: absolute; top: 0; left: 50%; height: 14px; border-left: 1.5px dashed var(--border-strong); }
.tnode .orb { width: 46px; height: 46px; }
.tnode span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.diagram__caption { margin: 16px 12px 0; font-size: 14px; color: var(--faint); }

/* Debug */
.debug { padding: 22px 24px; }
.debug__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.debug__card { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-0); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.debug__card h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.debug__card ol { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.debug__card code { font-family: var(--mono); font-size: 12.5px; background: var(--card); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* Step footer */
.step__foot { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.step__foot .btn--primary { padding: 16px 26px; }
.step__done-note { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-weight: 500; font-size: 15px; }
.step__done-note svg { width: 18px; height: 18px; }

/* ---------- Done view ---------- */
.done { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; position: relative; overflow: hidden; }
.done__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 620px; }
.done .orb { width: 88px; height: 88px; box-shadow: 0 20px 50px -15px rgba(234, 75, 113, .7); animation: pop .6s var(--ease) both; }
.done .orb svg { width: 44px; height: 44px; }
.done h1 { margin: 6px 0 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.done h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.done p { margin: 0; color: var(--muted); font-size: 19px; max-width: 42ch; }
.done__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; top: -20px; width: 10px; height: 18px; opacity: 0;
  clip-path: polygon(60% 0, 0 55%, 45% 55%, 40% 100%, 100% 45%, 55% 45%);
  animation: fall linear forwards;
}
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(90vh) rotate(540deg); opacity: 0; } }

/* ---------- Footer / toast ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.footer .heart { display: inline-block; margin: 0 2px; }
.footer a { color: var(--muted); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 50;
  padding: 12px 18px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-weight: 500; font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .step-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .stepper { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding: 4px 2px 10px; scrollbar-width: none; }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper__title, .stepper .btn, .st__label { display: none; }
  .st { padding: 4px; flex: none; width: auto; }
  .st__dot { width: 34px; height: 34px; font-size: 13px; }
  .stack { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 16px; }
  .brand__text { display: none; }
  .progress-pill__bar { width: 60px; }
  .container { padding: 0 16px; }
  .block { padding: 18px 16px; }
  .step__foot { flex-direction: column-reverse; align-items: stretch; }
  .step__foot .btn { width: 100%; }
  .copyblock__row { flex-direction: column; }
  .copy-btn { align-self: flex-end; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .bg__glow { animation: none; }
}

/* =========================================================
   Funnel additions: landing page, toolkit overview, Part 2 blocks
   ========================================================= */

/* Top bar nav link (landing only) */
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav-link:hover { color: var(--text); background: var(--card); }
[hidden] { display: none !important; }

/* ---------- Landing ---------- */
.lp-hero { padding: clamp(64px, 12vh, 140px) 0 48px; text-align: center; }
.lp-hero h1 { margin: 22px auto 16px; max-width: 16ch; font-size: clamp(40px, 7vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; animation: rise .7s .05s var(--ease) both; }
.lp-hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p { margin: 0 auto; max-width: 52ch; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); animation: rise .7s .12s var(--ease) both; }
.lp-hero .hero__cta .btn--primary { padding: 18px 30px; font-size: 18px; border-radius: 16px; }
.lp-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; animation: rise .7s .3s var(--ease) both; }
.lp-stack__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); }
.lp-stack__item .orb { width: 30px; height: 30px; box-shadow: none; }
.lp-stack__item .orb svg { width: 15px; height: 15px; }

.lp-section { padding: 48px 0; scroll-margin-top: 80px; }
.lp-section__head { max-width: 640px; margin-bottom: 28px; }
.lp-section__head h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

/* "What it does" horizontal flow */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: how; }
.how__item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.how__item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.how__num { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .08em; }
.how__num::before { content: '0'; }
.how__text { display: flex; flex-direction: column; gap: 4px; }
.how__text b { font-size: 17px; line-height: 1.25; }
.how__text span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.how__item:not(:last-child)::after { content: ''; position: absolute; right: -13px; top: 40px; width: 14px; height: 1.5px; background: var(--border-strong); }

/* Before / after */
.lp-ba { padding: 8px 8px 8px; }
.ba { display: flex; flex-direction: column; gap: 6px; }
.ba__head { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ba__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba__cell { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.4; }
.ba__cell--before { background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--muted); }
.ba__cell--after { background: color-mix(in srgb, var(--coral) 10%, transparent); color: var(--text); }
.ba__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ba__icon svg { width: 12px; height: 12px; }
.ba__cell--before .ba__icon { background: var(--border-strong); color: var(--muted); }
.ba__cell--after .ba__icon { background: var(--success); color: #0a2415; }

.lp-quote { margin: 28px auto 0; max-width: 760px; text-align: center; }
.lp-quote blockquote { margin: 0; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.lp-quote blockquote::before { content: '“'; color: var(--coral); }
.lp-quote blockquote::after { content: '”'; color: var(--coral); }
.lp-quote figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* What's inside */
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.part { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.part::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-icon-a); }
.part--sell::before { background: var(--grad-icon-b); }
.part__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.part__tag .orb { width: 30px; height: 30px; box-shadow: none; }
.part__tag .orb svg { width: 15px; height: 15px; }
.part h3 { margin: 4px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.part p { margin: 0; color: var(--muted); }
.part__list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.part__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.part__list svg { width: 18px; height: 18px; flex: none; color: var(--success); margin-top: 2px; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.who__item { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.who__item p { margin: 0; color: var(--muted); font-size: 16px; }

/* Opt-in */
.optin { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding: 40px; align-items: center; position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--coral) 35%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 12%, var(--card)), color-mix(in srgb, var(--violet) 12%, var(--card))); }
.optin__copy h2 { margin: 10px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.optin__copy p { margin: 0; color: var(--muted); font-size: 17px; }
.optin__replay { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
.optin__replay:hover { color: var(--text); }
.optin__replay svg { width: 14px; height: 14px; color: var(--coral); }
.optin__form { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; background: var(--card-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.optin__form .btn { margin-top: 4px; }
.optin__fine { margin: 2px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.optin__embed { min-height: 320px; border-radius: 18px; overflow: hidden; background: var(--card-solid); border: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-0); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 22%, transparent); }

/* ---------- Toolkit overview ---------- */
.toolkit { padding: 40px 0 80px; }
.toolkit__head { margin-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.toolkit__head h1 { margin: 4px 0 0; font-size: clamp(36px, 5.5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; }
.toolkit__head h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toolkit__head p { margin: 0 0 8px; color: var(--muted); font-size: 18px; }
.toolkit .overview { padding: 20px 0 28px; }
.stepper__other { display: inline-flex; align-items: center; gap: 6px; margin: 14px 12px 0; font-size: 13px; color: var(--faint); text-decoration: none; }
.stepper__other:hover { color: var(--text); }
.stepper__other svg { width: 14px; height: 14px; }
.step__foot-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Part 2 blocks ---------- */
.quote blockquote { margin: 0; position: relative; padding-left: 44px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.quote__mark { position: absolute; left: 0; top: 2px; width: 30px; height: 30px; color: var(--coral); }
.quote__mark svg { width: 30px; height: 30px; }
.quote__foot { margin-top: 16px; padding-left: 44px; }

.flowlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.flowlist__item { display: flex; align-items: center; gap: 16px; padding: 12px 10px; border-radius: 14px; position: relative; }
.flowlist__item:not(:last-child)::after { content: ''; position: absolute; left: 62px; top: calc(100% - 6px); height: 12px; border-left: 1.5px dashed var(--border-strong); }
.flowlist__num { width: 22px; font-size: 12px; font-weight: 700; color: var(--faint); text-align: right; }
.flowlist__text { display: flex; flex-direction: column; gap: 2px; }
.flowlist__text b { font-size: 17px; }
.flowlist__text span { font-size: 14.5px; color: var(--muted); }

.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; color: var(--muted); }
.bullets__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.bullets__dot svg { width: 13px; height: 13px; }

.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.verdict { display: flex; gap: 14px; padding: 20px; align-items: flex-start; }
.verdict__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.verdict__icon svg { width: 16px; height: 16px; }
.verdict--no .verdict__icon { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.verdict--yes .verdict__icon { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.verdict--yes { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.verdict__quote { margin: 0 0 6px; color: var(--muted); font-style: italic; }
.verdict__text { display: block; font-size: 16px; }

.questions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.question { display: flex; gap: 16px; padding: 16px 14px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.question__num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 13px; }
.question__q { margin: 0 0 4px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.question__note { font-size: 14px; color: var(--faint); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.tier--featured { border-color: color-mix(in srgb, var(--coral) 50%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--coral) 12%, var(--card)), var(--card)); }
.tier__letter { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.tier--featured .tier__letter { background: var(--grad-brand); border-color: transparent; color: #fff; }
.tier h3 { margin: 8px 0 0; font-size: 19px; font-weight: 600; }
.tier__price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.tier__unit { font-size: 13px; color: var(--faint); }
.tier__list { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tier__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.tier__list svg { width: 16px; height: 16px; flex: none; color: var(--success); margin-top: 2px; }
.tier__best { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.tier__note { margin: 0; font-size: 13px; color: var(--faint); }

.script { display: flex; flex-direction: column; gap: 12px; }
.line { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.line .block__title { margin: 0; }
.line__text { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 500; }
.line__foot { margin-top: 4px; }

.objections { display: flex; flex-direction: column; gap: 12px; }
.objection { display: grid; grid-template-columns: 1fr 1.4fr; overflow: hidden; }
.objection > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.objection p { margin: 0; line-height: 1.45; }
.objection__they { background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--muted); border-right: 1px solid var(--border); }
.objection__they p { font-style: italic; font-weight: 500; }
.objection__who { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.objection__you .objection__who { color: var(--coral); }
.objection__note { font-size: 13px; color: var(--faint); margin-top: 4px; }

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
  .how { grid-template-columns: repeat(2, 1fr); }
  .how__item::after { display: none; }
  .pricing { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .optin { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .stepper__other { display: none; }
}
@media (max-width: 640px) {
  .how { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr; }
  .ba__head { display: none; }
  .ba__row { grid-template-columns: 1fr; }
  .objection { grid-template-columns: 1fr; }
  .objection__they { border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-link { font-size: 13px; padding: 6px 8px; }
  .quote blockquote, .quote__foot { padding-left: 0; }
  .quote__mark { position: static; display: block; margin-bottom: 8px; }
  .flowlist__item:not(:last-child)::after { display: none; }
  .step__foot-right { flex-direction: column; align-items: stretch; }
  .step__foot-right .btn { width: 100%; }
}

/* Opt-in: honeypot stays invisible to people, and the button shows it's working */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optin__form { position: relative; }
.optin__form.is-sending .btn { opacity: .7; pointer-events: none; }
.optin__fine.is-error { color: var(--coral); }

/* Hero with the opt-in card above the fold */
.lp-hero { text-align: left; padding: clamp(40px, 8vh, 96px) 0 24px; }
.lp-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.lp-hero h1 { margin: 20px 0 14px; max-width: 14ch; font-size: clamp(38px, 5.6vw, 66px); }
.lp-hero p { margin: 0; max-width: 46ch; }
.lp-hero .lp-stack { justify-content: flex-start; margin-top: 28px; }
.lp-hero .hero__sub { margin-top: 22px; }
.hero__badge a { color: var(--text); text-decoration: none; font-weight: 600; }
.hero__badge a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.optin--hero { display: flex; flex-direction: column; gap: 22px; padding: 30px; animation: rise .7s .2s var(--ease) both; }
.optin--hero .optin__copy h2 { font-size: clamp(24px, 2.6vw, 30px); }
.optin--hero .optin__copy p { font-size: 15.5px; }
.optin--hero .btn--primary { align-self: flex-start; }
.optin--hero .optin__form .btn--primary { align-self: stretch; }
.optin--final .btn--primary { justify-self: end; }
.optin__copy p a { color: var(--text); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero h1 { max-width: none; }
  .optin--final .btn--primary { justify-self: start; }
}

/* Keep the fine print small even inside the hero, where .lp-hero p sets a larger size */
.optin__form .optin__fine { font-size: 13px; max-width: none; margin-top: 2px; }
/* Mobile hero: form goes right after the headline, chips and "see what it does" drop below it */
@media (max-width: 960px) {
  .lp-hero__copy { display: contents; }
  .lp-hero .hero__badge { justify-self: start; }
  .optin--hero { order: 1; }
  .lp-hero .lp-stack { order: 2; margin-top: 4px; }
  .lp-hero .hero__sub { order: 3; margin-top: 0; }
}
