/* Home page only. Shared tokens and components live in base.css. */

/* ---------- 1. Hero ---------- */
.hero { padding-block: var(--s5) var(--section); position: relative; isolation: isolate; }
.hero__grid { display: grid; gap: var(--s4); }
.hero__text h1 { margin-top: 0; }
.hero__photo { position: relative; }
.hero__photo picture, .hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.hero__caption {
  display: flex; justify-content: space-between; gap: var(--s2);
  margin-top: 12px; font-size: var(--text-sm); color: var(--muted);
}
.hero__caption span:first-child { color: var(--ink); font-weight: 500; }
.hero__body { display: grid; gap: var(--s4); }
.hero__meta {
  display: grid; gap: var(--s2);
  padding-top: var(--s4); border-top: 1px solid var(--line);
}
.hero__meta li { display: grid; gap: 2px; }
.hero__meta .eyebrow { margin-bottom: 0; }
.hero__meta a:hover { color: var(--brass); }

@media (min-width: 1024px) {
  .hero { padding-block: var(--s7) var(--section); }
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". photo" "text photo" "body photo" ". photo";
    column-gap: var(--s7); row-gap: var(--s5);
    align-items: start;
  }
  .hero__text { grid-area: text; }
  .hero__photo { grid-area: photo; align-self: stretch; }
  .hero__photo picture, .hero__photo img { height: 100%; max-height: min(72vh, 820px); }
  .hero__body { grid-area: body; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
@media (min-width: 1600px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}

/* ---------- 2. Role map: shared .lanes component in motion.css ---------- */

/* ---------- 3. Deal types ---------- */
.deals__grid { display: grid; gap: var(--s2); grid-auto-rows: 1fr; }
.deal { transition: border-color 300ms var(--ease), transform 300ms var(--ease); }
.deal:hover { border-color: var(--brass); }
.deal__name { font-family: var(--font-display); font-size: var(--h3); line-height: 1.15; margin-bottom: var(--s2); }
.deal__foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: auto; }
.deal__price { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
@media (min-width: 700px) { .deals__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (min-width: 1200px) { .deals__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 3b. Who I work with (investors / wholesalers / agents) ---------- */
.who__grid { display: grid; gap: var(--s2); grid-auto-rows: 1fr; }
.who { transition: border-color 300ms var(--ease); }
.who:hover { border-color: var(--brass); }
.who__name { font-family: var(--font-display); font-size: var(--h3); line-height: 1.15; margin-bottom: var(--s2); }
.who__terms { display: block; font-size: var(--text-sm); color: var(--brass); margin-bottom: var(--s2); }
.who__foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: auto; }
@media (min-width: 700px) { .who__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }

/* ---------- 4. Fee builder ---------- */
.fees__grid { display: grid; gap: var(--s5); }
.fees__controls { display: grid; gap: var(--s5); }
.fees__controls .section__head { margin-bottom: 0; }
.fees__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.fees__group legend { padding: 0; margin-bottom: var(--s2); }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 72px; padding: 12px 16px; text-align: left;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 500; line-height: 1.25;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease);
}
.chip .num { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted-light); line-height: 1; }
.chip:hover { border-color: rgba(245,241,232,0.5); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.chip[aria-pressed="true"] .num { color: var(--brass); }
.toggles { display: grid; gap: 10px; }
.toggle {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s2);
  padding: 16px; min-height: 72px;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  cursor: pointer; transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.toggle:hover { border-color: rgba(245,241,232,0.5); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Switch: uiverse-style track + knob, restyled to the palette (brass track when on, ivory knob, soft inner shadow) */
.toggle__switch {
  width: 48px; height: 28px; border-radius: 14px; flex: none;
  background: rgba(245,241,232,0.14); position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.35), 0 0 0 0 rgba(194,163,101,0);
  transition: background-color 400ms var(--ease), box-shadow 500ms var(--ease);
}
.toggle__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #fffdf8, var(--ivory-2));
  box-shadow: 0 2px 4px rgba(0,0,0,0.35), inset 0 -1px 0 rgba(0,0,0,0.08);
  transition: transform 500ms var(--ease), width 220ms var(--ease);
}
.toggle:active .toggle__switch::after { width: 26px; }
.toggle input:checked ~ .toggle__switch { background: var(--brass-2); box-shadow: inset 0 1px 3px rgba(0,0,0,0.25), 0 0 0 5px rgba(194,163,101,0.12); }
.toggle input:checked ~ .toggle__switch::after { transform: translateX(20px); }
.toggle:active input:checked ~ .toggle__switch::after { transform: translateX(16px); }
.toggle input:focus-visible ~ .toggle__switch { outline: 2px solid var(--brass-2); outline-offset: 3px; }
.toggle:has(input:checked) { border-color: var(--brass-2); background: rgba(194,163,101,0.08); }
.toggle__text { display: grid; gap: 2px; min-width: 0; }
.toggle__name { font-weight: 500; }
.toggle__desc { font-size: var(--text-sm); color: var(--muted-light); }
.toggle__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted-light); }
.toggle:has(input:checked) .toggle__price { color: var(--brass-2); }

.summary {
  background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: var(--s4); display: grid; gap: var(--s2);
}
.summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding-block: 12px; border-bottom: 1px solid var(--line-light); }
.summary__row--total { padding-top: 0; }
.summary__label { color: var(--muted-light); }
.summary__value { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; color: var(--ivory); }
.summary__value--sm { font-size: 1.75rem; }
.summary__pick { color: var(--muted-light); min-height: 1.6em; }
.summary__actions { display: grid; gap: var(--s3); justify-items: center; padding-top: var(--s2); }
@media (min-width: 1024px) {
  .fees__grid { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr); gap: var(--s7); align-items: start; }
  .fees__summary { position: sticky; top: calc(var(--header-h) + var(--s3)); }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .summary { padding: var(--s5); }
}
@media (min-width: 1600px) { .fees__grid { grid-template-columns: minmax(0, 1.5fr) minmax(420px, 0.5fr); } }

/* ---------- 5. How a file moves (compact steps; the shared .steps component lives in motion.css) ---------- */
.timeline .step__inner { background: var(--ivory); }
.timeline__more { margin-top: var(--s5); }
@media (min-width: 640px) { .timeline__more { justify-content: center; } }

/* ---------- 6. Why Kristen ---------- */
.why__grid { display: grid; gap: var(--s5); }
.why__text .section__head { margin-bottom: var(--s4); }
.why__copy { display: grid; gap: var(--s3); max-width: 58ch; }
.why__copy .text-link { justify-self: start; margin-top: var(--s1); }
.quote {
  background: var(--ink); color: var(--ivory); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4); display: grid; gap: var(--s4); align-content: center;
}
.quote__text p {
  font-family: var(--font-display); font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.25;
  text-wrap: pretty;
}
.quote__text p::before { content: "\201C"; color: var(--brass-2); }
.quote__text p::after { content: "\201D"; color: var(--brass-2); }
.quote__by { display: grid; gap: 4px; padding-top: var(--s3); border-top: 1px solid var(--line-light); }
.quote__name { font-weight: 500; }
.quote__label { font-size: var(--text-sm); color: var(--muted-light); }
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: stretch; }
  .quote { padding: var(--s6); }
}

/* ---------- 7. FAQ ---------- */
.faq__list { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding-block: var(--s3); font-family: var(--font-display); font-size: var(--h3); line-height: 1.2;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { width: 14px; height: 14px; position: relative; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--brass); left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform 300ms var(--ease); }
.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { padding-bottom: var(--s3); max-width: 62ch; color: var(--muted); }
@media (min-width: 1024px) { .faq__list { grid-template-columns: 1fr 1fr; column-gap: var(--s7); } .faq__item:nth-child(2) { border-top: 0; } }

/* ---------- 8. Final CTA ---------- */
.cta__inner { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.cta__inner .eyebrow { margin-bottom: 0; }
.cta__inner .btn-row { width: 100%; }
.cta__title { max-width: 18ch; }
.cta__contact a { color: var(--ivory); border-bottom: 1px solid var(--brass-2); }
