/* ─────────────────────────────────────────────────────────────────
   Dear Enora — landing page
   Editorial magazine meets soft wellness
   ──────────────────────────────────────────────────────────────── */

:root {
  /* warm neutrals */
  --cream:        #F5F0E6;
  --cream-soft:   #FBF7EE;
  --cream-deep:   #ECE3D2;
  --ink:          #1F1A14;
  --ink-soft:     #4A4138;
  --ink-mute:     #897E6E;
  --rule:         rgba(31, 26, 20, 0.12);

  /* accents — set by JS, defaults here */
  --accent:       #C97A49;
  --accent-deep:  #A55F33;
  --accent-soft:  #EBD0B6;

  /* type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* rhythm */
  --max:  1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Faint film-grain warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(900px 700px at -10% 110%, rgba(236,227,210,0.7) 0%, transparent 60%);
  opacity: 0.55;
}

main { position: relative; z-index: 1; }

/* ───────── Type ───────── */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: "ss01", "ss02";
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 28px;
  font-weight: 500;
}
.eyebrow-line {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--accent);
}

.section-kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 18px;
  position: relative;
  padding-left: 26px;
}
.section-kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head--center .section-kicker { padding-left: 0; }
.section-head--center .section-kicker::before { display: none; }

.section-title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.95;
}
.section-deck {
  margin-top: 22px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(244, 239, 231, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.nav--scrolled {
  background: rgba(244, 239, 231, 0.72);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.wordmark-prefix {
  font-style: italic;
  color: var(--ink-mute);
  font-weight: 400;
}
.wordmark-name {
  color: var(--ink);
  font-weight: 400;
}
.nav-cta {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.nav-left {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 18px;
}
.nav-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-mute);
  align-self: center;
  flex: 0 0 auto;
  position: relative;
  top: 6px;
}
.nav-tagline {
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .nav-tagline,
  .nav-sep { display: none; }
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--cream-soft);
  border-color: var(--accent);
}

/* ───────── Hero — two column, fits one viewport ───────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(48px, 6vh, 88px) var(--gutter) clamp(40px, 5vh, 72px);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 36px);
}
.hero-display {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: none;
  text-wrap: balance;
  margin: 0;
}
.lede {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-cta-secondary {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.hero-cta-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.hero-mock {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-mock .mockup {
  width: clamp(280px, 32vw, 372px);
}
@media (min-width: 880px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: clamp(48px, 6vw, 96px);
  }
  .hero-copy {
    flex: 0 1 580px;
    max-width: 580px;
    align-items: flex-start;
  }
  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }
  .hero-mock { justify-content: flex-end; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), background 180ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream-soft);
  border: none;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.btn-block { width: 100%; padding: 17px 26px; }

/* ───────── Pain Scenes ───────── */
.pain {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(16px, 2.5vw, 36px);
}
.pain-stack {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  max-width: 760px;
  margin: 0 auto;
}
.pain-card {
  padding: 0;
  border: 0;
}
.pain-body {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}

/* ───────── How it works / mockup sections ───────── */
.how {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(36px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 60px);
}
.how .section-head { text-align: center; margin-bottom: 0; }
.how .section-head .section-kicker { padding-left: 0; }
.how .section-head .section-kicker::before { display: none; }

.mock-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 92px) var(--gutter);
}

/* two-column row: copy + mockup — flexbox, vertically centered */
.mrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  max-width: 1000px;
  margin: 0 auto;
}
.mrow-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 46ch;
  text-align: center;
}
.mrow-copy .section-kicker { padding-left: 0; }
.mrow-copy .section-kicker::before { display: none; }
.mrow-copy .section-title {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 0.98;
}
.mrow-mock {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.feature-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.feature-body {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

/* mockup image — placed as-is, transparent iPhone frame with shadow */
.mockup {
  width: clamp(280px, 32vw, 372px);
}
.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 880px) {
  .mrow {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 6vw, 96px);
  }
  .mrow--mock-left { flex-direction: row-reverse; }
  .mrow-copy {
    flex: 1 1 0;
    text-align: left;
    align-items: flex-start;
  }
  .mrow--text {
    flex-direction: column;
    max-width: 60ch;
  }
  .mrow--text .mrow-copy {
    flex: 0 1 auto;
    text-align: center;
    align-items: center;
    max-width: 60ch;
  }
}

/* ───────── Path ───────── */
.path {
  background: linear-gradient(180deg, transparent 0%, var(--cream-soft) 20%, var(--cream-soft) 80%, transparent 100%);
  padding: clamp(48px, 6.5vw, 96px) var(--gutter);
}
.path-inner {
  max-width: 740px;
  margin: 0 auto;
}
.prose {
  display: grid;
  gap: 22px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.prose p { margin: 0; }
.path-pause {
  display: block;
  width: min(1200px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  height: auto;
  border-radius: 12px;
  margin: 58px 0 46px;
  margin-left: calc((100% - min(1200px, calc(100vw - 2 * var(--gutter)))) / 2);
}
.prose-closing {
  margin-top: 12px !important;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* ───────── Differentiation ───────── */
.different {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 76px) var(--gutter) clamp(40px, 5.5vw, 76px);
}
.different-body {
  display: grid;
  gap: 18px;
  max-width: 620px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: pretty;
}
.different-body p { margin: 0; }
.privacy-note {
  margin-top: 24px !important;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-mute);
  font-family: var(--sans);
}

/* ───────── Signup ───────── */
.signup {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px);
}
.form {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  outline: none;
  resize: none;
  width: 100%;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  font-weight: 400;
  line-height: 1.5;
}
.field textarea {
  font-family: var(--sans);
  min-height: 120px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
  opacity: 0.7;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.field--error input {
  border-color: var(--accent-deep);
  background: color-mix(in oklab, var(--accent-soft) 22%, var(--cream-soft));
}
.field-error {
  font-size: 13px;
  color: var(--accent-deep);
  font-style: italic;
}
.field-meta {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.form-foot {
  margin: -4px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-mute);
}

.form-done {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--cream-soft);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.check {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent-soft) 50%, var(--cream-soft));
}
.form-done-title {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.form-done-body {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.55;
}

/* ───────── Footer ───────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 44px var(--gutter) 56px;
  background: transparent;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-tag {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.footer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.footer-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-meta .sep {
  margin: 0 8px;
  color: var(--rule);
}

/* ───────── Reveal animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--stagger, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--cream-soft);
}

/* ───────── Uniform section rhythm ───────── */
.hero,
.pain,
.how,
.mock-section,
.different,
.path,
.signup {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 768px) {
  .hero,
  .pain,
  .how,
  .mock-section,
  .different,
  .path,
  .signup {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
/* Hero starts close to the header */
.hero { padding-top: clamp(80px, 9vh, 100px); }

/* ───────── Mid-page CTA ───────── */
.midcta {
  padding: clamp(36px, 5vw, 62px) var(--gutter);
  text-align: center;
}
.midcta-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.midcta-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.midcta-line em {
  font-style: italic;
  color: var(--accent);
}

/* footer plain (no-link) labels */
.footer-plain {
  color: var(--ink-mute);
}
