:root {
  --canvas: #fbf8ff;
  --surface: rgba(255, 255, 255, 0.92);
  --text: #201922;
  --muted: #716775;
  --line: #e7daed;
  --soft-line: #f0e7f4;
  --accent: #bd58cf;
  --accent-soft: #f5e5f9;
  --pink-deep: #8d3799;
  --pink-pale: #fbf0ff;
  --latte: #f2edf4;
  --shadow: 0 20px 55px rgba(119, 54, 133, 0.11), 0 3px 12px rgba(55, 31, 61, 0.06);
  scroll-behavior: smooth;
}

html { scroll-padding-top: 24px; }

body {
  background:
    radial-gradient(circle at 10% -5%, rgba(218, 155, 232, 0.34), transparent 30rem),
    radial-gradient(circle at 95% 16%, rgba(231, 209, 240, 0.34), transparent 24rem),
    var(--canvas);
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 540px;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(147, 69, 162, 0.16) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 38%);
}

.page { position: relative; }

.page-header {
  min-height: 250px;
  align-items: center;
  padding: 34px 38px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(181, 82, 201, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.96), rgba(250,240,255,0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-header > * { position: relative; z-index: 1; }
.eyebrow { color: var(--pink-deep); }

.site-brand {
  display: block;
  width: 154px;
  height: 62px;
  margin: 0 4px 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 102, 218, 0.26);
  border-radius: 15px;
  background: #17121c;
  box-shadow: 0 9px 22px rgba(73, 32, 83, 0.15), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.site-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(73, 32, 83, 0.19), inset 0 1px 0 rgba(255,255,255,0.14);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1 {
  max-width: 680px;
  font-size: clamp(46px, 8vw, 76px);
  line-height: 0.95;
}

.intro {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-count {
  align-self: flex-start;
  border-color: rgba(187, 84, 207, 0.22);
  color: var(--pink-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.section-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(181, 82, 201, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 8px 24px rgba(79, 43, 88, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 11px;
  color: #66566c;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.section-nav a:hover {
  color: var(--pink-deep);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.notes-grid { gap: 24px; }

.section-card {
  scroll-margin-top: 24px;
  border-color: rgba(109, 66, 119, 0.11);
  border-radius: 26px;
}

.section-header {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(246,228,251,0.62), rgba(255,255,255,0));
}

.section-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #d97ce8, #aa43bd);
  box-shadow: 0 8px 18px rgba(171, 67, 189, 0.22), inset 0 1px 0 rgba(255,255,255,0.38);
}

.section-kicker {
  margin: 0 0 3px;
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-body { padding: 28px 30px 32px; }

.deliverables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.deliverables li {
  display: flex;
  min-height: 0;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 14px;
  margin: 0;
  border: 1px solid rgba(187,84,207,0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, #fefbff, #fbf0ff);
}

.deliverables strong {
  flex: 0 0 44px;
  color: var(--pink-deep);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.deliverables span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.guidelines {
  padding: 19px 20px;
  margin-top: 20px;
  border: 1px solid rgba(168,137,177,0.18);
  border-radius: 17px;
  background: rgba(242,237,244,0.68);
}

.guidelines h3 { margin-bottom: 7px; }
.guidelines p { color: #5f5359; }

.named-list,
.video-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.named-list li,
.video-list li,
.reference-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 4px;
  margin: 0;
  border-bottom: 1px solid var(--soft-line);
}

.named-list li:first-child,
.video-list li:first-child { padding-top: 0; }
.named-list li:last-child,
.video-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.named-list span,
.reference-label span { color: var(--muted); font-size: 14px; }
.named-list strong,
.reference-label strong { color: var(--pink-deep); }

.sequence-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: none;
}

.sequence-link > span {
  color: inherit;
  font-size: 17px;
  transition: transform 160ms ease;
}

.sequence-link:hover > span { transform: translateX(3px); }

.lead-note {
  border-left-color: var(--accent);
  background: var(--pink-pale);
  color: #59434e;
}

.content-list { display: grid; gap: 0; }

.content-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--soft-line);
}

.content-list article:first-child { padding-top: 0; }
.content-list article:last-child { padding-bottom: 0; border-bottom: 0; }

.quantity {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--pink-deep);
  font-size: 15px;
  font-weight: 750;
}

.content-list h3 { margin: 0 0 5px; }
.content-list p { margin: 0; color: var(--muted); }

.overview-list { margin-top: 18px; }
.overview-list article { align-items: center; }
.overview-list h3 { margin-bottom: 0; }

.summary-list { display: grid; gap: 0; }

.summary-list p {
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--soft-line);
  color: #51464c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.summary-list p:first-child { padding-top: 0; }
.summary-list p:last-child { padding-bottom: 0; border-bottom: 0; }

.video-list strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.page-footer p { margin: 0; }
.page-footer a { color: var(--pink-deep); font-weight: 650; text-decoration: none; }

.sequence-page { padding-top: 36px; }

.back-link {
  display: inline-flex;
  margin: 0 4px 18px;
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }
.sequence-hero { min-height: 210px; }
.sequence-hero h1 { max-width: 720px; }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 16px 13px 44px;
  margin: 0;
  border: 1px solid rgba(187,84,207,0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, #fefbff, #fbf0ff);
  font-weight: 620;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
}

.step-block + .step-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--soft-line);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  margin-bottom: 8px;
}

.step-heading h3 { margin: 0; }

.step-heading span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.step-block ul { margin-top: 0; }
.step-block li { color: #51464c; }

@media (max-width: 760px) {
  .page-header { min-height: 0; padding: 28px 24px; }
  .site-brand { width: 132px; height: 54px; margin-bottom: 14px; }
  .intro { font-size: 16px; }
}

@media (max-width: 520px) {
  .sequence-page {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
    padding-bottom: 48px;
  }
  .sequence-page > .site-brand { margin-left: 2px; }
  .back-link { margin: 0 2px 10px; font-size: 13px; }
  .page-header { gap: 10px; }
  .sequence-hero { padding: 21px 20px 20px; border-radius: 24px; }
  .sequence-hero .eyebrow { margin-bottom: 7px; font-size: 11px; }
  .sequence-hero h1 { font-size: clamp(38px, 11vw, 44px); line-height: 0.98; }
  .sequence-hero .section-count { margin-top: 0; }
  .sequence-page .section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    margin-bottom: 16px;
    overflow: visible;
  }
  .sequence-page .section-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(187,84,207,0.10);
    background: var(--pink-pale);
    text-align: center;
    white-space: normal;
  }
  .sequence-page .section-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sequence-page .notes-grid { gap: 16px; }
  .sequence-page .section-card { border-radius: 22px; }
  .sequence-page .section-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }
  .sequence-page .section-number { width: 40px; height: 40px; border-radius: 13px; }
  .sequence-page .section-body { padding: 18px 16px 21px; }
  .named-list li,
  .reference-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .video-list li { gap: 12px; }
  .content-list article { gap: 13px; }
  .check-list { grid-template-columns: 1fr; }
  .sequence-page #verifications .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sequence-page .check-list li {
    min-width: 0;
    padding: 11px 10px 11px 38px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
  }
  .sequence-page .check-list li::before { left: 11px; top: 10px; }
  .step-block + .step-block { padding-top: 18px; margin-top: 18px; }
  .step-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 8px; }
  .step-heading span {
    max-width: 100%;
    padding: 5px 9px;
    line-height: 1.25;
    white-space: normal;
  }
  .sequence-page .step-block ul { padding-left: 20px; }
  .sequence-page .step-block li { font-size: 15px; line-height: 1.5; }
  .sequence-page .page-footer { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .site-brand { transition: none; }
  .section-nav a { transition: none; }
}
