/* =====================================================================
   MedX v6 — marketing site (index.html) + sign-in pages (signin*.html, forgot, get-started).
   Loaded after tokens/base/components/v6. Pure CSS: tabs are radios, steps use :target.
   ===================================================================== */
.site { background: #fff; color: var(--c-text); }
:root[data-theme="dark"] .site { background: var(--c-bg); }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.site section { scroll-margin-top: 84px; }
.site .icon { stroke-width: 1.9; }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-mark); color: #fff; box-shadow: 0 8px 18px -8px rgba(20, 184, 166, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.logo__mark svg { width: 21px; height: 21px; fill: currentColor; }
.logo small { display: block; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--c-text-3); margin-top: -2px; }
.logo--light { color: #fff; }
.logo--light small { color: var(--navy-300); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .8); }
:root[data-theme="dark"] .nav { background: rgba(8, 17, 30, .82); border-color: var(--c-border); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--c-text-2); font-weight: 650; font-size: 15px; }
.nav__links a:hover { background: var(--c-surface-3); color: var(--c-text); text-decoration: none; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle, .nav__burger { display: none; }

/* ---------- Generic section bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-800); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }
.sec { padding: 104px 0; }
.sec--tint { background: var(--c-bg); }
.sec--navy { background: var(--g-navy); color: #fff; position: relative; overflow: hidden; }
.sec__head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sec__head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; word-spacing: .03em; }
.sec__head p { font-size: 18px; color: var(--c-text-2); line-height: 1.6; }
.sec--navy .sec__head p { color: var(--navy-200); }
.sec--navy h2, .sec--navy h3 { color: #fff; }
.eyebrow-t { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.sec--navy .eyebrow-t { color: #5eead4; }
.btn--xl { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }
.btn--white { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--white:hover { background: #ecfdf8; border-color: #ecfdf8; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--line-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.ck { display: inline-flex; align-items: center; gap: 8px; }
.ck svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(900px 500px at 85% 0%, rgba(20, 184, 166, .14), transparent 60%),
  radial-gradient(700px 420px at 0% 30%, rgba(59, 130, 246, .08), transparent 60%),
  linear-gradient(180deg, #f6fbfb, #fff 70%); }
:root[data-theme="dark"] .hero { background: radial-gradient(900px 500px at 85% 0%, rgba(20, 184, 166, .16), transparent 60%), var(--c-bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 27, 45, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 27, 45, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 65%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; word-spacing: .02em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #0d9488, #0e7490 60%, #1d4ed8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--c-text-2); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 650; color: var(--c-text-2); }
.hero__rating { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--c-text-3); }
.faces { display: flex; }
.faces span { width: 36px; height: 36px; border-radius: 50%; margin-left: -10px; border: 2.5px solid #fff; display: grid; place-items: center; font: 700 12px var(--font-display); color: #fff; }
.faces span:first-child { margin-left: 0; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 15px; }

/* Product mock (pure HTML) */
.mock { position: relative; }
.mock__win { position: relative; z-index: 1; border-radius: 18px; background: #fff; border: 1px solid var(--c-border); box-shadow: 0 50px 100px -30px rgba(15, 27, 45, .35), 0 18px 36px -18px rgba(15, 27, 45, .25); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #f1f5f9; border-bottom: 1px solid var(--c-border); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock__bar i:nth-child(1) { background: #fca5a5; } .mock__bar i:nth-child(2) { background: #fcd34d; } .mock__bar i:nth-child(3) { background: #86efac; }
.mock__url { margin-left: 14px; flex: 1; max-width: 280px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--c-border); font-size: 11px; color: var(--c-text-3); display: flex; align-items: center; padding: 0 10px; }
.mock__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 400px; }
.mock__side { background: var(--g-navy); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.mock__brand { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; color: #fff; font: 800 13px var(--font-display); }
.mock__brand b { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-mark); display: grid; place-items: center; font-size: 10px; }
.mock__nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #b7c5d8; font-size: 11.5px; font-weight: 600; }
.mock__nav i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.mock__nav.is-on { background: rgba(45, 212, 191, .18); color: #fff; }
.mock__nav.is-on i { background: #2dd4bf; }
.mock__main { padding: 18px; background: #f6f8fb; display: flex; flex-direction: column; gap: 12px; }
.mock__hello { display: flex; justify-content: space-between; align-items: center; }
.mock__hello b { font: 800 15px var(--font-display); color: var(--c-text); }
.mock__hello span { font-size: 10.5px; color: var(--c-text-3); display: block; }
.mock__chip { height: 24px; padding: 0 10px; border-radius: 7px; background: var(--g-brand); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpi { background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; }
.mock__kpi span { display: block; font-size: 10px; color: var(--c-text-3); font-weight: 600; }
.mock__kpi b { display: block; font: 800 18px var(--font-display); color: var(--c-text); margin-top: 2px; }
.mock__kpi em { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--c-success); }
.mock__row2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.mock__card { background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 12px; }
.mock__card h4 { font: 750 11.5px var(--font-display); margin-bottom: 8px; color: var(--c-text); }
.mock__q { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eef2f7; font-size: 10.5px; color: var(--c-text-2); }
.mock__q:first-of-type { border-top: 0; }
.mock__q b { width: 26px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-800); font-size: 9.5px; font-weight: 800; flex: none; }
.mock__q span { flex: 1; font-weight: 600; color: var(--c-text); }
.mock__q i { font-style: normal; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #fff2d9; color: #9a5a00; }
.mock__q i.ok { background: #e3f6ec; color: #157347; }
.mock__q i.dr { background: #e8effd; color: #1d5fd1; }
.mock__bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; padding-top: 6px; }
.mock__bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #5eead4, #0d9488); }
.mock__bars i:nth-child(odd) { background: linear-gradient(180deg, #bfdbfe, #93c5fd); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--c-border); box-shadow: 0 22px 44px -18px rgba(15, 27, 45, .35); font-size: 12.5px; color: var(--c-text-2); animation: bob 6s ease-in-out infinite; }
.float b { display: block; color: var(--c-text); font: 750 13px var(--font-display); }
.float__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float__ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float--a { left: -34px; top: 74px; }
.float--b { right: -26px; bottom: 54px; animation-delay: -3s; }
.float--c { left: 40px; bottom: -26px; animation-delay: -1.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Trust strip ---------- */
.trust { padding: 30px 0 36px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #fff; }
:root[data-theme="dark"] .trust { background: var(--c-surface); }
.trust p { text-align: center; font-size: 14px; font-weight: 650; color: var(--c-text-3); margin-bottom: 18px; }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; }
.trust__logos span { display: inline-flex; align-items: center; gap: 8px; font: 800 18px var(--font-display); color: #94a3b8; letter-spacing: -.01em; }
.trust__logos svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font: 800 40px/1.1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(120deg, #fff, #99f6e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; color: var(--navy-200); font-size: 15px; }

/* ---------- Modules ---------- */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mod { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--c-border); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
:root[data-theme="dark"] .mod { background: var(--c-surface); }
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.mod__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--ic-bg, var(--blue-100)); color: var(--ic, var(--blue-700)); }
.mod__ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { font-size: 17.5px; }
.mod p { font-size: 14.5px; color: var(--c-text-2); line-height: 1.55; }
.mod ul { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--c-text-3); }
.mod li::before { content: "—"; margin-right: 6px; color: var(--blue-400); }
.t-blue { --ic-bg: #e6effd; --ic: #1d55c4; } .t-teal { --ic-bg: #dcf3ef; --ic: #0b6359; } .t-violet { --ic-bg: #efeafd; --ic: #5b3cc4; }
.t-amber { --ic-bg: #fff0db; --ic: #9a5200; } .t-green { --ic-bg: #e1f5e9; --ic: #146a40; } .t-rose { --ic-bg: #fde8ee; --ic: #b4234f; }
.t-slate { --ic-bg: #edf1f6; --ic: #33465e; } .t-cyan { --ic-bg: #dff4fa; --ic: #0e6b86; }
.mod--feature { grid-column: span 2; background: linear-gradient(135deg, #0b1b30, #10324a 60%, #0d5c5c); border-color: transparent; color: #fff; }
.mod--feature h3 { color: #fff; font-size: 22px; }
.mod--feature p { color: var(--navy-200); font-size: 15.5px; }
.mod--feature ul { color: #cbe7e4; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.mod--feature li { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 600; }
.mod--feature li::before { display: none; }
.mod--feature .mod__ic { background: rgba(45, 212, 191, .16); color: #5eead4; }

/* ---------- Specialties (radio tabs) ---------- */
.spec-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.spec-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.spec-tabs label { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--c-border); background: #fff; font: 700 15px var(--font-display); color: var(--c-text-2); cursor: pointer; transition: all var(--t-fast); }
:root[data-theme="dark"] .spec-tabs label { background: var(--c-surface); }
.spec-tabs label:hover { border-color: var(--blue-300); color: var(--c-text); }
.spec-tabs input:focus-visible + label { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.spec-pane { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .spec-pane { background: var(--c-surface); }
.specs:has(#sp-multi:checked) label[for="sp-multi"], .specs:has(#sp-dental:checked) label[for="sp-dental"],
.specs:has(#sp-mat:checked) label[for="sp-mat"], .specs:has(#sp-ortho:checked) label[for="sp-ortho"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.specs:has(#sp-multi:checked) #pane-multi, .specs:has(#sp-dental:checked) #pane-dental,
.specs:has(#sp-mat:checked) #pane-mat, .specs:has(#sp-ortho:checked) #pane-ortho { display: grid; }
.spec-pane h3 { font-size: 28px; letter-spacing: -.02em; }
.spec-pane > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.spec-pane p { font-size: 16.5px; color: var(--c-text-2); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 15px; font-weight: 600; color: var(--c-text); }
.spec-art { position: relative; border-radius: 20px; padding: 26px; min-height: 300px; background: linear-gradient(135deg, var(--blue-50), #eef4fe); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
:root[data-theme="dark"] .spec-art { background: var(--c-surface-2); }
.spec-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); font-size: 14px; }
:root[data-theme="dark"] .spec-row { background: var(--c-surface); }
.spec-row b { display: block; font: 750 14.5px var(--font-display); }
.spec-row small { color: var(--c-text-3); }
.spec-row .mod__ic { width: 40px; height: 40px; border-radius: 11px; }
.spec-row .mod__ic svg { width: 21px; height: 21px; }
.spec-row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--blue-100); color: var(--blue-800); }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.role { display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background var(--t-med), border-color var(--t-med); }
.role:hover { background: rgba(255, 255, 255, .07); border-color: rgba(94, 234, 212, .3); }
.role .mod__ic { flex: none; background: rgba(45, 212, 191, .14); color: #5eead4; }
.role h3 { font-size: 17.5px; margin-bottom: 6px; }
.role p { font-size: 14.5px; color: var(--navy-200); line-height: 1.55; }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.glow--a { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(45, 212, 191, .25), transparent 65%); }
.glow--b { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 65%); }

/* ---------- Steps ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: how; }
.how__step { position: relative; padding: 30px 26px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--c-border); }
:root[data-theme="dark"] .how__step { background: var(--c-surface); }
.how__step::before { counter-increment: how; content: "0" counter(how); display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--g-brand); color: #fff; font: 800 16px var(--font-display); box-shadow: var(--shadow-glow); margin-bottom: 18px; }
.how__step h3 { font-size: 19px; margin-bottom: 8px; }
.how__step p { color: var(--c-text-2); font-size: 15px; }
.how__step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -24px; width: 24px; border-top: 2px dashed var(--blue-300); }

/* ---------- Security ---------- */
.secu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.secu__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.secu__copy h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.secu__copy p { font-size: 17px; color: var(--c-text-2); }
.secu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secu__item { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--c-border); }
:root[data-theme="dark"] .secu__item { background: var(--c-surface); }
.secu__item .mod__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.secu__item .mod__ic svg { width: 22px; height: 22px; }
.secu__item b { display: block; font: 750 15.5px var(--font-display); margin-bottom: 3px; }
.secu__item span { font-size: 14px; color: var(--c-text-2); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--c-border); }
:root[data-theme="dark"] .plan { background: var(--c-surface); }
.plan h3 { font-size: 20px; }
.plan__for { font-size: 14.5px; color: var(--c-text-3); margin-top: -12px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font: 800 40px var(--font-display); letter-spacing: -.03em; }
.plan__price span { color: var(--c-text-3); font-size: 15px; }
.plan ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--c-text-2); }
.plan .btn { margin-top: auto; }
.plan--pop { background: var(--g-navy); border-color: transparent; color: #fff; box-shadow: 0 40px 80px -30px rgba(11, 27, 48, .6); transform: translateY(-10px); }
.plan--pop h3, .plan--pop .plan__price b { color: #fff; }
.plan--pop .plan__for, .plan--pop .plan__price span { color: var(--navy-300); }
.plan--pop ul { color: #dbe5f1; }
.plan--pop .ck svg { background: rgba(45, 212, 191, .2); color: #5eead4; }
.plan__badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 99px; background: linear-gradient(120deg, #2dd4bf, #0d9488); color: #fff; font: 800 12px var(--font-display); letter-spacing: .04em; }
.bill-toggle { display: flex; justify-content: center; margin: -28px 0 40px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--c-border); }
:root[data-theme="dark"] .quote { background: var(--c-surface); }
.quote p { font-size: 16px; line-height: 1.65; color: var(--c-text); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote footer b { display: block; font: 750 15px var(--font-display); }
.quote footer span { font-size: 13.5px; color: var(--c-text-3); }
.quote .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 15px var(--font-display); flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--c-border); transition: box-shadow var(--t-fast); }
:root[data-theme="dark"] .faq details { background: var(--c-surface); }
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 750 16.5px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-3); font-size: 20px; font-weight: 500; color: var(--c-text-2); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue-100); color: var(--blue-800); }
.faq details p { padding: 0 22px 20px; color: var(--c-text-2); font-size: 15.5px; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; padding: 56px; border-radius: 30px; background: linear-gradient(120deg, #0b1b30 0%, #10324a 50%, #0d6b66 100%); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.cta p { color: var(--navy-200); font-size: 17px; margin-top: 12px; }
.cta__btns { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.foot { background: var(--navy-950); color: var(--navy-300); padding: 72px 0 32px; margin-top: 104px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot h4 { color: #fff; font: 750 14px var(--font-display); margin-bottom: 14px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot a { color: var(--navy-300); }
.foot a:hover { color: #fff; }
.foot__about p { margin-top: 16px; font-size: 14.5px; max-width: 320px; line-height: 1.6; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

/* =====================================================================
   Sign-in (auth) pages
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); background: #fff; }
:root[data-theme="dark"] .auth { background: var(--c-bg); }
.auth__art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px; background: var(--g-navy); color: #fff; }
.auth__art::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .28), transparent 62%); }
.auth__art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .09) 1.2px, transparent 1.6px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%, transparent); mask-image: linear-gradient(180deg, transparent, #000 50%, transparent); pointer-events: none; }
.auth__art > * { position: relative; z-index: 1; }
.auth__art h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -.03em; word-spacing: .03em; }
.auth__art p { color: var(--navy-200); font-size: 16.5px; line-height: 1.6; }
.auth__points { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.auth__points li { display: flex; gap: 14px; align-items: flex-start; color: #dbe5f1; font-size: 15px; }
.auth__points li b { color: #fff; display: block; font-family: var(--font-display); }
.auth__points .pt-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(45, 212, 191, .14); color: #5eead4; box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .2); }
.auth__points .pt-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth__card-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.auth__card-mini p { font-size: 14.5px; color: #dbe5f1; }
.auth__card-mini b { color: #fff; font-family: var(--font-display); }
.auth__foot { font-size: 13px; color: var(--navy-300); }

.auth__panel { position: relative; display: flex; flex-direction: column; padding: 28px 40px 32px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__top a.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; color: var(--c-text-2); }
.auth__top .logo { display: none; }
.auth__mid { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth__card { width: min(480px, 100%); }
.auth__card--wide { width: min(620px, 100%); }
.auth__legal { text-align: center; font-size: 13px; color: var(--c-text-3); }
.auth__legal a { color: var(--c-text-2); text-decoration: underline; text-underline-offset: 3px; }

.auth-step { display: none; flex-direction: column; gap: 22px; animation: pop-in .22s var(--ease); }
.auth__card:not(:has(.auth-step:target)) .auth-step:first-child, .auth-step:target { display: flex; }
.auth-head { display: flex; flex-direction: column; gap: 8px; }
.auth-head h1 { font-size: 30px; letter-spacing: -.025em; }
.auth-head p { color: var(--c-text-2); font-size: 16px; }
.auth-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 99px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-800); font: 700 13px var(--font-display); }
.auth-badge .ib { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--g-brand); color: #fff; }
.auth-badge .ib svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.auth-badge--warn { background: #fff7e6; border-color: #fde3b0; color: #8a5100; }
.auth-badge--warn .ib { background: linear-gradient(135deg, #f59e0b, #b45309); }

.auth-prog { display: flex; align-items: center; gap: 6px; }
.auth-prog i { flex: 1; height: 5px; border-radius: 99px; background: var(--c-border); }
.auth-prog i.on { background: var(--g-brand); }
.auth-prog span { margin-left: 8px; font: 700 13px var(--font-display); color: var(--c-text-3); white-space: nowrap; }

.auth form, .auth .form { display: flex; flex-direction: column; gap: 16px; }
.auth .input { height: 50px; font-size: 16px; }
.auth .input-icon .icon { top: 16px; }
.auth .btn--primary.btn--block { height: 52px; font-size: 16px; border-radius: 12px; }
.auth .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.auth .row-between a { font-weight: 650; }
.check-line { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--c-text-2); }
.check-line input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.or { display: flex; align-items: center; gap: 14px; color: var(--c-text-3); font-size: 13.5px; font-weight: 650; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sso .btn { height: 48px; border-radius: 12px; }
.sso svg { width: 18px; height: 18px; }

/* Sign-in option cards */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--c-border); background: #fff; color: var(--c-text); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
:root[data-theme="dark"] .opt { background: var(--c-surface); }
.opt:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.opt .mod__ic { flex: none; width: 54px; height: 54px; border-radius: 15px; }
.opt .mod__ic svg { width: 27px; height: 27px; }
.opt__txt { flex: 1; min-width: 0; }
.opt__txt b { display: block; font: 750 17px var(--font-display); }
.opt__txt span { display: block; font-size: 14px; color: var(--c-text-3); margin-top: 2px; }
.opt__tag { font: 700 11.5px var(--font-display); padding: 3px 8px; border-radius: 6px; background: var(--c-surface-3); color: var(--c-text-2); margin-left: 6px; vertical-align: 2px; }
.opt__go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-3); color: var(--c-text-2); transition: all var(--t-fast); }
.opt__go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt:hover .opt__go { background: var(--c-primary); color: #fff; transform: translateX(2px); }

/* Pick list (clinics, branches) */
.picks { display: flex; flex-direction: column; gap: 10px; }
.pk { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
:root[data-theme="dark"] .pk { background: var(--c-surface); }
.pk:hover { border-color: var(--blue-300); }
.pk input { position: absolute; opacity: 0; pointer-events: none; }
.pk:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(18, 153, 138, .15); background: var(--blue-50); }
.pk:has(input:focus-visible) { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.pk__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font: 800 14px var(--font-display); }
.pk__txt { flex: 1; min-width: 0; }
.pk__txt b { display: block; font: 750 15.5px var(--font-display); }
.pk__txt span { display: block; font-size: 13.5px; color: var(--c-text-3); }
.pk__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-border-strong); flex: none; display: grid; place-items: center; }
.pk:has(input:checked) .pk__radio { border-color: var(--blue-600); background: radial-gradient(circle, var(--blue-600) 45%, transparent 50%); }
.pk__meta { font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--c-success-bg); color: var(--c-success); }

/* Password / PIN tabs */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--c-surface-3); }
.auth-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.auth-tabs label { height: 40px; display: grid; place-items: center; border-radius: 9px; font: 700 14.5px var(--font-display); color: var(--c-text-2); cursor: pointer; }
.auth-tabs input:checked + label { background: #fff; color: var(--c-text); box-shadow: 0 1px 3px rgba(15, 27, 45, .14); }
:root[data-theme="dark"] .auth-tabs input:checked + label { background: var(--c-surface); }
.auth-tabs input:focus-visible + label { outline: 3px solid var(--blue-400); }
.by-pin { display: none !important; }
.tabbed:has(#m-pin:checked) .by-pin { display: flex !important; }
.tabbed:has(#m-pin:checked) .by-pw { display: none !important; }

/* OTP boxes */
.otp { display: flex; gap: 10px; }
.otp input { width: 100%; min-width: 0; height: 60px; text-align: center; font: 800 24px var(--font-mono); border-radius: 12px; border: 1px solid var(--c-input-border); background: var(--c-surface); color: var(--c-text); }
.otp input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--focus); }
.otp input:not(:placeholder-shown) { border-color: var(--blue-500); background: var(--blue-50); }
.otp--pin input { height: 64px; }
.sent-to { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 14.5px; color: var(--c-text-2); }
.sent-to .mod__ic { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.sent-to .mod__ic svg { width: 21px; height: 21px; }
.sent-to b { color: var(--c-text); }
.resend { font-size: 14px; color: var(--c-text-3); text-align: center; }
.resend a { font-weight: 700; }

.success-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #22c55e, #157347); color: #fff; box-shadow: 0 0 0 10px rgba(34, 197, 94, .12), 0 16px 30px -12px rgba(21, 115, 71, .7); }
.success-ic svg { width: 38px; height: 38px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Specialty choice (get started) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
:root[data-theme="dark"] .choice { background: var(--c-surface); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--blue-300); }
.choice:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(18, 153, 138, .15); background: var(--blue-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.choice b { font: 750 15.5px var(--font-display); }
.choice span { font-size: 13.5px; color: var(--c-text-3); }
.choice .mod__ic { width: 44px; height: 44px; border-radius: 12px; }
.choice .mod__ic svg { width: 23px; height: 23px; }
.choice::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-border-strong); }
.choice:has(input:checked)::after { border-color: var(--blue-600); background: radial-gradient(circle, var(--blue-600) 45%, transparent 50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__in, .secu { grid-template-columns: minmax(0, 1fr); }
  .mock { max-width: 640px; margin: 0 auto; width: 100%; }
  .roles, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 12px 20px 20px; background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md); }
  .nav__toggle:checked ~ .nav__links { display: flex; }
  .nav__burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--c-border-strong); cursor: pointer; }
  .nav__burger svg { width: 20px; height: 20px; }
  .nav__end .btn--ghost-link { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .spec-pane { grid-template-columns: minmax(0, 1fr); padding: 26px; gap: 26px; }
  .how, .plans { grid-template-columns: minmax(0, 1fr); }
  .how__step::after { display: none; }
  .plan--pop { transform: none; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .auth__top .logo { display: inline-flex; }
}
@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .mods, .roles, .quotes, .secu__grid, .spec-list, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .mod--feature { grid-column: auto; }
  .mock__body { grid-template-columns: minmax(0, 1fr); }
  .mock__side { display: none; }
  .float--a, .float--b { display: none; }
  .float--c { left: 12px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .nav__end .btn:not(.btn--primary) { display: none; }
  .auth__panel { padding: 20px 18px 24px; }
  .otp { gap: 6px; }
  .otp input { height: 54px; font-size: 20px; }
  .sso { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- v6 fixes ---------- */
.mock__hello span.mock__chip { display: grid; font-size: 10.5px; color: #fff; }
.faces span { margin-left: -7px; font-size: 11px; }
.faces span:first-child { margin-left: 0; }
.opt__txt > span { display: block; font-size: 14px; color: var(--c-text-3); margin-top: 2px; }
.opt__txt span.opt__tag { display: inline-block; font-size: 11.5px; margin: 0 0 0 6px; color: var(--c-text-2); }
.auth-head a.small, .auth__top a.back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 650; }
.auth__card-mini .pt-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth__art .auth__foot { font-size: 13px; color: var(--navy-300); }
.auth__card-mini p { font-size: 14.5px; }
.auth__panel, .auth__mid, .auth__card { min-width: 0; }
.auth .row-between { flex-wrap: wrap; }
@media (max-width: 640px) { .auth-prog { flex-wrap: wrap; } .auth-prog span { flex-basis: 100%; margin: 4px 0 0; } .wrap { width: calc(100% - 32px); } }
