:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #607080;
  --line: #d5dde5;
  --paper: #ffffff;
  --surface: #eef2f5;
  --aqa: #1666b1;
  --aqa-red: #d33d4f;
  --edexcel: #007d86;
  --edexcel-blue: #265aa6;
  --caie: #c8323f;
  --caie-navy: #1d3558;
  --ap: #2255a4;
  --ap-yellow: #f4c542;
  --success: #157347;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

.stage-bg {
  position: absolute;
  inset: 0;
  color: var(--ink);
  background: var(--surface);
}

.stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(#d7dee5 1px, transparent 1px),
    linear-gradient(90deg, #d7dee5 1px, transparent 1px);
  background-size: 48px 48px;
}

.color-rail {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.color-rail i:nth-child(1) { background: var(--aqa); }
.color-rail i:nth-child(2) { background: var(--aqa-red); }
.color-rail i:nth-child(3) { background: var(--edexcel); }
.color-rail i:nth-child(4) { background: var(--edexcel-blue); }
.color-rail i:nth-child(5) { background: var(--caie); }
.color-rail i:nth-child(6) { background: var(--caie-navy); }
.color-rail i:nth-child(7) { background: var(--ap); }
.color-rail i:nth-child(8) { background: var(--ap-yellow); }

.scene {
  position: absolute;
  inset: 0;
  padding: 72px 96px 70px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #36536d;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 42px;
  height: 4px;
  background: var(--caie);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.headline {
  max-width: 1450px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 72px;
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: 0;
}

.headline.compact {
  max-width: 1260px;
  font-size: 60px;
}

.lead {
  max-width: 1180px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 28px;
  line-height: 1.48;
}

.infographic-headline {
  max-width: 1600px;
  font-size: 60px;
}

.imagegen-visual {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.imagegen-visual img {
  position: absolute;
  inset: 0 0 70px;
  width: 100%;
  height: calc(100% - 70px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.provider-art {
  bottom: 58px;
  width: 1540px;
  height: 700px;
}

.atomic-art {
  bottom: 58px;
  width: 1660px;
  height: 740px;
}

.decision-art {
  bottom: 58px;
  width: 1480px;
  height: 740px;
}

.visual-legend {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.visual-legend span {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
}

.visual-legend span::before {
  content: "";
  width: 28px;
  border-top: 5px solid var(--accent);
  transform: rotate(-3deg);
}

.visual-legend b {
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  font-weight: 820;
}

.provider-legend span {
  color: var(--accent);
  font-size: 23px;
}
.preflight-layout,
.review-layout,
.package-layout {
  position: absolute;
  right: 96px;
  bottom: 80px;
  left: 96px;
  display: grid;
  gap: 30px;
}

.preflight-layout {
  grid-template-columns: 1.18fr 0.82fr;
}

.preflight-form,
.gate-panel,
.review-proof,
.review-loop,
.zip-panel,
.package-notes {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(35, 52, 66, 0.1);
}

.preflight-form {
  padding: 24px 28px;
}

.form-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 58px 250px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e6ebef;
}

.form-row:last-child {
  border-bottom: 0;
}

.form-row b {
  color: #8a3b43;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 17px;
}

.form-row strong {
  color: var(--ink);
  font-size: 20px;
}

.form-row span {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.3;
}

.gate-panel {
  position: relative;
  min-height: 430px;
  padding: 34px;
  overflow: hidden;
  color: #f6f8fa;
  border-color: #243a4f;
  background: #1f3142;
}

.gate-panel .gate-number {
  color: #85d4cb;
  font-size: 96px;
  font-weight: 860;
  line-height: 1;
}

.gate-panel h3 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.15;
}

.gate-panel p {
  margin-top: 20px;
  color: rgba(246, 248, 250, 0.76);
  font-size: 22px;
  line-height: 1.5;
}

.lock-state {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  padding: 16px 18px;
  border-left: 6px solid var(--ap-yellow);
  background: rgba(255, 255, 255, 0.09);
  font-size: 19px;
  font-weight: 740;
}

.provider-grid {
  position: absolute;
  right: 96px;
  bottom: 80px;
  left: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.provider-card {
  position: relative;
  min-height: 420px;
  padding: 34px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(35, 52, 66, 0.11);
}

.provider-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--accent);
}

.provider-card .code {
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
}

.provider-card h3 {
  margin-top: 20px;
  color: var(--ink);
  font-size: 34px;
}

.provider-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.42;
}

.market-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.market-list span {
  display: block;
  padding: 13px 14px;
  border-left: 4px solid var(--accent);
  background: #f2f5f7;
  color: #31475b;
  font-size: 18px;
  line-height: 1.3;
}

.samples-scene {
  padding: 54px 68px 54px;
}

.samples-scene .headline {
  margin-top: 18px;
  font-size: 54px;
}

.sample-grid {
  position: absolute;
  right: 68px;
  bottom: 52px;
  left: 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sample-set {
  min-height: 750px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--accent);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(35, 52, 66, 0.13);
}

.sample-set h3 {
  min-height: 56px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.sample-set p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
}

.sample-pages {
  position: relative;
  height: 620px;
  margin-top: 14px;
}

.sample-pages img {
  position: absolute;
  top: 8px;
  width: 265px;
  height: 375px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #bfc9d2;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 48, 64, 0.18);
}

.sample-pages img:nth-child(1) {
  left: 8px;
  transform: rotate(-4deg);
}

.sample-pages img:nth-child(2) {
  right: 8px;
  top: 118px;
  transform: rotate(3deg);
}

.sample-pages img:nth-child(3) {
  left: 80px;
  top: 238px;
  transform: rotate(-1deg);
}

.review-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.review-proof {
  min-height: 510px;
  padding: 22px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
}

.review-proof img {
  width: 100%;
  height: 466px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #cbd4dc;
}

.proof-copy {
  padding: 14px 6px;
}

.proof-copy strong {
  display: block;
  color: var(--success);
  font-size: 20px;
}

.proof-copy h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.18;
}

.proof-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.48;
}

.review-loop {
  min-height: 510px;
  padding: 24px 28px;
}

.loop-step {
  min-height: 98px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #e1e7ec;
}

.loop-step:last-child {
  border-bottom: 0;
}

.loop-step b {
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 18px;
}

.loop-step strong {
  color: var(--ink);
  font-size: 22px;
}

.loop-step span {
  max-width: 260px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.3;
  text-align: right;
}

.package-layout {
  grid-template-columns: 1.02fr 0.98fr;
}

.zip-panel,
.package-notes {
  min-height: 500px;
  padding: 30px;
}

.zip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfe5ea;
}

.zip-header strong {
  color: var(--ink);
  font-size: 27px;
}

.zip-header span {
  padding: 7px 10px;
  color: #fff;
  background: var(--success);
  font-size: 15px;
  font-weight: 760;
}

.tree {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  color: #45596d;
  border: 1px solid #dce3e9;
  background: #f6f8fa;
  font-size: 19px;
}

.tree-row.root {
  color: #fff;
  border-color: var(--aqa);
  background: var(--aqa);
  font-weight: 800;
}

.tree-row i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ap-yellow);
}

.package-notes h3 {
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.package-notes ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.package-notes li {
  padding-left: 20px;
  border-left: 5px solid var(--accent);
  color: var(--muted);
  font-size: 22px;
  line-height: 1.42;
}

.closing-scene {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.closing-copy .headline {
  font-size: 70px;
}

.closing-badges {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.closing-badges span {
  padding: 12px 15px;
  color: #31475b;
  border: 1px solid #cbd5dd;
  border-radius: 4px;
  background: var(--paper);
  font-size: 18px;
  font-weight: 720;
}

.closing-pages {
  position: relative;
  height: 720px;
}

.closing-pages img {
  position: absolute;
  width: 330px;
  height: 467px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #bdc8d1;
  background: #fff;
  box-shadow: 0 24px 54px rgba(31, 48, 64, 0.2);
}

.closing-pages img:nth-child(1) { left: 28px; top: 24px; transform: rotate(-5deg); }
.closing-pages img:nth-child(2) { right: 20px; top: 62px; transform: rotate(4deg); }
.closing-pages img:nth-child(3) { left: 168px; bottom: 6px; transform: rotate(-1deg); }

.footer-mark {
  position: absolute;
  right: 36px;
  bottom: 26px;
  left: 36px;
  display: flex;
  justify-content: space-between;
  color: rgba(47, 66, 83, 0.64);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}
