/* Sabuy Care — Phase D (2026-11-06). Loaded after upgrade-b.css. Tokens only (tokens.css).
   ADR 0001 (no illustration labels), ADR 0002 (requestable items + evidence slots), realistic chat phone,
   caregiver matching steps, floating hero shortcuts. */

/* Review bar: CMS link lives here, review mode only */
.review-cms{margin-left:auto;display:inline-flex;align-items:center;min-height:24px;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* ---------- Hero shortcuts: floating card over the HERO-B edge ---------- */
.hero-shortcuts{background:transparent;border:0;border-radius:0;position:relative;z-index:3;margin-top:-56px;margin-bottom:var(--space-6)}
.hero-shortcuts .trust-grid{background:var(--color-surface-raised);border:1px solid var(--color-border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-2);padding:var(--space-4) var(--space-2)}
.hero-shortcuts .trust-grid a,.hero-shortcuts .trust-grid a:first-child{padding:var(--space-3) var(--space-6);border-radius:var(--radius-lg)}
.hero-shortcuts .trust-grid a>.icon:first-child{box-sizing:border-box;width:52px;height:52px;padding:13px;flex-shrink:0;border-radius:var(--radius-pill);background:var(--color-surface-sunken);color:var(--color-text-primary);transition:background var(--motion-normal) var(--ease-standard),color var(--motion-normal) var(--ease-standard)}
@media (hover:hover){.hero-shortcuts .trust-grid a:hover>.icon:first-child{background:var(--color-surface-inverse);color:var(--color-text-inverse)}}
.hero-shortcuts .trust-grid a:focus-visible>.icon:first-child{background:var(--color-surface-inverse);color:var(--color-text-inverse)}
@media (min-width:701px) and (max-width:1000px){
 .hero-shortcuts .trust-grid a,.hero-shortcuts .trust-grid a:first-child{padding:var(--space-3) var(--space-4);gap:var(--space-3)}
 .hero-shortcuts .trust-grid a>.icon:first-child{width:44px;height:44px;padding:11px}
}
@media (max-width:700px){
 .hero-shortcuts{margin-top:var(--space-4);margin-bottom:var(--space-2)}
 .hero-shortcuts>.container.trust-grid{width:100%;display:flex;gap:var(--space-3);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--space-4);padding:var(--space-1) var(--space-4) var(--space-4);background:transparent;border:0;box-shadow:none;border-radius:0;scrollbar-width:none}
 .hero-shortcuts>.container.trust-grid::-webkit-scrollbar{display:none}
 .hero-shortcuts .trust-grid a,.hero-shortcuts .trust-grid a:first-child,.hero-shortcuts .trust-grid a:nth-child(even),.hero-shortcuts .trust-grid a:last-child{flex:0 0 80%;scroll-snap-align:start;padding:var(--space-4);gap:var(--space-3);min-height:92px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-xl);background:var(--color-surface-raised);box-shadow:var(--shadow-1)}
 .hero-shortcuts .trust-grid a>.icon:first-child{width:44px;height:44px;padding:11px}
}

/* ---------- Trust cards: requestable item + evidence slot (ADR 0002) ---------- */
.reason-request{display:grid;grid-template-columns:auto 1fr;gap:var(--space-1) var(--space-3);align-items:start;padding:var(--space-3) var(--space-4);background:var(--color-surface-raised);border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg)}
.reason-request-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--radius-pill);background:var(--color-surface-sunken);color:var(--color-text-accent)}
.reason-request-icon .icon{width:18px;height:18px}
.reason-request-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.reason-request-text small{font-size:var(--font-size-xs);color:var(--color-text-muted);line-height:1.5}
.reason-request-text strong{font-size:var(--font-size-sm);font-weight:600;color:var(--color-text-primary);line-height:1.55}
.request-link{grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:var(--space-2);min-height:32px;padding:var(--space-1) 0;border:0;background:none;font:inherit;font-size:var(--font-size-sm);font-weight:600;color:var(--color-text-accent);cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color var(--motion-fast) var(--ease-standard)}
.request-link .icon{width:15px;height:15px;transition:transform var(--motion-fast) var(--ease-standard)}
@media (hover:hover){.request-link:hover{text-decoration-color:currentColor}.request-link:hover .icon{transform:translateX(3px)}}
.request-link:focus-visible{outline:var(--focus-ring);outline-offset:2px;border-radius:var(--radius-sm)}
.request-link:active{opacity:.75}
.claim-status.is-verified{background:var(--color-status-success-bg);color:var(--color-status-success)}
.evidence-doc{display:flex;gap:var(--space-3);align-items:center;padding:var(--space-3);background:var(--color-status-success-bg);border-radius:var(--radius-lg)}
.evidence-doc img{width:44px;height:56px;object-fit:cover;border-radius:var(--radius-sm);box-shadow:var(--shadow-1);flex-shrink:0}
.evidence-doc-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--radius-pill);background:var(--color-surface-raised);color:var(--color-status-success);flex-shrink:0}
.evidence-doc strong{display:block;font-size:var(--font-size-sm);font-weight:600;line-height:1.5;color:var(--color-text-primary)}
.evidence-doc small{display:block;font-size:var(--font-size-xs);color:var(--color-text-muted)}

/* ---------- Report phone: realistic device + generic family chat ---------- */
.phone-frame.phone-real{top:34px;width:296px;padding:9px;border:0;border-radius:54px;background:linear-gradient(150deg,#3a3f3b 0%,#121614 38%,#0b0e0c 100%);box-shadow:inset 0 0 0 1.5px #767b75,inset 0 0 0 4px #0c0f0d,var(--shadow-3)}
.phone-btn{position:absolute;width:3px;background:#2b2f2c;border-radius:var(--radius-sm)}
.phone-btn-l1{left:-3px;top:118px;height:30px}
.phone-btn-l2{left:-3px;top:160px;height:52px}
.phone-btn-r{right:-3px;top:150px;height:72px}
.phone-screen{position:relative;display:flex;flex-direction:column;border-radius:45px;overflow:hidden;background:#f6f6f1}
.phone-status{display:flex;align-items:center;justify-content:space-between;padding:13px 22px 6px 26px;background:var(--color-surface-inverse);color:var(--color-text-inverse);font-size:var(--font-size-xs);font-weight:600;line-height:1}
.phone-island{position:absolute;top:10px;left:50%;width:86px;height:25px;margin-left:-43px;border-radius:var(--radius-pill);background:#050605}
.phone-sys{display:flex;gap:4px;align-items:center}
.phone-sys svg{height:10px;width:auto;fill:currentColor}
.phone-real .phone-chat-header{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3) var(--space-3);background:var(--color-surface-inverse);color:var(--color-text-inverse);font-size:var(--font-size-xs)}
.phone-real .phone-chat-header>.icon{width:16px;height:16px;flex-shrink:0}
.chat-avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;border-radius:var(--radius-pill);background:var(--color-focus-inverse);color:var(--color-text-primary);font-size:var(--font-size-xs);font-weight:600}
.chat-who{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.chat-who strong{font-weight:600;font-size:var(--font-size-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-who small{font-size:var(--font-size-mock);color:var(--color-text-inverse-muted)}
.chat-body{display:flex;flex-direction:column;gap:6px;padding:var(--space-3) 10px;background:#e3e8de}
.chat-day{align-self:center;padding:2px 10px;border-radius:var(--radius-pill);background:rgb(18 59 44 / .1);color:var(--color-text-muted);font-size:var(--font-size-mock)}
.bubble{position:relative;max-width:86%;padding:7px 10px 5px;border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 1px 1px rgb(18 59 44 / .08);font-size:var(--font-size-xs);line-height:1.5;color:var(--color-text-primary)}
.bubble p{margin:0;font-size:var(--font-size-xs);line-height:1.5}
.bubble time{display:block;margin-top:2px;text-align:right;font-size:var(--font-size-mock);color:var(--color-text-muted);line-height:1.3}
.bubble-out{align-self:flex-end;border-radius:16px 16px 5px 16px;background:#d5e8cc}
.bubble-media{padding:3px 3px 4px}
.bubble-media time{padding-right:6px}
.phone-real .report-message-photo{display:block;width:100%;height:96px;margin:0;border-radius:13px;object-fit:cover}
.bubble-card{max-width:92%;padding:9px 11px 6px}
.bubble-card>.eyebrow{margin:0 0 4px;font-size:var(--font-size-mock);letter-spacing:0}
.bubble-card>h3{display:flex;gap:6px;align-items:center;margin:0 0 6px;font-size:var(--font-size-sm)}
.bubble-card>h3>.icon{width:16px;height:16px;color:var(--color-text-accent)}
.phone-real .report-panel h4{display:flex;gap:5px;align-items:center;font-size:var(--font-size-xs);margin:0 0 2px}
.phone-real .report-panel h4 .icon{width:13px;height:13px;color:var(--color-status-success)}
.phone-real .report-panel p{font-size:var(--font-size-xs);line-height:1.5;color:var(--color-text-muted)}
.phone-real .report-status{margin-top:6px;padding:6px 8px;gap:6px;border-radius:var(--radius-md);font-size:var(--font-size-mock)}
.phone-real .report-status>.icon{width:13px;height:13px}
.phone-real .phone-compose{display:flex;align-items:center;gap:8px;padding:8px 10px 4px;background:#f6f6f1;font-size:var(--font-size-xl);color:var(--color-text-primary)}
.compose-plus{line-height:1}
.phone-real .phone-compose>div{flex:1;height:28px;padding:0 10px;border:1px solid #d6d7cd;border-radius:var(--radius-pill);background:#fff;font-size:var(--font-size-mock);line-height:26px;color:#8a9087}
.compose-send{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-pill);background:var(--color-surface-inverse);color:var(--color-text-inverse)}
.compose-send .icon{width:14px;height:14px}
.phone-home{display:block;width:104px;height:4px;margin:6px auto 7px;border-radius:var(--radius-pill);background:#1d211e}
.phone-real .phone-example{top:-14px;right:-20px;z-index:2}
@media (max-width:1000px){.phone-frame.phone-real{width:270px}}
@media (max-width:700px){.phone-frame.phone-real{position:relative;top:0;left:0;width:286px;margin:auto}}

/* ---------- Caregiver matching (no consented profiles yet) ---------- */
.match-flow{display:grid;grid-template-columns:1fr 330px;gap:var(--space-6);align-items:stretch}
.match-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4)}
.match-steps li{position:relative;display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-6) var(--space-5);border:1px solid #e5e1d4;border-radius:var(--radius-xl);background:#f2f0e6}
.match-num{position:absolute;top:var(--space-4);right:var(--space-5);font-size:var(--font-size-4xl);font-weight:600;line-height:1;color:#cdc5a8}
.match-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:var(--radius-pill);background:var(--color-surface-inverse);color:var(--color-text-inverse)}
.match-icon .icon{width:26px;height:26px}
.match-steps h3{font-size:var(--font-size-xl);margin:var(--space-2) 0 0}
.match-steps p{font-size:var(--font-size-md);line-height:1.75;color:var(--color-text-muted);margin:0}
.match-aside{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-7) var(--space-6);border-radius:var(--radius-xl);background:var(--color-surface-inverse);color:var(--color-text-inverse)}
.match-aside h3{font-size:var(--font-size-2xl);color:var(--color-text-inverse)}
.match-aside p{font-size:var(--font-size-md);line-height:1.75;color:var(--color-text-inverse-muted);margin:0}
.match-aside .note{font-size:var(--font-size-xs);line-height:1.6;opacity:.9}
.match-aside .button{margin-top:auto;align-self:flex-start}
.match-aside :focus-visible{outline-color:var(--color-focus-inverse)}
@media (max-width:1000px){.match-flow{grid-template-columns:1fr}}
@media (max-width:700px){.match-steps{grid-template-columns:1fr;gap:var(--space-3)}.match-steps li{padding:var(--space-5) var(--space-4)}.match-aside{padding:var(--space-6) var(--space-5)}}

/* ---------- Closing: next-steps band removed; give the talk list room ---------- */
.closing-b .talk-list{margin-top:var(--space-7)}

@media (prefers-reduced-motion:reduce){.request-link,.request-link .icon,.hero-shortcuts .trust-grid a>.icon:first-child{transition:none}}

/* Phase D review fixes */
.reason-request,.evidence-doc{align-self:stretch}
.phone-real .report-panel{min-height:58px;padding-top:2px}
.phone-real .report-panel h4>.icon{width:14px;height:14px}
.phone-real .report-panel p{margin-top:2px}
.match-flow{grid-template-columns:1fr}
.match-steps li{padding-top:var(--space-6);padding-bottom:var(--space-6)}
.match-aside{display:grid;grid-template-columns:1fr auto;grid-template-areas:"h b" "p b" "n b";column-gap:var(--space-8);row-gap:var(--space-2);align-items:center;padding:var(--space-6) var(--space-7)}
.match-aside>h3{grid-area:h}.match-aside>p:not(.note){grid-area:p;max-width:720px}.match-aside>.note{grid-area:n;max-width:720px}
.match-aside>.button{grid-area:b;margin-top:0;align-self:center}
@media (max-width:700px){.match-aside{grid-template-columns:1fr;grid-template-areas:"h" "p" "n" "b";padding:var(--space-6) var(--space-5)}.match-aside>.button{justify-self:start;margin-top:var(--space-2)}}
/* Shortcut dividers: straight hairlines instead of borders that curve with the rounded hover area */
@media (min-width:701px){
 .hero-shortcuts .trust-grid a,.hero-shortcuts .trust-grid a:first-child,.hero-shortcuts .trust-grid a:last-child{border:0}
 .hero-shortcuts .trust-grid a+a{background-image:linear-gradient(var(--color-border-subtle),var(--color-border-subtle));background-size:1px 64%;background-position:left center;background-repeat:no-repeat}
}

/* Phase D follow-up: compact phone (~16% smaller). Real text stays ≥12px; only mock meta uses the 10px mock token. */
.phone-frame.phone-real{top:44px;width:248px;padding:7px;border-radius:46px;scale:.82;transform-origin:top center;transition:scale 400ms var(--ease)}
.phone-real .phone-screen{border-radius:39px}
.phone-btn-l1{top:98px;height:24px}.phone-btn-l2{top:132px;height:42px}.phone-btn-r{top:124px;height:58px}
.phone-real .phone-status{padding:10px 18px 4px 22px}
.phone-real .phone-island{top:8px;width:70px;height:20px;margin-left:-35px}
.phone-real .phone-sys svg{height:9px}
.phone-real .phone-chat-header{gap:6px;padding:6px 10px 8px}
.phone-real .phone-chat-header>.icon{width:14px;height:14px}
.phone-real .chat-avatar{width:24px;height:24px;font-size:var(--font-size-mock)}
.phone-real .chat-body{gap:5px;padding:8px 8px}
.phone-real .bubble{padding:5px 8px 4px;border-radius:13px 13px 13px 4px}
.phone-real .bubble-out{border-radius:13px 13px 4px 13px}
.phone-real .bubble-media{padding:3px 3px 3px}
.phone-real .report-message-photo{height:74px;border-radius:10px}
.phone-real .bubble-card{padding:7px 9px 4px}
.phone-real .bubble-card>h3{font-size:var(--font-size-xs);margin-bottom:4px}
.phone-real .bubble-card>h3>.icon{width:14px;height:14px}
.phone-real .report-panel{min-height:52px}
.phone-real .report-status{margin-top:4px;padding:4px 7px}
.phone-real .phone-compose{gap:6px;padding:6px 8px 3px;font-size:var(--font-size-lg)}
.phone-real .phone-compose>div{height:24px;line-height:22px}
.phone-real .compose-send{width:24px;height:24px}
.phone-real .compose-send .icon{width:12px;height:12px}
.phone-real .phone-home{width:88px;margin:5px auto 6px}
@media (max-width:1000px){.phone-frame.phone-real{width:236px}}
@media (max-width:700px){.phone-frame.phone-real{width:252px}}
/* Keep the scene caption clear of the phone where the columns get narrow */
@media (min-width:1001px) and (max-width:1200px){.report-scene-caption{padding-left:132px}}
@media (min-width:701px) and (max-width:1000px){.report-scene-caption{margin-top:250px}}

/* Report sample: restrained code-generated chat, independent of GSAP entrance. */
@media(min-width:701px) and (hover:hover) and (pointer:fine){.phone-frame.phone-real:hover,.phone-frame.phone-real:focus-within{scale:.98;z-index:5}}
.phone-real .chat-body{position:relative}
.chat-replay [data-chat-stage]{opacity:0;transform:translateY(7px);transition:opacity 350ms ease,transform 350ms ease;pointer-events:none}
.chat-replay [data-chat-visible=true]{opacity:1;transform:none;pointer-events:auto}
.chat-typing{display:none;position:absolute;left:12px;bottom:10px;gap:4px;align-items:center;padding:10px 12px;background:white;border-radius:12px;box-shadow:var(--shadow-1)}
[data-chat-typing=true] .chat-typing{display:flex}
.chat-typing i{width:4px;height:4px;background:var(--color-text-muted);border-radius:50%;animation:chat-dot 900ms ease-in-out infinite}
.chat-typing i:nth-child(2){animation-delay:150ms}.chat-typing i:nth-child(3){animation-delay:300ms}
@keyframes chat-dot{0%,70%,100%{opacity:.35;transform:none}35%{opacity:1;transform:translateY(-3px)}}
.report-dots{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);display:flex;gap:0;justify-content:center;width:max-content}
.report-dots[hidden]{display:none}
.report-dots button{width:54px;height:54px;display:grid;place-items:center;background:transparent;border-radius:50%;padding:0}
.report-dots button span{width:8px;height:8px;background:var(--color-text-primary);opacity:.3;border-radius:var(--radius-pill);transition:width 250ms ease,opacity 250ms ease}
.report-dots button[aria-pressed=true] span{width:24px;background:var(--color-text-primary);opacity:1}
.report-dots button:focus-visible{outline:3px solid var(--color-focus);outline-offset:-6px}
@media(prefers-reduced-motion:reduce){.phone-frame.phone-real,.chat-replay [data-chat-stage],.report-dots button span{transition:none}.chat-typing{display:none!important}}
