:root {
  --ink: #191615;
  --muted: #73685f;
  --paper: #f7efe4;
  --paper-2: #fffaf2;
  --cream: #efe0ce;
  --line: rgba(25, 22, 21, .12);
  --line-strong: rgba(25, 22, 21, .2);
  --red: #ff2b22;
  --red-dark: #b71613;
  --coffee: #6c4430;
  --smoke: rgba(255, 255, 255, .68);
  --shadow: 0 24px 70px rgba(48, 30, 20, .14);
  --shadow-hard: 0 18px 0 rgba(255, 43, 34, .12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,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", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 43, 34, .18), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(108, 68, 48, .14), transparent 27rem),
    linear-gradient(135deg, #fff7eb 0%, #f0deca 47%, #fbf4e8 100%);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 22, 21, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 22, 21, .025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
}

body::after {
  width: 56vmax;
  height: 56vmax;
  right: -30vmax;
  top: 18vh;
  background: radial-gradient(circle, rgba(255,43,34,.2), transparent 62%);
  filter: blur(18px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  font-size: clamp(1rem, .7vw + .84rem, 1.14rem);
}

p + p {
  margin-top: 1.1rem;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(2.45rem, 6.6vw, 6.7rem);
  max-width: 12.5ch;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 4.4rem);
  max-width: 13ch;
}

h3 {
  font-size: clamp(1.2rem, 1.2vw, 1.65rem);
}

ul, ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: .72rem;
}

.route-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 50;
  background: rgba(255, 255, 255, .22);
}

.route-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), #8a1a16);
  box-shadow: 0 0 20px rgba(255, 43, 34, .55);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(calc(100% - 24px), var(--max));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(255, 250, 242, .68);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 45px rgba(54, 34, 23, .12);
}

.topbar.is-compact {
  background: rgba(255, 250, 242, .86);
  box-shadow: 0 18px 55px rgba(54, 34, 23, .17);
}

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

.brand img,
.footer-logo img {
  width: 136px;
  height: auto;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(25, 22, 21, .045);
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  background: var(--paper-2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper-2);
  border-radius: 20px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
}

section {
  scroll-margin-top: 110px;
}

.cover-shell {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(340px, .9fr);
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: end;
  padding: clamp(34px, 7vw, 96px) 0 34px;
}

.cover-copy {
  align-self: center;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, .7);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: var(--shadow-hard), var(--shadow);
  position: relative;
}

.cover-copy::after {
  content: "";
  position: absolute;
  inset: 18px -10px -10px 18px;
  border: 1px solid rgba(255, 43, 34, .28);
  border-radius: inherit;
  z-index: -1;
}

.micro-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.micro-label::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 10px;
  background: var(--red);
}

.cover-copy p:not(.micro-label) {
  max-width: 66ch;
  margin-top: 24px;
  color: #3d332e;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta,
.float-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.cta:hover,
.float-cta:hover {
  transform: translateY(-3px);
}

.cta.primary,
.float-cta {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 35px rgba(255, 43, 34, .32);
}

.cta.secondary {
  color: var(--ink);
  background: rgba(25, 22, 21, .08);
  border: 1px solid rgba(25, 22, 21, .12);
}

.image-plate {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .66);
  background: rgba(255, 250, 242, .72);
  box-shadow: var(--shadow);
}

.image-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-plate figcaption {
  font-size: .92rem;
  color: #5f524a;
  background: rgba(255, 250, 242, .84);
  padding: 16px 18px;
  border-top: 1px solid rgba(25, 22, 21, .08);
}

.cover-visual {
  align-self: stretch;
  min-height: 520px;
  transform: rotate(1.25deg);
}

.cover-visual img {
  min-height: 470px;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 52px);
  margin: 16px 0 clamp(48px, 8vw, 90px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(25,22,21,.9), rgba(64,43,33,.92));
  color: #fff5e9;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro-band::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -80%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 50px solid rgba(255, 43, 34, .18);
}

.intro-band p {
  position: relative;
  z-index: 1;
}

.matrix-stage,
.mobile-scroll,
.info-atlas,
.game-lab,
.trust-lane,
.support-grid,
.risk-lens,
.final-decision,
.faq-drawer {
  padding: clamp(34px, 6vw, 76px) 0;
}

.split-rhythm,
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  margin: 24px 0 24px;
  max-width: 1000px;
}

.table-frame {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 22, 21, .13);
  background: rgba(255, 250, 242, .72);
  box-shadow: var(--shadow);
  outline: none;
}

.table-frame:focus-within,
.table-frame:focus {
  box-shadow: 0 0 0 4px rgba(255,43,34,.12), var(--shadow);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(25,22,21,.1);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red-dark);
  background: rgba(255, 248, 238, .96);
}

td {
  color: #403631;
  background: rgba(255,255,255,.22);
}

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

tbody tr:hover,
tbody tr.is-marked {
  background: rgba(255, 43, 34, .075);
}

tbody tr.is-marked td:first-child {
  color: var(--red-dark);
  font-weight: 900;
}

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

.intent-map table,
.risk-table table {
  min-width: 900px;
}

.gate-layout {
  padding: clamp(38px, 6vw, 86px) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "copy checklist"
    "note checklist"
    "image image";
  gap: 24px;
  align-items: start;
}

.gate-copy {
  grid-area: copy;
}

.check-panel,
.steps-board {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(25,22,21,.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,250,242,.78)),
    radial-gradient(circle at top right, rgba(255,43,34,.12), transparent 45%);
  box-shadow: var(--shadow);
}

.check-panel {
  grid-area: checklist;
}

.check-panel h3,
.steps-board h3 {
  margin-bottom: 20px;
}

.soft-list {
  list-style: none;
  padding: 0;
}

.soft-list li {
  position: relative;
  padding-left: 34px;
}

.soft-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 0 0 1px rgba(255,43,34,.22);
}

.wide-note {
  grid-area: note;
  padding: 20px 22px;
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 250, 242, .7);
}

.login-plate {
  grid-area: image;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: stretch;
}

.login-plate img {
  min-height: 370px;
}

.login-plate figcaption {
  display: flex;
  align-items: end;
  font-size: 1.1rem;
  border-top: 0;
  border-left: 1px solid rgba(25, 22, 21, .08);
}

.mobile-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mobile-choice {
  margin: 8px 0 24px;
}

.steps-board ol {
  counter-reset: route;
  padding-left: 0;
  list-style: none;
}

.steps-board li {
  counter-increment: route;
  padding: 16px 0 16px 54px;
  position: relative;
  border-bottom: 1px solid rgba(25,22,21,.08);
}

.steps-board li:last-child {
  border-bottom: 0;
}

.steps-board li::before {
  content: counter(route);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: .9rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.info-atlas {
  position: relative;
}

.info-atlas > p,
.support-grid > p,
.risk-lens > p {
  margin-top: 20px;
  margin-bottom: 24px;
  max-width: 780px;
}

.cash-route {
  padding: clamp(42px, 7vw, 90px) 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  grid-template-areas:
    "copy image"
    "steps image"
    "check check";
  gap: 24px;
  align-items: stretch;
}

.cash-copy {
  grid-area: copy;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 250, 242, .78);
  border: 1px solid rgba(25,22,21,.1);
  box-shadow: var(--shadow-hard), var(--shadow);
}

.cash-plate {
  grid-area: image;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.cash-plate img {
  min-height: 520px;
}

.cash-steps {
  grid-area: steps;
}

.cash-check {
  grid-area: check;
}

.bonus-dossier {
  padding: clamp(42px, 7vw, 90px) 0;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .95fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.bonus-dossier .steps-board {
  margin: 24px 0;
}

.bonus-plate {
  transform: rotate(-1.2deg);
}

.bonus-plate img {
  min-height: 350px;
}

.game-lab {
  position: relative;
  padding-inline: clamp(0px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 43, 34, .18), transparent 28rem),
    rgba(25, 22, 21, .92);
  color: var(--paper-2);
  box-shadow: var(--shadow);
}

.game-lab .section-kicker,
.game-lab .section-kicker::before {
  color: #ffb4ae;
}

.game-lab .section-kicker::before {
  background: #ffb4ae;
}

.game-lab p {
  color: #f6dfcf;
}

.game-lab .table-frame {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.game-lab th {
  background: rgba(35,28,26,.98);
  color: #ffb4ae;
}

.game-lab td {
  color: #fff2e9;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}

.trust-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: start;
}

.trust-lane .section-kicker,
.trust-lane h2,
.trust-lane > p {
  grid-column: 1;
}

.wide-check {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.final-decision {
  margin: clamp(28px, 5vw, 70px) 0;
  padding: clamp(30px, 5vw, 66px);
  border-radius: var(--radius-xl);
  color: #fff6ed;
  background:
    linear-gradient(135deg, rgba(255, 43, 34, .92), rgba(124, 20, 17, .96)),
    radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 36%);
  box-shadow: var(--shadow);
}

.final-decision .section-kicker,
.final-decision .section-kicker::before {
  color: #fff1e8;
}

.final-decision .section-kicker::before {
  background: #fff1e8;
}

.final-decision h2 {
  max-width: 14ch;
}

.final-decision p {
  max-width: 900px;
}

.faq-drawer {
  padding-bottom: clamp(70px, 10vw, 120px);
}

.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(25,22,21,.12);
  background: rgba(255,250,242,.72);
  box-shadow: 0 16px 40px rgba(48, 30, 20, .08);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 22px 56px 22px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

.faq-trigger::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  transition: transform .25s var(--ease);
}

.faq-trigger[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--ease);
}

.faq-panel p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  min-height: 50px;
  padding-inline: 22px;
  opacity: 0;
  pointer-events: none;
}

.float-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25,22,21,.12);
  background: rgba(255,250,242,.76);
  box-shadow: var(--shadow);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer nav a:hover {
  color: var(--red-dark);
}

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

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

@media (max-width: 1020px) {
  h1 {
    max-width: 15ch;
  }

  h2 {
    max-width: 16ch;
  }

  .cover-shell,
  .gate-layout,
  .cash-route,
  .dossier-grid,
  .trust-lane {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .cover-copy,
  .cover-visual,
  .gate-copy,
  .check-panel,
  .wide-note,
  .login-plate,
  .cash-copy,
  .cash-plate,
  .cash-steps,
  .cash-check,
  .wide-check {
    grid-area: auto;
  }

  .cover-visual {
    min-height: auto;
    transform: none;
  }

  .cover-visual img,
  .cash-plate img {
    min-height: auto;
  }

  .login-plate {
    grid-template-columns: 1fr;
  }

  .login-plate figcaption {
    border-left: 0;
    border-top: 1px solid rgba(25, 22, 21, .08);
  }

  .trust-lane .section-kicker,
  .trust-lane h2,
  .trust-lane > p,
  .wide-check {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  body {
    line-height: 1.62;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 250, 242, .96);
    border: 1px solid rgba(25,22,21,.12);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }

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

  .main-nav a {
    padding: 14px 16px;
  }

  .cover-shell {
    padding-top: 26px;
    min-height: auto;
  }

  .intro-band,
  .split-rhythm,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .intro-band {
    margin-bottom: 34px;
  }

  .steps-board li {
    padding-left: 48px;
  }

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

  .float-cta {
    left: 18px;
    right: 18px;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer,
  .topbar {
    width: min(calc(100% - 18px), var(--max));
  }

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

  .cover-copy,
  .check-panel,
  .steps-board,
  .cash-copy,
  .final-decision {
    padding: 20px;
    border-radius: 22px;
  }

  .image-plate {
    border-radius: 22px;
  }

  .table-frame {
    border-radius: 18px;
  }

  th, td {
    padding: 14px;
  }

  .cover-actions {
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
