/* Careific Teaser 2 - page-level overrides on top of careific.css and home-2.css.
   Only three things live here: the teaser's fog, the Meet Rosie split, and the solo contact form. */

/* Hero fog: careific.css already carries the live teaser's fog and emblem glow for the centered hero, light and dark. */

/* Meet Rosie: copy on the left, the Rosie phone on the right, as on the AI Insights hero.
   On phones the copy comes first and the phone sits centered beneath it. */
.rosie-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rosie-grid .sec-head { margin-inline: auto; text-align: center; }
.rosie-visual { display: flex; justify-content: center; }
.rosie-visual .hero-chat { display: block; }
@media (min-width: 981px) {
  .rosie-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .rosie-grid .sec-head { margin: 0; text-align: left; max-width: 34rem; }
  .rosie-grid .sec-head .lead { margin-inline: 0 !important; }
  .rosie-visual { justify-self: end; width: 100%; }
}



/* Anchor targets clear the sticky header (Home 2 already covers #adopt and #meet-rosie). */
#contact, #safety, #cards { scroll-margin-top: 5.5rem; }


/* Hero title: the first line sits a touch larger than the second. */
.hero--center h1.display { font-size: clamp(3rem, 6.8vw, 6.25rem); max-width: none; width: max-content; max-width: 100%; margin-inline: auto; }
.hero--center .hero-center { max-width: 64rem; }
.hero--center h1.display .h1-sub { font-size: .58em; margin-top: .22em; }
.hero--center h1.display { line-height: 1.02; }
.hero--center h1.display + .lead, .hero--center .hero-center > .lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* The people-in-your-care statement: one quiet paragraph, centered, between the doors and the demo. */
.statement-sec { padding-block: clamp(2.5rem, 6vw, 5rem); }
.statement { max-width: 46rem; margin-inline: auto; text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; font-weight: 700; letter-spacing: -.01em; color: var(--ink-700); }
body.dark .statement { color: rgba(255,255,255,.82); }


/* The four guard tiles close the Meet Rosie section, full width under the copy and the phone. */
.rosie-grid .guard-grid { grid-column: 1 / -1; margin-top: clamp(1.5rem, 3vw, 2.5rem); }


/* Contact heading: a little wider so the question holds to two lines on desktop. */
#contact .sec-head { max-width: 52rem; }


/* Adoption demo: Play it again sits centered under the phone, not in the text column. */
.adopt-stage { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.adopt-stage .adopt-replay { margin-top: 0; }

/* Three cards: the live teaser's Compliance / Medications / Intelligence row, with the doors' hover lift and glow. */
.word-tiles--glow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 0; }
.word-tiles--glow .word-tile { min-height: 19rem; padding: 2rem 2rem 1.9rem; border-radius: 1.25rem; cursor: default; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.word-tiles.word-tiles--glow .word-tile:hover, body.dark .word-tiles--glow .word-tile:hover { transform: translateY(-4px); border-color: var(--sage-500); box-shadow: 0 24px 50px -24px rgba(63,138,93,.55); }
.word-tiles.word-tiles--glow .word-tile.lav:hover, body.dark .word-tiles--glow .word-tile.lav:hover { border-color: var(--lav-500); box-shadow: 0 24px 50px -24px rgba(125,93,146,.55); }
body.dark .word-tiles--glow .word-tile .ico { background: rgba(168,213,186,.18); }
@media (hover: none) { .word-tiles--glow .word-tile:hover { transform: none; } }
.word-tiles--glow .word-tile .ico { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.word-tiles--glow .word-tile .ico svg { width: 1.6rem; height: 1.6rem; }
.word-tiles--glow .word-tile h3 { font-size: 1.5rem; }
.word-tiles--glow .word-tile p { font-size: 1.08rem; }
@media (max-width: 980px) { .word-tiles--glow { grid-template-columns: minmax(0, 1fr); } .word-tiles--glow .word-tile { min-height: 0; } }


#faq { scroll-margin-top: 5.5rem; }

#faq { padding-top: 0; }

/* Phones: the three cards share one height (the tallest sets it). */
@media (max-width: 980px) {
  .word-tiles--glow { grid-auto-rows: 1fr; }
  .word-tiles--glow .word-tile { min-height: 0; height: 100%; }
}

/* Contact heading sits a step below the closing statement in size. */
#contact .h-xl { font-size: clamp(1.5rem, 2.6vw + .6rem, 2.4rem); line-height: 1.12; }

/* Rosie tiles: same row width, size and shape as the three cards above. */
.tiles-wrap { margin-top: clamp(3.5rem, 7vw, 6rem); }
.tiles-wrap .guard-grid--3 { gap: 1.5rem; margin-top: 0; }
/* same break-out as the cards row (.word-tiles--bold): 84rem wide, centered */
@media (min-width: 981px) { .tiles-wrap .guard-grid--3 { width: min(84rem, 100vw - 3rem); margin-left: calc((100% - min(84rem, 100vw - 3rem)) / 2); } }
.guard-grid--3 .any-tile { min-height: 19rem; padding: 2rem 2rem 1.9rem; border-radius: 1.25rem; display: flex; flex-direction: column; gap: 0; }
.guard-grid--3 .any-ico { width: 3.5rem; height: 3.5rem; border-radius: 1rem; margin-bottom: 1.25rem; }
.guard-grid--3 .any-ico svg { width: 1.6rem; height: 1.6rem; }
.guard-grid--3 .any-tile h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; }
.guard-grid--3 .any-tile p { margin-top: .75rem; font-size: 1.08rem; line-height: 1.55; }
@media (min-width: 981px) { .guard-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .guard-grid--3 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; } .guard-grid--3 .any-tile { min-height: 0; height: 100%; display: flex; } }





/* Section rhythm: even breathing room, a hairline between sections, and content that drifts on its own plane. */
main > section.section, main > section.section--tight { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
main > section#everything { padding-top: 0; }
main > section[data-plx] > .wrap, main > section[data-plx] > .tiles-wrap { will-change: transform; }
@media (max-width: 899px) { main > section[data-plx] > .wrap, main > section[data-plx] > .tiles-wrap { transform: none !important; will-change: auto; } }

/* Hero sits higher: top padding trimmed by about 40%. */
.hero.hero--center { padding-top: clamp(2rem, 5.4vw, 4.5rem); }

/* One platform: heading and the three cards are one section, with the cards close under the lead. */
#platform .word-tiles--glow { margin-top: clamp(3rem, 5.6vw, 5rem); }

/* Phones: "Care is human work." holds to one line; the second line scales with it. */
@media (max-width: 640px) {
  .hero--center h1.display { font-size: clamp(1.9rem, 9.3vw, 3rem); white-space: nowrap; }
  .hero--center h1.display .h1-sub { font-size: .62em; }
}


/* Meet Rosie: three example conversations, one visible at a time, chosen by the pills under the copy. */
.rosie-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.rosie-pill { font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem .6rem; width: 10.25rem; text-align: center; white-space: nowrap; border-radius: 999px; border: 1px solid var(--ink-200); background: transparent; color: var(--ink-700); cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.rosie-pill:hover { border-color: var(--lav-500); color: var(--lav-700); }
.rosie-pill.is-active { background: var(--lav-tint); border-color: var(--lav-500); color: var(--lav-700); }
body.dark .rosie-pill { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.78); }
body.dark .rosie-pill:hover { border-color: var(--lav-500); color: var(--lav-300); }
body.dark .rosie-pill.is-active { background: rgba(184,145,201,.16); border-color: var(--lav-500); color: var(--lav-300); }
.rosie-grid .sec-head .rosie-pills { justify-content: center; }
@media (min-width: 981px) { .rosie-grid .sec-head .rosie-pills { justify-content: flex-start; } }
.rosie-videos { position: relative; display: flex; justify-content: center; }
.rosie-videos .hero-chat { display: none; }
.rosie-videos .hero-chat.is-active { display: block; }

/* Meet Rosie: all three phones use the light theme (white screen, slate text, lavender tints) on both page themes. */
/* Shell: the same phone as the adoption demo (home-2.css .phone: 19rem, 9/19, black bezel rings, pill notch). The light screen sits inside it. */
.rosie-videos .hero-chat { max-width: none; padding: 0; border: 0; }
.rosie-videos .hero-chat .phone-screen { background: #ffffff; border-radius: 0; display: flex; flex-direction: column; }
.rosie-videos .hero-chat .chat-head { padding-top: 2.75rem; }
.rosie-videos .hero-chat .chat-body { flex: 1; height: auto; min-height: 0; }
.rosie-videos .hero-chat .chat-head { border-bottom-color: var(--ink-100); }
.rosie-videos .hero-chat .chat-head b { color: var(--slate); }
.rosie-videos .hero-chat .chat-head small { color: var(--ink-400); }
.rosie-videos .hero-chat .bub.rosie { background: var(--lav-tint); border-color: rgba(184,145,201,.45); color: var(--slate); }
.rosie-videos .hero-chat .bub.rosie .cite { color: var(--lav-700); }
.rosie-videos .hero-chat .bub .acts span { background: #fff; color: var(--lav-700); border-color: rgba(184,145,201,.55); }
.rosie-videos .hero-chat .chat-input { background: #f3f4f6; border-color: var(--ink-100); color: var(--ink-400); }
.rosie-videos .hero-chat .chat-input i.typed { color: var(--slate); }
.rosie-videos .hero-chat .bub.typing i { background: var(--lav-500); }


/* Rosie pills: three across on one line at every width; below 980px they share the row equally. */
@media (max-width: 980px) {
  .rosie-grid .sec-head .rosie-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; width: 100%; max-width: 34rem; margin-inline: auto; }
  .rosie-pill { width: auto; padding: .5rem .15rem; font-size: clamp(.6rem, 2.5vw, .85rem); letter-spacing: -.015em; }
}

/* Phones: short pill labels at a larger size, still three across on one line. */
.pill-short { display: none; }
@media (max-width: 640px) {
  .pill-full { display: none; }
  .pill-short { display: inline; }
  .rosie-pill { font-size: .95rem; padding: .55rem .25rem; letter-spacing: 0; }
}

/* Meet Rosie: two paragraphs in the lead. */
.rosie-grid .sec-head .lead + .lead { margin-top: 1rem; }
