/* Ivy Caldwell site
   Modeled on zachcrawford.com: cream page, black hero, gold accent, near-black type.
   --gold is the one accent: large italic type, labels and fine lines.
   The hero is the one deliberate dark section; it re-scopes the same tokens.
   Shapes: squared, editorial corners everywhere (--radius, 3px). Timeline dots are the only circles. */

:root {
  --bg: #F4EEDF;
  --surface: #EAE1CC;
  --surface-2: #DFD2B6;
  --ink: #1C1A17;
  --muted: #5A4F42;
  --line: #D8CCB2;
  --gold: #8A6A2F;
  --accent: #B8914A;
  --btn-bg: #1C1A17;
  --btn-fg: #F4EEDF;
  --invert-bg: #1C1A17;
  --invert-ink: #F4EEDF;
  --invert-muted: #C8BBA5;
  --invert-gold: #D4AF6A;
  --shadow: 28 26 23;
  --hairline: rgb(138 106 47 / 0.35);

  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --radius: 3px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Dark hero, like Zach's photo-led opening */
.hero {
  --ink: #F4EDE0;
  --muted: #C8BBA5;
  --gold: #D4AF6A;
  --btn-bg: #D4AF6A;
  --btn-fg: #0E0C0A;
  --shadow: 0 0 0;
  background: #0E0C0A;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 8px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1.0625rem; line-height: 1;
  padding: 18px 28px; border-radius: var(--radius);
  letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(var(--shadow) / 0.45); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-small { font-size: 0.9375rem; padding: 12px 20px; }
.btn-invert { background: var(--invert-ink); color: var(--invert-bg); }

/* Banner */
.banner { background: var(--invert-bg); color: var(--invert-ink); text-align: center; font-size: 0.9375rem; }
.banner p { padding: 10px 20px; }
.banner a { color: var(--invert-gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); }
main > section + section { border-top: 1px solid var(--hairline); }
.closing { border-top: 0 !important; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { text-decoration: none; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.34em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { text-decoration: none; font-weight: 500; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav-cta { display: none; } }

/* Hero */
.hero-sticky { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow { font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-headline { font-weight: 800; font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 12ch; }
.hero-headline em { font-size: 1.1em; line-height: 1.1; padding-bottom: 4px; display: inline-block; color: var(--gold); }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }
.text-link:hover { color: var(--gold); }
.hero-name { line-height: 0.9; letter-spacing: -0.03em; margin-bottom: 28px; }
.hero-name .first { display: block; font-weight: 800; font-size: clamp(4.5rem, 11vw, 9rem); }
.hero-name .last {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 600;
  color: var(--gold); font-size: clamp(3.75rem, 9vw, 7.5rem);
  line-height: 1.1; padding-bottom: 4px; letter-spacing: -0.01em;
}
.hero-promise { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--muted); max-width: 34ch; margin-bottom: 32px; }
.hero-sub { color: var(--muted); max-width: 46ch; margin-bottom: 32px; }

.hero-media {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; width: 100%; max-height: 80dvh; justify-self: end;
  background: #1a1612;
}
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; object-position: 50% 30%; }

@media (min-width: 861px) {
  .hero-media { height: min(80dvh, 780px); width: auto; }
}

/* Phones and small tablets: photo fills the top of the screen, copy sits over a dark fade */
@media (max-width: 860px) {
  .hero-sticky { padding: 0; min-height: 100dvh; display: flex; align-items: flex-start; }
  .hero-sticky { position: relative; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; position: static; padding-top: 0; padding-bottom: 32px; }
  .hero-media {
    position: absolute; top: 0; left: 0; right: 0; height: 64dvh;
    aspect-ratio: auto; max-height: none; width: auto; justify-self: stretch;
    border-radius: 0;
  }
  .hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgb(14 12 10 / 0) 40%, rgb(14 12 10 / 0.6) 70%, #0E0C0A 100%);
  }
  .hero-copy { position: relative; z-index: 1; padding-top: 35dvh; }
  .hero-name { margin-bottom: 18px; }
  .hero-headline { font-size: clamp(2.75rem, 13vw, 4rem); margin-bottom: 16px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-promise { color: #D9CDB8; margin-bottom: 24px; }
  .hero-name .first { font-size: clamp(4rem, 19vw, 6rem); }
  .hero-name .last { font-size: clamp(3.25rem, 15vw, 5rem); }
  .hero-promise { font-size: 1.25rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 24px; color: #D9CDB8; }
  .hero-poster { object-position: 50% 20%; }
}
@media (max-width: 860px) and (max-height: 740px) {
  .hero-sub { display: none; }
  .hero-copy { padding-top: 26dvh; }
}
@media (max-width: 420px) {
  .btn { font-size: 1rem; padding: 16px 22px; }
}

/* Section titles */
.section-title {
  font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.02em; padding-bottom: 4px;
}
.section-title em { font-size: 1.12em; }
.section-lede { color: var(--muted); margin-top: 12px; max-width: 55ch; }

/* How I help */
.help { padding: 104px 0 24px; }
.help-inner > * { max-width: 860px; }
.help-title { max-width: 22ch !important; font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; padding-bottom: 4px; }
.help-title em { font-size: 1.08em; }
.help-body { margin-top: 28px; }
.help-body p { font-size: 1.1875rem; line-height: 1.7; color: var(--muted); max-width: 62ch; margin-bottom: 18px; }
.help-line {
  margin-top: 32px; padding: 26px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
}
.help-line em { font-size: 1.15em; }
@media (max-width: 860px) {
  .help { padding: 72px 0 8px; }
  .help-body p { font-size: 1.0625rem; }
}
.learn { padding-top: 72px; }

/* What AI can do for you */
.learn { padding: 104px 0; }
.learn-grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.learn-item {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.learn-item:hover { transform: translateY(-3px); background: var(--surface-2); }
.learn-item > i { font-size: 2rem; color: var(--gold); margin-bottom: 6px; }
.learn-item h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; }
.learn-item p { color: var(--muted); }
.learn-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: auto; padding-top: 8px; }
.learn-link i { transition: transform 0.3s var(--ease); }
.learn-item:hover .learn-link i { transform: translateX(4px); }
.learn-feature { grid-row: span 2; background: var(--invert-bg); color: var(--invert-ink); padding: 40px; justify-content: flex-end; }
.learn-feature:hover { background: var(--invert-bg); }
.learn-feature > i { color: var(--invert-gold); font-size: 2.75rem; margin-bottom: auto; }
.learn-feature h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 24px; }
.learn-feature p { color: var(--invert-muted); font-size: 1.125rem; }
@media (max-width: 1000px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .learn { padding: 72px 0; }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-feature { grid-row: auto; padding: 28px; }
  .learn-item { padding: 24px; }
}

/* Journey */
.journey { padding: 96px 0; background: var(--surface); }
.journey-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.journey-side { position: sticky; top: 32px; }
.journey-figure { margin: 32px 0 0; }
.journey-figure figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.25rem; color: var(--gold); }
.journey-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.step { position: relative; padding: 0 0 56px 48px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  transition: background 0.5s var(--ease);
}
.step.is-visible::before { background: var(--accent); }
.when { display: block; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.step h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 60ch; }
.step .step-note { margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .journey { padding: 72px 0; }
  .journey-grid { grid-template-columns: 1fr; gap: 40px; }
  .journey-side { position: static; }
  .journey-figure { margin-top: 24px; }
  .journey-photo { aspect-ratio: 4 / 3; object-position: 50% 25%; }
}

/* Proof */
.proof { padding: 96px 0; }
.bento {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "a a a b b b"
    "a a a c c c"
    "d d e e f f"
    "g g g h h h";
}
.tile {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 150px;
}
.bento .tile:nth-child(1) { grid-area: a; }
.bento .tile:nth-child(2) { grid-area: b; }
.bento .tile:nth-child(3) { grid-area: c; }
.bento .tile:nth-child(4) { grid-area: d; }
.bento .tile:nth-child(5) { grid-area: e; }
.bento .tile:nth-child(6) { grid-area: f; }
.bento .tile:nth-child(7) { grid-area: g; }
.bento .tile:nth-child(8) { grid-area: h; }
.num { font-weight: 700; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.label { color: var(--muted); max-width: 32ch; }
.tile-feature { background: var(--surface-2); padding: 36px; }
.tile-feature .num { font-size: clamp(4rem, 9vw, 7.5rem); }
.tile-feature .label { font-size: 1.25rem; color: var(--ink); }
.tile-wide { background: var(--invert-bg); color: var(--invert-ink); flex-direction: row; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; min-height: 0; }
.tile-wide .num { color: var(--invert-gold); }
.tile-wide .label { color: var(--invert-muted); font-size: 1.125rem; max-width: none; }

@media (max-width: 860px) {
  .proof { padding: 72px 0; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b c" "d e" "f g" "h h";
  }
  .tile { padding: 22px; min-height: 0; }
  .tile-feature { padding: 28px; }
}

/* Carla */
.story { padding: 96px 0; background: var(--surface); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: center; }
.story-age {
  font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold);
  font-size: clamp(9rem, 22vw, 18rem); line-height: 0.85; letter-spacing: -0.04em; text-align: center;
}
.story-photo { margin: 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.story-photo figcaption { margin-top: 14px; font-weight: 600; font-size: 1.125rem; }
.story-photo figcaption span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.75rem; }
.story-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 16px; max-width: 24ch; }
.story-body > p { color: var(--muted); max-width: 55ch; margin-bottom: 28px; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: var(--radius); padding: 18px 20px; }
.story-list i { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 860px) {
  .story { padding: 72px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-photo { max-width: 320px; margin-bottom: 24px; }
  .story-list { grid-template-columns: 1fr; }
}

/* Resources */
.resources { padding: 96px 0; }
.resource-grid {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.resource {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  text-decoration: none; transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.resource:hover { transform: translateY(-3px); background: var(--surface-2); }
.resource-feature { grid-row: span 2; background: var(--invert-bg); color: var(--invert-ink); padding: 40px; justify-content: flex-end; min-height: 360px; }
.resource-feature:hover { background: var(--invert-bg); }
.resource-icon { font-size: 2rem; color: var(--gold); margin-bottom: auto; }
.resource-feature .resource-icon { color: var(--invert-gold); font-size: 2.5rem; }
.resource h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; margin-top: 20px; }
.resource-feature h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.resource p { color: var(--muted); }
.resource-feature p { color: var(--invert-muted); }
.resource-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 6px; }
.resource-link i { transition: transform 0.3s var(--ease); }
.see-all { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 600; font-size: 1.125rem; text-underline-offset: 5px; }
.see-all:hover i { transform: translateX(4px); }
.see-all i { transition: transform 0.3s var(--ease); }
.resource:hover .resource-link i { transform: translateX(4px); }

@media (max-width: 860px) {
  .resources { padding: 72px 0; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-feature { grid-row: auto; min-height: 0; padding: 28px; }
}

/* Closing */
.closing { padding: 0 0 96px; }
.closing-inner {
  background: var(--invert-bg); color: var(--invert-ink);
  border-radius: var(--radius); padding: 72px 32px; text-align: center;
}
.closing-title { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 4px; }
.closing-title em { color: var(--invert-gold); font-size: 1.1em; }
.closing-inner p { color: var(--invert-muted); margin: 14px auto 32px; max-width: 44ch; font-size: 1.125rem; }

@media (max-width: 640px) {
  .closing { padding-bottom: 72px; }
  .closing-inner { padding: 56px 22px; }
}

/* Follow */
.follow { border-top: 1px solid var(--hairline); }
.follow-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.follow-title { font-weight: 600; font-size: 1.125rem; }
.follow-title span { color: var(--gold); }
.follow-links { display: flex; gap: 12px; }
.follow-links a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px;
  transition: background 0.3s var(--ease);
}
.follow-links a:hover { background: var(--surface); }
.follow-links i { font-size: 1.25rem; }

/* Footer */
.site-footer { background: var(--surface); padding: 32px 0 40px; font-size: 0.875rem; color: var(--muted); }
.footer-top { margin-bottom: 10px; }
.footer-top a { text-underline-offset: 3px; }
.footer-note { max-width: 80ch; }

/* Scroll reveal: only when JS runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Free resources library and resource pages ---------- */
.res-hero, .lib-hero { padding: 72px 0 40px; }
.res-hero-inner { max-width: 860px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }
.res-kind { font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.res-title { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; padding-bottom: 4px; max-width: 18ch; }
.res-title em { font-size: 1.08em; }
.res-intro { color: var(--muted); font-size: 1.1875rem; margin-top: 18px; max-width: 60ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters-tools { margin-top: 10px; }
.chip {
  font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 14px; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover { background: var(--surface); }
.chip.is-active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

.lib-body { padding: 16px 0 96px; }
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lib-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
a.lib-card:hover { transform: translateY(-3px); background: var(--surface-2); }
.lib-card[hidden] { display: none; }
.lib-type { font-weight: 600; font-size: 0.875rem; color: var(--gold); }
.lib-title { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; }
.lib-desc { color: var(--muted); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lib-tags span { font-size: 0.8125rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 10px; color: var(--muted); }
.lib-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: auto; padding-top: 8px; }
a.lib-card:hover .lib-open i { transform: translateX(4px); }
.lib-open i { transition: transform 0.3s var(--ease); }
.lib-coming { background: transparent; border: 1px dashed var(--line); }
.lib-coming ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.lib-empty { color: var(--muted); margin-top: 24px; }

.res-body { padding: 8px 0 88px; }
.res-list { max-width: 860px; }
.res-item { display: grid; grid-template-columns: 72px 1fr; gap: 8px 24px; padding: 40px 0; border-top: 1px solid var(--hairline); }
.res-num { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); font-size: 3.5rem; line-height: 0.9; }
.res-item-title { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; }
.res-what { font-size: 1.125rem; color: var(--ink); }
.res-good, .res-tip { color: var(--muted); margin-top: 6px; }
.res-tip { margin-top: 14px; }

.prompt { position: relative; margin-top: 18px; background: var(--invert-bg); color: var(--invert-ink); border-radius: var(--radius); }
.prompt pre {
  margin: 0; padding: 22px 22px 64px; white-space: pre-wrap; word-break: break-word;
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
}
.copy-btn {
  position: absolute; right: 12px; bottom: 12px; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 600;
  background: var(--invert-gold); color: var(--invert-bg); border: 0; border-radius: var(--radius); padding: 8px 14px;
}
.copy-btn.is-copied { background: var(--invert-ink); }

.res-mid { background: var(--surface); border-radius: var(--radius); padding: 28px 32px; margin: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.res-mid p { font-weight: 600; font-size: 1.125rem; max-width: 40ch; }

.res-setup { max-width: 860px; background: var(--surface); border-radius: var(--radius); padding: 32px; margin-bottom: 56px; }
.res-setup > p { color: var(--muted); max-width: 64ch; }
.cmd-group { margin-bottom: 48px; }
.cmd-group-title { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.01em; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.cmd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cmd { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.cmd-name { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cmd-name span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
.cmd-desc { color: var(--muted); }
.cmd-try { margin-top: 10px; font-size: 0.9375rem; }

.res-cta { padding: 0 0 96px; }

@media (max-width: 860px) {
  .res-hero, .lib-hero { padding: 48px 0 28px; }
  .lib-grid, .cmd-grid { grid-template-columns: 1fr; }
  .lib-card { padding: 24px; }
  .res-item { grid-template-columns: 1fr; padding: 32px 0; }
  .res-num { font-size: 2.75rem; }
  .res-setup { padding: 24px; }
  .res-cta, .lib-body, .res-body { padding-bottom: 72px; }
}

/* 50 prompts pack */
.p50-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p50 { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.p50-num { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); font-size: 1.75rem; line-height: 1; padding-top: 18px; }
.p50 .prompt { margin-top: 0; }
.p50 .prompt pre { font-size: 0.9375rem; padding-bottom: 56px; }
@media (max-width: 860px) { .p50-grid { grid-template-columns: 1fr; } }

/* Phones: keep the button on screen; the longer intro line follows it */
@media (max-width: 860px) {
  .hero-copy { display: flex; flex-direction: column; padding-top: 24dvh; }
  .hero-ctas { order: 3; }
  .hero-sub { order: 4; margin: 24px 0 0; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .tile .num { font-size: 2rem; }
  .tile-feature .num { font-size: 3.5rem; }
  .tile { padding: 18px; }
}
@media (max-width: 860px) and (max-height: 740px) {
  .hero-copy { padding-top: 20dvh; }
  .hero-headline { font-size: 2.5rem; }
  .hero-promise { font-size: 1rem; margin-bottom: 18px; }
}

/* What to do next: three steps under the help line */
.help-inner > .next-steps { max-width: none; }
.next-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.next-steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.next-num { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); font-size: 2.5rem; line-height: 1; }
.next-steps h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.next-steps p { color: var(--muted); }
.next-steps .text-link { margin-top: auto; padding-top: 6px; }
.help-line { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 860px) { .next-steps { grid-template-columns: 1fr; } .next-steps li { padding: 22px; } }

/* Carla's testimonial */
.testimonial { margin: 28px 0 0; padding: 28px 32px; background: var(--invert-bg); color: var(--invert-ink); border-radius: var(--radius); }
.testimonial p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; }
.testimonial footer { margin-top: 14px; font-weight: 600; color: var(--invert-gold); font-size: 0.9375rem; }
@media (max-width: 860px) { .testimonial { padding: 22px; } }
