@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #163d2b;
  --muted: #626761;
  --field: #ffffff;
  --line: #d5d9d3;
  --green: #286b46;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: var(--sans);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: normal;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font-weight: 500; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1:focus { outline: none; }
.page { min-height: 100svh; display: grid; place-items: center; padding: 40px 24px; }
.onboarding { width: min(100%, 480px); }
.top-line { display: flex; align-items: center; justify-content: space-between; }
.jo-identity { display: flex; align-items: baseline; gap: 10px; }
.jo-wordmark { font-family: var(--heading); font-size: 44px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.made-by { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: normal; }
.top-line .text-button { font-size: 13px; }
.text-button { border: 0; background: transparent; padding: 10px 0; min-height: 44px; color: var(--muted); font-size: 14px; }
.text-button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { opacity: .65; }
.screen { padding-top: 48px; min-height: 455px; }
h1 { margin: 0; font-family: var(--heading); font-size: 40px; font-weight: 550; letter-spacing: -.025em; line-height: 1.17; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page[data-screen=intro] { display: block; padding: 28px 40px 24px; }
.page[data-screen=intro] .onboarding { width: min(100%, 1120px); margin: auto; }
.page[data-screen=intro] .screen { min-height: 0; padding-top: 40px; }
.page[data-screen=intro] .jo-wordmark { font-size: 38px; }
.landing-hero { text-align: center; }
.landing-hero h1 { margin: 0 auto; font-size: clamp(36px, 5.2vw, 52px); line-height: 1.06; }
.hero-lead { display: block; white-space: nowrap; }
.hero-roles { display: grid; }
.hero-role { grid-area: 1 / 1; white-space: nowrap; }
.hero-description { max-width: 380px; margin: 20px auto 0; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; }
.hero-description > span { display: inline-block; white-space: nowrap; }
.conversation-showcase { position: relative; width: 100%; margin: 28px auto 0; }
.phone-preview { position: relative; display: flex; justify-content: center; height: 480px; padding-top: 4px; overflow: hidden; mask-image: linear-gradient(#000 calc(100% - var(--phone-fade, 104px)), rgb(0 0 0 / 60%) calc(100% - var(--phone-fade, 104px) * .5), transparent 100%); }
.phone-frame { --ios-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; --message-blue: #007aff; --message-gray: #e9e9eb; position: relative; flex: 0 1 310px; align-self: flex-start; min-width: 0; aspect-ratio: 1332 / 2748; color: #000; font-family: var(--ios-font); font-weight: 400; text-align: left; transform: scale(var(--phone-fit, 1)); transform-origin: center top; }
.device-hardware { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
/* Match the transparent screen opening in the 1332 × 2748 device artwork. */
.device-screen { position: absolute; top: 2.29258%; left: 4.72973%; width: 90.54054%; height: 95.41485%; overflow: hidden; border-radius: 15.42289% / 7.09382%; background: white; }
.device-status { position: relative; height: 43px; display: flex; align-items: center; justify-content: space-between; margin: 0 22px; font: 600 12px/1 var(--ios-font); letter-spacing: -.2px; }
.device-indicators { display: flex; align-items: center; gap: 4px; height: 12px; }
.device-indicators svg { display: block; fill: currentColor; }
.device-signal { width: 13px; height: 10px; }
.device-wifi { width: 12px; height: 10px; }
.device-wifi path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.device-battery { width: 20px; height: 10px; }
.device-battery > rect:first-child { fill: none; stroke: #929295; stroke-width: 1; }
.device-contact { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 73px; padding-bottom: 7px; border-bottom: .5px solid #e5e5ea; background: linear-gradient(#fff, #fafafa); }
.device-back, .device-video { position: absolute; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--message-blue); }
.device-back { left: 9px; }
.device-video { right: 13px; }
.device-back svg { width: 24px; height: 24px; }
.device-video svg { width: 23px; height: 20px; }
.device-back svg, .device-video svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.device-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #195d39; }
.device-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device-name { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; line-height: 1.1; padding-left: 8px; }
.device-name svg { width: 7px; height: 10px; fill: none; stroke: #8e8e93; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.device-thread { position: relative; padding: 0 14px; }
.device-date { margin: 11px 0 13px; text-align: center; color: #8e8e93; font-size: 9px; font-weight: 400; line-height: 1.4; }
.device-date span { display: block; }
.device-date strong { font-weight: 600; }
.demo-scenes { display: grid; }
.demo-scene { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero-role, .demo-scene { --scene-delay: 0s; opacity: 0; visibility: hidden; }
.hero-role:first-child, .demo-scene:first-child { opacity: 1; visibility: visible; }
.hero-role:nth-child(2), .demo-scene:nth-child(2) { --scene-delay: 6s; }
.hero-role:nth-child(3), .demo-scene:nth-child(3) { --scene-delay: 12s; }
.chat-bubble { position: relative; max-width: 88%; margin: 0; padding: 7px 11px; border-radius: 17px; font: 400 14px/1.29 var(--ios-font); letter-spacing: normal; text-wrap: wrap; }
.from-patient { --bubble-color: var(--message-blue); align-self: flex-end; background: var(--bubble-color); color: white; margin-bottom: 10px; }
.from-jo { --bubble-color: var(--message-gray); background: var(--bubble-color); }
/* The two curves form the familiar Messages tail at the end of a group. */
.from-patient::before, .from-patient::after, .from-jo:last-child::before, .from-jo:last-child::after { content: ''; position: absolute; height: 17px; bottom: 0; }
.from-patient::before { right: -5px; width: 14px; background: var(--bubble-color); border-bottom-left-radius: 12px; }
.from-patient::after { right: -10px; width: 10px; background: white; border-bottom-left-radius: 9px; }
.from-jo:last-child::before { left: -5px; width: 14px; background: var(--bubble-color); border-bottom-right-radius: 12px; }
.from-jo:last-child::after { left: -10px; width: 10px; background: white; border-bottom-right-radius: 9px; }
.hero-invitation { position: relative; width: min(100%, 360px); margin: 16px auto 0; }
.hero-action { position: relative; width: 100%; }
.hero-action .primary { background: var(--ink); border-color: var(--ink); transition: background 160ms ease; }
.hero-action .primary:hover:not(:disabled):not([aria-disabled=true]) { background: #245239; border-color: #245239; }
.demo-caption-row { display: flex; justify-content: center; align-items: center; gap: 0; min-height: 28px; padding-right: 30px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.back-link { margin: -14px 0 16px; }
.motion-toggle { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.motion-toggle:hover { background: #eeede7; color: var(--ink); }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .play-icon { display: none; }
[data-user-paused=true] .pause-icon { display: none; }
[data-user-paused=true] .play-icon { display: block; }
.is-animated .hero-role, .is-animated .demo-scene { animation: conversation-cycle 18s ease-in-out var(--scene-delay) infinite both; }
.is-animated .chat-bubble { animation: message-arrival 18s ease-out var(--scene-delay) infinite both; }
.is-animated .chat-bubble:nth-child(2) { animation-name: first-reply; }
.is-animated .chat-bubble:nth-child(3) { animation-name: second-reply; }
.is-paused .hero-role, .is-paused .demo-scene, .is-paused .chat-bubble { animation-play-state: paused; }
/* A manual or background pause holds a complete, readable exchange. */
.is-paused .hero-role, .is-paused .demo-scene { opacity: 0 !important; visibility: hidden !important; transform: none !important; }
.is-paused .hero-role.is-current, .is-paused .demo-scene.is-current, .is-paused .is-current .chat-bubble { opacity: 1 !important; visibility: visible !important; transform: none !important; }
@keyframes conversation-cycle {
  0% { opacity: 0; visibility: visible; transform: translateY(5px); }
  1%, 31% { opacity: 1; visibility: visible; transform: translateY(0); }
  33.333%, 100% { opacity: 0; visibility: hidden; transform: translateY(-5px); }
}
@keyframes message-arrival {
  0% { opacity: 0; transform: translateY(5px); }
  1%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes first-reply {
  0%, 3% { opacity: 0; transform: translateY(5px); }
  4%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes second-reply {
  0%, 7% { opacity: 0; transform: translateY(5px); }
  8%, 100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero .hero-role, .landing-hero .demo-scene { animation: none; opacity: 0; visibility: hidden; transform: none; }
  .landing-hero .hero-role:first-child, .landing-hero .demo-scene:first-child { opacity: 1; visibility: visible; }
  .conversation-showcase .chat-bubble { animation: none; opacity: 1; transform: none; }
  .motion-toggle { display: none; }
}
.field-group { margin-top: 36px; }
.field-label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.4; }
.phone-field { display: flex; align-items: center; gap: 14px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); }
.country-code { font-size: 18px; color: var(--muted); }
.phone-field input { min-width: 0; width: 100%; height: 62px; border: 0; background: transparent; color: var(--ink); font-size: 18px; outline: none; }
input::placeholder { color: #626e66; opacity: 1; }
.phone-field:focus-within { border-color: var(--green); outline: 1px solid var(--green); outline-offset: 0; }
.form-footer { margin-top: 18px; }
.consent-copy { max-width: 440px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 14px 20px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: white; font-family: var(--heading); font-size: 16px; line-height: 1.4; font-weight: 500; text-decoration: none; text-align: center; }
.primary:hover:not(:disabled):not([aria-disabled=true]) { background: #194525; }
.primary:disabled, .primary[aria-disabled=true] { opacity: .5; cursor: default; }
.error { color: #a0312d; font-size: 13px; line-height: 1.55; margin: 12px 0; }
.error:empty { display: none; }
.code-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.code-context .text-button { font-size: 13px; }
.code-context + form .field-group { margin-top: 30px; }
.code-input { width: 100%; height: 74px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font-size: 27px; letter-spacing: 10px; text-align: center; padding-left: 10px; }
.code-input:focus { border-color: var(--green); outline: 1px solid var(--green); outline-offset: 0; }
.code-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.code-meta .text-button { font-size: 12px; }
.page[data-screen=code] .form-footer { margin-top: 28px; }
.code-demo { border-top: 1px solid #e2e7e3; margin-top: 23px; padding-top: 9px; }
.demo-line { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.demo-line strong { color: var(--ink); letter-spacing: 2px; }
.demo-line .text-button { font-size: 13px; }
.code-demo p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ready-body { margin-top: 18px; }
.ready-body p { max-width: 350px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ready-action { margin-top: 36px; }
.handoff-tip { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.session-status { min-height: 20px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.fallback { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.fallback summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; }
.fallback summary::-webkit-details-marker { display: none; }
.fallback summary::after { content: '+'; }
.fallback[open] summary::after { content: '−'; }
.fallback-content { border: 1px solid #e2e7e3; border-radius: 16px; padding: 14px 18px 4px; }
.fallback-content p { margin: 0 0 12px; }
.draft-message { color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.copy-row { display: flex; justify-content: space-between; gap: 12px; }
.copy-row .text-button, .session-actions .text-button { font-size: 13px; }
.session-actions { margin-top: 8px; padding-top: 7px; text-align: center; }
.fallback .session-actions { border-top: 1px solid #e2e7e3; }
.secondary { min-height: 44px; width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font-size: 14px; }
.screen-description { margin: 24px 0 50px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.loading-state { margin-top: 30px; color: var(--muted); }
dialog { width: min(460px, calc(100% - 32px)); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(36 40 36 / 25%); }
dialog h2 { margin: 0 0 22px; font: 550 34px/1.15 var(--heading); letter-spacing: -.025em; }
.about-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.about-heading img { width: 56px; height: 56px; border-radius: 50%; }
.about-heading h2 { margin: 0; }
dialog p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 26px; }
.dialog-done { margin-top: 25px; }
.no-script { padding: 24px; text-align: center; }
@media (min-width: 900px) {
  .page[data-screen=intro] { min-height: 680px; height: 100svh; padding: 32px 56px; }
  .page[data-screen=intro] .onboarding { display: flex; flex-direction: column; height: 100%; }
  .page[data-screen=intro] .screen { display: flex; flex: 1; padding-top: 0; }
  .landing-hero { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 40px; width: 100%; text-align: left; }
  .landing-hero h1 { grid-column: 1; grid-row: 2; width: 100%; font-size: clamp(46px, 5vw, 64px); line-height: 1.06; }
  .hero-description { grid-column: 1; grid-row: 3; max-width: 340px; margin: 24px 0 0; }
  .hero-invitation { grid-column: 1; grid-row: 4; margin: 36px 0 0; width: 310px; }
  .hero-action { width: 240px; }
  .demo-caption-row { justify-content: flex-start; font-size: 12px; margin-top: 12px; }
  .motion-toggle { right: 0; bottom: -8px; }
  .conversation-showcase { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
  .phone-preview { height: 568px; }
  .phone-frame { flex-basis: 320px; }
  .device-status { height: 47px; }
  .device-contact { height: 78px; }
  .device-avatar { width: 40px; height: 40px; }
  .device-date { margin-top: 16px; margin-bottom: 18px; }
  .chat-bubble { font-size: 15px; padding: 8px 12px; }
}
@media (max-width: 899px) {
  /* Reserve the invitation first. The phone uses the remaining viewport space. */
  .page[data-screen=intro] { height: 100svh; min-height: 0; padding: clamp(16px, 2.6svh, 24px) 28px max(12px, env(safe-area-inset-bottom)); }
  .page[data-screen=intro] .onboarding { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .page[data-screen=intro] .top-line { flex: none; }
  .page[data-screen=intro] .screen { display: flex; flex: 1; min-height: 0; padding-top: clamp(20px, 4svh, 36px); }
  .landing-hero { display: flex; flex-direction: column; width: 100%; min-height: 0; }
  .landing-hero h1 { flex: none; margin: 0 auto; }
  .hero-description { flex: none; margin-top: 16px; }
  .conversation-showcase { display: flex; flex: 1; min-height: 0; max-height: 514px; margin-top: clamp(20px, 3.4svh, 28px); }
  .phone-preview { width: 100%; height: auto; min-height: 0; }
  .hero-invitation { flex: none; margin-top: 16px; }
}
@media (max-width: 600px) {
  .page { padding: 42px 24px 28px; place-items: start center; }
  .onboarding { max-width: 430px; }
  .screen { min-height: 0; padding-top: 40px; }
  h1 { font-size: clamp(28px, 8.5vw, 36px); }
  .field-group { margin-top: 32px; }
  .phone-field { padding: 0 19px; }
  .phone-field input { height: 60px; }
  .page[data-screen=intro] { min-height: 0; padding-left: 24px; padding-right: 24px; }
  .landing-hero h1 { font-size: clamp(30px, 10.4vw, 44px); }
  .hero-description { max-width: 310px; font-size: 14px; line-height: 1.5; }
  .phone-frame { flex-basis: 310px; }
}
@media (max-width: 350px) {
  .page[data-screen=intro] { padding-left: 18px; padding-right: 18px; }
  .page[data-screen=intro] .screen { padding-top: 16px; }
  .landing-hero h1 { font-size: 30px; }
  .hero-description { margin-top: 12px; }
  .conversation-showcase { margin-top: 16px; }
  .phone-frame { flex-basis: 280px; }
  .chat-bubble { font-size: 13px; }
  .hero-invitation { margin-top: 12px; }
  .demo-caption-row { font-size: 10px; }
}
@media (max-height: 740px) and (max-width: 899px) {
  .device-status { height: 36px; }
  .device-contact { height: 62px; gap: 4px; }
  .device-avatar { width: 32px; height: 32px; }
  .device-date { margin-top: 8px; margin-bottom: 10px; }
  .device-date span { display: none; }
}
@media (max-height: 500px) and (min-width: 480px) and (max-width: 1000px), (max-height: 600px) and (min-width: 600px) and (max-width: 1000px) {
  .page[data-screen=intro] { height: 100svh; min-height: 0; padding: 12px 24px; }
  .page[data-screen=intro] .onboarding { display: flex; flex-direction: column; height: 100%; }
  .page[data-screen=intro] .screen { display: flex; flex: 1; min-height: 0; padding-top: 12px; }
  .landing-hero { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 24px; text-align: left; }
  .landing-hero h1 { grid-column: 1; grid-row: 1; font-size: clamp(26px, 4.3vw, 36px); margin: 0; }
  .hero-description { grid-column: 1; grid-row: 2; max-width: 310px; font-size: 14px; margin: 12px 0 0; }
  .hero-invitation { grid-column: 1; grid-row: 3; align-self: end; width: 100%; margin: 16px 0 0; }
  .hero-action { width: 100%; }
  .demo-caption-row { justify-content: flex-start; font-size: 10px; margin-top: 0; }
  .conversation-showcase { grid-column: 2; grid-row: 1 / -1; height: 100%; margin: 0; align-self: stretch; }
  .phone-preview { height: 100%; }
}
