:root {
  --mist-bg: #f6f1fb;
  --blush-glow: #f7d9d4;
  --lilac-soft: #d9d2f0;
  --sky-pale: #d4eaf2;
  --peach-warm: #fbe3c8;
  --plum-ink: #3f3553;
  --cover-deep: #7d6aa8;
  --cover-light: #c9b9e6;
  --glass-veil: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --radius-soft: 20px;
  --radius-pill: 999px;
  --shadow-dream: 0 24px 48px -18px rgba(63, 53, 83, 0.35);
  --font-heading: "Outfit", "Segoe UI", sans-serif;
  --font-text: "Nunito Sans", "Segoe UI", sans-serif;
}

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

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

.dream-body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--plum-ink);
  background: linear-gradient(160deg, var(--mist-bg) 0%, var(--blush-glow) 45%, var(--sky-pale) 100%);
  overflow-x: hidden;
  min-width: 0;
}

.dream-main {
  width: 100%;
  overflow-x: hidden;
}

/* ---------- Shared screen layout ---------- */

.dream-hero,
.dream-band,
.dream-order {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
}

.dream-hero-photo,
.dream-band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.dream-hero::after,
.dream-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%);
  pointer-events: none;
}

.dream-hero-panel,
.dream-band-panel {
  width: 100%;
  max-width: 38rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--glass-veil);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-soft);
  box-shadow: 0 10px 30px -14px rgba(63, 53, 83, 0.25);
}

.dream-band--right .dream-band-panel {
  margin-left: auto;
}

.dream-band--left .dream-band-panel {
  margin-right: auto;
}

/* ---------- Typography ---------- */

.dream-hero h1,
.dream-band h2,
.dream-order h2 {
  font-family: var(--font-heading);
  color: var(--plum-ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.dream-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 800;
}

.dream-band h2,
.dream-order h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

.dream-band h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.dream-band p,
.dream-order p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.dream-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--lilac-soft);
  margin: 0 0 1rem;
}

.dream-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  margin: 0 0 1.75rem;
}

/* ---------- Hero row + CTA ---------- */

.dream-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.dream-cta,
.dream-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--cover-deep), #9b7fc9);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 24px -10px rgba(125, 106, 168, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dream-cta:hover,
.dream-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -10px rgba(125, 106, 168, 0.85);
}

.dream-cta:focus-visible,
.dream-submit:focus-visible,
.dream-input:focus-visible,
.dream-foot a:focus-visible,
.dream-consent a:focus-visible,
.legal-back:focus-visible,
.legal-body a:focus-visible {
  outline: 3px solid var(--plum-ink);
  outline-offset: 3px;
}

/* ---------- Book cover (pure CSS) ---------- */

.dream-cover {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 1.5rem 2.2rem;
  border-radius: 14px 20px 20px 14px;
  background: linear-gradient(165deg, var(--cover-light) 0%, var(--cover-deep) 100%);
  box-shadow: var(--shadow-dream);
  color: #ffffff;
  transform: rotate(-2deg);
  flex-shrink: 0;
}

.dream-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.2));
}

.dream-cover::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  pointer-events: none;
}

.dream-cover-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.5rem;
  text-shadow: 0 2px 10px rgba(63, 53, 83, 0.25);
}

.dream-cover-author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dream-cover--small {
  width: min(190px, 55vw);
  margin-top: 1.5rem;
}

.dream-cover--small .dream-cover-title {
  font-size: 1.4rem;
}

/* ---------- Quote ---------- */

.dream-quote {
  margin: 0 0 1.5rem;
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 4px solid var(--cover-deep);
}

.dream-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  font-style: normal;
}

/* ---------- Features ---------- */

.dream-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.dream-feature {
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  border: 1px solid var(--glass-edge);
}

.dream-feature p {
  margin: 0;
}

.dream-audience {
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(125, 106, 168, 0.4);
}

.dream-audience ul {
  margin: 0;
  padding-left: 1.2rem;
}

.dream-audience li {
  margin-bottom: 0.4rem;
}

/* ---------- Order ---------- */

.dream-order {
  background: linear-gradient(150deg, var(--lilac-soft) 0%, var(--peach-warm) 100%);
}

.dream-order-grid {
  width: 100%;
  max-width: 64rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dream-order-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dream-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--glass-veil);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-soft);
  box-shadow: 0 10px 30px -14px rgba(63, 53, 83, 0.25);
}

.dream-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dream-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.dream-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-text);
  font-size: 1.125rem;
  color: var(--plum-ink);
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(125, 106, 168, 0.25);
}

.dream-input::placeholder {
  color: rgba(63, 53, 83, 0.5);
}

.dream-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.dream-consent {
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.dream-consent a,
.dream-foot a,
.legal-body a {
  color: var(--cover-deep);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.dream-foot {
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  background: var(--plum-ink);
  color: #efeaf8;
}

.dream-foot a {
  color: #ffffff;
}

.dream-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.dream-foot-note,
.dream-foot-legal {
  margin: 0.4rem 0;
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .dream-band {
    padding: 5rem 3rem;
  }

  .dream-order-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }

  .dream-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dream-form {
    margin-left: auto;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .dream-hero,
  .dream-band,
  .dream-order {
    padding: 6rem 6rem;
  }
}

/* ---------- Legal pages ---------- */

.legal-body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--plum-ink);
  background: linear-gradient(160deg, var(--mist-bg) 0%, var(--blush-glow) 50%, var(--sky-pale) 100%);
  min-height: 100svh;
  overflow-x: hidden;
}

.legal-wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.legal-meta {
  font-size: 0.95rem;
  margin: 0 0 2rem;
  opacity: 0.8;
}

.legal-section {
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--glass-veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-soft);
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.legal-section p,
.legal-section ul {
  margin: 0 0 0.7rem;
}

.legal-section ul {
  padding-left: 1.2rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--cover-deep), #9b7fc9);
  border-radius: var(--radius-pill);
  margin-top: 1rem;
}

.legal-back:hover {
  transform: translateY(-2px);
}