/* ==========================================================================
   Della Henry — bio landing page
   Warm & cozy dark. Palette is locked (see CLAUDE.md) — do not drift.
   Signature: "porch light" — an arched doorway portrait spilling warm light
   onto a near-black page. Gold is reserved for money actions only.
   ========================================================================== */

:root {
  --ink: #0B0B0F;        /* page base */
  --hearth: #1c1a17;     /* card / surface */
  --gold: #d4af37;       /* money CTAs only */
  --copper: #b87333;     /* warmth: hovers, gradients, accents */
  --slate: #2d3138;      /* borders, muted chips */
  --cream: #e9e1d0;      /* text */

  --cream-soft: rgba(233, 225, 208, 0.72);
  --cream-faint: rgba(233, 225, 208, 0.5);
  --copper-glow: rgba(184, 115, 51, 0.16);
  --border-warm: rgba(184, 115, 51, 0.22);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 60rem;
  --radius: 20px;
  --arch: 999px 999px 24px 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset-ish ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain so the dark isn't flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

::selection { background: var(--copper); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-variation-settings: "SOFT" 60;
}

h1 em, h2 em, .outro-lines em {
  font-style: italic;
  font-weight: 430;
  color: var(--gold);
}

h2 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); }

h3 {
  font-size: 1.35rem;
  font-weight: 540;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--cream-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  text-align: center;
  overflow: hidden;
}

/* the porch light */
.hero-glow {
  position: absolute;
  top: -12rem;
  left: 50%;
  width: 60rem;
  height: 46rem;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 42% at 50% 32%, rgba(212, 175, 55, 0.14), transparent 65%),
    radial-gradient(ellipse 65% 55% at 50% 38%, var(--copper-glow), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

/* arched doorway portrait */
.portrait {
  width: clamp(9.5rem, 34vw, 12.5rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto 2rem;
  border-radius: var(--arch);
  padding: 5px;
  background: linear-gradient(160deg, var(--gold) 0%, var(--copper) 45%, rgba(184, 115, 51, 0.25) 100%);
  box-shadow:
    0 0 60px rgba(184, 115, 51, 0.28),
    0 18px 45px rgba(0, 0, 0, 0.5);
  display: grid;
}

.portrait > * {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-monogram {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--hearth);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--copper);
}

.hero-eyebrow { font-size: 0.9rem; }

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chips li {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--slate);
  border-radius: 999px;
  color: var(--cream-soft);
  background: rgba(28, 26, 23, 0.6);
}

.hero-mission {
  font-size: 1.15rem;
  max-width: 36rem;
  margin-inline: auto;
  color: var(--cream);
}

.hero-mission strong { color: var(--gold); font-weight: 500; }

.hero-welcome {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--cream-soft);
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 9vh, 6rem) 0; }

/* ---------- dividers: the porch light between rooms ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(26rem, 72vw);
  margin-inline: auto;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
}

.divider::before {
  background: linear-gradient(to right, transparent, rgba(184, 115, 51, 0.55));
}

.divider::after {
  background: linear-gradient(to left, transparent, rgba(184, 115, 51, 0.55));
}

.divider svg {
  width: 2.6rem;
  height: 2.2rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--copper);
  stroke-width: 2;
  stroke-linecap: round;
}

.divider-light {
  fill: var(--gold);
  stroke: none;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.9));
}

@media (prefers-reduced-motion: no-preference) {
  .divider-light { animation: porch-glow 4s ease-in-out infinite; }

  @keyframes porch-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
  }
}

/* ---------- image bands ---------- */

.section-banner {
  margin: 2rem 0 0.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-warm);
  overflow: hidden;
  position: relative;
}

.section-banner img {
  width: 100%;
  height: clamp(180px, 32vw, 300px);
  object-fit: cover;
}

.section-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.35), transparent 45%);
  pointer-events: none;
}

.porch-band {
  margin: 0;
  position: relative;
  width: 100%;
}

.porch-band img {
  width: 100%;
  height: clamp(260px, 44vh, 440px);
  object-fit: cover;
  display: block;
}

.porch-band::before,
.porch-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  pointer-events: none;
}

.porch-band::before {
  top: 0;
  background: linear-gradient(to bottom, var(--ink), transparent);
}

.porch-band::after {
  bottom: 0;
  background: linear-gradient(to top, var(--ink), transparent);
}

/* ---------- social pills ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate);
  border-radius: 999px;
  background: var(--hearth);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.social-pill svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.social-pill:hover {
  border-color: var(--copper);
  box-shadow: 0 6px 24px rgba(184, 115, 51, 0.18);
  transform: translateY(-2px);
}

.social-pill:active { transform: translateY(0) scale(0.98); }

/* ---------- assessment (conversion centerpiece) ---------- */

.assess-card {
  --pad: clamp(2rem, 6vw, 3.5rem);
  position: relative;
  overflow: hidden;
  padding: var(--pad);
  border-radius: 28px;
  border: 1px solid var(--border-warm);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(212, 175, 55, 0.1), transparent 60%),
    var(--hearth);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.assess-media {
  position: relative;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) var(--pad);
}

.assess-media img {
  width: 100%;
  height: clamp(180px, 30vw, 280px);
  object-fit: cover;
  display: block;
}

.assess-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--hearth), rgba(28, 26, 23, 0.15) 55%, transparent);
  pointer-events: none;
}

.assess-card h2 { max-width: 24ch; margin-inline: auto; }
.assess-card .section-lede { margin-inline: auto; }

.assess-walkaway {
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--cream);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.25rem;
  max-width: 24rem;
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream-soft);
}

.checklist svg {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.28rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(184, 115, 51, 0.18);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assess-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

/* ---------- gold button (money actions only) ---------- */

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(175deg, #e2c14f 0%, var(--gold) 55%, #b8952c 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.btn-gold svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}

.btn-gold:hover {
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.38);
  transform: translateY(-2px);
}

.btn-gold:hover svg { transform: translateX(3px); }
.btn-gold:active { transform: translateY(0) scale(0.98); }

.btn-small {
  min-height: 2.75rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.92rem;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.25rem;
}

/* affiliate marketplace: always a 2×2 grid */
.toolkit-grid { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .playbook-grid, .business-grid { grid-template-columns: repeat(2, 1fr); }
}

/* tighten the toolkit cards so 2-up reads well on a phone */
@media (max-width: 560px) {
  .toolkit-card { padding: 1.2rem; }
  .toolkit-card .card-icon { margin-bottom: 0.75rem; }
  .toolkit-card .card-cta { margin-top: 0.9rem; font-size: 0.82rem; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--slate);
  background: var(--hearth);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  color: var(--cream-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.card { cursor: pointer; }

a.card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(184, 115, 51, 0.12);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--copper);
}

.card-cta svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}

a.card:hover .card-cta svg { transform: translateX(3px); }

/* business card photos */

.business-card { overflow: hidden; }

.card-media {
  margin: -1.75rem -1.75rem 1.25rem;
  overflow: hidden;
  align-self: stretch;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

a.card:hover .card-media img { transform: scale(1.04); }

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

/* playbooks */

.card-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  color: var(--copper);
  white-space: nowrap;
}

.badge-price {
  border-color: var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
}

.playbook.featured {
  border-color: rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(212, 175, 55, 0.12), transparent 60%),
    var(--hearth);
}

.playbook.featured .btn-gold { margin-top: 1.4rem; }

.playbook p { margin-bottom: 0.25rem; }

.card-list-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  margin: 0.9rem 0 0.4rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--cream-soft);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--copper);
}

/* ---------- funnels: two ways in ---------- */

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .funnel-grid { gap: 1.1rem; }
}

.funnel-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 4.5vw, 2.5rem);
}

/* a thin warm ledge along the top edge of each entry */
.funnel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--copper), transparent);
  opacity: 0.6;
}

.funnel-icon {
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 11vw, 3.2rem);
  height: clamp(2.6rem, 11vw, 3.2rem);
  margin-bottom: clamp(0.85rem, 3vw, 1.25rem);
  border-radius: 14px;
  background: rgba(184, 115, 51, 0.14);
  border: 1px solid var(--border-warm);
}

.funnel-icon svg {
  width: clamp(1.4rem, 6vw, 1.7rem);
  height: clamp(1.4rem, 6vw, 1.7rem);
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.funnel-card h3 {
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.funnel-card p { font-size: clamp(0.9rem, 3.4vw, 1rem); }

.funnel-card .card-cta { font-size: clamp(0.82rem, 3.2vw, 0.9rem); }

/* systems reads cooler / more technical than the warm co-living door */
.funnel-systems::before {
  background: linear-gradient(to right, transparent, rgba(233, 225, 208, 0.4), transparent);
  opacity: 0.9;
}

.funnel-systems .funnel-icon {
  background: rgba(45, 49, 56, 0.5);
  border-color: var(--slate);
}

.funnel-systems .funnel-icon svg { stroke: var(--cream-soft); }
.funnel-systems .card-cta { color: var(--cream-soft); }

/* sub-eyebrow used to head a grid inside a larger section */
.eyebrow.subhead { margin-top: 3rem; }

/* ---------- marketplace storefront ---------- */

.marketplace-hero {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* ---------- outro ---------- */

.outro { text-align: center; }

.outro-lines {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

.outro-glad {
  color: var(--cream-soft);
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(45, 49, 56, 0.6);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cream-faint);
}

/* Disclosure for the analytics added alongside the cross-domain funnel. The
   page set no cookies before that, so saying so is the right call. */
.footer-privacy {
  margin-top: 0.6rem !important;
  font-size: 0.72rem !important;
  opacity: 0.7;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-privacy a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-privacy a:hover {
  color: var(--gold);
}

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: rgba(28, 26, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(130%);
  transition: transform 350ms var(--ease);
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.sticky-cta .btn-gold { flex-shrink: 0; white-space: nowrap; }

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sticky-cta { transition: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
