@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito+Sans:wght@700;800;900&display=swap");

:root {
  --ink: #0b2236;
  --ink-2: #173d59;
  --paper: #f8fbfe;
  --white: #fff;
  --blue: #078be5;
  --blue-deep: #0067ad;
  --blue-soft: #e8f5fd;
  --pink: #e5258d;
  --pink-deep: #b8176d;
  --pink-soft: #fff0f7;
  --mint: #dff7ef;
  --green: #17785b;
  --yellow: #f8ca46;
  --line: #d7e5ef;
  --muted: #60798b;
  --shadow: 0 32px 90px rgba(3, 29, 50, .24);
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(229, 37, 141, .17), transparent 26rem),
    radial-gradient(circle at 92% 86%, rgba(7, 139, 229, .24), transparent 32rem),
    #071725;
  font-family: "DM Sans", Arial, sans-serif;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; }

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 68px 54px;
}

.slide {
  position: relative;
  width: min(1400px, calc(100vw - 136px));
  height: min(790px, calc(100vh - 88px));
  min-height: 620px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 139, 229, .12), transparent 30rem),
    radial-gradient(circle at 0% 100%, rgba(229, 37, 141, .08), transparent 26rem),
    var(--paper);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.slide::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 26px;
  width: 98px;
  height: 56px;
  opacity: .34;
  background-image: radial-gradient(circle, var(--blue) 2px, transparent 2.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.slide--dark {
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(229, 37, 141, .34), transparent 32rem),
    radial-gradient(circle at 8% 95%, rgba(7, 139, 229, .32), transparent 30rem),
    #0a1824;
}

.slide--pink { background: linear-gradient(145deg, #fff, #fff2f8 70%, #fde6f2); }
.slide--blue { background: linear-gradient(145deg, #fff, #edf8ff 70%, #e2f3fd); }

.slide__head {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 44px;
  border-bottom: 1px solid rgba(215, 229, 239, .84);
  background: rgba(248, 251, 254, .92);
  backdrop-filter: blur(18px);
}

.slide--dark .slide__head {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(10, 24, 36, .88);
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand img { width: 122px; height: 46px; object-fit: contain; }
.slide--dark .brand img { filter: brightness(0) invert(1); }
.chapter { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.slide--dark .chapter { color: #a9c5d7; }

.slide__body { padding: 42px 48px 46px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--pink)); }
.slide--dark .kicker { color: #8fd0fa; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Nunito Sans", Arial, sans-serif; }
h1 { max-width: 1050px; margin-bottom: 12px; font-size: clamp(2.15rem, 4vw, 4.15rem); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 2.7vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 900; }
h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.15; font-weight: 800; }
p { color: var(--muted); line-height: 1.5; }
.slide--dark p { color: #c7dbe8; }
.lead { max-width: 980px; font-size: clamp(1.05rem, 1.45vw, 1.32rem); }
.accent { color: var(--pink); }
.blue { color: var(--blue); }

.status-row, .chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: .75rem;
  font-weight: 800;
}
.chip--pink { color: var(--pink-deep); background: var(--pink-soft); }
.chip--green { color: var(--green); background: var(--mint); }
.chip--yellow { color: #71500a; background: #fff5c8; }
.slide--dark .chip { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }

.grid { display: grid; gap: 18px; margin-top: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 34px rgba(12, 56, 84, .07);
}
.card--blue { background: linear-gradient(145deg, #fff, var(--blue-soft)); }
.card--pink { background: linear-gradient(145deg, #fff, var(--pink-soft)); }
.card--dark { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #c7dbe8; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); }
.card--dark strong { color: #fff; }

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 13px;
  background: var(--blue-soft);
  font-size: 1.25rem;
}

.creative-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.creative-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #101e29; box-shadow: 0 18px 36px rgba(0,0,0,.2); }
.creative-card__visual { position: relative; aspect-ratio: 1; overflow: hidden; }
.creative-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creative-card__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4,13,20,.88)); }
.creative-card__hook { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; color: #fff; font-family: "Nunito Sans"; font-size: .93rem; line-height: 1.05; font-weight: 900; }
.creative-card__meta { padding: 10px 12px 12px; color: #a9c5d7; font-size: .68rem; }

.browser-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 20px 54px rgba(7, 48, 76, .13); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f2f6f9; }
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #bfd1dc; }
.browser-frame img { width: 100%; display: block; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; margin-top: 24px; }
.split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(7, 139, 229, .21);
}
.button--pink { background: var(--pink); box-shadow: 0 10px 22px rgba(229, 37, 141, .2); }
.button--ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.asset-links { display: grid; gap: 10px; }
.asset-links .button { width: 100%; justify-content: center; text-align: center; }
.url-link { overflow: hidden; color: var(--blue); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.form-shell { max-width: 720px; margin-inline: auto; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 48px rgba(9, 58, 91, .1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--ink-2); font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9dae5; border-radius: 12px; background: #fbfdff; color: var(--muted); }
.field textarea { min-height: 74px; resize: none; }
.checkline { grid-column: 1 / -1; display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: .78rem; }
.upload-preview { position: relative; overflow: hidden; }
.upload-preview__mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 15px; background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; font-size: 1.2rem; box-shadow: 0 12px 24px rgba(7,139,229,.2); }
.static-button { margin-top: 14px; cursor: default; opacity: .72; }

.email, .phone { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(9, 58, 91, .1); }
.email__head { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f4f8fb; }
.email__head strong { display: block; }
.email__body { padding: 20px; font-size: .9rem; line-height: 1.55; }
.email__head span { display: block; margin-top: 3px; color: #435f73; font-size: .76rem; font-weight: 700; }
.email__body p { color: #0b2a40; font-weight: 500; }

.phone { width: min(390px, 100%); margin-inline: auto; padding: 12px; border-radius: 34px; background: #0e1b26; }
.phone__screen { min-height: 470px; overflow: hidden; border-radius: 25px; background: #f1f4f7; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #dde5eb; }
.phone__bar img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.thread { display: grid; gap: 10px; padding: 18px 14px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink-2); font-size: .84rem; line-height: 1.4; box-shadow: 0 4px 12px rgba(8,42,65,.06); }
.bubble--user { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--blue); color: #fff; }
.bubble__file { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; margin-top: 8px; padding: 10px; border-radius: 12px; background: #f2f8fc; }

.pdf-preview { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.pdf-preview img { width: 100%; max-height: 455px; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 42px rgba(8,42,65,.18); }

.flow { display: flex; align-items: stretch; gap: 10px; margin-top: 24px; overflow-x: auto; padding-bottom: 10px; }
.flow__node { min-width: 142px; flex: 1 1 0; position: relative; padding: 16px 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.flow__node:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -13px; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; }
.flow__node small { color: var(--pink); font-weight: 800; }
.flow__node h3 { margin-top: 5px; font-size: .95rem; }
.flow__node p { margin-bottom: 0; font-size: .78rem; }

.matrix { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: .86rem; }
.matrix th, .matrix td { padding: 12px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix th { color: var(--ink); background: #eef6fb; font-family: "Nunito Sans"; font-weight: 900; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix strong { color: var(--ink); }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.timeline__item { position: relative; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.timeline__item::before { content: attr(data-step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; font-weight: 900; }

.persona-hero { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; margin-top: 24px; }
.persona-photo { aspect-ratio: 1; overflow: hidden; border-radius: 28px; box-shadow: 0 22px 50px rgba(7,48,76,.17); }
.persona-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote { padding: 18px 20px; border-left: 5px solid var(--pink); border-radius: 0 16px 16px 0; background: var(--pink-soft); color: var(--ink); font-size: 1.08rem; font-weight: 700; }

.source { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: #71899a; font-size: .7rem; }
.slide--dark .source { border-color: rgba(255,255,255,.13); color: #91afc2; }

[data-page-slug="09-onboarding"] .timeline { gap: 8px; margin-top: 0; }
[data-page-slug="09-onboarding"] .timeline__item { padding: 12px 10px; }
[data-page-slug="09-onboarding"] .timeline__item h3 { font-size: .86rem; }
[data-page-slug="09-onboarding"] .timeline__item p { font-size: .72rem; }
[data-page-slug="18-readiness-gates"] .slide__body { padding-top: 28px; }
[data-page-slug="18-readiness-gates"] h1 { font-size: 3.15rem; }
[data-page-slug="18-readiness-gates"] .lead { margin-bottom: 10px; }
[data-page-slug="18-readiness-gates"] .matrix { margin-top: 12px; font-size: .77rem; }
[data-page-slug="18-readiness-gates"] .matrix th,
[data-page-slug="18-readiness-gates"] .matrix td { padding: 8px 10px; }
[data-page-slug="18-readiness-gates"] .card { margin-top: 10px; padding: 14px 18px; }
[data-page-slug$="-profile"] .slide__body { padding-top: 28px; }
[data-page-slug$="-profile"] h1 { font-size: 3.2rem; }
[data-page-slug$="-profile"] .persona-hero { grid-template-columns: 210px 1fr; gap: 24px; margin-top: 16px; }
[data-page-slug$="-profile"] .grid { gap: 12px; margin-top: 16px; }
[data-page-slug$="-profile"] .card { padding: 14px 18px; }
[data-page-slug$="-profile"] .card p { font-size: .86rem; }

.hud { position: fixed; z-index: 20; left: 50%; bottom: 13px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(5,18,28,.88); box-shadow: 0 14px 34px rgba(0,0,0,.34); backdrop-filter: blur(15px); }
.hud a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 1.4rem; text-decoration: none; }
.hud a:hover { background: var(--blue); }
.hud a[aria-disabled="true"] { opacity: .28; pointer-events: none; }
.hud__count { min-width: 72px; color: #d5e6f1; text-align: center; font-size: .78rem; font-weight: 800; }
.hud__menu { width: auto !important; padding-inline: 15px; border-radius: 999px !important; font-size: .76rem !important; }

.progress { position: fixed; z-index: 21; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--pink)); transition: width .22s ease; }

@media (max-width: 980px) {
  body { overflow: auto; }
  .stage { padding: 18px 18px 70px; }
  .slide { width: 100%; height: auto; min-height: calc(100vh - 98px); }
  .slide__head { padding: 14px 24px; }
  .slide__body { padding: 30px 24px 38px; }
  .creative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3, .grid-4, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide, .persona-hero { grid-template-columns: 1fr; }
  .persona-photo { max-width: 280px; }
}

@media (max-width: 620px) {
  .brand .chapter { display: none; }
  .creative-grid, .grid-2, .grid-3, .grid-4, .timeline, .form-grid, .pdf-preview { grid-template-columns: 1fr; }
  .creative-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2.25rem; }
  .slide::after { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
