@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #0b1d36;
  --ink-2: #243852;
  --muted: #66768b;
  --paper: #f6fafb;
  --surface: #ffffff;
  --line: #dfe9eb;
  --line-strong: #c7d8dc;
  --brand: #10b4ac;
  --brand-dark: #087f7b;
  --brand-soft: #e8f8f7;
  --navy: #0a3374;
  --navy-dark: #072658;
  --navy-soft: #edf3fb;
  --danger: #9b3b34;
  --danger-soft: #fff4f2;
  --warning: #8a6200;
  --shadow: 0 18px 48px rgba(9, 51, 92, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--brand-dark); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; padding: .7rem 1rem; background: white; }
.shell { min-height: 100vh; }

.topbar {
  min-height: 80px;
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(10, 51, 116, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: .72rem; min-width: 0; }
.brand-logo { display: block; width: 43px; height: 43px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-title { font-size: .96rem; font-weight: 700; letter-spacing: -.025em; }
.brand-subtitle { margin-top: .28rem; color: var(--muted); font-size: .55rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wordmark { display: inline-flex; align-items: baseline; line-height: 1; font-size: 1.24rem; font-weight: 600; letter-spacing: -.045em; }
.wordmark-group { color: var(--navy); }
.wordmark-service { margin-left: .42rem; color: var(--brand); font-size: .72em; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.top-actions, .button-row, .tabs { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.label-compact { display: none; }
.brand-button { appearance: none; border: 0; background: transparent; padding: 0; color: inherit; }
.public-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { border: 0; background: transparent; padding: .4rem 0; color: var(--muted); font-size: .78rem; font-weight: 500; }
.nav-link:hover { color: var(--navy); }

.hero {
  width: min(1200px, calc(100% - 48px));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: clamp(64px, 8vh, 96px) 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(64px, 8vw, 112px);
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 580px;
  height: 580px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 180, 172, .11), rgba(16, 180, 172, 0) 70%);
  pointer-events: none;
}
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 1.1rem; color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-size: .69rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 1.4rem; color: var(--navy); font-size: clamp(2.8rem, 5vw, 4.35rem); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.22; letter-spacing: -.04em; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.lede { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.72; }
.feature-strip {
  max-width: 630px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.2rem 0 1.7rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-strip > div { padding: 0 1.25rem; border-right: 1px solid var(--line); }
.feature-strip > div:first-child { padding-left: 0; }
.feature-strip > div:last-child { border-right: 0; }
.feature-strip strong { display: block; font-size: 1.16rem; font-weight: 600; letter-spacing: -.025em; }
.feature-strip span { color: var(--muted); font-size: .75rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 2.4vw, 1.9rem); }
.auth-card { width: 100%; max-width: 410px; justify-self: end; padding: 2.15rem; position: relative; overflow: hidden; border-top: 3px solid var(--brand); }
.auth-card::after { content: ""; position: absolute; z-index: 0; width: 230px; height: 230px; right: -112px; bottom: -112px; background: url("logo-mark.svg") center / contain no-repeat; opacity: .035; pointer-events: none; }
.auth-card > * { position: relative; z-index: 1; }
.auth-card h2 { margin-bottom: .75rem; font-size: 1.7rem; }
.auth-card form { margin-top: 1.35rem; }
.tabs { gap: 1.6rem; margin-bottom: 1.7rem; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: .7rem 0 .8rem; color: var(--muted); font-weight: 500; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--brand); }

label { display: grid; gap: .42rem; margin-bottom: 1rem; color: var(--ink-2); font-size: .78rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: .75rem .82rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input { min-height: 48px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16, 180, 172, .12); }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"] { width: 1rem; min-height: 1rem; height: 1rem; accent-color: var(--brand); }
.check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; }
.hint, .muted { color: var(--muted); font-size: .82rem; }
.error { color: var(--danger); }
.danger-panel { background: var(--danger-soft); border: 1px solid #efd5d1; color: #76312b; border-radius: 10px; padding: .9rem 1rem; }
.danger-panel strong { font-weight: 600; }
.danger-panel p { margin: .2rem 0 0; font-size: .82rem; line-height: 1.55; }

.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: .66rem 1.05rem;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-secondary:hover { background: #f6f8fc; border-color: #afbdcf; }
.btn-danger { background: var(--danger); }
.btn-small { min-height: 36px; padding: .43rem .72rem; font-size: .76rem; }
.btn-full { width: 100%; }

.dashboard { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { padding: 1.8rem 1rem; border-right: 1px solid var(--line); background: #fff; }
.nav-list { display: grid; gap: .3rem; position: sticky; top: 104px; }
.nav-button { position: relative; border: 0; border-radius: 9px; background: transparent; padding: .78rem .9rem; color: var(--muted); text-align: left; font-size: .86rem; font-weight: 500; }
.nav-button:hover { color: var(--ink); background: #f5f7fb; }
.nav-button.active { color: var(--navy); background: var(--brand-soft); font-weight: 600; }
.nav-button.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--brand); }
.main { min-width: 0; padding: clamp(1.5rem, 4vw, 3.4rem); background: linear-gradient(145deg, #f9fcfc 0%, #f3f8f9 100%); }
.content { width: min(1120px, 100%); margin: 0 auto; }
.section-head { margin-bottom: 1.6rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-height: 128px; box-shadow: 0 8px 24px rgba(24, 45, 78, .05); }
.metric strong { display: block; margin-bottom: .25rem; font-size: 1.8rem; font-weight: 600; letter-spacing: -.045em; }
.metric span { color: var(--muted); font-size: .78rem; }
.list { display: grid; gap: .75rem; }
.list-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 1rem; text-align: left; transition: border-color .16s ease, box-shadow .16s ease; }
.list-item:hover { border-color: #b7c8e8; box-shadow: 0 8px 22px rgba(24, 45, 78, .06); }
.list-item p { margin-bottom: .15rem; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .75rem; }
.badge { width: fit-content; display: inline-flex; align-items: center; border-radius: 999px; background: var(--brand-soft); color: var(--navy); padding: .25rem .58rem; font-size: .67rem; font-weight: 600; }
.badge.warning { background: #fff5d8; color: #765000; }
.badge.danger { background: #fee9e6; color: #8c2f24; }
.empty { border: 1px dashed #bcc9d9; border-radius: 11px; background: #fbfcfe; padding: 2rem; color: var(--muted); text-align: center; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: .55rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .8rem; }
.dl dd { margin: 0; white-space: pre-wrap; }
.message { border-left: 3px solid var(--brand); border-radius: 0 9px 9px 0; background: #f6f8fd; padding: .75rem 1rem; }
.message.internal { border-color: var(--warning); background: #fffaeb; }
.message p { margin-bottom: .35rem; white-space: pre-wrap; }
.message small { color: var(--muted); }
.file-link { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.subscription { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 16px 38px rgba(10, 51, 116, .16); }
.subscription::after { content: ""; position: absolute; right: -46px; bottom: -70px; width: 210px; height: 210px; border: 2px solid rgba(16,180,172,.36); border-radius: 50%; box-shadow: 0 0 0 24px rgba(16,180,172,.07), 0 0 0 48px rgba(16,180,172,.04); pointer-events: none; }
.subscription .eyebrow { color: #6de0da; }
.subscription .muted { color: rgba(255,255,255,.72); }
.loading { min-height: 70vh; display: grid; place-items: center; color: var(--muted); }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; max-width: 420px; border-radius: 9px; background: var(--ink); color: white; padding: .8rem 1rem; box-shadow: var(--shadow); }
.toast.error { background: var(--danger); }

/* Portais profissionais */
.admin-metrics { margin-bottom: 1rem; }
.admin-table { padding: 0; overflow: hidden; }
.admin-table-head, .admin-table-row {
  display: grid;
  grid-template-columns: .8fr 1.15fr 1fr 1.2fr 1.25fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
}
.admin-table-head { background: var(--navy-soft); color: var(--muted); font-size: .69rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.admin-table-row { border-top: 1px solid var(--line); }
.admin-table-row:first-of-type { border-top: 0; }
.admin-table-row strong, .admin-table-row small { display: block; }
.admin-table-row strong { color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.admin-table-row small { margin-top: .18rem; color: var(--muted); font-size: .66rem; }
.admin-row-actions { display: grid; gap: .5rem; }
.assignment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin: 0; }
.assignment-form select { min-width: 0; padding: .43rem .55rem; font-size: .7rem; }
.doctor-list, .clinic-list { margin-top: 1rem; }
.doctor-list > .section-head, .clinic-list > .section-head { margin-bottom: 1rem; }
.portal-denied { width: min(680px, calc(100% - 32px)); min-height: calc(100vh - 80px); margin: 0 auto; display: grid; place-items: center; }
.portal-denied .card { width: 100%; }
.portal-denied h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* Circuito clínico iniciado pela clínica */
.clinical-intake { display: grid; gap: 1rem; }
.form-section { box-shadow: 0 10px 30px rgba(9, 51, 92, .045); }
.form-section-head { margin-bottom: 1.4rem; display: flex; align-items: flex-start; gap: .9rem; }
.form-section-head > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--navy-soft); color: var(--navy); font-size: .68rem; font-weight: 600; }
.form-section-head h3 { margin-bottom: .15rem; color: var(--navy); font-size: 1.08rem; }
.form-section-head p { margin: 0; color: var(--muted); font-size: .74rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.danger-panel.compact { margin-bottom: 1.25rem; }
.danger-panel.compact .check { margin: .7rem 0 0; }
.consent-check { max-width: 900px; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfc; }
.capture-choice { padding: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px dashed var(--line-strong); border-radius: 11px; background: #fbfdfd; }
.capture-choice strong, .form-submit-bar strong, .form-submit-bar span { display: block; }
.capture-choice p { margin: .25rem 0 0; color: var(--muted); font-size: .73rem; }
.upload-button { min-width: 190px; margin: 0; border-radius: 9px; padding: .65rem 1rem; background: var(--navy); color: white; text-align: center; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.form-submit-bar { position: sticky; bottom: 1rem; z-index: 4; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 16px 38px rgba(9,51,92,.12); backdrop-filter: blur(12px); }
.form-submit-bar strong { color: var(--navy); font-size: .78rem; }
.form-submit-bar span { color: var(--muted); font-size: .68rem; }
.card-title-row { margin-bottom: .9rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-title-row h3, .card-title-row .eyebrow { margin-bottom: 0; }
.capture-card { border-top: 3px solid var(--brand); }
.capture-upload { margin: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .8rem; }
.capture-upload label { margin: 0; }
.or-divider { margin: .4rem 0; display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.qr-area { min-height: 130px; display: grid; grid-template-columns: 108px 1fr; align-items: center; gap: 1rem; }
.qr-area p { margin: .25rem 0 .7rem; color: var(--muted); font-size: .72rem; }
.qr-placeholder { width: 100px; height: 100px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: #f8fafb; color: var(--muted); font-size: .8rem; }
.capture-qr { width: 126px; height: 126px; border: 7px solid #fff; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.prescription-card, .delivery-card { box-shadow: 0 8px 24px rgba(24,45,78,.05); }
.delivery-card.ready { border-top: 3px solid var(--brand); }
.secure-note { margin: .8rem 0 0; padding: .7rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: .68rem; }

.capture-shell { min-height: 100vh; background: linear-gradient(155deg, #f8fbfd, #edf6f7); }
.capture-shell > main { width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.capture-page { margin-top: 50px; }
.capture-page h1, .capture-page-head h1 { margin-bottom: .6rem; font-size: 2.35rem; }
.mobile-capture-form { padding: 1.5rem; }
.capture-page-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.capture-guidance { margin: 1rem 0 1.3rem; padding: 1rem; border-radius: 10px; background: var(--navy-soft); }
.capture-guidance strong { color: var(--navy); }
.capture-guidance ul { margin: .55rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .75rem; }
.camera-field { margin-bottom: .8rem; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.camera-field input { margin-top: .35rem; background: #fff; }
.capture-expiry { color: var(--muted); font-size: .7rem; text-align: center; }

/* Apresentação comercial B2B */
.landing-shell { background: #fff; }
.landing { overflow: hidden; background: #fff; }
.b2b-hero,
.landing-section,
.final-cta,
.landing-footer {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.b2b-hero {
  min-height: 650px;
  padding: 76px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(58px, 7vw, 104px);
  align-items: center;
  position: relative;
}
.b2b-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 720px;
  height: 720px;
  right: -300px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,180,172,.13), rgba(16,180,172,0) 70%);
}
.b2b-hero-copy, .hero-product { position: relative; z-index: 1; }
.b2b-hero-copy, .hero-product { min-width: 0; }
.b2b-hero h1 { max-width: 620px; font-size: clamp(2.65rem, 3.65vw, 3.65rem); line-height: 1.08; }
.b2b-hero .lede { max-width: 610px; font-size: 1rem; }
.hero-actions { margin-top: 2.2rem; }
.hero-actions .btn { min-height: 50px; padding-inline: 1.25rem; }
.trust-row {
  max-width: 660px;
  margin-top: 2.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trust-row > span { display: grid; gap: .1rem; padding: 0 1.3rem; border-right: 1px solid var(--line); }
.trust-row > span:first-child { padding-left: 0; }
.trust-row > span:last-child { border: 0; }
.trust-row strong { color: var(--navy); font-size: .94rem; font-weight: 600; }
.trust-row small { color: var(--muted); font-size: .67rem; }

.hero-product { min-height: 470px; display: grid; place-items: center; }
.hero-product .device-desktop { width: min(610px, 100%); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.hero-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 450px; height: 450px; border: 1px solid rgba(16,180,172,.25); }
.orbit-two { width: 355px; height: 355px; border: 1px dashed rgba(10,51,116,.15); }
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(10,51,116,.1);
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(9,51,92,.14);
  padding: .75rem .9rem;
}
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { color: var(--navy); font-size: .76rem; }
.floating-card span { color: var(--muted); font-size: .62rem; }
.floating-sla { left: -22px; bottom: 32px; }
.floating-sla i { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); position: relative; }
.floating-sla i::after { content: ""; position: absolute; width: 8px; height: 4px; left: 9px; top: 10px; border-left: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(-45deg); }
.floating-brand { right: -8px; top: 24px; display: grid; gap: .05rem; }
.floating-brand strong { color: var(--brand-dark); }

.device {
  position: relative;
  border: 1px solid #d7e2e8;
  background: #fff;
  box-shadow: 0 30px 70px rgba(8,48,84,.16);
  overflow: hidden;
}
.device-desktop { border-radius: 16px; }
.desktop-head { height: 48px; padding: 0 .9rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eef1; }
.mini-brand { color: var(--navy); font-size: .64rem; font-weight: 600; letter-spacing: -.02em; }
.mock-avatar { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: .5rem; font-weight: 600; }
.desktop-layout { min-height: 340px; display: grid; grid-template-columns: 54px 1fr; }
.mock-sidebar { padding-top: 1rem; display: grid; justify-content: center; align-content: start; gap: .82rem; border-right: 1px solid #edf1f3; background: #fbfcfd; }
.mock-sidebar i { display: block; width: 19px; height: 19px; border-radius: 5px; background: #dfe7eb; }
.mock-sidebar i.active { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.mock-workspace { padding: 1.45rem; background: #f7fafb; }
.mock-heading { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.mock-heading small { color: var(--brand-dark); font-size: .48rem; letter-spacing: .14em; }
.mock-heading h3 { margin: .1rem 0 0; color: var(--navy); font-size: .9rem; }
.mock-live { border-radius: 999px; padding: .24rem .48rem; background: var(--brand-soft); color: var(--brand-dark); font-size: .48rem; font-weight: 600; }
.mock-metrics { margin-bottom: .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.mock-metrics > div { border: 1px solid #e2eaed; border-radius: 8px; background: white; padding: .62rem; }
.mock-metrics strong, .mock-metrics span { display: block; }
.mock-metrics strong { color: var(--navy); font-size: .92rem; line-height: 1.2; }
.mock-metrics span { color: var(--muted); font-size: .45rem; }
.mock-case-list { display: grid; gap: .42rem; }
.mock-case { min-height: 48px; border: 1px solid #e5ecef; border-radius: 8px; background: #fff; padding: .55rem .65rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; }
.mock-case-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.mock-case strong, .mock-case small { display: block; }
.mock-case strong { color: var(--ink-2); font-size: .57rem; font-weight: 600; }
.mock-case small, .mock-case > span:last-child { color: var(--muted); font-size: .45rem; }
.mock-form-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: .55rem; }
.mock-form-grid > div { min-height: 60px; padding: .62rem .7rem; border: 1px solid #e2eaed; border-radius: 8px; background: white; }
.mock-form-grid > div.wide { min-height: 82px; grid-column: 1 / -1; }
.mock-form-grid span { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .46rem; }
.mock-form-grid i { display: block; width: 56%; height: 5px; margin-top: .35rem; border-radius: 4px; background: #e3eaed; }
.mock-form-grid i.long { width: 88%; }
.mock-capture-row { margin-top: .72rem; padding: .68rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; border: 1px solid #cde3e3; border-radius: 9px; background: #eff9f8; }
.mock-capture-row strong, .mock-capture-row span { display: block; }
.mock-capture-row strong { color: var(--navy); font-size: .56rem; }
.mock-capture-row span { max-width: 230px; color: var(--muted); font-size: .43rem; }
.mock-capture-row b { color: var(--brand-dark); font-size: .5rem; }
.mock-qr { width: 43px; height: 43px; position: relative; border: 4px solid white; background: repeating-conic-gradient(var(--navy) 0 25%, white 0 50%) 50% / 9px 9px; box-shadow: 0 0 0 1px #cbdadd; }
.mock-qr i { position: absolute; width: 10px; height: 10px; border: 3px solid var(--navy); background: white; }
.mock-qr i:nth-child(1) { left: 2px; top: 2px; }
.mock-qr i:nth-child(2) { right: 2px; top: 2px; }
.mock-qr i:nth-child(3) { left: 2px; bottom: 2px; }
.mock-qr i:nth-child(4) { right: 2px; bottom: 2px; }

.landing-section { padding: 100px 0; scroll-margin-top: 80px; }
.section-intro { max-width: 760px; margin-bottom: 3.2rem; }
.section-intro h2 { color: var(--navy); font-size: clamp(2.1rem, 3.5vw, 3.15rem); }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro.centered .lede { margin-inline: auto; }
.proposition { border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-card { min-height: 265px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1.55rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #b8dbda; box-shadow: 0 20px 46px rgba(9,51,92,.08); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; }
.service-index { display: block; color: var(--brand); font-size: .72rem; font-weight: 600; letter-spacing: .1em; }
.service-icon { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--brand-soft); transition: transform .2s ease, background .2s ease; }
.service-card:hover .service-icon { transform: translateY(-2px); background: #d9f8f5; }
.service-card h3 { color: var(--navy); font-size: 1.05rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .79rem; line-height: 1.7; }

.flow-section { width: 100%; max-width: none; padding-inline: max(24px, calc((100vw - 1200px) / 2)); background: var(--navy); color: white; }
.flow-section .eyebrow { color: #63ddd5; }
.flow-section h2 { color: white; }
.flow-section .lede { color: rgba(255,255,255,.65); }
.flow-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.flow-line::before { content: ""; position: absolute; left: 4%; right: 4%; top: 24px; height: 1px; background: rgba(255,255,255,.2); }
.flow-line > div { position: relative; display: grid; justify-items: center; text-align: center; }
.flow-line b { z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.35rem; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: var(--navy); color: #69ded7; font-size: .75rem; }
.flow-line strong { margin-bottom: .55rem; font-size: .85rem; font-weight: 600; }
.flow-line span { max-width: 220px; color: rgba(255,255,255,.6); font-size: .7rem; line-height: 1.65; }

.product-section { min-height: 720px; display: grid; grid-template-columns: minmax(0, .83fr) minmax(390px, 1.17fr); gap: clamp(65px, 10vw, 150px); align-items: center; }
.product-section.reverse { grid-template-columns: minmax(390px, 1.08fr) minmax(0, .92fr); }
.product-section.reverse .product-copy { order: 2; }
.product-section.reverse .product-visual { order: 1; }
.product-copy h2 { max-width: 540px; color: var(--navy); font-size: clamp(2.1rem, 3.5vw, 3.1rem); }
.product-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.product-copy ul { display: grid; gap: .85rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.product-copy li { position: relative; padding-left: 1.7rem; color: var(--ink-2); font-size: .82rem; }
.product-copy li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.product-visual { min-height: 560px; position: relative; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, #edf9f8, #f2f6fb); }
.product-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(16,180,172,.18); border-radius: 50%; }
.patient-visual .device-mobile { transform: rotate(2deg); }
.device-mobile, .response-device { width: 285px; border-radius: 26px; border-width: 7px; border-color: #fff; box-shadow: 0 26px 60px rgba(6,48,81,.18), 0 0 0 1px #d5e0e5; }
.device-bar { height: 47px; padding: 0 .85rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f3; }
.device-bar > span { width: 13px; height: 13px; border: 1px solid #d6e0e4; border-radius: 50%; }
.device-bar strong { color: var(--navy); font-size: .63rem; }
.device-content { padding: 1.2rem; }
.device-content > small { color: var(--brand-dark); font-size: .45rem; font-weight: 600; letter-spacing: .1em; }
.device-content h3 { margin: .35rem 0 .2rem; color: var(--navy); font-size: .9rem; }
.device-content > p { color: var(--muted); font-size: .55rem; }
.capture-approved { margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; color: var(--brand-dark); font-size: .48rem; }
.capture-approved i { width: 15px; height: 15px; position: relative; border-radius: 50%; background: var(--brand-soft); }
.capture-approved i::after { content: ""; position: absolute; width: 5px; height: 3px; left: 5px; top: 5px; border-left: 1.5px solid var(--brand-dark); border-bottom: 1.5px solid var(--brand-dark); transform: rotate(-45deg); }
.mock-progress { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.mock-progress i { height: 3px; border-radius: 4px; background: var(--brand); }
.mock-progress i:last-child { background: #dce5e8; }
.mock-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.mock-photo { min-height: 76px; position: relative; overflow: hidden; border: 1px solid #dce7e9; border-radius: 8px; background: linear-gradient(135deg, #dceeea, #f1e5da); }
.mock-photo.wide { min-height: 92px; grid-column: 1 / -1; background: linear-gradient(135deg, #d8eae8, #ead8cd); }
.mock-photo span { position: absolute; z-index: 2; left: .4rem; bottom: .35rem; border-radius: 999px; padding: .12rem .3rem; background: rgba(255,255,255,.84); color: var(--ink-2); font-size: .42rem; }
.mock-photo i { position: absolute; width: 34px; height: 34px; left: 50%; top: 50%; border-radius: 43% 57% 48% 52%; background: radial-gradient(circle at 45% 42%, #a97466 0 15%, #dba999 18% 36%, rgba(218,169,153,.22) 50%); transform: translate(-50%, -50%); }
.mock-assist { margin: .7rem 0; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); padding: .5rem; font-size: .48rem; text-align: center; }
.mock-button { width: 100%; min-height: 31px; border: 0; border-radius: 7px; background: var(--navy); color: #fff; font-size: .53rem; font-weight: 600; pointer-events: none; }
.mock-button.pale { border: 1px solid #d8e4e8; background: #fff; color: var(--navy); }
.response-device { width: 330px; border-radius: 18px; border-width: 1px; transform: rotate(-2deg); }
.response-status { margin-bottom: .8rem; border-radius: 8px; padding: .7rem; display: flex; gap: .55rem; align-items: center; background: var(--brand-soft); }
.response-status i { width: 25px; height: 25px; border-radius: 50%; background: var(--brand); }
.response-status strong, .response-status small, .mock-doctor strong, .mock-doctor small { display: block; }
.response-status strong { color: var(--navy); font-size: .57rem; }
.response-status small { color: var(--brand-dark); font-size: .45rem; }
.mock-doctor { margin-bottom: .85rem; display: flex; align-items: center; gap: .55rem; }
.mock-doctor > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: .5rem; }
.mock-doctor strong { color: var(--ink-2); font-size: .58rem; }
.mock-doctor small { color: var(--muted); font-size: .45rem; }
.mock-note { border: 1px solid #e2e9ec; border-radius: 8px; padding: .7rem; }
.mock-note small { display: block; margin-bottom: .55rem; color: var(--brand-dark); font-size: .43rem; font-weight: 600; letter-spacing: .1em; }
.mock-note i { display: block; width: 100%; height: 4px; margin-top: .35rem; border-radius: 4px; background: #e1e7e9; }
.mock-note i.short { width: 64%; }
.prescription-row { margin: .75rem 0; border: 1px solid #dbe6e8; border-radius: 8px; padding: .65rem; display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; }
.prescription-row > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--navy-soft); color: var(--navy); font-family: Georgia, serif; font-size: .58rem; font-weight: 700; }
.prescription-row strong, .prescription-row small { display: block; }
.prescription-row strong { color: var(--ink-2); font-size: .53rem; }
.prescription-row small { color: var(--muted); font-size: .41rem; }
.prescription-row b { border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); padding: .2rem .35rem; font-size: .4rem; }

.business-section { width: 100%; max-width: none; padding-inline: max(24px, calc((100vw - 1200px) / 2)); background: #f4f8fa; }
.business-card { border-radius: 22px; background: var(--navy); color: white; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 3rem 5rem; }
.business-card .eyebrow { color: #62ddd5; }
.business-card h2 { color: white; font-size: clamp(2rem, 3.4vw, 3.05rem); }
.business-card .lede { margin-bottom: 0; color: rgba(255,255,255,.67); }
.business-card > .button-row { grid-column: 1 / -1; }
.business-card .btn { background: var(--brand); color: #042d40; }
.business-card .btn:hover { background: #37c9c1; }
.business-card .btn-secondary { border-color: rgba(255,255,255,.28); background: transparent; color: white; }
.business-rules { display: grid; }
.business-rules > div { padding: .85rem 0; display: grid; gap: .15rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.business-rules span { color: rgba(255,255,255,.55); font-size: .64rem; }
.business-rules strong { font-size: .83rem; font-weight: 500; }
.channel-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.channel-card { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 1.7rem; }
.channel-card > span { color: var(--brand-dark); font-size: .58rem; font-weight: 600; letter-spacing: .12em; }
.channel-card h3 { margin: .7rem 0; color: var(--navy); font-size: 1.2rem; }
.channel-card p { color: var(--muted); font-size: .77rem; line-height: 1.7; }
.channel-card > strong { color: var(--brand-dark); font-size: .68rem; }
.channel-card.review { border-style: dashed; background: #fbfcfd; }
.channel-card.review > span, .channel-card.review > strong { color: #866200; }

.security-section { border-top: 1px solid var(--line); }
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.security-grid article { min-height: 190px; padding: 1.55rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #f7fbfc); }
.security-grid article::before { content: ""; width: 34px; height: 34px; display: block; margin-bottom: 2rem; border-radius: 10px; background: var(--navy-soft); box-shadow: inset 0 0 0 9px #fff, 0 0 0 1px #d8e2ed; }
.security-grid strong { display: block; margin-bottom: .6rem; color: var(--navy); font-size: .88rem; }
.security-grid p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }

.final-cta { margin-block: 100px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); padding: clamp(2rem, 4vw, 3.1rem); display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.final-cta img { width: 68px; height: 68px; }
.final-cta .eyebrow { margin-bottom: .45rem; }
.final-cta h2 { margin-bottom: .35rem; color: var(--navy); }
.final-cta p:last-child { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.landing-footer { min-height: 150px; padding: 2rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr minmax(280px, .6fr); gap: 2rem; align-items: center; }
.landing-footer .brand-logo { width: 34px; height: 34px; }
.landing-footer .wordmark { font-size: 1.1rem; }
.landing-footer p { margin: 0; color: var(--muted); font-size: .66rem; }
.landing-footer p:last-child { text-align: right; }

/* Entrada no portal separada da apresentação comercial */
.portal-entry { width: min(1040px, calc(100% - 48px)); min-height: calc(100vh - 80px); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "copy auth"; gap: 90px; align-items: center; }
.portal-entry .auth-card { grid-area: auth; }
.portal-copy { grid-area: copy; min-width: 0; }
.portal-copy h1 { max-width: 600px; font-size: clamp(2.6rem, 4.7vw, 4rem); }
.portal-points { margin: 2rem 0; display: grid; gap: .85rem; }
.portal-points span { position: relative; padding-left: 1.7rem; color: var(--ink-2); font-size: .8rem; }
.portal-points span::before { content: ""; position: absolute; left: 0; top: .32rem; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.portal-note { max-width: 560px; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .71rem; }

:focus-visible { outline: 3px solid rgba(16, 180, 172, .3); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 56px; }
  .hero-copy { max-width: 760px; }
  .auth-card { max-width: 560px; justify-self: start; }
  .detail-grid { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; align-content: start; }
  .sidebar { padding: .7rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .nav-list { display: flex; min-width: max-content; position: static; }
  .nav-button.active::before { inset: auto 10px 0; width: auto; height: 3px; }
  .main { min-height: calc(100vh - 138px); }
  .public-nav { display: none; }
  .b2b-hero { grid-template-columns: minmax(0, 1fr); padding-top: 70px; }
  .b2b-hero-copy { max-width: 760px; }
  .hero-product { min-height: 430px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .flow-line { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .flow-line::before { display: none; }
  .product-section, .product-section.reverse { min-height: 0; grid-template-columns: 1fr; }
  .product-section.reverse .product-copy, .product-section.reverse .product-visual { order: initial; }
  .product-visual { min-height: 520px; }
  .business-card { grid-template-columns: 1fr; }
  .business-card > .button-row { grid-column: auto; }
  .portal-entry { grid-template-columns: 1fr; gap: 2.5rem; }
  .portal-entry { grid-template-areas: "auth" "copy"; }
  .portal-entry .auth-card { justify-self: start; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .landing-footer { grid-template-columns: 1fr 1fr; }
  .landing-footer p:last-child { grid-column: 1 / -1; text-align: left; }
  .admin-table-head { display: none; }
  .admin-table-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .admin-row-actions { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 620px) {
  button, .btn, .nav-button, .upload-button { touch-action: manipulation; }
  .topbar { min-height: 64px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { gap: .45rem; }
  .brand-logo { width: 32px; height: 32px; }
  .wordmark { font-size: 1rem; }
  .wordmark-service { margin-left: .28rem; font-size: .62em; letter-spacing: .06em; }
  .topbar .btn-small { min-height: 40px; padding: .42rem .62rem; font-size: .66rem; line-height: 1.25; }
  .top-actions { gap: .4rem; }
  .brand-subtitle { display: none; }
  .top-actions .muted { display: none; }
  .hero { width: min(100% - 32px, 1200px); min-height: auto; padding: 44px 0 56px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .feature-strip { grid-template-columns: 1fr; gap: .85rem; }
  .feature-strip > div { padding: 0 0 .8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .auth-card { padding: 1.35rem; }
  input, textarea, select { font-size: 16px; }
  .dashboard { min-height: calc(100vh - 64px); }
  .sidebar { position: sticky; top: 64px; z-index: 8; padding: .5rem .75rem; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .nav-list { gap: .15rem; }
  .nav-button { min-height: 44px; padding: .65rem .8rem; white-space: nowrap; scroll-snap-align: start; }
  .main { min-height: calc(100vh - 116px); padding: 1rem; }
  .main, .content, .card, .list-item, .admin-table-row { min-width: 0; }
  .card { padding: 1.1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .content > .grid-3, .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .content > .grid-3 .metric, .admin-metrics .metric { min-height: 88px; padding: .8rem; }
  .content > .grid-3 .metric strong, .admin-metrics .metric strong { font-size: 1.45rem; }
  .content > .grid-3 .metric span, .admin-metrics .metric span { font-size: .62rem; line-height: 1.35; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head > .btn { min-width: 132px; }
  .list-item { grid-template-columns: 1fr; }
  .list-item > .stack { display: flex; flex-wrap: wrap; gap: .4rem; }
  .file-link, .card-title-row { align-items: flex-start; flex-direction: column; }
  .file-link .btn { width: 100%; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .8rem; }
  .b2b-hero, .landing-section, .final-cta, .landing-footer, .portal-entry { width: min(100% - 32px, 1200px); }
  .b2b-hero { min-height: 0; padding: 42px 0 58px; gap: 1.8rem; }
  .b2b-hero h1 { font-size: clamp(2rem, 10.5vw, 2.55rem); overflow-wrap: anywhere; }
  .b2b-hero .lede { font-size: .94rem; line-height: 1.7; }
  .hero-actions { width: 100%; margin-top: 1.7rem; display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust-row { grid-template-columns: 1fr; gap: .8rem; }
  .trust-row > span { padding: 0 0 .75rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-row > span:last-child { padding-bottom: 0; }
  .hero-product { min-height: 300px; }
  .hero-product .device-desktop { width: 100%; max-width: 100%; transform: none; }
  .floating-card { padding: .55rem .65rem; }
  .floating-sla { left: 8px; bottom: -8px; }
  .floating-brand { right: 8px; top: -10px; }
  .orbit-one { width: min(300px, 92vw); height: min(300px, 92vw); }
  .orbit-two { width: min(235px, 72vw); height: min(235px, 72vw); }
  .landing-section { padding-block: 64px; }
  .section-intro { margin-bottom: 2.2rem; }
  .section-intro h2, .product-copy h2 { font-size: clamp(1.85rem, 9vw, 2.35rem); line-height: 1.16; overflow-wrap: anywhere; }
  .section-intro .lede, .product-copy > p:not(.eyebrow) { font-size: .92rem; line-height: 1.75; }
  .service-grid, .flow-line, .channel-grid, .security-grid, .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 1.25rem; }
  .service-card-top { margin-bottom: 1.25rem; }
  .flow-line { gap: 1.55rem; }
  .flow-line > div { grid-template-columns: 42px minmax(0, 1fr); column-gap: 1rem; justify-items: start; text-align: left; }
  .flow-line b { grid-row: 1 / span 2; width: 42px; height: 42px; margin: 0; }
  .flow-line strong { margin: 0 0 .25rem; }
  .flow-line span { max-width: none; }
  .flow-section, .business-section { width: 100%; padding-inline: 16px; }
  .product-section { gap: 2.4rem; }
  .product-copy { min-width: 0; }
  .product-copy li { overflow-wrap: anywhere; }
  .product-visual { min-height: 410px; border-radius: 20px; overflow: hidden; }
  .product-visual::before { width: min(270px, 78vw); height: min(270px, 78vw); }
  .device-mobile, .response-device { width: min(270px, calc(100% - 24px)); transform: none; }
  .business-card { padding: 1.5rem; gap: 2rem; }
  .security-grid article { min-height: 0; padding: 1.25rem; }
  .security-grid article::before { margin-bottom: 1.2rem; }
  .final-cta { margin-block: 56px; grid-template-columns: 1fr; }
  .final-cta img { width: 52px; height: 52px; }
  .final-cta .btn { width: 100%; }
  .landing-footer { grid-template-columns: 1fr; gap: .8rem; }
  .landing-footer p:last-child { grid-column: auto; }
  .portal-entry { min-height: calc(100vh - 64px); padding: 30px 0 52px; gap: 2.6rem; }
  .portal-entry .auth-card { max-width: none; justify-self: stretch; }
  .portal-copy h1 { font-size: clamp(2rem, 9.5vw, 2.4rem); overflow-wrap: anywhere; }
  .portal-copy .lede { font-size: .92rem; }
  .capture-choice, .form-submit-bar { align-items: stretch; flex-direction: column; }
  .upload-button, .form-submit-bar .btn { width: 100%; }
  .capture-upload { grid-template-columns: 1fr; }
  .qr-area { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .admin-table-row { grid-template-columns: 1fr; gap: .85rem; padding: 1rem; }
  .admin-table-row > div::before { content: attr(data-label); display: block; margin-bottom: .2rem; color: var(--muted); font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .admin-row-actions { grid-column: auto; grid-template-columns: 1fr; }
  .assignment-form { grid-template-columns: 1fr; }
  .assignment-form .btn, .admin-row-actions > .btn { width: 100%; }
  .form-section-head { gap: .7rem; }
  .consent-check { padding: .8rem; }
  .form-submit-bar { bottom: max(.5rem, env(safe-area-inset-bottom)); padding: .85rem; }
  .form-submit-bar > div span { display: none; }
  .capture-shell > main { padding: 24px 0 max(48px, env(safe-area-inset-bottom)); }
  .capture-page { margin-top: 18px; }
  .mobile-capture-form { padding: 1rem; }
  .capture-page h1, .capture-page-head h1 { font-size: 1.9rem; }
  .camera-field { padding: .75rem; }
  .toast { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 360px) {
  .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: .55rem; }
  .brand-logo { width: 29px; height: 29px; }
  .wordmark { font-size: .88rem; }
  .wordmark-service { margin-left: .22rem; font-size: .58em; }
  .label-wide { display: none; }
  .label-compact { display: inline; }
  .b2b-hero, .landing-section, .final-cta, .landing-footer, .portal-entry { width: calc(100% - 24px); }
  .flow-section, .business-section { width: 100%; }
  .main { padding: .75rem; }
  .content > .grid-3 .metric, .admin-metrics .metric { padding: .65rem; }
  .content > .grid-3 .metric span, .admin-metrics .metric span { font-size: .58rem; }
}
