/* Carem / Xem Branding Kit 2.1.
   Product palette and component tokens; existing content, imagery and motion
   stay in their original stylesheets. Load this file after depth.css. */
:root {
  --brand: #00B359;
  --action: #007A3D;
  --green: var(--action);
  --bg: #FFFFFF;
  --surface: #F0F2F5;
  --ink: #0F172A;
  --muted: #4F5B69;
  --line: #C9D0D9;
  --control-line: #69717D;
  --soft: #E8F8EF;
  --paper: #F0F2F5;
  --carem-neutral: #F0F2F5;
  --carem-rule: #C9D0D9;
  --carem-text: #0F172A;
  --carem-secondary: #4F5B69;
  --radius-control: 4px;
  --radius-dialog: 12px;
  --radius-card: 16px;
  --radius-large: 24px;
  --radius-device: 32px;
  --radius-pill: 999px;
  --gutter: clamp(32px, 4vw, 128px);
}

html { color-scheme: light; }
body { background: var(--bg); color: var(--ink); line-height: 1.6; }
::selection { background: var(--soft); color: var(--ink); }
.shell { width: calc(100% - 2 * var(--gutter)); }

/* Supplied outlined artwork keeps its natural 130:40 aspect ratio. */
.brand img { width: auto; height: 46px; max-width: none; object-fit: contain; }
h1, h2, h3, #hero-title, .audience-copy h2, .benefit-items h3 {
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.045em;
}
#hero-title { color: var(--ink); }
.carem-word, .problem .carem-word {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--action);
}
.hero-description { letter-spacing: 0; max-width: 48ch; }
.hero-description strong, .prose strong, .page-aside > p,
.prose th, .booking-progress li[aria-current=step] { font-weight: 600; }
.call-intro strong, .chat-top strong { font-weight: 500; letter-spacing: 0; }
.call-transcript .assistant:before { font-weight: 600; letter-spacing: 0; }
.prose { max-width: 65ch; color: var(--muted); }
.prose strong { color: var(--ink); }
.audience-copy > p:not(.eyebrow), .pricing-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow), .demo-copy > p:not(.eyebrow),
.price-part p, .step p, .closing-description { max-width: 60ch; }

/* Neutral surfaces retain the existing white product-site composition. */
.hero-track { background: linear-gradient(115deg, #FFFFFF 35%, #F0F2F5); }
.audiences .audience:nth-of-type(even) {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
}
.contact-form, .window-top, .window-bottom { background: var(--bg); }
.window-top, .window-bottom, .reception-window, .demo-window,
.demo-replay, .price-part, .pricing .price-part, .safety-links a {
  border-color: var(--line);
}
.hero-description, .hero-note, .scene-caption, .window-top small,
.window-bottom, .call-intro div > span, .call-transcript .message:before,
.audience-copy > p:not(.eyebrow), .audiences .feature-list li,
.demo-copy .feature-list li, .step p, .safety p, .pricing-note,
.pricing-copy > p:not(.eyebrow), .price-part p, .faq-list details p,
.contact-copy > p, .contact-links > span, .consent, .form-note,
.footer-main a:not(.brand), .footer-main > div > span,
.footer-bottom, .legal-note, .article-card .article-category,
.article-card .article-link { color: var(--muted); }
.problem, .pricing, .faq-list summary, .prose h2, .prose h3,
.trust-row h3, .field label { color: var(--ink); }
.call-transcript .assistant, .call-transcript .assistant:before,
.chat-top strong, .safety-links a:hover, .contact-links > a,
.solutions-trigger:hover, .solutions-trigger[aria-expanded=true],
.solutions-dropdown a:hover, .solutions-dropdown a:focus-visible {
  color: var(--action);
}
.demo-disclaimer { color: var(--muted) !important; }
.problem-end { color: var(--muted) !important; }
.message { color: var(--ink); border-color: var(--line); }
.message.customer, .selected-slot { background: var(--soft); color: var(--ink); }
.message.assistant { background: var(--surface); }
.chat-line { background: var(--surface); color: var(--ink); }
.chat-line.user { background: var(--ink); color: #FFFFFF; }
.channel-label { background: #FFFFFF; color: var(--muted); border-color: var(--line); }
.demo-window .window-top, .chat-top, .solutions-dropdown a:hover,
.solutions-dropdown a:focus-visible { background: var(--surface); }

/* Controls use the accessible functional green, not the bright logo accent. */
.button, .prose button, .chat-input button, .cookie-actions .accept,
.day-list button[aria-pressed=true], .time-list button[aria-pressed=true],
.scenario-controls button[aria-pressed=true], .availability-badge {
  background: var(--action);
  color: #FFFFFF;
  border-color: var(--action);
}
.button, .button-plain, .prose button, .scenario-controls button,
.booking-panel input, .booking-panel select, .booking-panel textarea,
.field input, .field textarea, .field select, .chat-input input,
.chat-input button, .cookie-actions button, .day-list button,
.time-list button, .solutions-dropdown a, .example-label {
  border-radius: var(--radius-control);
}
.button-plain, .scenario-controls button,
.booking-panel input, .booking-panel select, .booking-panel textarea,
.field input, .field textarea, .field select, .chat-input input,
.cookie-actions button, .day-list button, .time-list button {
  border-color: var(--control-line);
}
.booking-panel input, .booking-panel select, .booking-panel textarea,
.field input, .field textarea, .field select, .chat-input input {
  background: #FFFFFF;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus,
.booking-panel input:focus, .booking-panel select:focus,
.booking-panel textarea:focus, .chat-input input:focus {
  border-color: var(--action);
}
.button.outline { background: #FFFFFF; color: var(--action); border-color: var(--action); }
.button.outline > span { border-color: var(--action); }
.button.outline:hover { background: var(--soft); }
.availability-badge { font-weight: 600; border-radius: var(--radius-pill); }
.journal-filters button, .chat-starters button, .chat-launcher,
.compliance-badges > * { border-radius: var(--radius-pill); }
.chat-launcher { background: var(--action); }
.compliance-badges > * { color: var(--muted); border-color: var(--line); }
.chat-starters button { border-color: var(--control-line); }
.calendar-nav button, .cookie-actions button, .dialog-close { min-width: 44px; min-height: 44px; }
.dialog-close { border-radius: var(--radius-control); }

/* Radius follows the surface role. Circles, explicit pills and transcript
   rules retain their meaning; no changes to photo crops or animated transforms. */
.reception-window, .demo-window, .chat-box, .contact-form,
.booking-panel, .calendar-panel, .confirmation-panel,
.cookie-banner, .site-page .page-aside, .table-scroll,
.article-cover, .journal-entry img, .site-page .journal-entry:first-child,
.article-card:first-child, .article-card > img, .compliance-grid > img,
.audiences .audience-image { border-radius: var(--radius-card); }
.window-top { border-radius: 15px 15px 0 0; }
.window-bottom { border-radius: 0 0 15px 15px; }
.safety, .closing { border-radius: var(--radius-large); }
.solutions-dropdown, .chat-dialog, .cookie-dialog { border-radius: var(--radius-dialog); }
.chat-dialog .chat-box { border-radius: inherit; }
.chat-line, .message, .reception-scene .booking-result { border-radius: var(--radius-dialog); }
.message.customer { border-bottom-right-radius: var(--radius-control); }
.message.assistant { border-bottom-left-radius: var(--radius-control); }
.selected-slot { border-radius: var(--radius-control); }

@media (min-width: 1600px) {
  /* Scale the supporting copy with the frame; bound individual reading and
     demonstration areas rather than applying a universal page-width cap. */
  #hero-title { font-size: clamp(68px, 4.2vw, 96px); max-width: 15ch; }
  .hero-description { font-size: clamp(18px, 1.1vw, 23px); max-width: 48ch; }
  .hero-copy > .eyebrow, .hero-note { font-size: 14px; max-width: 54ch; }
  .hero-actions .button, .hero-actions .text-link { font-size: 16px; }
  .reception-scene { width: 100%; max-width: 700px; justify-self: center; }
  .call-transcript .message { font-size: 16px; }
  .call-intro strong { font-size: 17px; }
  .call-intro div > span, .window-top small, .window-bottom,
  .scene-caption, .booking-result div > span { font-size: 14px; }
  .call-transcript .message:before { font-size: 12px; }
  .audience-copy h2 { font-size: clamp(45px, 2.8vw, 64px); max-width: 19ch; }
  .audience-copy > p:not(.eyebrow), .demo-copy > p:not(.eyebrow),
  .pricing-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow),
  .compliance-grid p, .step p, .price-part p, .faq-list details p {
    font-size: clamp(18px, 1.03vw, 22px);
  }
  .audiences .feature-list li, .demo-copy .feature-list li,
  .benefit-items p, .article-card > p { font-size: clamp(16px, .9vw, 19px); }
  .audiences .audience-image { max-width: 760px; justify-self: center; }
  .demo-grid > .chat-box, .contact-form { width: 100%; max-width: 760px; justify-self: end; }
  .footer-main p, .footer-main a:not(.brand), .footer-main > div > span { font-size: 15px; }
  .prose { font-size: 19px; }
}
@media (min-width: 1600px) and (max-height: 800px) {
  #hero-title { font-size: 68px; }
  .hero-description { font-size: 18px; }
}
@media (max-width: 1100px) { :root { --gutter: 32px; } }
@media (max-width: 700px) { :root { --gutter: 24px; } }
@media (max-width: 360px) { :root { --gutter: 20px; } }
@media print { .shell { width: 100%; } }

/* Shared Carem identity and navigation, coordinated with Hostem. */
.header { height: 100px; }
.header .nav-inner { gap: 24px; }
.brand-block { display: flex; flex-direction: column; flex: 0 0 auto; gap: 2px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row .brand img { width: 146px; height: auto; }
.brand-endorsement { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #56635d; white-space: nowrap; }
.brand-endorsement:hover, .footer-xem:hover { color: var(--action); text-decoration: underline; }
.brand-payoff { font-size: 12px; line-height: 1.5; color: #56635d; letter-spacing: .015em; }
#navigation { gap: 24px; margin-left: auto; }
#navigation > a { white-space: nowrap; }
.nav-actions { display: grid; grid-template-columns: auto auto; gap: 12px; flex-shrink: 0; }
.nav-actions .button { justify-content: center; white-space: nowrap; font-size: 13px; margin: 0; min-height: 44px; }
.nav-actions .button.outline { padding: 0 18px; }
.header .nav-actions-mobile { display: none; }
.footer-main .footer-xem { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; color: var(--action); }
.hero-actions { flex-wrap: wrap; }
html { scroll-padding-top: 120px; }

/* Native voice trial. The commercial action keeps the filled brand treatment. */
#prova-carem { padding-block: 84px 96px; border-bottom: 1px solid var(--line); }
#prova-carem .demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: center; }
#prova-carem .demo-copy h2 { max-width: 18ch; font-size: clamp(34px, 3.1vw, 56px); line-height: 1.14; }
#prova-carem .demo-copy > p:not(.eyebrow) { max-width: 49ch; margin-block: 24px 32px; font-size: 17px; line-height: 1.8; }
.voice-panel { width: 100%; max-width: 610px; justify-self: end; border: 1px solid #dce6df; background: #fff; border-radius: 16px; padding: clamp(24px, 2.7vw, 40px); box-shadow: 0 14px 45px #123c1e07; }
.voice-heading { display: flex; gap: 12px; align-items: center; }
.voice-heading > img { flex-shrink: 0; }
.voice-kicker { font-size: 12px; color: #607168; margin-bottom: 4px; }
.voice-heading h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.voice-duration { margin-left: auto; white-space: nowrap; font-size: 11px; color: #536359; border: 1px solid #dce6df; border-radius: 4px; padding: 4px 7px; }
.voice-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px 0 14px; }
.voice-orb { width: 80px; height: 80px; display: grid; place-items: center; color: #007c3e; background: #eaf8ef; border-radius: 50%; border: 1px solid #d1ecdb; }
.voice-wave { height: 20px; display: flex; align-items: center; gap: 4px; color: #00b359; }
.voice-wave i { display: block; width: 3px; height: 6px; border-radius: 2px; background: currentColor; }
.voice-wave i:nth-child(2n) { height: 12px; }
.voice-wave i:nth-child(3n) { height: 20px; }
.voice-panel[data-speaking] .voice-wave i { animation: voice-wave .7s ease-in-out infinite alternate; }
.voice-panel[data-speaking] .voice-wave i:nth-child(2n) { animation-delay: -.4s; }
.voice-panel[data-state=connecting] .voice-orb { animation: voice-connect 1.2s ease-in-out infinite alternate; }
.voice-status { text-align: center; color: #20392b; font-size: 15px; font-weight: 600; }
.voice-suggestion { text-align: center; font-size: 13px; line-height: 1.7; margin: 12px auto 20px; max-width: 34ch; color: #56635d; }
.voice-suggestion q { display: block; color: #263d30; }
.voice-notice { padding: 14px 16px; background: #f5f8f6; border-radius: 8px; margin: 20px 0; }
.voice-notice p { font-size: 12px; line-height: 1.7; color: #56635d; }
.voice-notice p + p { margin-top: 6px; }
.voice-controls { display: flex; justify-content: center; }
.voice-controls .button { justify-content: center; width: 100%; padding: 0 20px; }
.voice-controls .voice-stop { color: #8b332d; border-color: #be7d76; }
.voice-controls button:disabled { opacity: .6; cursor: wait; }
.voice-error { color: #993a32; background: #fff5f3; border-radius: 8px; padding: 14px; margin-bottom: 20px; font-size: 14px; }
.voice-followup { text-align: center; border-top: 1px solid #dce6df; padding-top: 24px; }
.voice-followup h4 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 20px; }
.voice-followup .button { display: flex; max-width: 270px; margin: 0 auto 8px; }
.voice-followup .text-link { background: transparent; border: 0; border-bottom: 1px solid #c2d1c7; padding: 0; color: #365c46; }
.voice-chat-link { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #536359; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes voice-wave { to { transform: scaleY(.35); } }
@keyframes voice-connect { to { opacity: .55; } }
@media (max-width: 1200px) {
  .header .nav-inner { display: grid; grid-template-columns: 1fr auto 44px; gap: 20px; }
  .brand-block { grid-column: 1; grid-row: 1; }
  .nav-actions-desktop { grid-column: 2; grid-row: 1; }
  .header .menu-toggle { display: flex; grid-column: 3; grid-row: 1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid #b5bcb6; background: transparent; border-radius: 4px; width: 44px; height: 44px; }
  .header .menu-toggle span { display: block; width: 18px; height: 1px; background: #343e36; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  #navigation { display: none; position: absolute; top: 99px; left: 0; right: 0; padding: 16px var(--gutter) 24px; background: white; border-bottom: 1px solid #dce6df; box-shadow: 0 20px 35px #182b2310; max-height: calc(100dvh - 100px); overflow-y: auto; }
  #navigation.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #navigation > a:not(.button) { font-size: 16px; padding: 12px 0; }
  .solutions-trigger { font-size: 16px; justify-content: space-between; width: 100%; padding-block: 12px; }
  .solutions-dropdown { position: static; min-width: 0; margin: 2px 0 8px; padding: 4px 10px; background: #f6f8f6; border: 0; box-shadow: none; border-radius: 8px; }
}
@media (max-width: 850px) {
  .header .nav-inner { grid-template-columns: 1fr 44px; }
  .header .menu-toggle { grid-column: 2; }
  .header .nav-actions-desktop { display: none; }
  .header .nav-actions-mobile { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .header .nav-actions-mobile .button { margin: 0; align-self: stretch; }
  #prova-carem .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  #prova-carem { padding-block: 64px; }
  #prova-carem .demo-copy h2 { max-width: 21ch; }
  .voice-panel { justify-self: start; max-width: 610px; }
}
@media (max-width: 600px) {
  .brand-row { gap: 8px; }
  .brand-row .brand img { width: 126px; }
  .brand-endorsement { font-size: 11px; }
  .header .nav-actions-mobile { grid-template-columns: 1fr; }
  #prova-carem .demo-copy > p:not(.eyebrow) { font-size: 16px; }
  .voice-panel { padding: 24px 20px; }
  .voice-heading { flex-wrap: wrap; gap: 8px; }
  .voice-heading h3 { font-size: 16px; }
  .voice-duration { margin-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-panel *, .voice-panel *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
