/* Tidyhaus — page sections (prefix th-). Tokens only; shared components come from raylo.css. */

/* ── Hero (hero-c): paper head + wide finished room ── */
main > .section.th-hero { padding-top: 88px; }
.th-hero__head .t-display { max-width: 12em; }
.th-hero__head .t-lead { max-width: 540px; }
.th-hero__media .v-chip { display: inline-flex; align-items: center; gap: 8px; }
.th-hero__media .v-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ── Pains: "the old way" → the fix ── */
.th-pains__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.th-pain { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r); background: var(--surface); }
.th-pain__k { align-self: flex-start; padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; line-height: 1.2; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.th-pain__was { font-family: var(--font-display); font-size: 24px; line-height: 1.3; letter-spacing: -.042em; font-weight: 600; color: var(--text); text-wrap: balance; }
.th-pain__fix { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.th-pain__fix svg { width: 26px; height: 26px; color: var(--accent-ink); }
.th-pain__fix p { color: var(--text-2); font-size: 15px; }
.th-pain__fix b { color: var(--text); }

/* ── Same-cleaner profile: photo left (absolute, text sets height) ── */
.th-pro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 104px); align-items: stretch; }
.th-pro__media { position: relative; min-height: 560px; border-radius: var(--r); overflow: hidden; background: var(--surface-3); }
.th-pro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.th-pro__id { position: absolute; right: 16px; bottom: 16px; width: min(280px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--surface); }
.th-pro__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.th-pro__who { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.th-pro__who b { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.th-pro__who span { color: var(--text-2); }
.th-pro__body { display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.th-pro__body .sec-head { margin-bottom: 40px; }
.th-pro__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 40px; }
.th-pro__stats li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-sm); background: var(--surface); }
.th-pro__stats b { font-family: var(--font-display); font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -.05em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.th-pro__stats span { font-size: 14px; color: var(--text-2); }
.th-pro__ticks { gap: 18px; }

/* ── Room-by-room visit sheet: sheet left, photo right ── */
.th-rooms { display: grid; grid-template-columns: 7fr 5fr; gap: var(--card-gap); align-items: stretch; }
.th-rooms__body { display: flex; flex-direction: column; padding-right: clamp(0px, 3vw, 40px); }
.th-rooms__body .sec-head { margin-bottom: 40px; }
.th-sheet { border-radius: var(--r); background: var(--surface); overflow: hidden; }
.th-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 15px; }
.th-sheet__top b { font-weight: 500; }
.th-sheet__done { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.th-sheet__done::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.th-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; }
.th-room { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.th-room:nth-child(-n+2) { border-top: 0; }
.th-room:nth-child(odd) { border-right: 1px solid var(--line); }
.th-room__t { margin-bottom: 14px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.th-room ul { display: flex; flex-direction: column; gap: 10px; }
.th-room li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.th-room li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); }
.th-room li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat; }
.th-rooms__media { position: relative; min-height: 480px; border-radius: var(--r); overflow: hidden; background: var(--surface-3); }
.th-rooms__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* ── Price picker ── */
.th-price { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; max-width: 1040px; margin-inline: auto; padding: 12px; border-radius: var(--r-lg); background: var(--surface); }
.th-price__pick { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 36px 36px; }
.th-price__label { margin-bottom: 12px; font-size: 13px; line-height: 1.2; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.th-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.th-seg__b { min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); font-size: 15px; font-weight: 500; letter-spacing: -.013em; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.th-seg__b:hover { color: var(--text); }
.th-seg__b[aria-pressed="true"] { background: var(--ink-bg); color: var(--on-dark); }
.th-price__out { width: 100%; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.th-price__amt { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 72px; line-height: 1; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.th-price__amt small { font-family: var(--font); font-size: 15px; letter-spacing: 0; font-weight: 300; color: var(--text-2); }
.th-price__note { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.th-price__btn { margin-top: 32px; }
.th-price__inc { display: flex; flex-direction: column; padding: 36px 32px; border-radius: var(--r); background: var(--surface-2); }
.th-price__inc .ticks { gap: 18px; margin-top: 8px; }
.th-price__inc .ticks li { color: var(--text-2); }
.th-price__fine { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--text-2); }

/* ── Re-clean promise: beige band, steps + family photo ── */
.th-promise { border-radius: var(--r-hero); }
.th-promise__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.th-promise__body { display: flex; flex-direction: column; justify-content: center; }
.th-promise__body .sec-head { margin-bottom: 48px; }
.th-promise__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.th-promise__steps li { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: var(--r); background: var(--surface); font-size: 14px; color: var(--text-2); }
.th-promise__steps b { margin-top: 18px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.th-promise__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 500; }
.th-promise__media { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; }
.th-promise__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ── Eco: photo left, chips right ── */
.th-eco { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
.th-eco__media { position: relative; aspect-ratio: 12 / 11; border-radius: var(--r); overflow: hidden; }
.th-eco__media img { width: 100%; height: 100%; object-fit: cover; }
.th-eco__body .sec-head { margin-bottom: 36px; }
.th-eco__body .sec-head p { max-width: 440px; }
.th-eco__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.th-eco__chips li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: 15px; font-weight: 500; }
.th-eco__chips svg { width: 22px; height: 22px; color: var(--accent); }

/* ── CTA: soft paper wash at the top so the head reads over the room ── */
.th-cta .cta-band::after { content: ""; position: absolute; inset: 0 0 auto; height: 62%; z-index: -1; background: linear-gradient(to bottom, rgba(246, 243, 239, .92) 0%, rgba(246, 243, 239, .8) 55%, rgba(246, 243, 239, 0)); pointer-events: none; }
.th-cta .cta-band > img { object-position: 50% 70%; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .th-pains__list { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .th-pain__was { font-size: 22px; }
  .th-rooms { grid-template-columns: 1fr; }
  .th-rooms__body { padding-right: 0; }
  .th-rooms__media { min-height: 0; aspect-ratio: 16 / 10; }
  .th-price { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  main > .section.th-hero { padding-top: 64px; }
  .th-pro, .th-promise__grid, .th-eco { grid-template-columns: 1fr; gap: 40px; }
  .th-pro__media { min-height: 0; aspect-ratio: 4 / 5; max-height: 640px; }
  .th-pro__body { padding-block: 0; }
  .th-promise__media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  main > .section.th-hero { padding-top: 40px; }
  .th-pain { padding: 24px; }
  .th-pro__stats { gap: 8px; }
  .th-pro__stats li { padding: 14px; }
  .th-pro__stats b { font-size: 26px; }
  .th-pro__stats span { font-size: 13px; }
  .th-sheet__top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .th-sheet__grid { grid-template-columns: 1fr; }
  .th-room { padding: 20px; border-right: 0 !important; }
  .th-room:nth-child(2) { border-top: 1px solid var(--line); }
  .th-price { padding: 8px; border-radius: var(--r); }
  .th-price__pick { padding: 24px 16px; }
  .th-seg { width: 100%; }
  .th-seg__b { flex: 1; padding-inline: 12px; }
  .th-price__amt { font-size: 56px; }
  .th-price__btn { width: 100%; }
  .th-price__inc { padding: 24px 20px; }
  .th-promise__steps { grid-template-columns: 1fr; }
  .th-promise__steps li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .th-promise__steps b { margin-top: 0; }
  .th-promise__steps li > span:last-child { flex-basis: 100%; padding-left: 52px; margin-top: -10px; }
}

/* Brand icons on espresso: the pale tint reads, the deep green would not */
.btn--dark svg, .cta-band__strip svg { color: var(--accent-soft); }
.th-price__inc .th-price__label { color: var(--text-2); }
@media (max-width: 560px) { .th-seg__b { white-space: nowrap; font-size: 14px; padding-inline: 10px; } }
@media (max-width: 900px) and (min-width: 561px) {
  .th-pro__media { aspect-ratio: 16 / 11; max-height: none; }
  .th-pro__media img { object-position: 60% 25%; }
  .th-eco__media { aspect-ratio: 16 / 10; }
}
