:root {
  color-scheme: light;
  --night: #111127;
  --violet: #252345;
  --ivory: #f9f4e9;
  --ink: #22213a;
  --lavender: #e4d9fa;
  --soft: #e2daea;
  --amber: #ffc18b;
  --line: rgba(227, 214, 249, .22);
  --shadow: 0 24px 65px rgba(8, 5, 20, .33);
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 11% 15%, #30406d 0, transparent 48rem),
    radial-gradient(ellipse at 90% 29%, #493060 0, transparent 42rem),
    linear-gradient(150deg, #1d1c3b, var(--night) 72%);
  font: 1rem/1.6 system-ui, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:is(a, button, input):focus-visible { outline: 3px solid #ad85f2; outline-offset: 4px; }
cite { font-style: italic; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: .8rem;
  left: .8rem;
  padding: .6rem 1rem;
  color: var(--ink);
  background: var(--ivory);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }
.page-shell { width: min(1160px, calc(100% - 3.5rem)); margin-inline: auto; }

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-bar { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font: 700 1rem/1.1 var(--display);
  letter-spacing: .085em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  box-shadow: 0 3px 16px rgba(9, 6, 23, .36);
}

.reader-note, .eyebrow, .cover-stage figcaption {
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.reader-note { color: var(--lavender); text-align: right; }
.eyebrow { margin: 0 0 .85rem; color: var(--amber); }
.eyebrow span { margin-right: .25rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas: "book copy";
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.8rem, 6vw, 5.4rem);
}

.hero-copy { grid-area: copy; }

h1, h2 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
.hero h1 em { display: block; color: var(--lavender); font-weight: 500; }
.intro { max-width: 51ch; margin: 1.2rem 0 1.35rem; color: var(--soft); }

.cover-stage {
  grid-area: book;
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(2rem, 4.5vw, 3.6rem) 1rem 1.3rem;
  border: 1px solid rgba(231, 209, 255, .28);
  border-radius: 1.6rem;
  background:
    radial-gradient(ellipse at 25% 10%, rgba(90, 81, 167, .45), transparent 63%),
    linear-gradient(142deg, rgba(31, 26, 70, .54), rgba(15, 20, 39, .55)),
    #16363c url("fond-couverture.webp") center / cover;
  box-shadow: var(--shadow);
}

.book {
  position: relative;
  width: min(72%, 295px);
  margin-bottom: 1.6rem;
  border-radius: 3px 7px 7px 3px;
  transform: perspective(950px) rotateY(-12deg) rotateZ(-4deg);
  box-shadow: 15px 25px 36px rgba(2, 8, 13, .63);
}

.book::after {
  position: absolute;
  z-index: -1;
  inset: 1% -12px 1% auto;
  width: 17px;
  border: 1px solid #8f8179;
  border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(90deg, #d2c2ae 0 1px, #efe4d3 1px 3px);
  content: "";
}

.book img { width: 100%; border-radius: inherit; }
.cover-stage figcaption { color: #fff6ed; text-align: center; }
.cover-stage figcaption span { margin-inline: .2em; color: var(--amber); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .55rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgba(249, 244, 233, .06);
  color: var(--ivory);
  font-size: .8rem;
  line-height: 1.2;
}

.steps strong {
  display: grid;
  flex: 0 0 2.1rem;
  place-items: center;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--ink);
  font-size: .78rem;
}

.access-card {
  padding: .75rem .8rem .65rem;
  border: 1px solid rgba(255, 249, 233, .7);
  border-radius: .95rem;
  background: var(--ivory);
  box-shadow: 0 12px 36px rgba(12, 9, 23, .24);
}

.claim-form {
  padding: clamp(1rem, 2.3vw, 1.45rem);
  color: var(--ink);
}

.field-row + .field-row { margin-top: .8rem; }
.field-row label { display: block; margin-bottom: .28rem; font-size: .88rem; font-weight: 750; }
.field-row input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .55rem .75rem;
  border: 1px solid #a79db7;
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field-row label span, .consent-row label span { color: #91394e; }
.consent-row {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  margin-top: .9rem;
  color: #403a52;
  font-size: .84rem;
  line-height: 1.45;
}

.consent-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin: .1rem 0 0;
  accent-color: #563887;
}

.consent-row :is(input, label) { cursor: pointer; }
.consent-row a { color: #563887; font-weight: 700; }
.claim-form .primary-button { width: 100%; margin-top: 1rem; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
.direct-access { margin: .8rem 0 0; color: var(--lavender); font-size: .87rem; }

.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding: .7rem .9rem;
  border-radius: .55rem;
  color: #211425;
  background: linear-gradient(130deg, #ffd4a6, #ffac69);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, box-shadow .18s, transform .18s;
}

.primary-button span { font-size: 1.35em; line-height: 1; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 5px 13px rgba(90, 47, 46, .23); }
.file-note { margin: .45rem 0 0; color: #514b64; font-size: .82rem; text-align: center; }

.promise {
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1.2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(110deg, rgba(75, 85, 141, .2), rgba(94, 53, 121, .22));
  text-align: center;
}

.promise h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
.promise p:last-child { max-width: 70ch; margin: .85rem auto 0; color: var(--soft); }

.footer {
  display: grid;
  justify-items: start;
  gap: .6rem;
  margin-top: 2.8rem;
  padding-block: 1.1rem 5rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: .83rem;
}

.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 1.3rem; row-gap: .45rem; }
.footer a:hover, .footer a[aria-current] { color: white; }

.download-wrap, .legal-wrap { padding-top: clamp(1.5rem, 5vw, 4rem); }
.download-card, .legal-card {
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 1.4rem;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.download-card { max-width: 940px; padding: clamp(1.25rem, 4vw, 3rem); text-align: center; }
.download-card .eyebrow { color: #684696; }
.download-card h1, .legal-card h1 { font-size: clamp(2.1rem, 5vw, 4rem); overflow-wrap: anywhere; }
.signature { width: 118px; margin: 0 auto 1.25rem; }
.download-lead { max-width: 57ch; margin: .85rem auto 1.7rem; }

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "previews copy";
  align-items: center;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid #ddd0ea;
  border-radius: 1rem;
  background: #f1eaf5;
  text-align: left;
}

.bonus-preview {
  grid-area: previews;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: .65rem;
  padding: .45rem;
}

.bonus-preview img { width: 100%; border-radius: 3px; box-shadow: 0 7px 18px rgba(32, 22, 48, .2); }
.bonus-preview img:first-child { transform: rotate(-5deg); }
.bonus-preview img:last-child { transform: rotate(4deg); }
.collection-preview { align-items: end; }
.thanks-retry { margin: 0; color: #514b64; font-size: .87rem; }
.download-copy { grid-area: copy; }
.download-copy h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.download-copy p:not(.eyebrow, .file-note) { margin: .6rem 0 .9rem; }
.back-link { color: #543483; font-weight: 700; }
.back-link span { margin-right: .2rem; }

.legal-card { max-width: 790px; padding: clamp(1.25rem, 5vw, 3.35rem); }
.legal-card h1 { margin-top: 1.35rem; }
.legal-date { margin-bottom: 1.8rem; color: #61586d; font-size: .9rem; }
.legal-card h2 { margin-top: 1.6rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.legal-card p { margin-top: .6rem; }
.legal-card a { overflow-wrap: anywhere; }

@media (max-width: 930px) and (min-width: 751px) {
  .steps li { flex-direction: column; text-align: center; }
  .steps strong { flex: none; width: 2.1rem; }
}

@media (max-width: 750px) {
  .page-shell { width: calc(100% - 2.25rem); }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "book";
    gap: 1.6rem;
    padding-block: 2.1rem 1.8rem;
  }
  .brand-bar { min-height: 70px; }
  .brand { gap: .45rem; font-size: .85rem; }
  .brand img { width: 38px; }
  .reader-note { font-size: .63rem; }
  .cover-stage { padding-top: 2rem; }
  .book { width: min(65%, 255px); }
  .download-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "previews";
  }
  .bonus-preview { width: min(100%, 290px); margin-inline: auto; }
}

@media (max-width: 640px) {
  .footer nav { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .steps li { flex-direction: column; align-items: start; }
  .steps strong { flex: none; width: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button { transition: none; }
}
