/* ============================================================================
   MediMic.Ai — Public Website Stylesheet
   Built on the shared app/portal design system (Handoff 03_DESIGN_SYSTEM).
   No invented colors, weights, or radii — every value traces to a token.
   ============================================================================ */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --indigo: #3B4ECC;
  --indigo-deep: #2A3BAF;
  --indigo-light: #EEF0FD;
  --indigo-mid: #C7CCEF;
  /* Ink / neutrals */
  --ink: #1A1D2E;
  --ink-soft: #24283C;
  --sub: #8B8FA8;
  --faint: #B9BCCC;
  --border: #E4E5EE;
  --line: #EDEEF4;
  --bg: #F5F5F8;
  --panel: #FAFAFC;
  --white: #FFFFFF;
  /* Status */
  --green: #12A05C; --green-light: #E6F7EF; --green-mid: #A8E0C2;
  --red: #DC2626;   --red-light: #FEE2E2;
  --amber: #B45309; --amber-light: #FFF4E0; --amber-mid: #F0D9A8;
  --violet: #7C5CD6; --violet-light: #F0EBFB;
  /* Type */
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;
  /* Shadows */
  --sh-cta: 0 8px 24px rgba(59,78,204,0.35);
  --sh-card: 0 2px 8px rgba(0,0,0,0.08);
  --sh-card-hover: 0 8px 24px rgba(0,0,0,0.12);
  --sh-float: 0 16px 48px rgba(0,0,0,0.16);
  --sh-device: 0 32px 80px rgba(26,29,46,0.28);
  /* Gradients */
  --grad-indigo: linear-gradient(135deg, #3B4ECC 0%, #2A3BAF 100%);
  --grad-dark: linear-gradient(135deg, #1A1D2E 0%, #2A3BAF 100%);
  /* Layout */
  --max: 1200px;
  --nav-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--indigo-mid); }

/* ── Typography ──────────────────────────────────────────────────────────── */
.h-hero {
  font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.035em; text-wrap: pretty;
}
.h-section {
  font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.03em; text-wrap: balance;
}
.h-sub {
  font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-card { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lede {
  font-size: clamp(17px, 1.45vw, 19px); font-weight: 400; line-height: 1.62; color: var(--ink-soft);
  text-wrap: pretty;
}
.muted { color: var(--sub); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.lead-max { max-width: 620px; }

/* ── Wordmark ────────────────────────────────────────────────────────────── */
.wordmark {
  font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
  font-size: 23px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px;
}
.wordmark .dot-ai { font-size: 0.82em; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.wordmark .dot-ai .dot-mark { color: #E5181B; }
.wordmark .dot-ai .ai-mark { color: #5329DA; }
.wordmark.on-dark { color: var(--white); }
.wordmark .brand-name { display: inline-block; }
.wordmark .brand-icon {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; background: transparent;
}
.wordmark .brand-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-full); transition: all 0.18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--sh-cta); }
.btn-primary:visited { color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59,78,204,0.42); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:visited { color: var(--ink); }
.btn-secondary:hover { border-color: var(--indigo-mid); background: var(--indigo-light); color: var(--indigo-deep); }
.btn-ghost { color: var(--indigo); font-weight: 700; padding: 8px 4px; }
.btn-ghost:hover { gap: 12px; }
.btn-ghost .arrow { transition: transform 0.18s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-white { background: var(--white); color: var(--indigo-deep); }
.btn-white:visited { color: var(--indigo-deep); }
.btn-white:hover { background: var(--indigo-light); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; }

/* ── Badges / pills / chips ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: var(--r-full); line-height: 1;
}
.badge svg { width: 13px; height: 13px; }
.badge-green { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }
.badge-indigo { background: var(--indigo-light); color: var(--indigo-deep); border: 1px solid var(--indigo-mid); }
.badge-amber { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-mid); }
.badge-violet { background: var(--violet-light); color: var(--violet); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-light); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.chip svg { width: 16px; height: 16px; color: var(--indigo); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.show-sm { display: none; }
.chip-copy-short { display: none; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--sh-card); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover { box-shadow: var(--sh-card-hover); transform: translateY(-3px); }
.card-tinted { background: var(--indigo-light); border-color: var(--indigo-mid); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--indigo-light);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--indigo); }
.feature-icon.green { background: var(--green-light); }
.feature-icon.green svg { color: var(--green); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 14px; border-radius: var(--r-sm); white-space: nowrap;
  transition: color 0.15s, background 0.15s; display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--indigo); background: var(--indigo-light); }
.nav-link.active { color: var(--indigo); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 11px 20px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* Mega dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-float); padding: 12px; width: 340px;
  opacity: 0; visibility: hidden; transition: 0.2s; z-index: 110;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background 0.15s; }
.mega-item > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-item:hover { background: var(--indigo-light); }
.mega-item .mi-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--indigo-light); display: grid; place-items: center; flex-shrink: 0; }
.mega-item:hover .mi-icon { background: var(--white); }
.mega-item .mi-icon svg { width: 19px; height: 19px; color: var(--indigo); }
.mega-item .mi-t { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
.mega-item .mi-d { font-size: 12.5px; color: var(--sub); line-height: 1.4; display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; overflow: hidden;
}
.mobile-menu .mm-backdrop { position: absolute; inset: 0; background: rgba(10,12,30,0.5); opacity: 0; transition: opacity 0.25s; }
.mobile-menu .mm-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86%, 380px);
  background: var(--white); box-shadow: -24px 0 48px rgba(10,12,30,0.18);
  transform: translateX(105%); transition: transform 0.3s cubic-bezier(0.32,0.72,0.24,1);
  display: flex; flex-direction: column; padding: 20px 22px 28px;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu.open .mm-backdrop { opacity: 1; }
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mm-close { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg); border: 1.5px solid var(--border); display: grid; place-items: center; }
.mm-links { display: flex; flex-direction: column; gap: 2px; }
.mm-link { font-size: 18px; font-weight: 700; color: var(--ink); padding: 14px 12px; border-radius: var(--r-md); letter-spacing: -0.02em; }
.mm-link:hover, .mm-link.active { background: var(--indigo-light); color: var(--indigo); }
.mm-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); padding: 16px 12px 6px; }
.mm-foot { margin-top: auto; padding-top: 20px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #C7CAD8; padding-block: 64px 32px; }
.footer a { color: #C7CAD8; transition: color 0.15s; }
.footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .wordmark { margin-bottom: 16px; }
.footer-tag { font-size: 14px; line-height: 1.6; max-width: 280px; margin-bottom: 20px; }
.footer-col { min-width: 0; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; }
.store-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; }
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-social svg { width: 18px; height: 18px; }

/* ── App store badges ────────────────────────────────────────────────────── */
.store-badge {
  display: flex; align-items: center; justify-content: center;
  width: 140px; height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  overflow: visible; transition: opacity 0.15s, transform 0.15s;
}
.store-badges .store-badge { width: 140px; }
.store-badge:hover { opacity: 0.86; transform: translateY(-1px); }
.store-badge-image { display: block; width: 140px; height: 44px; max-width: none; margin: 0; padding: 0; border: 0; }

/* ── Trust / stat strip ──────────────────────────────────────────────────── */
.stat-strip { background: var(--bg); border-block: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--indigo); letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--sub); font-weight: 500; margin-top: 8px; }
.stat + .stat { border-left: 1px solid var(--border); }

/* ── Section variants ────────────────────────────────────────────────────── */
.bg-gray { background: var(--bg); }
.bg-tint { background: var(--indigo-light); }
.bg-panel { background: var(--panel); }
.on-dark-section { background: var(--ink); color: var(--white); }
.on-dark-section .lede, .on-dark-section p { color: #C7CAD8; }
.on-gradient { background: var(--grad-indigo); color: var(--white); }
.on-gradient-dark { background: var(--grad-dark); color: var(--white); }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.check-list .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green-light); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-list .ck svg { width: 12px; height: 12px; color: var(--green); }
.check-list.on-dark .ck { background: rgba(18,160,92,0.2); }

/* ── Accordion ───────────────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.acc-head:hover { color: var(--indigo); }
.acc-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--indigo-light); display: grid; place-items: center; transition: transform 0.25s; }
.acc-icon svg { width: 13px; height: 13px; color: var(--indigo); }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-body-inner { padding: 0 24px 24px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── Device mockups ──────────────────────────────────────────────────────── */
.phone {
  width: 300px; flex-shrink: 0; border-radius: 42px; background: var(--ink); padding: 11px;
  box-shadow: var(--sh-device); position: relative;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--white); position: relative; aspect-ratio: 300 / 650; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #0A0A0A; z-index: 20; }
.phone-tilt { transform: perspective(1600px) rotateY(-14deg) rotateX(3deg); }

.laptop { width: 100%; max-width: 640px; min-width: 0; }
.laptop-screen { background: var(--ink); border-radius: 16px 16px 0 0; padding: 12px 12px 0; box-shadow: var(--sh-device); }
.laptop-bezel { background: var(--white); border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 16 / 10.2; }
.laptop-base { height: 16px; background: linear-gradient(180deg, #c9ccd6, #a9adba); border-radius: 0 0 12px 12px; position: relative; }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 6px; background: #8b8fa0; border-radius: 0 0 7px 7px; }

/* ── Image placeholder (branded gradient art + handoff caption) ──────────── */
.img-ph {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--indigo-light) center/cover no-repeat;
  background-image: url(img/ph-light.png);
  border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 280px; padding: 14px;
}
.img-ph .ph-label {
  font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--ink-soft);
  background: rgba(255,255,255,0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 10px; max-width: 92%;
}
.img-ph.dark { background-color: var(--ink); background-image: url(img/ph-dark.png); border-color: var(--ink-soft); }
.img-ph.dark .ph-label { background: rgba(26,29,46,0.7); border-color: var(--ink-soft); color: var(--faint); }
.img-ph.alt { background-image: url(img/ph-light2.png); }

/* ── Conversation screen mockup (recreates app Shared Conversation) ──────── */
.conv { display: flex; flex-direction: column; height: 100%; font-family: var(--font); background: var(--bg); }
.conv-status { display: flex; align-items: center; justify-content: space-between; padding: 30px 22px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.conv-status .mono { font-size: 11px; }
.conv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 18px 12px; }
.conv-bar .seg { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-full); padding: 5px 11px; font-size: 11px; font-weight: 700; color: var(--ink); }
.conv-bar .seg .mono { color: var(--sub); font-size: 10px; }
.conv-half { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.conv-half.provider { background: var(--white); }
.conv-half.patient { background: var(--indigo); }
.conv-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.conv-half.provider .conv-tag { color: var(--indigo); }
.conv-half.patient .conv-tag { color: rgba(255,255,255,0.85); }
.conv-orig { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.conv-half.patient .conv-orig { color: var(--white); }
.conv-trans { font-size: 12px; font-style: italic; line-height: 1.4; }
.conv-half.provider .conv-trans { color: var(--sub); }
.conv-half.patient .conv-trans { color: rgba(255,255,255,0.75); }
.conv-mic { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.conv-mic .mic-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.conv-half.provider .mic-btn { background: var(--indigo); }
.conv-half.patient .mic-btn { background: var(--white); }
.conv-mic .mic-btn svg { width: 20px; height: 20px; }
.conv-mic-label { font-size: 11px; font-weight: 600; }
.conv-half.provider .conv-mic-label { color: var(--sub); }
.conv-half.patient .conv-mic-label { color: rgba(255,255,255,0.8); }
.conv-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.conv-wave span { width: 2.5px; border-radius: 2px; background: currentColor; animation: convwave 0.9s ease-in-out infinite; }
@keyframes convwave { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.conv-divider { height: 1px; background: var(--border); }

/* Floating glass translation card (used on photo hero) */
.glass-card {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg); box-shadow: var(--sh-float); padding: 18px 20px;
}

/* ── Portal dashboard mockup (recreates portal Dashboard) ────────────────── */
.portal { font-family: var(--font); background: var(--bg); height: 100%; overflow: hidden; font-size: 12px; color: var(--ink); }
.portal-bar { background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; }
.portal-bar .wordmark { font-size: 16px; gap: 2px; }
.portal-bar .wordmark .brand-icon { width: 22px; height: 22px; }
.portal-tabs { display: flex; gap: 2px; }
.portal-tab { font-size: 11.5px; font-weight: 600; color: var(--sub); padding: 6px 11px; border-radius: 7px; }
.portal-tab.active { color: var(--indigo); background: var(--indigo-light); }
.portal-body { padding: 16px 18px; }
.portal-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.portal-kpi { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.portal-kpi .k-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); }
.portal-kpi .k-num { font-family: var(--mono); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; }
.portal-kpi .k-num.indigo { color: var(--indigo); }
.portal-kpi .k-num.green { color: var(--green); }
.portal-panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.portal-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.portal-panel-head .pp-t { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.portal-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.portal-row:last-child { border-bottom: none; }
.portal-row .pr-lang { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--indigo); background: var(--indigo-light); border-radius: 6px; padding: 3px 7px; }
.portal-row .pr-name { font-weight: 700; font-size: 12px; flex: 1; }
.portal-row .pr-meta { font-family: var(--mono); font-size: 10px; color: var(--sub); }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .nav-desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .section { padding-block: 64px; }
  .section-sm { padding-block: 48px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 20px 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--border); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .section-sm { padding-block: 40px; }
  .chip { padding: 8px 13px; gap: 6px; font-size: 13px; }
  .chip svg { width: 14px; height: 14px; }
  .page-hero-cta, .cta-band .btn-row, .ent-inner { gap: 10px; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .btn-ghost.btn-lg { padding: 13px 8px; }
  .footer-top { gap: 20px; }
  .footer-col a { font-size: 13.5px; }
  .footer-brand .store-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
  .footer-brand .store-badge { width: 140px; min-width: 0; }
  .footer-brand .store-badge-image { width: 140px; height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
  .show-sm { display: inline; }
  .hide-sm { display: none; }
  .chip-copy-long { display: none; }
  .chip-copy-short { display: inline; }
}
@media (max-width: 420px) {
  .page-hero-cta, .cta-band .btn-row, .ent-inner { gap: 8px; }
  .btn-lg { padding: 11px 15px; font-size: 13.5px; gap: 6px; }
  .btn-lg svg { width: 14px; height: 14px; }
  .btn-ghost.btn-lg { padding: 11px 4px; }
  .chip { padding: 6px 10px; gap: 5px; font-size: 11.5px; }
  .chip svg { width: 13px; height: 13px; }
  .nav-inner { gap: 12px; }
  .nav-right { gap: 6px; }
  .wordmark { font-size: 19px; }
  .wordmark .brand-icon { width: 28px; height: 28px; }
  .nav-cta { padding: 8px 12px; font-size: 13.5px; }
  .nav-cta svg { width: 14px; height: 14px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ── Current app screen mockups ───────────────────────────────────────────── */
.app-home-screen,
.conv {
  --app-indigo: #3F51D5;
  --app-ink: #252738;
  --app-sub: #8F93A4;
  --app-line: #E5E6EC;
  font-family: var(--font);
}
.app-home-screen { height: 100%; background: #F7F7FA; display: flex; flex-direction: column; color: var(--app-ink); }
.app-home-head { background: #fff; padding: 30px 19px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--app-line); }
.app-home-head .wordmark { font-size: 22px; gap: 2px; }
.app-home-head .wordmark .brand-icon { width: 22px; height: 22px; }
.app-home-sub { margin-top: 8px; color: var(--app-sub); font-size: 11px; font-weight: 800; letter-spacing: 0.01em; }
.app-home-menu { width: 38px; height: 38px; border-radius: 12px; border: 1px solid #DADBE4; background: #F6F6FA; display: grid; place-content: center; gap: 4px; box-shadow: 0 2px 6px rgba(26,29,46,.08); }
.app-home-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--app-ink); }
.app-home-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 18px 15px 14px; }
.app-trust-card { min-height: 84px; border-radius: 15px; background: #F8F8FE; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.app-line-icon { color: var(--app-indigo); font-size: 21px; line-height: 1; margin-bottom: 8px; }
.app-trust-card b { font-size: 8.5px; line-height: 1.2; }
.app-trust-card small { margin-top: 5px; color: #52609A; font-weight: 800; font-size: 8.5px; }
.app-home-actions { display: grid; grid-template-columns: 1fr 82px; gap: 12px; padding: 0 15px 20px; }
.app-new-session { min-height: 82px; border-radius: 19px; background: var(--app-indigo); color: #fff; display: flex; align-items: center; gap: 14px; padding: 14px 15px; box-shadow: 0 15px 25px rgba(63,81,213,.25); }
.app-plus, .app-qr { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 25px; flex-shrink: 0; }
.app-new-session b { display: block; font-size: 14px; letter-spacing: -0.02em; }
.app-new-session small { color: rgba(255,255,255,.72); font-weight: 800; font-size: 11px; }
.app-join { border-radius: 19px; border: 1px solid var(--app-line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; box-shadow: var(--sh-card); }
.app-join .app-qr { color: var(--app-indigo); background: var(--indigo-light); font-size: 20px; }
.app-join b { font-size: 13px; }
.app-active { padding: 0 15px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-active-head { display: flex; justify-content: space-between; align-items: center; color: var(--app-sub); font-size: 9.5px; font-weight: 900; letter-spacing: 0.05em; }
.app-active-head b { color: var(--app-indigo); font-size: 12px; letter-spacing: -0.02em; }
.app-session-card { min-height: 120px; border-radius: 18px; background: #fff; border: 1px solid var(--app-line); display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: start; padding: 16px 14px; }
.app-lang-stack { width: 46px; border: 1px solid var(--app-line); border-radius: 13px; background: #fff; display: flex; flex-direction: column; align-items: center; padding: 7px 4px; font-size: 9px; font-weight: 800; color: var(--app-indigo); }
.app-lang-stack .muted { color: #D9DBE2; margin-top: 5px; }
.app-session-copy b { display: block; font-size: 13px; letter-spacing: -0.02em; }
.app-session-copy small { color: var(--app-sub); font-weight: 800; font-size: 10px; }
.app-start, .app-stop { border: 1px solid #CDD3F8; border-radius: 12px; height: 31px; font-size: 10px; font-weight: 800; color: var(--app-indigo); background: #F3F5FF; padding: 0 10px; }
.app-stop { width: 31px; padding: 0; color: #DD3B42; border-color: #F1C4C5; background: #FFF3F3; }

.conv { height: 100%; display: grid; grid-template-rows: 1fr auto 1fr; background: #fff; overflow: hidden; position: relative; }
.conv-status, .conv-divider { display: none; }
.conv-bar { grid-row: 2; padding: 0; height: 1px; background: var(--app-line); display: flex; align-items: center; justify-content: center; position: relative; z-index: 5; gap: 0; }
.conv-bar .seg { position: relative; top: -1px; height: 32px; border-radius: 18px; background: #fff; border: 1px solid #DDE2F0; box-shadow: 0 4px 11px rgba(26,29,46,.08); color: #52609A; padding: 0 13px; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.conv-bar .seg:last-child { display: none; }
.conv-bar::after { content: "⌂"; position: relative; top: -1px; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #DDE2F0; box-shadow: 0 4px 11px rgba(26,29,46,.08); color: #8F93A4; font-size: 14px; margin-left: 7px; }
.conv-half { min-height: 0; padding: 0; position: relative; display: block; }
.conv-half.patient { grid-row: 1; background: var(--app-indigo); color: #fff; }
.conv-half.provider { grid-row: 3; background: #fff; }
.conv-tag, .conv-orig, .conv-trans, .conv-mic { display: none; }
.conv-half.patient::before { content: "●  Paciente · Español"; position: absolute; right: 18px; bottom: 15px; color: #EEF3B7; font-size: 10px; font-weight: 800; transform: rotate(180deg); transform-origin: center; }
.conv-half.patient::after { content: "Patient's speech will appear here"; position: absolute; left: 0; right: 0; top: 58%; text-align: center; color: #EEF3B7; font-size: 11px; font-weight: 900; transform: rotate(180deg); }
.conv-half.provider::before { content: "●  Provider · English"; position: absolute; left: 16px; top: 17px; color: var(--app-sub); font-size: 10px; font-weight: 800; }
.conv-half.provider::after { content: "Provider's speech will appear here"; position: absolute; left: 0; right: 0; top: 38%; text-align: center; color: var(--app-sub); font-size: 11px; font-weight: 900; }
.conv::after { content: "Tap mic to speak\\A Your words translate instantly"; white-space: pre; position: absolute; left: 74px; right: 14px; bottom: 17px; height: 43px; border-radius: 15px; background: #F9F9FC; border: 1px solid var(--app-line); display: flex; align-items: center; padding: 9px 14px; color: var(--app-ink); font-size: 11px; font-weight: 900; line-height: 1.45; box-shadow: 0 2px 6px rgba(26,29,46,.04); }
.conv::before { content: "🎙"; position: absolute; left: 17px; bottom: 17px; width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: #EEF0FD; border: 1px solid #CBD1EC; color: var(--app-indigo); font-size: 18px; z-index: 6; }

/* ── App screenshots v2: proportion and flow screens ─────────────────────── */
.phone-screen { aspect-ratio: 360 / 740; }
.app-home-screen,
.app-flow-screen,
.app-invite-screen,
.app-language-modal-screen {
  --app-indigo: #3F51D5;
  --app-ink: #252738;
  --app-sub: #8F93A4;
  --app-line: #E4E5EC;
  --app-bg: #F6F6F9;
  height: 100%;
  font-family: var(--font);
  color: var(--app-ink);
  letter-spacing: -0.02em;
}

.app-home-head { padding: 26px 18px 16px; }
.app-home-head .wordmark { font-size: 24px; }
.app-home-trust { gap: 8px; padding: 18px 15px 16px; }
.app-trust-card { min-height: 90px; border-radius: 17px; }
.app-home-actions { grid-template-columns: minmax(0,1fr) 84px; gap: 12px; padding-bottom: 22px; }
.app-new-session { min-height: 88px; border-radius: 20px; gap: 12px; }
.app-new-session b { font-size: 16px; }
.app-new-session small { font-size: 11px; }
.app-session-card { min-height: 128px; grid-template-columns: 50px minmax(0,1fr) auto auto; }
.app-session-copy b { font-size: 14px; }
.app-session-copy small { font-size: 10.5px; }

.conv { grid-template-rows: 1fr 1px 1fr; }
.conv-half.patient::before { right: 16px; bottom: 16px; }
.conv-half.patient::after { top: 57%; }
.conv-half.provider::before { top: 18px; }
.conv::after {
  content: "Tap mic to speak\A Your words translate instantly";
  white-space: pre-line;
  display: block;
  left: 68px;
  right: 13px;
  bottom: 16px;
  height: auto;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 9.5px;
  line-height: 1.35;
  overflow: hidden;
}
.conv::before { left: 16px; bottom: 16px; }

.app-flow-screen { background: var(--app-bg); display: flex; flex-direction: column; overflow: hidden; }
.app-flow-head { height: 70px; background: #fff; border-bottom: 1px solid var(--app-line); display: grid; grid-template-columns: 32px minmax(0,1fr) auto 30px; align-items: center; gap: 6px; padding: 10px 12px; }
.app-flow-head > div { min-width: 0; }
.app-back { width: 32px; height: 32px; border-radius: 11px; border: 1px solid #DFE0E8; background: #F7F7FA; display: grid; place-items: center; font-size: 26px; line-height: 1; box-shadow: 0 1px 3px rgba(26,29,46,.06); }
.app-flow-head b { display: block; font-size: 18px; line-height: 1.05; }
.app-flow-head small { display: block; margin-top: 4px; color: var(--app-sub); font-size: 11px; font-weight: 900; }
.app-flow-head small span { color: var(--app-indigo); }
.app-steps { display: flex; justify-content: flex-end; gap: 4px; }
.app-steps i { width: 13px; height: 4px; border-radius: 99px; background: #E2E3EA; }
.app-steps i.on { background: var(--app-indigo); }
.app-help { width: 30px; height: 30px; border-radius: 11px; border: 1px solid #DFE0E8; background: #F7F7FA; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--app-ink); box-shadow: 0 1px 3px rgba(26,29,46,.06); }

.app-flow-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 24px 16px 20px; }
.app-flow-trust div { min-height: 60px; border-radius: 14px; background: #FAFAFF; display: grid; place-items: center; text-align: center; color: var(--app-indigo); }
.app-flow-trust span { font-size: 18px; line-height: 1; }
.app-flow-trust b { display: block; color: var(--app-ink); font-size: 8.5px; line-height: 1.2; }
.app-field-block, .app-mode-block { padding: 0 16px; }
.app-field-block label, .app-mode-block label, .app-lang-label, .app-share-label { color: var(--app-sub); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.app-title-field { margin-top: 9px; height: 58px; border-radius: 15px; background: #fff; border: 1px solid #DDDDE5; padding: 18px 16px 10px; }
.app-title-field span { display: inline-block; font-size: 14px; font-weight: 900; background: #BFE6F5; border-bottom: 2px solid #4DA7CA; line-height: 1.1; }
.app-field-block p { margin: 8px 0 20px; color: var(--app-sub); font-size: 10.5px; font-weight: 800; }
.app-field-block p b { float: right; }
.app-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.app-mode-card { position: relative; min-height: 160px; border-radius: 18px; background: #fff; border: 1px solid #DADBE4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 12px; }
.app-mode-card.selected { border: 2px solid #C9CDE6; }
.app-popular { position: absolute; top: 13px; right: 12px; border: 1px solid #CCD1EA; border-radius: 12px; background: #F4F5FF; color: #45539D; font-size: 8px; font-weight: 900; padding: 4px 8px; }
.app-mode-card b { font-size: 14px; }
.app-mode-card small { color: var(--app-sub); font-size: 10px; font-weight: 800; }
.app-mode-art { width: 66px; height: 66px; border-radius: 15px; background: linear-gradient(180deg,#5869EE,#3146C6); display: grid; place-items: center; position: relative; box-shadow: 0 8px 16px rgba(63,81,213,.2); }
.app-mode-art i { width: 19px; height: 19px; border-radius: 50%; background: #DDE1FF; display: block; }
.app-mode-art.shared i:last-child { margin-top: -2px; }
.app-mode-art.two { width: 92px; grid-template-columns: 1fr 1fr; gap: 10px; background: transparent; box-shadow: none; }
.app-mode-art.two i { width: 36px; height: 58px; border-radius: 9px; background: linear-gradient(180deg,#5869EE,#3146C6); position: relative; display: grid; place-items: center; }
.app-mode-art.two i:last-child { background: linear-gradient(180deg,#20283F,#101727); }
.app-mode-person { width: 17px; height: 17px; fill: rgba(255,255,255,.92); }
.app-mode-link { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--app-indigo); display: grid; place-items: center; box-shadow: 0 3px 7px rgba(26,29,46,.25); z-index: 2; }
.app-mode-link svg { width: 13px; height: 13px; }
.app-visit-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 16px 0; border-top: 1px solid #E7E8EF; }
.app-visit-notes div { padding: 14px 10px; text-align: center; }
.app-visit-notes div + div { border-left: 1px solid #E7E8EF; }
.app-visit-notes span { display: block; color: var(--app-indigo); font-size: 12px; margin-bottom: 8px; }
.app-visit-notes b { display: block; font-size: 11px; }
.app-visit-notes small { display: block; margin-top: 6px; color: var(--app-sub); font-size: 10px; font-weight: 800; line-height: 1.55; }

.app-setup-body { flex: 1; padding: 30px 16px 0; }
.app-session-banner { height: 58px; border-radius: 16px; background: #fff; border: 1px solid #DFE0E8; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 0 12px; }
.app-session-banner > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #EFF1FF; color: var(--app-indigo); }
.app-session-banner b { display: block; font-size: 13px; }
.app-session-banner small { color: var(--app-sub); font-size: 10.5px; font-weight: 900; }
.app-session-banner em { font-style: normal; color: #24A566; background: #EAF8F0; border-radius: 12px; padding: 5px 8px; font-size: 8px; font-weight: 900; }
.app-section-line { display: flex; align-items: center; gap: 10px; margin: 22px 0 22px; color: var(--app-sub); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.app-section-line::before, .app-section-line::after { content: ""; height: 1px; background: #DFE0E8; flex: 1; }
.app-lang-label { display: block; margin: 0 0 10px; }
.app-lang-label.patient { margin-top: 18px; }
.app-lang-select { height: 58px; border-radius: 16px; border: 1px solid #DFE0E8; background: #fff; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 0 14px; }
.app-lang-select.active { border: 2px solid #4251B7; }
.app-lang-select img, .blank-flag { width: 34px; height: 24px; border-radius: 5px; object-fit: cover; }
.blank-flag { display: block; background: #E7F8EF; }
.app-lang-select b { font-size: 14px; }
.app-lang-select.muted b { color: var(--app-sub); }
.app-swap { width: 40px; height: 40px; border-radius: 50%; margin: 18px auto; display: grid; place-items: center; background: #fff; border: 1px solid #DFE0E8; color: var(--app-indigo); font-size: 24px; box-shadow: 0 2px 6px rgba(26,29,46,.08); }
.app-start-footer { background: rgba(255,255,255,.92); border-top: 1px solid #EBECF2; padding: 12px 15px 4px; box-shadow: 0 -10px 24px rgba(255,255,255,.9); }
.app-start-footer button { width: 100%; height: 46px; border: 0; border-radius: 18px; background: #8994E6; color: #fff; font-weight: 900; font-size: 15px; }
.app-start-footer small { display: block; text-align: center; margin-top: 8px; color: var(--app-sub); font-size: 9px; font-weight: 900; }

.app-invite-screen { background: #fff; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; }
.app-sheet-grip { width: 50px; height: 5px; border-radius: 99px; background: #E5E5ED; margin: 13px auto 0; }
.app-invite-head { height: 108px; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 20px; border-bottom: 1px solid var(--app-line); }
.app-invite-head b { display: block; font-size: 24px; }
.app-invite-head small { color: var(--app-sub); font-size: 15px; font-weight: 900; }
.app-invite-head > span { width: 42px; height: 42px; border-radius: 14px; border: 1px solid #DFE0E8; background: #F7F7FA; display: grid; place-items: center; font-size: 28px; }
.app-invite-body { padding: 22px 28px 0; flex: 1; }
.app-copy-card { position: relative; height: 88px; border-radius: 18px; border: 1px solid #DDDEE6; background: #F7F7FA; padding: 22px 22px 14px; margin-bottom: 16px; }
.app-copy-card label { display: block; color: var(--app-sub); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.app-copy-card b { display: block; margin-top: 12px; font-size: 27px; letter-spacing: .16em; }
.app-copy-card.link b { font-size: 12px; letter-spacing: -0.01em; color: #767B8B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-copy-card button { position: absolute; right: 18px; top: 31px; border: 0; border-radius: 13px; background: #F0F2FF; color: #354B9E; height: 42px; padding: 0 16px; font-size: 15px; font-weight: 900; }
.app-share-label { display: block; margin: 10px 0 14px; }
.app-share-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.app-share-row div { text-align: center; }
.app-share-row span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 7px; color: #fff; font-weight: 900; font-size: 13px; }
.app-share-row small { color: var(--app-sub); font-size: 10px; font-weight: 900; }
.app-share-row .sms, .app-share-row .wa { background: #20C768; }
.app-share-row .mail { background: var(--app-indigo); }
.app-share-row .tg { background: #2EAEEA; }
.app-share-row .more { background: #F7F7FA; color: var(--app-ink); border: 1px solid #DFE0E8; font-size: 28px; }
.app-invite-foot { padding: 16px 28px 20px; border-top: 1px solid var(--app-line); }
.app-invite-foot button { width: 100%; height: 58px; border: 0; border-radius: 18px; background: var(--app-indigo); color: #fff; font-size: 20px; font-weight: 900; }
.app-invite-foot small { display: block; margin-top: 15px; text-align: center; color: var(--app-sub); font-size: 12px; font-weight: 900; }

.app-language-modal-screen { position: relative; overflow: hidden; background: #A9A9AD; }
.app-language-modal-screen > .app-flow-screen { filter: blur(.2px); transform: scale(1.01); }
.app-modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.app-language-modal { position: absolute; left: 20px; right: 20px; top: 16px; bottom: 16px; background: #fff; box-shadow: 0 18px 36px rgba(0,0,0,.28); display: flex; flex-direction: column; }
.app-language-modal h3 { margin: 22px 22px 14px; font-size: 15px; }
.app-language-modal ul { list-style: none; margin: 0; padding: 0 22px; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.app-language-modal li { display: flex; align-items: center; gap: 10px; color: #666A73; font-size: 12.5px; font-weight: 900; }
.app-language-modal img { width: 16px; height: 11px; object-fit: cover; border-radius: 1px; }
.app-language-modal button { height: 46px; background: #fff; border: 0; border-top: 1px solid #DDDDE4; text-align: right; padding: 0 22px; font-size: 14px; font-weight: 900; color: var(--app-ink); }

/* Compact home dashboard copy so it stays proportional inside marketing phones. */
.app-home-actions { grid-template-columns: minmax(0,1fr) 78px; }
.app-new-session { gap: 10px; padding-inline: 12px; }
.app-plus, .app-qr { width: 36px; height: 36px; border-radius: 11px; }
.app-new-session b { font-size: 12.5px; line-height: 1.15; }
.app-new-session small { font-size: 9.5px; white-space: nowrap; }
.app-session-card { grid-template-columns: 44px minmax(0,1fr) auto auto; gap: 8px; padding-inline: 12px; }
.app-lang-stack { width: 42px; font-size: 8px; }
.app-session-copy b { font-size: 12.5px; white-space: nowrap; }
.app-session-copy small { font-size: 9px; white-space: nowrap; }
.app-start, .app-stop { font-size: 9px; padding-inline: 8px; }

/* Keep the second-round app mockups comfortably inside the device frame. */
.app-home-head { padding: 22px 16px 14px; }
.app-home-head .wordmark { font-size: 22px; }
.app-home-sub { margin-top: 6px; font-size: 10px; }
.app-home-trust { padding: 14px 12px 12px; }
.app-trust-card { min-height: 76px; border-radius: 15px; }
.app-line-icon { margin-bottom: 6px; font-size: 18px; }
.app-home-actions { grid-template-columns: minmax(0,1fr) 74px; gap: 10px; padding: 0 12px 14px; }
.app-new-session { min-height: 72px; padding: 12px 10px; }
.app-plus, .app-qr { width: 34px; height: 34px; }
.app-new-session b { font-size: 11.5px; line-height: 1.1; }
.app-new-session small { font-size: 8px; }
.app-join { gap: 6px; border-radius: 16px; }
.app-active { padding: 0 12px 12px; gap: 8px; }
.app-active-head { font-size: 8.5px; }
.app-active-head b { font-size: 10.5px; }
.app-session-card { min-height: 102px; grid-template-columns: 42px minmax(0,1fr) auto auto; gap: 7px; align-items: center; padding: 12px 10px; }
.app-lang-stack { width: 40px; border-radius: 11px; }
.app-session-copy b { font-size: 11.5px; }
.app-session-copy small { font-size: 8.2px; }
.app-start, .app-stop { height: 27px; border-radius: 10px; }

/* Bottom tab bar — mirrors the app's persistent Home/Start/Join/Settings/Account nav. */
.app-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 7px 6px 12px; background: #fff; border-top: 1px solid var(--app-line); margin-top: auto; }
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app-tab-ico { width: 30px; height: 22px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; color: var(--app-sub); }
.app-tab.active .app-tab-ico { background: var(--indigo-light); color: var(--app-indigo); }
.app-tab b { font-size: 8px; font-weight: 800; color: var(--app-sub); }
.app-tab.active b { color: var(--app-indigo); font-weight: 900; }

.app-flow-head { height: 64px; padding: 8px 12px; grid-template-columns: 30px minmax(0,1fr) auto 28px; gap: 5px; }
.app-back { width: 30px; height: 30px; font-size: 20px; }
.app-flow-head b { font-size: 15px; }
.app-flow-head small { margin-top: 2px; font-size: 9px; }
.app-steps { gap: 4px; }
.app-steps i { width: 15px; }
.app-help { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
.app-flow-trust { padding: 18px 14px 14px; }
.app-flow-trust div { min-height: 52px; }
.app-flow-trust span { font-size: 15px; }
.app-flow-trust b { font-size: 7.5px; }
.app-field-block, .app-mode-block { padding: 0 14px; }
.app-field-block label, .app-mode-block label, .app-lang-label, .app-share-label { font-size: 8.5px; }
.app-title-field { height: 50px; padding: 14px 14px 10px; }
.app-title-field span { font-size: 12px; }
.app-field-block p { margin: 6px 0 14px; font-size: 8.8px; }
.app-mode-grid { gap: 10px; }
.app-mode-card { min-height: 128px; gap: 6px; padding: 10px 8px; }
.app-popular { top: 10px; right: 10px; font-size: 7px; padding: 3px 7px; }
.app-mode-card b { font-size: 12px; }
.app-mode-card small { font-size: 8.5px; }
.app-mode-art { width: 56px; height: 56px; }
.app-mode-art i { width: 16px; height: 16px; }
.app-mode-art.two { width: 76px; gap: 8px; }
.app-mode-art.two i { width: 28px; height: 46px; }
.app-mode-person { width: 13px; height: 13px; }
.app-mode-link { width: 18px; height: 18px; top: -8px; }
.app-mode-link svg { width: 11px; height: 11px; }
.app-visit-notes { margin: 14px 14px 0; }
.app-visit-notes div { padding: 12px 8px; }
.app-visit-notes b { font-size: 10px; }
.app-visit-notes small { margin-top: 4px; font-size: 8.4px; line-height: 1.35; }

.app-setup-body { padding: 22px 14px 0; }
.app-session-banner { height: 50px; padding: 0 10px; }
.app-session-banner > span { width: 28px; height: 28px; }
.app-session-banner b { font-size: 11.5px; }
.app-session-banner small { font-size: 9px; }
.app-session-banner em { font-size: 7px; padding: 4px 7px; }
.app-section-line { margin: 16px 0 16px; font-size: 8.5px; gap: 8px; }
.app-lang-label { margin-bottom: 8px; }
.app-lang-label.patient { margin-top: 14px; }
.app-lang-select { height: 50px; gap: 10px; padding: 0 12px; }
.app-lang-select img, .blank-flag { width: 30px; height: 21px; }
.app-lang-select b { font-size: 12px; }
.app-swap { width: 34px; height: 34px; margin: 14px auto; font-size: 18px; }
.app-start-footer { padding: 10px 12px 6px; }
.app-start-footer button { height: 42px; border-radius: 15px; font-size: 13px; }
.app-start-footer small { margin-top: 6px; font-size: 8px; }

.app-invite-screen { border-radius: 24px; }
.app-sheet-grip { width: 42px; margin-top: 8px; }
.app-invite-head { height: 84px; padding: 10px 16px 12px; }
.app-invite-head b { font-size: 18px; }
.app-invite-head small { font-size: 11px; line-height: 1.3; }
.app-invite-head > span { width: 34px; height: 34px; border-radius: 12px; font-size: 22px; }
.app-invite-body { padding: 14px 16px 0; }
.app-copy-card { height: 74px; border-radius: 15px; padding: 16px 14px 10px; margin-bottom: 12px; }
.app-copy-card label { font-size: 9px; }
.app-copy-card b { margin-top: 8px; font-size: 20px; letter-spacing: 0.14em; }
.app-copy-card.link b { font-size: 10px; }
.app-copy-card button { right: 12px; top: 22px; height: 32px; border-radius: 10px; padding: 0 12px; font-size: 12px; }
.app-share-label { margin: 6px 0 10px; font-size: 8.5px; }
.app-share-row { gap: 6px; }
.app-share-row span { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 5px; font-size: 10px; }
.app-share-row small { font-size: 8px; }
.app-share-row .more { font-size: 20px; }
.app-invite-foot { padding: 12px 16px 14px; }
.app-invite-foot button { height: 46px; border-radius: 15px; font-size: 15px; }
.app-invite-foot small { margin-top: 8px; font-size: 8.5px; line-height: 1.35; }

.app-language-modal { left: 16px; right: 16px; top: 14px; bottom: 14px; }
.app-language-modal h3 { margin: 18px 18px 10px; font-size: 13px; }
.app-language-modal ul { padding: 0 18px; }
.app-language-modal li { gap: 8px; font-size: 10.5px; }
.app-language-modal img { width: 14px; height: 10px; }
.app-language-modal button { height: 40px; padding: 0 18px; font-size: 12px; }

/* Real device-screenshot mockups — these images already include their own phone bezel/notch,
   so they're shown as plain images (no site-drawn .phone frame layered on top). */
.real-shot { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 34px rgba(15,23,42,.18)); }

/* Add an actual conversation to the shared-device screens. */
.conv-half.patient::after {
  content: "Me duele el pecho, aquí. Y también el brazo izquierdo.";
  left: 22px;
  right: 22px;
  top: 38%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  color: #F6F2B2;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 8px 18px rgba(7,10,32,0.16);
  transform: rotate(180deg);
}
.conv-half.provider::after {
  content: "How long have you had this pain?";
  left: 22px;
  right: 22px;
  top: 34%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #F8F9FF;
  color: #495174;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 8px 18px rgba(26,29,46,0.08);
}

/* Motion for shared-device conversation mockup. */
.conv-half.patient::after { animation: appPulseRotate 4s ease-in-out infinite; }
.conv-half.provider::after { animation: appPulseText 4.4s ease-in-out infinite; }

@keyframes appPulseRotate {
  0%, 100% { transform: rotate(180deg) translateY(0) scale(1); }
  50% { transform: rotate(180deg) translateY(-1px) scale(1.02); }
}

@keyframes appPulseText {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.02); }
}
