/* ============================================================
   The Daily Reset — Landing Page
   Palette: white / warm beige / soft green / muted neutral
   ============================================================ */

:root {
  /* Color */
  --c-bg:          #fdfcf9;   /* warm off-white */
  --c-bg-beige:    #f6f1e9;   /* soft warm beige */
  --c-bg-green:    #eef1e9;   /* muted soft green tint */
  --c-card:        #ffffff;
  --c-border:      #e9e3d8;
  --c-text:        #3a3a34;   /* warm charcoal */
  --c-text-soft:   #6f6e66;   /* muted neutral */
  --c-accent:      #7c8c6a;   /* soft sage green */
  --c-accent-deep: #5e6e4c;   /* deeper sage for hover */
  --c-accent-soft: #aab79a;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing & layout */
  --maxw: 1080px;
  --maxw-narrow: 680px;
  --radius: 16px;
  --radius-sm: 12px;

  --shadow-soft: 0 1px 2px rgba(58, 58, 52, 0.04), 0 8px 24px rgba(58, 58, 52, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(56px, 9vw, 100px); }
.section__title {
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  color: var(--c-text);
  margin-bottom: 18px;
}
.section__title-soft { color: var(--c-text-soft); font-weight: 400; }
.section__intro {
  font-size: 1.08rem;
  color: var(--c-text-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}
.section__cta { margin-top: 38px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(94, 110, 76, 0.22);
}
.btn--primary:hover { background: var(--c-accent-deep); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }

/* ---------- Brand wordmark & microcopy ---------- */
.brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-accent-deep);
  margin-bottom: 22px;
}
.microcopy {
  font-size: 0.92rem;
  color: var(--c-text-soft);
  margin-top: 18px;
  max-width: 52ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--c-bg-beige) 0%, transparent 55%),
    var(--c-bg);
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(40px, 7vw, 72px);
}
.hero__inner { display: flex; flex-direction: column; gap: 36px; }
.hero__copy { max-width: 60ch; }
.hero__title {
  font-size: clamp(2rem, 7.6vw, 3.1rem);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.12rem;
  color: var(--c-text-soft);
  margin-bottom: 30px;
  max-width: 52ch;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ============================================================
   SECTION 2 — Recognition
   ============================================================ */
.section--recognition { background: var(--c-bg); }
.section--recognition .section__title { margin-bottom: 34px; }

.symptoms {
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
  display: grid;
  gap: 0;
}
.symptoms li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 1.08rem;
}
.symptoms li:last-child { border-bottom: none; }
.sym__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-bg-green);
  color: var(--c-accent-deep);
  display: grid;
  place-items: center;
}
.sym__icon svg { width: 22px; height: 22px; }

.wants {
  margin: 0 0 30px;
  padding: 26px 28px;
  background: var(--c-bg-green);
  border-radius: var(--radius);
}
.wants p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.4;
}
.wants p + p { margin-top: 6px; }

.reassure {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-accent-deep);
}

/* ============================================================
   SECTION 3 — Reframe
   ============================================================ */
.section--reframe { background: var(--c-bg-green); }
.section--reframe .section__title { margin-bottom: 28px; }
.prose {
  font-size: 1.1rem;
  color: var(--c-text);
  margin-bottom: 26px;
  max-width: 60ch;
}
.benefit-list__lead { font-weight: 600; margin: 34px 0 16px; }
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.benefit-list li {
  position: relative;
  padding-left: 32px;
  color: var(--c-text);
  font-size: 1.05rem;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ============================================================
   SECTION 4 — What it supports
   ============================================================ */
.section--supports { background: var(--c-bg-beige); }
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-border);
  font-size: 1.08rem;
}
.row:last-child { border-bottom: none; }
.row__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-accent-deep);
  display: grid;
  place-items: center;
}
.row__icon svg { width: 24px; height: 24px; }

/* ============================================================
   SECTION 5 — Who it's for + FAQ
   ============================================================ */
.section--who { background: var(--c-bg); }
.section--who .benefit-list { margin-bottom: 8px; }
.faq__heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 52px 0 18px;
}
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  font-weight: 600;
  font-size: 1.04rem;
  position: relative;
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--c-accent-deep);
  border-bottom: 2px solid var(--c-accent-deep);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.22s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(-35%) rotate(-135deg); }
.faq__a {
  padding: 0 22px 20px;
  color: var(--c-text-soft);
  font-size: 0.99rem;
}

/* ============================================================
   SECTION 6 — Final close
   ============================================================ */
.section--close {
  background:
    radial-gradient(110% 90% at 0% 100%, var(--c-bg-green) 0%, transparent 60%),
    var(--c-bg-beige);
  text-align: center;
}
.sprig {
  display: inline-block;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.sprig svg { width: 56px; height: auto; }
.section--close .prose { margin-inline: auto; }
.section--close .microcopy { margin-inline: auto; }
.section--close .section__cta { display: flex; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--c-text);
  color: #e9e6df;
  padding-block: 44px;
  text-align: center;
}
.footer__brand { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 6px; }
.footer__note { color: #b6b2a8; font-size: 0.95rem; }

/* ============================================================
   Sticky mobile CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 50px; }

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive — Desktop
   ============================================================ */
@media (min-width: 920px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .hero__copy { flex: 1 1 52%; }
  .hero__media { flex: 1 1 48%; }
  .hero__media img { max-width: 460px; margin-inline: auto; }

  /* Sticky CTA is a mobile-only pattern */
  .sticky-cta { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .sticky-cta { transition: none; }
}
