@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800;900&display=swap");

:root {
  font-family: "Assistant", Arial, sans-serif;
  --cream: #f3ead8;
  --linen: #fffaf4;
  --paper: #fffdf9;
  --rose: #d9bfc0;
  --rose-deep: #9d6f74;
  --clay: #c7ada0;
  --sage: #aaa48c;
  --ink: #493c39;
  --muted: #796a64;
  --line: rgba(114, 85, 80, 0.18);
  --shadow: 0 24px 60px rgba(84, 60, 55, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--linen);
  font-family: "Assistant", Arial, sans-serif;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/assets/mood-bg.png") center top / cover no-repeat;
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 253, 249, 0.68);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--rose-deep);
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-logo[src="/assets/logo.png"] {
  border-radius: 50%;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(157, 111, 116, 0.35);
  border-radius: 50%;
  color: var(--rose-deep);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand.has-logo .brand-mark {
  display: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--rose-deep);
  border-radius: 999px;
  color: var(--rose-deep);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 88px) 64px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 780px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--rose-deep);
  color: white;
  box-shadow: 0 14px 28px rgba(157, 111, 116, 0.24);
}

.button.secondary {
  border-color: rgba(157, 111, 116, 0.35);
  background: rgba(255, 255, 255, 0.54);
  color: var(--rose-deep);
}

.button.full {
  width: 100%;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.trust-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.62);
}

.product-preview {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.book {
  width: min(84vw, 380px);
  aspect-ratio: 0.72;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 42px;
  border: 1px solid rgba(157, 111, 116, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 253, 249, 0.94), rgba(243, 234, 216, 0.86)),
    url("/assets/mood-bg.png") center / cover;
  box-shadow: var(--shadow);
  color: var(--rose-deep);
  transform: rotate(-3deg);
}

.book-logo {
  display: none;
  width: min(78%, 240px);
  height: auto;
  align-self: center;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 8px 16px rgba(84, 60, 55, 0.08));
}

.book-logo.is-loaded {
  display: block;
}

.book span {
  font-weight: 800;
}

.book strong {
  max-width: 260px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.book small {
  color: var(--muted);
  font-weight: 700;
}

.price-badge {
  position: absolute;
  left: clamp(28px, 6vw, 76px);
  bottom: 46px;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 2;
}

.price-badge span {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-badge strong {
  display: block;
  color: var(--rose-deep);
  font-size: 2rem;
  line-height: 1;
}

.intro-band,
.section,
.purchase-section,
.site-footer {
  padding-inline: clamp(20px, 6vw, 88px);
}

.intro-band {
  padding-top: 40px;
  padding-bottom: 40px;
  background: rgba(243, 234, 216, 0.72);
  border-block: 1px solid var(--line);
}

.intro-band p {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.section {
  padding-top: clamp(70px, 10vw, 128px);
  padding-bottom: clamp(70px, 10vw, 128px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split > div:first-child p:not(.eyebrow),
.seo-content p,
.purchase-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature-grid article,
.fit-grid > div,
.checkout-form,
.faq details,
.status-panel,
.legal-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 16px 42px rgba(84, 60, 55, 0.08);
}

.feature-grid article {
  padding: 26px;
}

.feature-grid span {
  color: var(--rose-deep);
  font-weight: 900;
}

.feature-grid p,
.fit-grid li,
.faq p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.fit-grid > div {
  padding: 30px;
}

.fit-grid ul {
  padding-inline-start: 22px;
  margin: 0;
}

.fit-grid li + li {
  margin-top: 10px;
}

.seo-content {
  max-width: 1000px;
}

.purchase-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(70px, 9vw, 112px);
  padding-bottom: clamp(70px, 9vw, 112px);
  background: rgba(243, 234, 216, 0.66);
  border-block: 1px solid var(--line);
}

.secure-note {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(170, 164, 140, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.64);
  color: var(--muted);
}

.checkout-form {
  padding: clamp(22px, 4vw, 34px);
}

.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-head span {
  font-weight: 800;
}

.form-head strong {
  color: var(--rose-deep);
  font-size: 2rem;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(217, 191, 192, 0.45);
  border-color: var(--rose-deep);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.terms-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 5px;
  accent-color: var(--rose-deep);
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--rose-deep);
  font-weight: 800;
}

.faq {
  max-width: 980px;
  margin: 0 auto;
}

.faq details {
  padding: 20px 24px;
}

.faq details + details {
  margin-top: 12px;
}

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

.faq p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-panel,
.legal-page {
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 48px);
}

.centered {
  justify-content: center;
  margin-bottom: 28px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .split,
  .purchase-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .product-preview {
    min-height: 460px;
  }

  .book {
    width: min(76vw, 340px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding-inline: 13px;
  }

  .hero-actions,
  .trust-list {
    display: grid;
  }

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

  .price-badge {
    position: relative;
    left: auto;
    bottom: auto;
    width: 112px;
    height: 112px;
    margin-top: -44px;
    margin-inline-start: auto;
    margin-inline-end: clamp(26px, 14vw, 72px);
    transform: none;
  }

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