/* A compact, readable composition for phones. Desktop retains its existing view. */
.mobile-detail { display:none; }
@media (max-width:640px) {
  .desktop-detail { display:none; }
  .mobile-detail { display:initial; }
  .concept-hero { padding-block:24px 48px; gap:28px; }
  /* Give the copy its own gutter without reducing the animation or phone. */
  .concept-copy { text-align:left; width:calc(100% - 22px); margin-inline:11px; }
  .concept-copy h1 { font-size:clamp(26px,6.8vw,32px); line-height:1.18; margin-bottom:20px; }
  .concept-copy h1 > br { display:none; }
  .concept-copy h1 span { display:block; margin-top:18px; font-size:clamp(18px,4.7vw,20px); line-height:1.4; font-weight:600; letter-spacing:normal; }
  .concept-copy h1 .hero-offline { font-weight:700; }
  .concept-copy .hero-privacy-proof { margin-bottom:8px; }
  .concept-lead { font-size:16px; line-height:1.55; max-width:36ch; margin:0; }
  .concept-lead .hero-processing { display:block; margin-top:8px; }
  .concept-lead .hero-server-detail { display:none; }
  .concept-actions { flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:14px; margin:24px 0 0; }
  .concept-actions .btn { min-height:44px; padding:7px 13px; font-size:14px; gap:7px; }
  .concept-actions .watch-demo { font-size:13px; gap:5px; white-space:nowrap; }
  .concept-actions .watch-demo .icon { width:17px; height:17px; }
  .story { max-width:390px; padding:12px; box-sizing:border-box; border:1px solid #e7eee9; border-radius:24px; background:#f0f5f1; }
  #real-demo { padding-block:48px; }
  .real-demo-copy,.extra-walkthroughs { margin-inline:11px; }
  #plans { padding-top:48px; }
  .workflow-scene { gap:0; position:relative; padding-top:108px; }
  .computer-scene { display:block; position:absolute; top:26px; left:0; z-index:3; width:86%; max-width:none; }
  .computer-scene { transform:translateY(var(--mobile-call-shift,0px)); }
  .laptop { padding:3px; border-radius:14px; box-shadow:0 5px 14px rgb(24 42 34 / 18%); background:#243a32; }
  .laptop::after,.call-toolbar,.widget-window { display:none; }
  .call-window { display:grid; grid-template-columns:minmax(0,1fr) 100px; border-radius:11px; }
  .call-window { height:84px; transition:height 160ms ease,grid-template-columns 160ms ease; }
  .participants { overflow:hidden; transition:opacity 120ms ease; }
  .computer-scene.call-collapsed .call-window { grid-template-columns:minmax(0,1fr) 0px; height:38px; }
  .computer-scene.call-collapsed .call-title { flex-direction:row; align-items:center; justify-content:space-between; padding:8px; gap:8px; }
  .computer-scene.call-collapsed .participants,
  .computer-scene.call-collapsed .workflow-caption,
  .computer-scene.call-collapsed .transfer-path { opacity:0; visibility:hidden; pointer-events:none; }
  .call-title { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; padding:9px 8px 27px; font-size:12px; font-weight:600; }
  .call-live { display:flex; font-size:11px; font-weight:400; }
  .participants { gap:2px; }
  .participant { height:84px; }
  .participant-name { display:none; }
  .workflow-caption { display:block; position:absolute; top:61px; left:11px; margin:0; color:#b9d7cc; font-size:11px; line-height:16px; text-align:left; }
  .transfer-path { display:block; top:62px; bottom:auto; right:-18px; width:2px; height:20px; background:#95b4a5; }
  .transfer-path::before { content:""; position:absolute; right:0; top:0; width:18px; height:2px; background:#95b4a5; }
  .transfer-path > .icon { top:7px; color:#397663; }
  .phone-scene { width:94%; align-self:flex-end; }
  .phone-label { position:absolute; top:0; left:0; right:0; font-size:11px; margin:0 2px; gap:6px; }
  .offline-status { font-size:11px; }
  .offline-status .icon { width:15px; height:15px; }
  .iphone { padding:4px; border-radius:28px; box-shadow:0 8px 18px rgb(24 42 34 / 9%); }
  .iphone::before { display:none; }
  .phone-screen { border-radius:24px; }
  .ios-status { height:30px; padding:3px 15px 0; font-size:10px; }
  .dynamic-island { width:70px; height:18px; top:6px; }
  .ios-header { min-height:46px; padding:6px 10px; gap:4px; }
  .ios-header h2 { font-size:17px; }
  .ios-header p,.header-mark { display:none; }
  .ios-header button { width:26px; height:32px; }
  .recording-player,#transcription-tab { display:none; }
  .recording-tabs { padding:0 12px; }
  .recording-tabs button { min-height:35px; font-size:13px; }
  .recording-body { height:calc(100% - 35px); padding:12px 12px 44px; box-sizing:border-box; }
  #notes-view [data-note="1"],.on-device-note { display:none; }
  .recording-body h3 { font-size:15px; margin-bottom:6px; }
  .recording-body p { font-size:14px; line-height:1.4; }
  .note-block + .note-block { margin-top:12px; }
  .tasks strong { font-size:14px; }
  .tasks small { font-size:12px; }
  .tasks li + li { margin-top:7px; }
  .assistant-launch { width:36px; height:36px; bottom:7px; right:10px; }
  #qa-view { padding:10px 10px 4px; }
  .assistant-greeting { font-size:14px; margin-bottom:10px; }
  .question-bubble { font-size:14px; line-height:1.3; padding:9px 10px; margin:0 0 10px 14px; border-radius:13px 13px 0 13px; }
  .answer-bubble { padding:10px 10px 0; font-size:14px; line-height:1.35; border-radius:13px 13px 13px 0; }
  .answer-intro { font-size:14px; margin-bottom:8px; }
  .answer-list { padding-left:17px; }
  .answer-list li { margin-bottom:8px; }
  .answer-list .mobile-detail { display:block; color:#58635d; font-size:12px; margin-top:2px; }
  .sources-control { min-height:36px; }
  .composer { margin-top:4px; min-height:36px; }
  #typing-field { padding:8px 10px; font-size:12px; }
  .home-indicator { width:85px; height:3px; margin:6px auto; }
  .source-sheet { inset:0; padding:14px 10px 4px; }
  .source-sheet h3 { font-size:17px; }
  .source-quote p { font-size:15px; }
  .source-mode { display:none; }
  .story-controls { margin-top:8px; gap:12px; }
  .stage-controls button { font-size:13px; }
  .illustrative-note { font-size:10px; line-height:1.4; margin-top:3px; }
}

@media (max-width:640px) and (prefers-reduced-motion:reduce) {
  .call-window,.participants { transition:none; }
}

/* Preserve the same phone silhouette at every width. Keep the mobile call
   overlap and desktop grid in place; allow the page to scroll for extra height. */
.iphone { aspect-ratio:356 / 720; box-sizing:border-box; display:flex; }
.phone-screen { height:auto; flex:1; min-width:0; }

/* Stop shrinking at a readable width and let short viewports scroll. */
@media (min-width:1151px) and (max-height:960px) {
  .concept-hero > .story { align-self:start; margin-top:-16px; }
  .phone-scene { width:clamp(312px,calc((100svh - 260px) * 356 / 720),356px); }
  .ios-status { height:34px; padding-top:3px; }
  .dynamic-island { height:22px; top:6px; }
  .ios-header { min-height:56px; padding-block:8px; }
  .recording-player { margin:8px 15px 4px; padding:5px 8px; }
  .recording-body { height:calc(100% - 87px); padding-top:12px; }
  .note-block + .note-block { margin-top:12px; }
  .story-controls { margin-top:10px; }
  .illustrative-note { margin-top:5px; }
}

/* Keep smaller landscape tablets beside the copy instead of stacking the
   entire workflow below it. The phone retains its shared 356:720 ratio. */
@media (min-width:960px) and (max-width:1150px) and (min-height:600px) and (orientation:landscape) {
  .concept-hero { grid-template-columns:minmax(260px,.9fr) minmax(500px,1.5fr); gap:24px; padding-block:24px 40px; }
  .concept-copy { text-align:left; max-width:none; margin:0; }
  .concept-copy h1 { font-size:34px; margin-bottom:20px; }
  .concept-lead { font-size:17px; line-height:1.5; margin:0; }
  .concept-actions { flex-direction:column; align-items:flex-start; gap:12px; margin:20px 0 0; }
  .concept-hero > .story { align-self:start; max-width:none; margin:0; }
  .workflow-scene { grid-template-columns:minmax(180px,1fr) clamp(280px,calc((100svh - 190px) * 356 / 720),312px); gap:24px; }
  .phone-scene { width:100%; }
  .transfer-path { width:24px; right:-26px; }
  .transfer-pulse { animation-name:tablet-transfer; }
  @keyframes tablet-transfer { 0%,20% { opacity:0; transform:translateX(0); } 35% { opacity:1; } 80%,100% { opacity:0; transform:translateX(20px); } }
}

@media (max-width:340px) {
  /* Reserve room for the existing translated transfer label. */
  .call-window { grid-template-columns:minmax(0,1fr) 76px; }
}
