/* The care check-in page (site/care-check-in/): the site's design system with a warmer,
   family feel. Same-origin photos only (img/, CC0, see img/CREDITS.txt). */

:root {
  --pc-warm: #B85A32;
  --pc-warm-subtle: #FBEADF;
  --pc-cream: #F7F1E6;
  --pc-ink: #2A211B;
  --pc-veil: rgba(247, 241, 230, 0.97);
  --pc-veil-soft: rgba(247, 241, 230, 0);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pc-warm: #F0A27C;
    --pc-warm-subtle: #3A2619;
    --pc-cream: #1F1A15;
    --pc-ink: #F3ECE2;
    --pc-veil: rgba(23, 21, 18, 0.96);
    --pc-veil-soft: rgba(23, 21, 18, 0);
  }
}
:root[data-theme="dark"] {
  --pc-warm: #F0A27C;
  --pc-warm-subtle: #3A2619;
  --pc-cream: #1F1A15;
  --pc-ink: #F3ECE2;
  --pc-veil: rgba(23, 21, 18, 0.96);
  --pc-veil-soft: rgba(23, 21, 18, 0);
}

.pc .eyebrow { color: var(--pc-warm); }
.pc h1 em, .pc h2 em { font-style: normal; color: var(--pc-warm); }
.pc .btn--primary { background: var(--pc-warm); border-color: var(--pc-warm); color: #fff; }
.pc .btn--primary:hover { filter: brightness(0.95); }
:root[data-theme="dark"] .pc .btn--primary { color: #1F1A15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pc .btn--primary { color: #1F1A15; } }

/* ── hero: the photo behind, a warm veil where the words are ── */
.pc-hero {
  position: relative; overflow: hidden; background-color: var(--pc-cream);
  background-image: url("img/hero-call.jpg"); background-size: cover; background-position: 70% 30%;
}
.pc-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--pc-veil) 0%, var(--pc-veil) 38%, var(--pc-veil-soft) 72%);
}
.pc-hero__inner { position: relative; padding-block: var(--space-16); min-height: 520px; display: flex; align-items: center; }
.pc-hero__copy { max-width: 37rem; display: flex; flex-direction: column; gap: var(--space-6); }
.pc .cta-micro .icon { color: var(--pc-warm); }
.pc-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: var(--tracking-tight); color: var(--pc-ink); }
.pc-hero .lede { font-size: var(--text-lg); color: var(--pc-ink); }
.pc-trust { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.pc-trust li { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); background: var(--color-surface); border: var(--border-width) solid var(--color-border);
  font-size: var(--text-sm); color: var(--color-text); }
.pc-trust .icon { color: var(--pc-warm); }

/* ── photo frames ── */
.pc-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.pc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.pc-split--flip > :first-child { order: 2; }
.pc-figure { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.pc-badge {
  position: absolute; left: var(--space-4); bottom: calc(-1 * var(--space-6)); display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface);
  border: var(--border-width) solid var(--color-border); box-shadow: var(--shadow-md); font-size: var(--text-sm);
}
.pc-badge__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 4px var(--color-success-subtle); }

/* ── an example call: the conversation ── */
.pc-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pc-chat li { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); line-height: var(--leading-snug); }
.pc-chat .pc-chat__who { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-1); opacity: 0.75; }
.pc-chat .pc-us { background: var(--pc-warm-subtle); color: var(--color-text); border-bottom-left-radius: var(--space-1); }
.pc-chat .pc-them { align-self: flex-end; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-bottom-right-radius: var(--space-1); }

/* ── how it works ── */
.pc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: pc; }
.pc-steps li { counter-increment: pc; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.pc-steps li::before { content: counter(pc); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--pc-warm-subtle); color: var(--pc-warm); font-family: var(--font-display); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.pc-steps h3 { font-size: var(--text-lg); }

/* ── the note the family gets ── */
.pc-note { background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.pc-note__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.pc-note h3 { font-size: var(--text-xl); }
.pc-note ul { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.pc-note .pc-tag { display: inline-block; padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--color-success-subtle); color: var(--color-success); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.pc-example { font-size: var(--text-xs); color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: var(--tracking-wide); }

/* ── for the family: photos and promises ── */
.pc-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-4); height: 460px; }
.pc-mosaic > :first-child { grid-row: span 2; }
.pc-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.pc-mosaic > :first-child { object-position: 30% center; }
.pc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.pc-cards li { padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); border: var(--border-width) solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-1); }
.pc-cards strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--pc-warm); }

/* ── the closing band: a photo behind ── */
.pc-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg);
  background: var(--pc-cream); border: var(--border-width) solid var(--color-border); box-shadow: var(--shadow-md); }
.pc-cta__photo { order: 2; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 60% 30%; }
.pc-cta__inner { padding: var(--space-12) var(--space-10); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }

.pc-band { background: var(--pc-cream); }
/* Senior homes (owner, 26 Oct 2026): one line under the sign-up buttons, above a thin rule. */
.pc-homes { margin-top: var(--space-2); padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); }
.pc-homes a { font-weight: var(--weight-semibold); }

@media (max-width: 900px) {
  /* Phones: the photo as a band across the top, sized so the caller's face shows in it. */
  .pc-hero { background-size: auto 330px; background-position: 66% 0; background-repeat: no-repeat; }
  /* A clean photo band, then the words on solid cream (the headline never sits on a face). */
  .pc-hero::before { background: linear-gradient(180deg, var(--pc-veil-soft) 0, var(--pc-veil-soft) 200px, var(--pc-veil) 290px, var(--pc-veil) 100%); }
  .pc-hero__inner { min-height: 0; align-items: flex-end; padding-block: 290px var(--space-10); }
  .pc-split { grid-template-columns: 1fr; gap: var(--space-10); }
  .pc-split--flip > :first-child { order: 0; }
  .pc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-mosaic { height: 360px; }
  .pc-cta { grid-template-columns: 1fr; }
  .pc-cta__photo { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .pc-cta__inner { padding: var(--space-8) var(--space-6); }
}
@media (max-width: 560px) {
  .pc-steps, .pc-cards { grid-template-columns: 1fr; }
  .pc-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px; height: auto; }
  .pc-mosaic > :first-child { grid-row: auto; grid-column: span 2; }
  .pc-chat li { max-width: 100%; }
}

/* ── sample calls (audio/, rendered by scripts/render_checkin_samples.py) ── */
.pc-samples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pc-sample { background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.pc-sample h3 { font-size: var(--text-lg); }
.pc-sample audio { width: 100%; height: 40px; }
.pc-sample summary { cursor: pointer; font-size: var(--text-sm); color: var(--pc-warm); font-weight: var(--weight-semibold); }
.pc-sample details .pc-chat { margin-top: var(--space-3); }
.pc-sample .pc-chat li { font-size: var(--text-sm); }
.pc-real { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--pc-warm-subtle); }
.pc-real h3 { font-size: var(--text-lg); }
.pc-figure { align-self: start; position: sticky; top: calc(var(--space-16) + var(--space-6)); }
@media (max-width: 900px) { .pc-figure { position: relative; top: auto; } }
