/* =====================================================================
   HOME 2 - the parallel homepage (home-2.html only)
   Everything here is additive and scoped to Home 2's own sections.
   Shared components (hero, hairline, flow, circle, binder, tiles,
   ticker cards, CTA band, overlay) keep their rules in careific.css.
   ===================================================================== */

/* in-page targets sit clear of the sticky header */
#product, #binder, #adopt, #rosie, #faq, #why { scroll-margin-top: 5.5rem; }

/* ---------- Hero: audience row under the buttons ---------- */
.hero-aud { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem .6rem; }
.hero-aud-label { font-size: .95rem; color: var(--ink-500); margin-right: .25rem; }
body.dark .hero-aud-label { color: rgba(255,255,255,.6); }
.hero-aud a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 600; color: var(--slate);
  border: 1px solid var(--ink-200); border-radius: 999px; padding: .5em 1.1em;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.hero-aud a:hover { border-color: var(--sage-500); color: var(--sage-700); background: var(--sage-tint); }
body.dark .hero-aud a { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.2); }
body.dark .hero-aud a:hover { color: var(--sage-300); border-color: var(--sage-500); background: rgba(111,186,138,.1); }

/* ---------- Proof strip ---------- */
.proof-tags { margin-top: 0; }
.proof-tags .tag { font-size: .98rem; padding: .7em 1.25em; }

/* ---------- Outcome blocks ---------- */
.ob-list { display: grid; gap: clamp(3.25rem, 7vw, 5.75rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.ob { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ob:nth-child(even) .ob-media { order: -1; }
.ob-copy h3 { font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; }
.ob-copy .lead { margin-top: 1rem; font-size: 1.08rem; max-width: 30em; }
.ob-copy .link-arrow { margin-top: 1.375rem; font-size: 1rem; }
.ob--lav .link-arrow { color: var(--lav-700); }
body.dark .ob--lav .link-arrow { color: var(--lav-300); }
.ob-media { max-width: 46rem; }
.ob-more { margin-top: 2rem; text-align: center; }
@media (max-width: 820px) {
  .ob { grid-template-columns: 1fr; gap: 1.5rem; }
  .ob:nth-child(even) .ob-media { order: 0; }
  .ob-media { max-width: none; }
}


/* ---------- Adoption demo: the staff member's phone ---------- */
.adopt { display: grid; grid-template-columns: minmax(0, 19.5rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 58rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.phone {
  position: relative; width: min(19rem, 86vw); aspect-ratio: 9 / 19; margin: 0 auto;
  border-radius: 2.75rem; background: #0e1217; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 .55rem #111418, 0 0 0 .66rem #2a2f36, 0 2.5rem 5rem -2rem rgba(0,0,0,.75);
  -webkit-user-select: none; user-select: none;
}
.phone-notch { position: absolute; top: .65rem; left: 50%; transform: translateX(-50%); width: 6rem; height: 1.5rem; border-radius: 999px; background: #111418; z-index: 6; }
.phone-screen { position: absolute; inset: 0; font-family: var(--font); }
.ph-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s; }
.ph-scene.is-on { opacity: 1; visibility: visible; transition: opacity .25s ease, transform .25s var(--ease), visibility 0s; }

/* lock screen */
.ph-lock {
  color: #fff; padding: 3.75rem .85rem 1rem; display: flex; flex-direction: column;
  background:
    radial-gradient(110% 70% at 25% 8%, rgba(111,186,138,.38), transparent 60%),
    radial-gradient(90% 60% at 90% 95%, rgba(63,138,93,.3), transparent 60%),
    linear-gradient(170deg, #1d2631 0%, #10161d 100%);
}
.ph-clock { text-align: center; margin-top: .35rem; }
.ph-clock small { display: block; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.72); }
.ph-clock b { display: block; font-size: 3.6rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; margin-top: .2rem; }
.ph-notes { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.ph-note {
  position: relative; display: grid; grid-template-columns: 2.1rem 1fr; gap: .65rem; align-items: start;
  padding: .7rem .75rem .75rem; border-radius: 1.1rem; background: rgba(255,255,255,.92); color: #1c1c1e;
  box-shadow: 0 .75rem 1.75rem -1rem rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-1.25rem); transition: opacity .25s ease, transform .3s var(--ease);
}
.ph-note.is-in { opacity: 1; transform: none; }
.ph-app { width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: grid; place-items: center; color: #fff; }
.ph-app svg { width: 1.3rem; height: 1.3rem; }
.ph-app--wa { background: #2f9e6b; }
.ph-app--sms { background: #3f8a5d; }
.ph-note-body { display: flex; flex-direction: column; min-width: 0; }
.ph-note-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .7rem; color: #6b6b70; }
.ph-note-head b { font-weight: 600; color: #1c1c1e; }
.ph-note-from { font-size: .82rem; font-weight: 700; margin-top: .1rem; }
.ph-note-text { font-size: .8rem; line-height: 1.35; margin-top: .1rem; color: #2c2c30; }

/* the tap: a short sage ripple where the finger lands */
.ph-tap { position: absolute; width: 2.4rem; height: 2.4rem; border-radius: 50%; pointer-events: none; z-index: 7; opacity: 0; background: rgba(111,186,138,.35); box-shadow: 0 0 0 .2rem rgba(111,186,138,.35); transform: translate(-50%, -50%) scale(.4); }
.ph-tap.is-on { animation: phTap .4s ease-out both; }
@keyframes phTap { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }

/* the pass, inside Careific */
.ph-app-scene { background: #f6f7f8; color: #1d2229; transform: translateY(1.5rem); display: flex; flex-direction: column; }
.ph-app-scene.is-on { transform: none; }
.ph-top { padding: 3.1rem .9rem .75rem; background: #fff; border-bottom: 1px solid #e6e8ea; display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: center; }
.ph-top img { width: 1.6rem; height: 1.6rem; }
.ph-top b { display: block; font-size: .92rem; font-weight: 700; }
.ph-top small { display: block; font-size: .7rem; color: #6b7280; margin-top: .05rem; }
.ph-list { padding: .75rem .7rem; display: flex; flex-direction: column; gap: .55rem; overflow: hidden; }
.ph-res { background: #fff; border: 1px solid #e6e8ea; border-radius: .9rem; padding: .6rem .7rem; }
.ph-res-head { display: flex; align-items: center; gap: .55rem; }
.ph-ava { width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #3f8a5d; background: #e2f0e8; flex: 0 0 auto; }
.ph-res-head b { display: block; font-size: .84rem; font-weight: 700; line-height: 1.2; }
.ph-res-head small { display: block; font-size: .68rem; color: #6b7280; }
.ph-res-head .ph-count { margin-left: auto; font-size: .68rem; font-weight: 700; color: #6b7280; }
.ph-dose { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; padding: .5rem 0 0; margin-top: .5rem; border-top: 1px solid #eef0f2; }
.ph-dose b { display: block; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.ph-dose small { display: block; font-size: .66rem; color: #6b7280; margin-top: .1rem; }
.ph-given { font: 700 .72rem var(--font); color: #fff; background: #3f8a5d; border: 0; border-radius: 999px; padding: .42em 1em; pointer-events: none; }
.ph-done { display: none; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; color: #3f8a5d; white-space: nowrap; }
.ph-done svg { width: .95rem; height: .95rem; }
.ph-dose.is-given .ph-given { display: none; }
.ph-dose.is-given .ph-done { display: inline-flex; }
.ph-dose.is-given b { color: #4b5563; }
.ph-res.is-dim { opacity: .55; }
.ph-toast {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translate(-50%, .75rem); z-index: 5;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .76rem; font-weight: 700; color: #fff; background: #27303f; border-radius: 999px; padding: .55em 1em;
  box-shadow: 0 .75rem 1.5rem -.75rem rgba(0,0,0,.6); opacity: 0; transition: opacity .35s ease, transform .45s var(--ease);
}
.ph-toast svg { width: .9rem; height: .9rem; color: var(--sage-300); }
.ph-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the three beats beside the phone */
.adopt-beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.adopt-beats li { position: relative; padding-left: 2rem; opacity: .42; transition: opacity .45s ease; }
.adopt-beats li.is-on { opacity: 1; }
.adopt-beats li::before { content: ""; position: absolute; left: .2rem; top: .5rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--sage-500); background: transparent; transition: background .35s ease, box-shadow .35s ease; }
.adopt-beats li.is-on::before { background: var(--sage-500); box-shadow: 0 0 0 .3rem rgba(111,186,138,.22); }
.adopt-beats b { display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--slate); }
.adopt-beats span { display: block; margin-top: .3rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink-500); max-width: 26em; }
body.dark .adopt-beats b { color: #fff; }
body.dark .adopt-beats span { color: rgba(255,255,255,.66); }
.adopt-replay { margin-top: 1.5rem; }
.adopt-replay svg { width: 1.05em; height: 1.05em; }
.adopt-note { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-400); max-width: 28em; }
body.dark .adopt-note { color: rgba(255,255,255,.5); }
@media (max-width: 820px) {
  .adopt { grid-template-columns: 1fr; gap: 2rem; }
  .adopt-beats { max-width: 30rem; margin: 0 auto; }
  .adopt-aside { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-scene, .ph-note, .ph-toast, .adopt-beats li, .adopt-beats li::before { transition: none; }
  .ph-tap.is-on { animation: none; opacity: 0; }
}

/* ---------- Rosie: what she watches for ---------- */
.rj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; max-width: 48rem; margin: 2.5rem auto 0; }
.rj-grid .tk-card { width: auto; margin-right: 0; }
#rosie .any-grid { margin-top: 2.25rem; }
.rosie-more { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.rosie-more .sec-head .h-lg { margin-top: 0; }
@media (max-width: 640px) { .rj-grid { grid-template-columns: 1fr; } }

/* ---------- Customer story card (drop-in when the first real quote arrives) ---------- */
.story { max-width: 46rem; margin: 2.5rem auto 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; align-items: center; }
.story-face { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
.story blockquote { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; }
.story cite { display: block; margin-top: .75rem; font-style: normal; font-size: .95rem; color: var(--ink-500); }
body.dark .story cite { color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin: 2.5rem auto 0; border-top: 1px solid var(--ink-100); }
.faq-item { border-bottom: 1px solid var(--ink-100); }
body.dark .faq, body.dark .faq-item { border-color: rgba(255,255,255,.12); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; min-height: 44px; font-size: 1.15rem; font-weight: 500; line-height: 1.35; color: var(--slate);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: var(--sage-500); transition: transform .3s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--sage-700); }
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--sage-500); outline-offset: 4px; border-radius: .25rem; }
body.dark .faq-item summary { color: #fff; }
body.dark .faq-item summary:hover { color: var(--sage-300); }
.faq-a { padding: 0 0 1.35rem; max-width: 40rem; }
.faq-a p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-500); }
body.dark .faq-a p { color: rgba(255,255,255,.68); }

/* ---------- Closing band: the proof line repeated ---------- */
.cta-band .trust-tags { margin-top: 2.25rem; justify-content: flex-start; }
.cta-band .tag { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.78); box-shadow: none; }
.cta-band .tag strong { color: #fff; }

/* ---------- Flow card: pick a resident ---------- */
.fl-rail [role="button"] { cursor: pointer; border-radius: .75rem; outline: none; }
.fl-rail [role="button"]:focus-visible .fr-face { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sage-500); }
body.dark .fl-rail [role="button"]:focus-visible .fr-face { box-shadow: 0 0 0 3px #161b22, 0 0 0 5px var(--sage-500); }
.fl-rail .frNone:hover .fr-face { box-shadow: 0 0 0 2px var(--sage-300); }
.fl-who b, .fc-row b { transition: opacity .2s ease; }
/* values stay on one line so the card never changes height; the script shrinks the type to fit */
.fl-card .fc-row b { display: block; white-space: nowrap; overflow: hidden; min-width: 0; align-self: stretch; max-width: 100%; line-height: 1.5rem; }
.fl-card .fc-row { min-width: 0; }
/* the weight cell carries the longest values, so it gets a little more of the row */
@media (min-width: 1061px) { .fl-card .fc-grid { grid-template-columns: .8fr 1fr 1.4fr; } }
.fl-card.is-swapping .fl-who b, .fl-card.is-swapping .fc-row b { opacity: 0; }


/* ---------- Meet Rosie: her chat window, drawn in HTML ---------- */
#meet-rosie { scroll-margin-top: 5.5rem; }
.rchat { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); max-width: 56rem; margin: clamp(2rem, 4vw, 3rem) auto 0; min-height: 26rem;
  background: #fbfbfc; color: #1d2229; border: 1px solid #e3e5e9; border-radius: 1.25rem; overflow: hidden; font-family: var(--font);
  box-shadow: 0 2rem 4rem -2rem rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04); }
.rchat-side { background: #f4f3f8; border-right: 1px solid #e6e4ee; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.rchat-new { display: block; text-align: center; font-size: .86rem; font-weight: 700; color: var(--lav-700); background: #fff; border: 1px solid #e3dcef; border-radius: .7rem; padding: .6rem; }
.rchat-search { display: block; font-size: .8rem; color: #8a8f99; background: #fff; border: 1px solid #e6e4ee; border-radius: .7rem; padding: .55rem .8rem; }
.rchat-side ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.rchat-side li { padding: .55rem .7rem; border-radius: .6rem; border-left: 3px solid transparent; }
.rchat-side li.is-on { background: #fff; border-left-color: var(--lav-500); box-shadow: 0 .35rem 1rem -.6rem rgba(40,30,60,.3); }
.rchat-side li b { display: block; font-size: .8rem; font-weight: 700; line-height: 1.25; }
.rchat-side li small { display: block; font-size: .68rem; color: #8a8f99; margin-top: .1rem; }
.rchat-main { display: flex; flex-direction: column; min-width: 0; }
.rchat-head { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid #ebe8f1; background: #fff; }
.rchat-ava { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--lav-500), var(--lav-700)); box-shadow: 0 0 0 .35rem rgba(184,145,201,.18); }
.rchat-ava svg { width: 1.3rem; height: 1.3rem; }
.rchat-head b { font-size: .95rem; font-weight: 700; }
.rchat-head small { font-size: .72rem; color: #8a8f99; }
.rchat-thread { flex: 1; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.rchat-stamp { align-self: center; font-size: .7rem; color: #9aa0ab; }
.rchat-me { align-self: flex-end; max-width: 80%; background: #27303f; color: #fff; font-size: .9rem; padding: .7rem 1rem; border-radius: 1.1rem 1.1rem .3rem 1.1rem; }
.rchat-reply { align-self: flex-start; max-width: 88%; background: #fff; border: 1px solid #e3dcef; border-radius: 1.1rem 1.1rem 1.1rem .3rem; padding: .9rem 1rem .85rem; font-size: .88rem; line-height: 1.5; box-shadow: 0 .5rem 1.25rem -1rem rgba(60,40,90,.35); }
.rchat-reply p { margin: 0 0 .35rem; }
.rchat-reply ul { margin: 0; padding-left: 1.2rem; }
.rchat-reply li { margin: .15rem 0; }
.rchat-reply li b { font-weight: 700; }
.rchat-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.rchat-acts span { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--lav-700); border: 1px solid #d9cde6; border-radius: 999px; padding: .42em .9em; background: #fbf9fd; }
.rchat-acts svg { width: .9rem; height: .9rem; }
.rchat-input { display: grid; grid-template-columns: 1fr 2.4rem; gap: .6rem; align-items: center; padding: .9rem 1.1rem 1rem; border-top: 1px solid #ebe8f1; background: #fff; }
.rchat-input span { font-size: .9rem; color: #9aa0ab; border: 1.5px solid #d9cde6; border-radius: 999px; padding: .7rem 1.1rem; }
.rchat-input i { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--lav-500); }
.rchat-input svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 760px) { .rchat { grid-template-columns: 1fr; min-height: 0; } .rchat-side { display: none; } .rchat-me, .rchat-reply { max-width: 94%; } }

/* the link after the circle of care sits below its scroll range, not inside it */
.cs-more { margin: 0 auto; padding-bottom: clamp(2rem, 4vw, 3.5rem); position: relative; }
.cs-more .ob-more { margin-top: 0; }
