:root {
  --bg: #fdf9f6;
  --bg-alt: #ffffff;
  --text: #1f1c19;
  --muted: #5d5853;
  --accent: #d62828;
  --accent-dark: #b71f1f;
  --accent-soft: #fce9e8;
  --line: #e9e1db;
  --shadow: 0 18px 45px rgba(31, 28, 25, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 12%, rgba(214, 40, 40, 0.12), transparent 40%),
    radial-gradient(circle at 90% 8%, rgba(214, 40, 40, 0.1), transparent 35%),
    linear-gradient(140deg, rgba(214, 40, 40, 0.08), transparent 45%);
}

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

a:hover {
  color: var(--accent-dark);
}

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

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 246, 0.9);
  border-bottom: 1px solid rgba(233, 225, 219, 0.7);
  backdrop-filter: blur(10px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-family: "Source Serif 4", "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.logo--header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}

.logo--footer {
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 28, 25, 0.12);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn--small {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn--disabled {
  background: #f3efeb;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  box-shadow: none;
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.hero-content h1 {
  font-family: font-family: "Source Serif 4", "Georgia", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 12px 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
}

.lead {
  font-size: 1.3rem;
  font-weight: 600;
  max-width: 520px;
}

.lead-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 16px;
}

.hero-highlights {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "• ";
  color: var(--accent);
}

.signup-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.signup-card h2,
.signup-card p {
  margin: 0;
}

.signup-card .form-note {
  margin: 0;
}

#inscription {
  scroll-margin-top: 96px;
}

.mc-form {
  display: grid;
  gap: 14px;
}

.mc-fields {
  display: grid;
  gap: 8px;
}

.field-label {
  font-weight: 600;
}

.field-input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.field-input:focus {
  outline: 2px solid rgba(214, 40, 40, 0.25);
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.hero-media {
  display: grid;
  gap: 16px;
}

.cover-frame {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.cover-caption {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.buy-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.buy-card .chip {
  margin-bottom: 0;
  align-self: flex-start;
  padding: 6px 12px;
  text-indent: -12px;
}

.buy-card p {
  margin: 0;
}

.buy-price {
  display: grid;
  gap: 4px;
}

.buy-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.buy-price-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.buy-actions {
  display: grid;
  gap: 10px;
}

.buy-actions .btn {
  width: 100%;
}

.buy-status--error {
  color: var(--accent-dark);
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 96px;
}

.hero + .section {
  padding-top: 16px;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: "Source Serif 4", "Georgia", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 620px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(31, 28, 25, 0.06);
}

.card h3 {
  margin-top: 0;
}

.card.quote {
  background: var(--accent-soft);
  border-color: rgba(214, 40, 40, 0.15);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.carousel {
  position: relative;
  --carousel-card-width: min(50%, 80vw);
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100% - var(--carousel-card-width)) / 2));
  padding: 12px max(24px, calc((100% - var(--carousel-card-width)) / 2)) 24px;
  scrollbar-gutter: stable;
}

.carousel-card {
  flex: 0 0 var(--carousel-card-width);
  scroll-snap-align: center;
}

.carousel--left .carousel-track {
  scroll-padding-inline: 24px;
  padding: 12px 24px 24px;
}

.carousel--left .carousel-card {
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(31, 28, 25, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

.carousel-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 720px) {
  .carousel-btn {
    display: none;
  }
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.panel ul,
.panel ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.panel.excerpt {
  background: var(--accent-soft);
}

.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.author-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  object-fit: cover;
}

.author-role {
  color: var(--accent-dark);
  font-weight: 600;
  margin: 4px 0 10px;
}

.purchase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.purchase-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px 18px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.section-cta {
  background: var(--accent);
  color: #fff;
}

.section-cta .cta-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.section-cta .section-lead,
.section-cta .form-note {
  color: rgba(255, 255, 255, 0.85);
}

.section-cta .field-input {
  border-color: transparent;
}

.section-cta .btn--primary {
  background: #fff;
  color: var(--accent);
}

.site-footer {
  padding: 48px 0 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  background: #f6f1ed;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.footnote {
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.3s; }
.delay-6 { animation-delay: 0.36s; }

.grid-cards .card {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.grid-cards .card:nth-child(1) { animation-delay: 0.05s; }
.grid-cards .card:nth-child(2) { animation-delay: 0.12s; }
.grid-cards .card:nth-child(3) { animation-delay: 0.19s; }
.grid-cards .card:nth-child(4) { animation-delay: 0.26s; }
.grid-cards .card:nth-child(5) { animation-delay: 0.33s; }
.grid-cards .card:nth-child(6) { animation-delay: 0.4s; }

@media (max-width: 980px) {
  .hero-grid,
  .grid-two,
  .section-cta .cta-panel {
    grid-template-columns: 1fr;
  }

  .header-grid {
    grid-template-columns: auto 1fr;
  }

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

  .purchase-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .purchase-actions {
    width: 100%;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 80px;
  }

  .header-grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .grid-cards .card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
