/**
 * Per-fold styles for One More Chance at Love.
 * Loaded after theme.css so a fold can refine the base components it reuses.
 *
 * Dobra 01 — Hero (spec 002)
 * Dobra 02 — Pain / Dobra 03 — Hope (spec 003)
 * Dobra 04 — Path (spec 004)
 * Dobra 05 — Credibility / Dobra 06 — Objections (spec 005)
 * Dobra 07 — Exit CTA + footer (spec 006)
 */

/* ============================================================
   Dobra 01 — Hero
   ============================================================ */

.fold--hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2.75rem 3rem;
  /* Falls short of a full viewport so the next fold peeks in and invites scrolling.
     On short viewports the copy itself is taller, and the hero simply grows. */
  min-height: calc(100vh - 2.5rem);
  min-height: calc(100svh - 2.5rem);
}

/* Warm ambient bloom behind the hero copy — playbook §5.4.
   Blooms fade out inside the box and a radial mask softens the edges, so the
   fold's overflow clip never shows as a hard rectangle. */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  background-image:
    radial-gradient(30% 22% at 24% 20%, rgba(203, 77, 34, .22), transparent 70%),
    radial-gradient(26% 18% at 80% 13%, rgba(183, 138, 86, .26), transparent 72%),
    radial-gradient(34% 24% at 58% 82%, rgba(203, 77, 34, .16), transparent 74%);
  -webkit-mask-image: radial-gradient(78% 68% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(78% 68% at 50% 45%, #000 40%, transparent 100%);
}

/* Brand row — eyebrow between a bronze mark and a fading hairline */
.hero__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.75rem;
  letter-spacing: .24em;
}

.hero__brand-mark {
  flex: none;
  width: .5rem;
  height: .5rem;
  background: var(--accent);
}

.hero__brand-rule {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw + 1.35rem, 3.75rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--ink);
}

.hero__line {
  display: block;
}

/* Word masks: keep the natural word space and stop overflow:hidden from
   clipping descenders (e.g. the "y" in "Way") without adding line height. */
.hero__title .reveal-line {
  margin-right: 0;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

/* Second display line, bronze — 26px+ keeps AA at large-text scale */
.hero__kicker {
  display: block;
  margin-top: .85rem;
  font-size: clamp(1.625rem, 1.4vw + 1.3rem, 2.125rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--accent-dark);
}

.hero__sub {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .875rem;
  margin-top: 2rem;
}

.hero__cta {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

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

/* Reserve the icon box so the custom element upgrading does not shift the CTA */
.hero__cta-icon {
  width: 1.1em;
  height: 1.1em;
}

.hero__note {
  margin: 0;
  font-size: .875rem;
  color: var(--muted);
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem 1.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__pillars li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero__pillars li::before {
  content: "";
  width: .25rem;
  height: .25rem;
  background: var(--accent);
}

/* Decorative thread hinting the path that continues below the fold */
.hero__thread {
  position: relative;
  width: 1px;
  height: 3.25rem;
  margin: 2.5rem 0 0;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .75;
}

.hero__thread::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  /* Finite so the page has no indefinitely moving content (WCAG 2.2.2) */
  animation: hero-thread 3.6s ease-in-out 3;
}

@keyframes hero-thread {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  75% { opacity: 0; }
  100% { transform: translateY(3.25rem); opacity: 0; }
}

@media (min-width: 48rem) {
  .fold--hero {
    padding-block: 3.5rem 4rem;
  }

  .hero__brand {
    margin-bottom: 2.25rem;
  }

  .hero__sub {
    margin-top: 1.75rem;
    font-size: 1.125rem;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .hero__pillars {
    margin-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta:hover {
    transform: none;
  }

  .hero__thread::after {
    animation: none;
    opacity: .9;
  }
}

/* ============================================================
   Dobra 02 — Pain  /  Dobra 03 — Hope
   Full-bleed surface bands (not cards). Hairlines via --line.
   ============================================================ */

/* Hero's column border would double with the pain band's top hairline. */
.fold--hero {
  border-bottom: none;
}

.fold--pain,
.fold--hope {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  padding-block: 4.25rem;
}

/* Full-bleed via horizontal box-shadow (does not inflate scrollWidth the way 100vw does). */
.fold--pain {
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow:
    -100vmax 0 0 0 var(--surface),
    100vmax 0 0 0 var(--surface);
}

.fold--hope {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow:
    -100vmax 0 0 0 var(--surface-2),
    100vmax 0 0 0 var(--surface-2);
}

.pain__label,
.hope__label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.pain__title,
.hope__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pain__copy {
  margin-top: 1.5rem;
}

.pain__lead,
.hope__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.pain__lead + .pain__lead,
.hope__lead + .hope__lead {
  margin-top: 1rem;
}

/* Recognition list — hairlines, no card chrome */
.pain__signs {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.pain__signs li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.pain__signs li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Hope panel: left bronze hairline, no shadow / radius / card UI */
.hope__panel {
  margin-top: 1.75rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 1px solid var(--accent);
  max-width: 40rem;
}

.hope__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hope__keys li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hope__keys li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  background: var(--accent);
}

@media (min-width: 48rem) {
  .fold--pain,
  .fold--hope {
    padding-block: 5.5rem;
  }

  .pain__copy {
    margin-top: 1.75rem;
  }

  .hope__panel {
    margin-top: 2rem;
    padding-left: 1.5rem;
  }
}

/* ============================================================
   Dobra 04 — Path
   Editorial cards on paper: --surface, --line, .soft-shadow.
   Numbering in --accent (display weight 200). Stacked on all widths.
   ============================================================ */

.fold--path {
  border-bottom: 1px solid var(--line);
  padding-block: 4.25rem;
  scroll-margin-top: 1.5rem;
}

.path__label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.path__title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.path__lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.path__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.path__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.path__num {
  display: block;
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.4vw + 1.35rem, 2.25rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.path__step-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.path__step-body {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.path__note {
  margin: 1.75rem 0 0;
  max-width: 38rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .fold--path {
    padding-block: 5.5rem;
  }

  .path__lede {
    margin-top: 1.75rem;
  }

  .path__steps {
    gap: 1.25rem;
    margin-top: 2.25rem;
  }

  .path__step {
    padding: 1.75rem;
  }
}

/* ============================================================
   Dobra 05 — Credibility  /  Dobra 06 — Objections
   Editorial surface + quote (not a testimonial card).
   Native <details> accordion with hairline --line dividers.
   ============================================================ */

/* Path's column-width bottom rule would double with the cred band's top hairline. */
.fold--path {
  border-bottom: none;
}

.fold--cred,
.fold--objections {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  padding-block: 4.25rem;
}

.fold--cred {
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow:
    -100vmax 0 0 0 var(--surface),
    100vmax 0 0 0 var(--surface);
}

.fold--objections {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow:
    -100vmax 0 0 0 var(--surface-2),
    100vmax 0 0 0 var(--surface-2);
}

.cred__label,
.objections__label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.cred__title,
.objections__title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cred__copy {
  margin-top: 1.5rem;
}

.cred__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.cred__lead + .cred__lead {
  margin-top: 1rem;
}

/* Page voice — large type + accent mark, no card chrome / attribution. */
.cred__quote {
  margin: 2rem 0 0;
  padding: 0;
  max-width: 36rem;
  border: none;
}

.cred__quote::before {
  content: "“";
  display: block;
  margin: 0 0 0.35rem;
  font-size: 3rem;
  font-weight: 200;
  line-height: 0.8;
  color: var(--accent);
}

.cred__quote p {
  margin: 0;
  font-size: clamp(1.25rem, 1.1vw + 1.05rem, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.objections__list {
  margin: 2rem 0 0;
  max-width: 38rem;
}

.objections__item {
  border-top: 1px solid var(--line);
}

.objections__item:last-child {
  border-bottom: 1px solid var(--line);
}

.objections__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.objections__q::-webkit-details-marker {
  display: none;
}

.objections__q::marker {
  content: "";
}

.objections__q::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.objections__item[open] .objections__q::after {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.objections__a {
  margin: 0;
  padding: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

@media (min-width: 48rem) {
  .fold--cred,
  .fold--objections {
    padding-block: 5.5rem;
  }

  .cred__copy {
    margin-top: 1.75rem;
  }

  .cred__quote {
    margin-top: 2.25rem;
  }

  .objections__list {
    margin-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .objections__q::after {
    transition: none;
  }
}

/* ============================================================
   Dobra 07 — Exit CTA + footer
   Full-bleed --deep; paper text; terracotta pill; M/F equal weight.
   ============================================================ */

.fold--objections {
  border-bottom: none;
}

.fold--exit {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  padding-block: 4.25rem 3rem;
  background: var(--deep);
  color: var(--paper);
  box-shadow:
    -100vmax 0 0 0 var(--deep),
    100vmax 0 0 0 var(--deep);
}

.exit__label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.exit__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.75rem, 2.2vw + 1.2rem, 2.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.exit__lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--paper);
}

.exit__gender {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0 0;
  max-width: 38rem;
}

.exit__choice {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.exit__choice:hover,
.exit__choice:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.exit__choice:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

.exit__choice.is-active,
.exit__choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--deep));
}

.exit__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.exit__cta {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

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

.exit__cta:focus-visible {
  box-shadow:
    0 0 0 3px var(--deep),
    0 0 0 5px var(--terracotta);
}

.exit__cta-icon {
  width: 1.1em;
  height: 1.1em;
}

.exit__note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--soft);
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding-block: 0 3.25rem;
  padding-inline: 1.5rem;
  text-align: left;
  letter-spacing: 0;
  background: var(--deep);
  color: var(--soft);
  box-shadow:
    -100vmax 0 0 0 var(--deep),
    100vmax 0 0 0 var(--deep);
}

.site-footer__brand {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__copy {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--paper);
}

.site-footer__legal {
  margin: 0.5rem 0 0;
  max-width: 38rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--soft);
}

@media (min-width: 48rem) {
  .fold--exit {
    padding-block: 5.5rem 3.5rem;
  }

  .exit__lede {
    margin-top: 1.75rem;
  }

  .exit__gender {
    flex-direction: row;
    margin-top: 2.25rem;
  }

  .exit__choice {
    flex: 1 1 0;
  }

  .exit__actions {
    margin-top: 2rem;
  }

  .site-footer {
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit__choice {
    transition: none;
  }

  .exit__cta:hover {
    transform: none;
  }
}
