:root {
  --ink: #180a2d;
  --ink-soft: #4c345f;
  --paper: #fff1c9;
  --paper-2: #fff8e7;
  --purple: #7014b8;
  --purple-dark: #270446;
  --red: #ff2a1f;
  --cyan: #21c6eb;
  --yellow: #ffdf33;
  --mint: #d6ffe9;
  --line: rgba(24, 10, 45, .16);
  --shadow: 0 26px 80px rgba(39, 4, 70, .22);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 42, 31, .22), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(33, 198, 235, .22), transparent 27rem),
    linear-gradient(135deg, #fff8e7 0%, #fff1c9 38%, #f4e0ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(112, 20, 184, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(112, 20, 184, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.04));
  z-index: -1;
}

img {
  max-width: 100%;
}

p {
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.78;
  margin: 0 0 1.2rem;
  color: rgba(24, 10, 45, .86);
}

strong {
  color: var(--purple-dark);
}

a {
  color: inherit;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 5px;
  z-index: 1000;
  background: rgba(24, 10, 45, .08);
}

.scroll-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--cyan));
  box-shadow: 0 0 24px rgba(255, 42, 31, .45);
}

.play-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
  width: min(var(--max), calc(100% - 28px));
  margin: 1rem auto 0;
  padding: .55rem .7rem .55rem .8rem;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 248, 231, .72);
  backdrop-filter: blur(22px);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(39, 4, 70, .16);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.play-header.is-stuck {
  background: rgba(255, 248, 231, .92);
  box-shadow: 0 16px 44px rgba(39, 4, 70, .22);
}

.brand-mark,
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark img,
.footer-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.nav-ribbon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
}

.nav-ribbon a,
.footer-nav a {
  text-decoration: none;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: -.01em;
}

.nav-ribbon a {
  padding: .8rem .9rem;
  border-radius: 999px;
  color: rgba(24, 10, 45, .72);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.nav-ribbon a:hover,
.nav-ribbon a.is-current {
  color: var(--paper-2);
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
  border-radius: 99px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

main {
  overflow: hidden;
}

.hero-board {
  width: min(var(--max), calc(100% - 34px));
  margin: 3rem auto 1.2rem;
  padding: clamp(2rem, 6vw, 5.4rem);
  min-height: 66vh;
  display: grid;
  align-items: end;
  border-radius: clamp(28px, 5vw, 64px);
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 223, 51, .92) 0 14%, transparent 14% 100%),
    radial-gradient(circle at 18% 82%, rgba(33, 198, 235, .42), transparent 17rem),
    radial-gradient(circle at 88% 18%, rgba(255, 42, 31, .38), transparent 22rem),
    linear-gradient(135deg, #5a0f97 0%, #2a064b 64%, #180a2d 100%);
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.hero-board::before,
.hero-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hero-board::before {
  width: 72vw;
  max-width: 740px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 25%;
  rotate: 18deg;
  right: -18%;
  top: -18%;
  background: linear-gradient(45deg, rgba(255, 255, 255, .08), transparent);
}

.hero-board::after {
  inset: auto 3rem 2.2rem auto;
  width: clamp(160px, 24vw, 360px);
  height: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--red) 0 42px, var(--cyan) 42px 84px, var(--yellow) 84px 126px);
  box-shadow: 0 14px 44px rgba(255, 42, 31, .32);
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.4rem;
  padding: .6rem 1rem;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .96;
  color: var(--ink);
}

h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 9vw, 7.9rem);
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, .86);
}

.hero-copy strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.primary-link,
.ghost-link,
.float-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.primary-link {
  color: var(--paper-2);
  background: var(--red);
  box-shadow: 0 14px 32px rgba(255, 42, 31, .32);
}

.ghost-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
}

.primary-link:hover,
.ghost-link:hover,
.float-cta:hover {
  transform: translateY(-2px);
}

.image-stage {
  width: min(var(--max), calc(100% - 34px));
  margin: clamp(1.2rem, 4vw, 3rem) auto;
}

.image-stage figure {
  margin: 0;
  padding: clamp(.65rem, 1.8vw, 1.1rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .2)),
    linear-gradient(135deg, var(--red), var(--purple), var(--cyan));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 12px);
  background: rgba(255, 248, 231, .6);
}

.image-stage figcaption {
  margin: .95rem .5rem .25rem;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(24, 10, 45, .72);
  font-weight: 780;
}

.first-stage {
  margin-top: -2.2rem;
}

.intro-stripe,
.chapter-map,
.ledger-section,
.format-arena,
.slot-chapter,
.bonus-dossier,
.mobile-zone,
.cashier-run,
.trust-grid,
.support-bay,
.risk-map,
.responsible-panel,
.final-read,
.faq-drawer {
  width: min(var(--max), calc(100% - 34px));
  margin: clamp(2rem, 7vw, 6.5rem) auto;
}

.intro-stripe {
  display: grid;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-radius: var(--radius-xl);
  background: rgba(255, 248, 231, .64);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 24px 70px rgba(39, 4, 70, .12);
  backdrop-filter: blur(18px);
}

.copy-well {
  max-width: 880px;
  margin-left: auto;
  border-left: 10px solid var(--red);
  padding: .5rem 0 .5rem clamp(1.1rem, 3vw, 2.2rem);
}

.chapter-label {
  width: fit-content;
  margin-bottom: 1rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-weight: 1000;
  color: var(--paper-2);
  background: var(--purple-dark);
  box-shadow: 0 10px 28px rgba(39, 4, 70, .18);
}

h2 {
  max-width: 1020px;
  font-size: clamp(2.1rem, 6.6vw, 5.8rem);
  margin-bottom: clamp(1.3rem, 3vw, 2.3rem);
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.35rem, 3.2vw, 2.45rem);
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 1rem;
}

.text-block {
  max-width: 940px;
}

.text-block.narrow {
  max-width: 780px;
}

.stack-copy p {
  max-width: 890px;
}

.chapter-map {
  padding-top: 1rem;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 231, .76);
  box-shadow: 0 24px 70px rgba(39, 4, 70, .12);
  margin-top: 1.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1.05rem 1rem;
  border-bottom: 1px solid rgba(24, 10, 45, .12);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--paper-2);
  background: var(--purple-dark);
  font-size: .86rem;
  line-height: 1.3;
  letter-spacing: .02em;
}

td {
  font-size: .98rem;
  line-height: 1.56;
  color: rgba(24, 10, 45, .84);
}

tbody tr {
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  cursor: pointer;
}

tbody tr:hover,
tbody tr.row-focus {
  background: rgba(255, 223, 51, .22);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.format-arena {
  padding: clamp(1.3rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(33, 198, 235, .18), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 248, 231, .56));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
}

.card-table table {
  min-width: 860px;
}

.slot-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.method-panel,
.flow-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(255, 248, 231, .72);
  box-shadow: 0 22px 58px rgba(39, 4, 70, .12);
}

.method-panel ul,
.method-panel ol,
.flow-card ul,
.flow-card ol,
.responsible-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.method-panel li,
.flow-card li,
.responsible-panel li {
  padding: .42rem 0;
  line-height: 1.62;
  color: rgba(24, 10, 45, .86);
}

.method-panel h3,
.flow-card h3 {
  margin-top: 0;
}

.dual-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.flow-card {
  min-height: 100%;
}

.accent-card {
  background: linear-gradient(135deg, rgba(255, 42, 31, .12), rgba(255, 223, 51, .26));
  border-color: rgba(255, 42, 31, .22);
}

.bonus-dossier {
  position: relative;
  padding: clamp(1rem, 4vw, 2.6rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 42, 31, .22), transparent 18rem),
    rgba(255, 248, 231, .62);
  box-shadow: 0 24px 80px rgba(39, 4, 70, .14);
}

.mobile-zone {
  padding-bottom: 1rem;
}

.cashier-run {
  background: var(--purple-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 4.5vw, 3.2rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cashier-run::before {
  content: "";
  position: absolute;
  inset: -28% auto auto -10%;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(33, 198, 235, .28);
  filter: blur(18px);
}

.cashier-run h2,
.cashier-run h3,
.cashier-run p,
.cashier-run li,
.cashier-run .chapter-label {
  color: #fff;
}

.cashier-run p,
.cashier-run li {
  color: rgba(255, 255, 255, .84);
}

.cashier-run .chapter-label {
  background: var(--red);
}

.cashier-run .flow-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
}

.cashier-run .accent-card {
  background: rgba(255, 223, 51, .1);
  border-color: rgba(255, 223, 51, .24);
}

.after-flow {
  margin-top: 1.4rem;
  position: relative;
}

.compact-panel {
  max-width: 900px;
}

.support-bay,
.risk-map {
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 4vw, 2.6rem);
  background: rgba(255, 248, 231, .62);
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow: 0 22px 70px rgba(39, 4, 70, .12);
}

.responsible-panel {
  display: grid;
  gap: 1rem;
}

.final-read {
  padding: clamp(1rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 223, 51, .45), rgba(33, 198, 235, .22)),
    rgba(255, 248, 231, .7);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow);
}

.faq-drawer {
  max-width: 960px;
}

.faq-list {
  display: grid;
  gap: .85rem;
}

.faq-item {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 248, 231, .82);
  border: 1px solid rgba(24, 10, 45, .12);
  box-shadow: 0 18px 48px rgba(39, 4, 70, .08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--purple-dark);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 99px;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 2px;
}

.faq-icon::after {
  transform: rotate(90deg);
  transition: transform .25s var(--ease);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.2rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
}

.faq-question[aria-expanded="true"] + .faq-answer p {
  padding-bottom: 1.1rem;
}

.float-cta {
  position: fixed;
  z-index: 800;
  right: 1.2rem;
  bottom: 1.2rem;
  min-height: 48px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 18px 48px rgba(255, 42, 31, .32);
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}

.float-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  width: min(var(--max), calc(100% - 34px));
  margin: clamp(2rem, 7vw, 6rem) auto 1.2rem;
  padding: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 34px;
  background: var(--purple-dark);
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.footer-nav a {
  padding: .72rem .9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.footer-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

@media (max-width: 980px) {
  .play-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-ribbon {
    position: absolute;
    top: calc(100% + .8rem);
    left: 0;
    right: 0;
    display: grid;
    gap: .45rem;
    padding: .7rem;
    border-radius: 26px;
    background: rgba(255, 248, 231, .96);
    box-shadow: 0 22px 58px rgba(39, 4, 70, .18);
    transform-origin: top;
    transform: scaleY(.96) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }

  .nav-ribbon.is-open {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-ribbon a {
    padding: .95rem 1rem;
  }

  .hero-board {
    min-height: auto;
  }

  .dual-flow {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-xl: 30px;
    --radius-lg: 22px;
  }

  .play-header,
  .hero-board,
  .image-stage,
  .intro-stripe,
  .chapter-map,
  .ledger-section,
  .format-arena,
  .slot-chapter,
  .bonus-dossier,
  .mobile-zone,
  .cashier-run,
  .trust-grid,
  .support-bay,
  .risk-map,
  .responsible-panel,
  .final-read,
  .faq-drawer,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .brand-mark img,
  .footer-logo img {
    width: 132px;
  }

  .hero-board {
    margin-top: 1.4rem;
    padding: 1.35rem;
    border-radius: 32px;
  }

  .hero-board::after {
    right: 1.5rem;
    bottom: 1rem;
    width: 130px;
    height: 9px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
  }

  .first-stage {
    margin-top: .8rem;
  }

  .image-stage figure {
    padding: .5rem;
    border-radius: 26px;
  }

  .image-stage img {
    border-radius: 20px;
  }

  .copy-well {
    border-left-width: 7px;
  }

  th,
  td {
    padding: .85rem;
  }

  .float-cta {
    right: .8rem;
    bottom: .8rem;
  }
}
