:root {
  --leaf-deep: #1f3b2d;
  --leaf-mid: #2f5a43;
  --linen-sand: #f3ecdc;
  --oat-cream: #faf6ec;
  --moss-soft: #dfe5d2;
  --wheat-gold: #c9a45c;
  --bark-ink: #1e2a22;
  --radius-soft: 18px;
  --radius-arch: 999px 999px 0 0;
  --shadow-warm: 0 24px 50px -22px rgba(31, 59, 45, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.atlas-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--bark-ink);
  background: var(--oat-cream);
  overflow-wrap: break-word;
}

.atlas-page {
  width: 100%;
  overflow: hidden;
}

.atlas-body h1,
.atlas-body h2,
.atlas-body h3 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  color: var(--leaf-deep);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

.atlas-body h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.atlas-body h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600;
}

.atlas-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
}

.atlas-body p {
  margin: 0 0 1em;
  max-width: 38rem;
}

.atlas-body img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.atlas-body a {
  color: var(--leaf-mid);
}

.atlas-body a:focus-visible,
.atlas-cta:focus-visible,
.atlas-body button:focus-visible,
.atlas-body input:focus-visible {
  outline: 3px solid var(--wheat-gold);
  outline-offset: 3px;
}

.atlas-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat-gold);
  margin-bottom: 1rem !important;
}

/* ---------- HERO ---------- */
.atlas-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 1.25rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 164, 92, 0.18), transparent 45%),
    var(--linen-sand);
}

.atlas-hero-text {
  max-width: 38rem;
}

.atlas-subtitle {
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  color: var(--leaf-mid);
}

.atlas-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 1.1rem 2.4rem;
  border-radius: var(--radius-soft);
  background: var(--leaf-deep);
  color: var(--oat-cream);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: var(--shadow-warm);
  transition: background 0.2s ease;
}

.atlas-cta:hover {
  background: var(--leaf-mid);
}

.atlas-hero-visual {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.atlas-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-warm);
}

/* ---------- COVER (CSS) ---------- */
.atlas-cover {
  position: relative;
  width: min(68%, 260px);
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 2rem 1.4rem 1.6rem 2rem;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(160deg, #3d6f52 0%, #1f3b2d 60%, #15291f 100%);
  color: var(--linen-sand);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.atlas-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, #0f1f17, #29503c 60%, #1a3327);
}

.atlas-cover::after {
  content: "";
  position: absolute;
  inset: 10px 10px 10px 24px;
  border: 1px solid rgba(201, 164, 92, 0.6);
  border-radius: 4px;
  pointer-events: none;
}

.atlas-cover-series {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wheat-gold);
}

.atlas-cover-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--oat-cream);
}

.atlas-cover-sub {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}

.atlas-cover-author {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(201, 164, 92, 0.6);
  padding-top: 0.6rem;
}

.atlas-cover-small {
  width: min(70%, 200px);
  padding: 1.4rem 1rem 1.2rem 1.5rem;
}

.atlas-cover-small .atlas-cover-title {
  font-size: 1.25rem;
}

.atlas-cover-small .atlas-cover-sub {
  display: none;
}

.atlas-hero-visual .atlas-cover {
  position: absolute;
  left: -0.5rem;
  bottom: 0;
}

/* ---------- SCREENS 2–3 ---------- */
.atlas-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 1.25rem;
}

.atlas-screen-two {
  background: var(--oat-cream);
}

.atlas-screen-three {
  background: var(--moss-soft);
}

.atlas-copy {
  max-width: 38rem;
}

.atlas-figure {
  margin: 0;
  width: 100%;
  max-width: 28rem;
  align-self: center;
}

.atlas-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-warm);
}

.atlas-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.atlas-features li {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--wheat-gold);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

.atlas-chapters {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: chapter;
  display: grid;
  gap: 1.4rem;
}

.atlas-chapters li {
  counter-increment: chapter;
  position: relative;
  padding-left: 3.4rem;
}

.atlas-chapters li::before {
  content: counter(chapter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--leaf-deep);
  color: var(--oat-cream);
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.atlas-chapters h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 0.3em;
}

.atlas-chapters p {
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- ORDER (SCREEN 4) ---------- */
.atlas-order {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 1.25rem;
  background:
    radial-gradient(circle at 15% 85%, rgba(201, 164, 92, 0.15), transparent 50%),
    var(--leaf-deep);
  color: var(--linen-sand);
}

.atlas-order h2 {
  color: var(--oat-cream);
}

.atlas-order p {
  color: var(--moss-soft);
}

.atlas-order-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.atlas-order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 1rem;
  color: var(--moss-soft);
}

.atlas-order-lines li {
  padding: 0.3rem 0;
}

.atlas-order-form {
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
}

.atlas-order form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.atlas-order label {
  font-weight: 600;
  color: var(--oat-cream);
  margin-top: 0.6rem;
}

.atlas-order input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1.1rem;
  font: inherit;
  font-size: 1.125rem;
  color: var(--bark-ink);
  background: var(--oat-cream);
  border: 2px solid transparent;
  border-radius: var(--radius-soft);
}

.atlas-order input::placeholder {
  color: #7a8478;
}

.atlas-order input:focus-visible {
  border-color: var(--wheat-gold);
}

.atlas-order button {
  margin-top: 1rem;
  min-height: 3.8rem;
  padding: 0.9rem 1.5rem;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--leaf-deep);
  background: var(--wheat-gold);
  border: none;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.atlas-order button:hover {
  background: #d8b570;
  transform: translateY(-1px);
}

.atlas-consent {
  font-size: 0.95rem !important;
  margin-top: 1.2rem !important;
  color: var(--moss-soft) !important;
}

.atlas-order .atlas-consent a {
  color: var(--oat-cream);
}

/* ---------- FOOTER ---------- */
.atlas-footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.95rem;
  background: #142a1f;
  color: var(--moss-soft);
}

.atlas-footer p {
  margin: 0.4rem auto;
  max-width: 40rem;
}

.atlas-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1rem;
}

.atlas-footer a {
  color: var(--wheat-gold);
}

.atlas-disclaimer {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- LEGAL PAGES ---------- */
.legal-wrap {
  min-height: 100svh;
  padding: 3rem 1.25rem 4rem;
  background: var(--oat-cream);
}

.legal-doc {
  max-width: 44rem;
  margin: 0 auto;
}

.legal-doc h1 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--leaf-deep);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.legal-section {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(47, 90, 67, 0.25);
}

.legal-section h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--leaf-deep);
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 1.05rem;
  margin: 0;
}

.legal-back {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--leaf-mid);
}

.legal-back:hover {
  text-decoration: underline;
}

/* ---------- ADAPTIVE (≥ 900px) ---------- */
@media (min-width: 900px) {
  .atlas-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 5rem 6vw;
  }

  .atlas-hero-text {
    flex: 1 1 50%;
  }

  .atlas-hero-visual {
    flex: 1 1 45%;
    margin: 0;
  }

  .atlas-screen {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    padding: 5rem 6vw;
  }

  .atlas-screen-reverse {
    flex-direction: row-reverse;
  }

  .atlas-copy {
    flex: 1 1 55%;
  }

  .atlas-figure {
    flex: 1 1 40%;
    margin: 0;
  }

  .atlas-order {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 5rem 6vw;
  }

  .atlas-order-side {
    flex: 1 1 40%;
  }

  .atlas-order-form {
    flex: 1 1 50%;
    margin: 0;
  }

  .legal-wrap {
    padding: 5rem 6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-cta,
  .atlas-order button {
    transition: none;
  }
}