/* SmartLAB – public landing page */
:root {
    --b: #2563eb; --b2: #1d4ed8; --t: #14b8a6; --v: #7c3aed; --ink: #0b1220; --tx: #475569; --mu: #64748b; --ln: #e2e8f0; --bg: #f8fafc;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: hidden; } /* no sideways scroll / white strip on phones */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--tx); background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
section { padding: 5.5rem 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b); background: #eff6ff; padding: .4rem .85rem; border-radius: 99px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 1rem 0 .8rem; line-height: 1.15; }
.sec-head p { font-size: 1.05rem; line-height: 1.7; margin: 0; }

/* buttons */
.btn-l { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; border-radius: 12px; font-weight: 650; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; font-family: inherit; }
.btn-l:hover { transform: translateY(-3px); }
.btn-solid { background: linear-gradient(135deg, var(--b), var(--b2)); color: #fff; box-shadow: 0 14px 28px -14px var(--b); }
.btn-solid:hover { box-shadow: 0 20px 34px -14px var(--b); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ln); }
.btn-ghost:hover { border-color: var(--b); color: var(--b); box-shadow: 0 14px 28px -18px var(--b); }
.btn-teal { background: linear-gradient(135deg, var(--t), #0d9488); color: #fff; box-shadow: 0 14px 28px -14px var(--t); }
.btn-teal:hover { color: #fff; box-shadow: 0 20px 34px -14px var(--t); }

/* nav */
/* Skip to content (keyboard users): hidden until it gets focus with Tab. */
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1.1rem; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; outline: 3px solid var(--b); outline-offset: 2px; }
#content:focus, #top:focus { outline: none; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 1rem 0; transition: .35s var(--ease); }
.nav.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--ln); padding: .6rem 0; }
.nav .wrap { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.sl-logo-pair { display: inline-flex; max-width: 100%; flex-shrink: 0; }
.sl-logo { display: block; height: 42px; width: auto; max-width: 100%; object-fit: contain; }
.sl-icon { display: block; height: 40px; width: auto; flex-shrink: 0; }
@media (max-width: 600px) { .nav .sl-logo { height: 34px; } }
.site-foot .sl-logo { height: 46px; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; font-weight: 550; font-size: .92rem; }
.nav-links a { position: relative; padding: .3rem 0; white-space: nowrap; color: var(--tx); transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--b); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
@media (max-width: 1400px) { .nav-links { gap: 1.1rem; font-size: .88rem; } .nav-cta .btn-l { white-space: nowrap; } }
.nav-cta { display: flex; gap: .6rem; }
.nav-cta .btn-l { padding: .6rem 1.1rem; font-size: .88rem; border-radius: 10px; white-space: nowrap; }
@media (max-width: 1400px) { .nav-cta .btn-l { padding: .55rem .8rem; } }
.nav-report { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .85rem; border-radius: 11px; background: #ecfdf5; color: #047857; font-weight: 650; font-size: .88rem; white-space: nowrap; text-decoration: none; }
.nav-report i { flex-shrink: 0; }
@media (max-width: 379.98px) { .nav-report i { display: none; } .nav-report { padding: 0 .7rem; } }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--ln); background: #fff; font-size: 1.05rem; }
@media (max-width: 1180px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: grid; place-items: center; margin-left: .5rem; }
    .nav-report { display: inline-flex; margin-left: auto; }
    .nav .brand { flex-shrink: 0; }
    .nav .wrap { gap: .5rem; }
    .nav.open .wrap { row-gap: 0; }
    .nav.open { background: #fff; }
    .nav.open .nav-links, .nav.open .nav-cta { display: flex; }
    .nav.open .wrap { flex-wrap: wrap; }
    .nav.open .nav-links { flex-direction: column; align-items: flex-start; width: 100%; gap: 1rem; padding: 1rem 0 .4rem; order: 3; margin: 0; } /* each link as wide as its text, so the current-page line is too */
    .nav.open .nav-cta { width: 100%; order: 4; padding-bottom: .6rem; }
    .nav.open .nav-cta .btn-l { flex: 1; justify-content: center; }
}

/* hero */
.hero { padding: 9.5rem 0 6rem; background: radial-gradient(900px 500px at 85% 10%, rgba(20, 184, 166, .16), transparent 60%), radial-gradient(800px 500px at 0% 0%, rgba(37, 99, 235, .14), transparent 60%), #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin: 1.2rem 0 1.2rem; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--b), var(--t), var(--v), var(--b)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 7s linear infinite; }
@keyframes shift { to { background-position: 250% 0; } }
.hero p.lead { font-size: 1.15rem; line-height: 1.75; max-width: 540px; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; color: var(--mu); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; } .hero-meta i { color: var(--t); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 8rem; } }


/* trust strip */
.strip { padding: 2.2rem 0; background: var(--ink); color: #cbd5e1; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.strip b { display: block; font-size: 1.7rem; color: #fff; letter-spacing: -.02em; } .strip small { color: #94a3b8; font-size: .82rem; }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }

/* features */
.features { background: var(--bg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feat { background: #fff; border: 1px solid var(--ln); border-radius: 20px; padding: 1.7rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.feat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--b), var(--t)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feat:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .35); border-color: #cbd5e1; } .feat:hover::before { transform: scaleX(1); }
.feat .ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; margin-bottom: 1.1rem; background: var(--c, var(--b)); box-shadow: 0 14px 24px -12px var(--c, var(--b)); transition: transform .4s var(--ease); }
.feat:hover .ic { transform: rotate(-8deg) scale(1.08); }
.feat h3 { font-size: 1.12rem; margin-bottom: .5rem; } .feat p { margin: 0; line-height: 1.65; font-size: .93rem; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr 1fr; } } @media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 31px; height: 3px; background: repeating-linear-gradient(90deg, var(--ln) 0 10px, transparent 10px 18px); }
.step { text-align: center; position: relative; }
.step .n { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.1rem; display: grid; place-items: center; background: #fff; border: 3px solid var(--b); color: var(--b); font-size: 1.4rem; position: relative; z-index: 1; transition: .4s var(--ease); }
.step:hover .n { background: var(--b); color: #fff; transform: scale(1.1) rotate(-6deg); }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; } .step p { margin: 0; font-size: .9rem; line-height: 1.6; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } } @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* portal preview */
.portal { background: linear-gradient(180deg, #fff, #eff6ff); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .9rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.55; } .ticks i { margin-top: .2rem; color: #fff; background: var(--t); border-radius: 50%; width: 22px; height: 22px; font-size: .65rem; display: grid; place-items: center; flex: none; }
.tg.ok { background: #dcfce7; color: #15803d; } .tg.wait { background: #fef3c7; color: #b45309; }
@keyframes slideup { to { transform: none; opacity: 1; } }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* labs */

/* contact */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.cinfo { display: grid; gap: 1rem; margin-top: 1.6rem; } .cinfo div { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--ln); border-radius: 16px; padding: 1rem 1.2rem; transition: .3s var(--ease); } .cinfo div:hover { transform: translateX(6px); border-color: var(--b); }
.cinfo i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eff6ff; color: var(--b); } .cinfo small { color: var(--mu); display: block; font-size: .75rem; } .cinfo b { color: var(--ink); }
.form-l { background: #fff; border: 1px solid var(--ln); border-radius: 24px; padding: 2rem; box-shadow: 0 40px 70px -50px rgba(15, 23, 42, .5); }
.form-l label { display: block; font-weight: 600; font-size: .82rem; color: var(--ink); margin: 0 0 .35rem; }
.form-l input, .form-l textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid var(--ln); border-radius: 11px; background: #fff; transition: .2s; color: var(--ink); }
.form-l input:focus, .form-l textarea:focus { outline: 0; border-color: var(--b); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .form-l .f { margin-bottom: 1rem; } .err { color: #e11d48; font-size: .78rem; display: block; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } } @media (max-width: 520px) { .f2 { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: var(--ink); color: #94a3b8; padding: 3.5rem 0 1.6rem; font-size: .9rem; }
.site-foot .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-about p { margin: 1rem 0 1.1rem; line-height: 1.7; max-width: 380px; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-contact i { color: #2dd4bf; width: 18px; margin-right: .45rem; }
.foot-col { display: flex; flex-direction: column; gap: .7rem; }
.foot-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: .4rem 0 .3rem; }
.site-foot a { color: #cbd5e1; transition: color .2s; } .site-foot a:hover { color: #fff; }
.site-foot .brand:hover { color: #fff; }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; font-size: .84rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { gap: 1.4rem 1rem; } } /* phones: link columns two by two (shorter page) */

/* row of buttons that wraps cleanly on phones */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-cta form, .cta-row form, .nav-cta form { display: flex !important; }
@media (max-width: 520px) { .hero-cta > *, .cta-row > * { flex: 1 1 100%; } .hero-cta .btn-l, .cta-row .btn-l { width: 100%; justify-content: center; } }
@media (max-width: 920px) { .nav.open .nav-cta > form { flex: 1; } .nav.open .nav-cta form .btn-l { width: 100%; } }

/* scroll reveal: hidden only while the script that shows it is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.left { transform: translateX(-40px); } .js .reveal.right { transform: translateX(40px); }
@media (max-width: 920px) { .js .reveal.left, .js .reveal.right { transform: translateY(34px); } } /* sliding in from the side widened the page on phones */
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; }
}

/* login modal */
.lm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.lm.open { visibility: visible; opacity: 1; }
.lm-back { position: absolute; inset: 0; background: rgba(11, 18, 32, .55); backdrop-filter: blur(6px); }
.lm-card { position: relative; width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 1.7rem; box-shadow: 0 50px 90px -30px rgba(15, 23, 42, .6); transform: translateY(26px) scale(.96); transition: transform .45s var(--ease); max-height: 94vh; overflow-y: auto; }
.lm.open .lm-card { transform: none; }
.lm-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f5f9; color: var(--tx); cursor: pointer; transition: .2s; } .lm-x:hover { background: #e2e8f0; transform: rotate(90deg); }
.lm-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; padding-right: 2.5rem; } .lm-head .sl-icon { height: 44px; flex: none; }
.lm-head b { display: block; color: var(--ink); font-size: 1.05rem; } .lm-head small { color: var(--mu); }
.lm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; background: #f1f5f9; border-radius: 13px; margin-bottom: 1.2rem; }
.lm-tab { border: 0; background: transparent; padding: .65rem .4rem; border-radius: 10px; font-weight: 650; font-size: .86rem; font-family: inherit; color: var(--mu); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: .25s var(--ease); }
.lm-tab.active { background: #fff; color: var(--b); box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .3); }
.lm-pane { display: none; } .lm-pane.show { display: block; animation: lmin .4s var(--ease) both; } @keyframes lmin { from { opacity: 0; transform: translateY(10px); } }
.lm-pane label { display: block; font-weight: 600; font-size: .82rem; color: var(--ink); margin: .85rem 0 .35rem; } .lm-pane label span { color: var(--mu); font-weight: 400; }
.lm-pane input { width: 100%; font: inherit; padding: .8rem .95rem; border: 1px solid var(--ln); border-radius: 12px; color: var(--ink); transition: .2s; }
.lm-pane input:focus { outline: 0; border-color: var(--b); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.lm-hint { background: #ecfeff; color: #155e75; border-radius: 12px; padding: .65rem .85rem; font-size: .8rem; line-height: 1.5; margin: 0; } .lm-hint i { margin-right: .4rem; }
.lm-go { width: 100%; justify-content: center; margin-top: 1.3rem; }
.lm-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .84rem; color: var(--mu); } .lm-foot a { color: var(--b); }
.lm .err { color: #e11d48; font-size: .78rem; display: block; margin-top: .3rem; }
.lm-tab { font-size: .8rem; padding-inline: .2rem; }

/* Report tracking */
.trk { max-width: 760px; margin: 0 auto; }
.trk-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.trk-form input { flex: 1 1 260px; padding: .9rem 1.1rem; border: 1px solid var(--ln); border-radius: 12px; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.trk-form input:focus { border-color: var(--b); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.trk-out { margin-top: 1.4rem; display: grid; gap: 1rem; }
.trk-msg { text-align: center; color: var(--mu); margin: 0; font-size: .95rem; }
.trk-card { border: 1px solid var(--ln); border-radius: 16px; padding: 1.2rem 1.3rem; background: var(--bg); animation: trkIn .4s ease both; }
@keyframes trkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.trk-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.trk-top b { color: var(--ink); display: block; font-size: 1.05rem; }
.trk-top small { color: var(--mu); }
.trk-badge { background: rgba(20, 184, 166, .14); color: #0f766e; font-weight: 700; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; }
.trk-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; }
.trk-steps li { flex: 1; text-align: center; position: relative; color: var(--mu); }
.trk-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--ln); z-index: 0; }
.trk-steps li:first-child::before { display: none; }
.trk-steps li.done::before, .trk-steps li.now::before { background: var(--t); }
.trk-steps span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .4rem; background: #fff; border: 2px solid var(--ln); font-size: .8rem; font-weight: 700; }
.trk-steps li.done span { background: var(--t); border-color: var(--t); color: #fff; }
.trk-steps li.now span { border-color: var(--t); color: var(--t); box-shadow: 0 0 0 5px rgba(20, 184, 166, .18); }
.trk-steps small { font-size: .74rem; font-weight: 600; }
.trk-steps li.done small, .trk-steps li.now small { color: var(--ink); }

.trk-dl { margin-top: 1.1rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.trk-dl input { flex: 1 1 200px; padding: .7rem .9rem; border: 1px solid var(--ln); border-radius: 10px; font: inherit; outline: none; }
.trk-dl .btn-l { padding: .7rem 1.1rem; font-size: .88rem; }
.trk-dl small { flex-basis: 100%; color: var(--mu); }

/* SmartLAB wordmark */


/* ---- Lab directory + FAQ (SEO pages) ---- */
.dir-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.6rem; }
.dir-cities a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--ln); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.dir-cities a:hover, .dir-cities a.on { border-color: var(--b); color: var(--b); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.dir-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; border: 1px solid var(--ln); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.dir-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .4); border-color: #cbd5e1; color: var(--ink); }
.dir-card small { color: #64748b; display: flex; gap: .4rem; align-items: center; }
.dir-card small i { color: var(--t); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--ln); border-radius: 16px; padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--b); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: .7rem 0 0; line-height: 1.7; }



/* open menu: the burger becomes a close (x) icon */
.nav.open .burger i::before { content: "\f00d"; }

/* phones: tighter section spacing, full-width search buttons */
@media (max-width: 600px) {
    section { padding: 3.6rem 0; }
    .sec-head { margin-bottom: 2.2rem; }
    .trk-form .btn-l { flex: 1 1 100%; justify-content: center; }
    .form-l { padding: 1.4rem; }
}

/* offline app */
.hm-offline { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .5rem; margin-top: .8rem; color: #15803d; background: #dcfce7; border: 1px solid #86efac; border-radius: 99px; padding: .35rem .9rem; font-size: .88rem; font-weight: 700; text-decoration: none; }
.hm-offline i { flex-shrink: 0; } .hm-offline:hover { background: #bbf7d0; }
.offline { background: linear-gradient(180deg, #f0fdf4, #fff); }
.offline h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 1rem 0; }

/* ===== Marketing pages: pricing, offline app, blog (public layout) ===== */
.nav-links a[aria-current] { color: var(--ink); } .nav-links a[aria-current]::after { width: 100%; }
.mk-hero { display: grid; gap: .9rem; max-width: 820px; margin-bottom: 2rem; }
.mk-hero > p { font-size: 1.08rem; line-height: 1.75; color: #475569; margin: 0; }
.mk-hero .eyebrow { justify-self: start; }
.mk-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: center; margin-bottom: 2rem; }
.mk-split .mk-hero { margin-bottom: 0; }
.mk-split-rev { grid-template-columns: 1.05fr 1fr; }
.mk-h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .9rem; line-height: 1.2; }
.mk-split p, .mk-sec p { line-height: 1.75; color: #334155; }
.mk-sec a, .mk-split p a, .dl-box p a, .price-note a { color: var(--b); font-weight: 600; }
.mk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.mk-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.mk-cols .ticks, .mk-cols-2 .ticks { margin: 0; }
.mk-muted li i { color: #94a3b8 !important; background: #f1f5f9 !important; }
.mk-small { font-size: .88rem; color: var(--mu); margin: .8rem 0 0; }
.mk-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .8rem; line-height: 1.65; color: #334155; }
.mk-steps b { color: var(--ink); }
.shot { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--ln); background: #f8fafc; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: .85rem; color: var(--mu); padding: .7rem 1rem; background: #fff; border-top: 1px solid var(--ln); }
.dl-box { background: #fff; border: 1px solid var(--ln); border-radius: 18px; padding: 1.2rem; display: grid; gap: .9rem; box-shadow: 0 24px 50px -36px rgba(37, 99, 235, .6); }
.dl-head { display: flex; gap: .9rem; align-items: center; }
.dl-head > i { font-size: 1.8rem; color: var(--b); flex-shrink: 0; }
.dl-head b { display: block; color: var(--ink); } .dl-head small { color: var(--mu); }
.dl-box .btn-l { justify-content: center; }
.dl-box p { margin: 0; font-size: .9rem; color: var(--mu); line-height: 1.6; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--ln); border-radius: 22px; padding: 1.8rem 1.5rem; display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--b); box-shadow: 0 30px 60px -36px var(--b); }
.price-card h2 { font-size: 1.25rem; }
.price-tag { position: absolute; top: -.8rem; left: 1.5rem; background: var(--b); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 99px; }
.price-for { margin: .35rem 0 1rem; color: var(--mu); font-size: .92rem; min-height: 2.6em; }
.price-num { margin: 0 0 1rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-num b { font-size: 2.2rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.price-num span { color: var(--mu); }
.price-year { margin: -.6rem 0 1rem; font-size: .9rem; color: var(--mu); } /* yearly price: 2 months free */
.price-year b { color: #15803d; white-space: nowrap; }
.price-card .ticks { margin: 0 0 1.4rem; flex: 1; }
.price-card .btn-l { justify-content: center; }
.price-note { text-align: center; color: var(--mu); font-size: .9rem; margin: 1rem 0 2rem; }
.mk-cta { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; margin: 2.5rem 0; padding: 2rem; border-radius: 24px; background: linear-gradient(135deg, #0b1220, #1e3a8a); color: #cbd5e1; }
.mk-cta h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .4rem; }
.mk-cta p { margin: 0; }
.mk-cta .cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.sp-faq h2 { margin-bottom: .4rem; }
.sp-faq details { border-bottom: 1px solid var(--ln); padding: .9rem 0; } .sp-faq summary { font-weight: 650; cursor: pointer; color: var(--ink); }
.sp-faq p { margin: .6rem 0 0; color: #475569; line-height: 1.7; }
.blog-row { margin: 2.5rem 0; }
.blog-row-h { font-size: 1.35rem; margin: 0 0 1.2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ln); border-radius: 18px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .4); }
.blog-card img { width: 100%; height: 170px; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--ln); }
.blog-card > div { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-card h3 { font-size: 1.05rem; line-height: 1.35; }
.blog-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: #475569; flex: 1; }
.blog-card small { color: var(--mu); font-size: .8rem; }
.post { max-width: 1060px; }
.post-head { max-width: 760px; }
.post-lead { font-size: 1.12rem; line-height: 1.7; color: #475569; margin: 0 0 .7rem; }
.post-meta { font-size: .88rem; color: var(--mu); margin: 0 0 1.6rem; }
.post-img { margin-bottom: 2rem; }
.post-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.post-grid > .post-body:only-child { grid-column: 1 / -1; max-width: 760px; }
.post-toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; border-left: 2px solid var(--ln); padding-left: 1rem; }
.post-toc b { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.post-toc a { color: var(--mu); line-height: 1.4; } .post-toc a:hover { color: var(--b); }
.post-body { max-width: 760px; font-size: 1.04rem; line-height: 1.8; color: #1e293b; }
.post-body h2 { font-size: 1.45rem; margin: 2.2rem 0 .8rem; line-height: 1.3; scroll-margin-top: 90px; }
.post-body h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.1rem; }
.post-body li { margin-bottom: .4rem; }
.post-body a { color: var(--b); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ln); }
.post-body blockquote { margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--t); background: #f0fdfa; border-radius: 0 12px 12px 0; }
.post-body blockquote p { margin: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--ln); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.post-body th { background: #f8fafc; color: var(--ink); }
/* Report designs page: the four letterheads, classic colours and small slips */
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin: 1.4rem 0 2rem; }
.rd-card { background: #fff; border: 1px solid var(--ln); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.rd-card .shot { border: 0; border-bottom: 1px solid var(--ln); border-radius: 0; box-shadow: none; }
.rd-body { padding: 1.1rem 1.2rem 1.3rem; }
.rd-body h3 { font-size: 1.1rem; margin: 0 0 .45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rd-body p { margin: 0 0 .5rem; color: #475569; line-height: 1.6; font-size: .95rem; }
.rd-body .rd-for { margin: 0; font-size: .9rem; }
.rd-badge { font-size: .72rem; font-weight: 700; color: var(--b); background: #eff6ff; padding: .2rem .6rem; border-radius: 99px; white-space: nowrap; }
.rd-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.rd-themes .shot, .rd-slips .shot { box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .45); }
.rd-slips { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; margin: 1rem 0 0; }
/* Try the designs: options on the left, the real report picture on the right (stacked on phones) */
.rp-head { max-width: 860px; margin-bottom: 1.2rem; }
.rp-head p { font-size: 1.05rem; line-height: 1.7; color: #475569; margin: .6rem 0 0; }
.rp { margin-bottom: 2rem; }
.rp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: start; }
.rp-controls { display: grid; gap: 1.1rem; }
.rp-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rp-controls [hidden] { display: none !important; }
.rp-controls legend { font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: .5rem; }
.rp-chips, .rp-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.rp-chips input, .rp-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-chips span, .rp-checks span { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .9rem; border: 1.5px solid var(--ln); border-radius: 999px; background: #fff; color: #334155; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.rp-chips input:checked + span { border-color: var(--b); background: #eff6ff; color: var(--b); font-weight: 600; }
.rp-checks span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #94a3b8; flex: none; }
.rp-checks input:checked + span { border-color: var(--t); color: var(--ink); }
.rp-checks input:checked + span::before { background: var(--t); border-color: var(--t); box-shadow: inset 0 0 0 3px #fff; }
.rp-chips input:focus-visible + span, .rp-checks input:focus-visible + span { outline: 2px solid var(--b); outline-offset: 2px; }
.rp-more { margin: 0; font-size: .88rem; color: var(--mu); line-height: 1.6; }
.rp-colours i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.rp-view { margin: 0; position: sticky; top: 90px; }
.rp-view img { display: block; width: 100%; height: auto; border: 1px solid var(--ln); border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -35px rgba(15, 23, 42, .5); transition: opacity .15s; }
.rp-view img.rp-loading { opacity: .55; }
.rp-view figcaption { font-size: .9rem; color: #475569; margin-top: .7rem; line-height: 1.55; }
/* Phones and tablets: the report stays in view at the top while the options scroll under it */
@media (max-width: 960px) {
    .rp-wrap { grid-template-columns: 1fr; gap: 1rem; }
    .rp-view { order: -1; top: 64px; z-index: 2; background: #fff; padding: .4rem 0 .6rem; border-bottom: 1px solid var(--ln); }
    .rp-view img { max-height: 46vh; width: auto; max-width: 100%; margin: 0 auto; }
    .rp-view figcaption { font-size: .82rem; margin-top: .4rem; }
}
@media (max-width: 960px) { .rd-grid, .rd-themes { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rd-slips { grid-template-columns: 1fr; } .rd-slips .shot:last-child { max-width: 320px; } }

@media (max-width: 960px) {
    .mk-split, .mk-split-rev, .price-grid, .mk-cols, .mk-cols-2 { grid-template-columns: 1fr; }
    .mk-split-rev > .shot { order: 2; }
    .post-grid { grid-template-columns: 1fr; gap: 1rem; }
    .post-toc { position: static; }
    .price-for { min-height: 0; }
}
@media (max-width: 520px) { .mk-cta { padding: 1.4rem; } .mk-cta .btn-l { flex: 1; justify-content: center; } .dl-box { padding: 1rem; } }

/* ===== Home page: real screens, pricing and guides ===== */
/* hero: desktop app -> saved on the PC -> sync -> web dashboard (phases set by landing.js on #syncScene[data-phase]) */
.sync-scene { margin: 0; min-width: 0; }
.ss-stage { position: relative; aspect-ratio: 1000 / 840; container-type: inline-size; }
.ss-win { position: absolute; border-radius: 1.6cqw; overflow: hidden; background: #fff; border: 1px solid var(--ln); box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .55), 0 0 0 .7cqw rgba(255, 255, 255, .65); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .8s var(--ease), box-shadow .7s var(--ease); }
.ss-win img { display: block; width: 100%; height: auto; }
.ss-app { left: 0; top: 0; width: 68%; }
.ss-web { right: 0; bottom: 0; width: 72%; z-index: 2; }
.ss-bar { display: flex; align-items: center; gap: 1.2cqw; height: 3.2cqw; padding: 0 1.4cqw; background: #f1f5f9; border-bottom: 1px solid var(--ln); font-size: 1.5cqw; color: var(--ink); white-space: nowrap; overflow: hidden; }
.ss-bar small { color: var(--mu); }
.ss-dots { display: inline-flex; gap: .55cqw; flex-shrink: 0; } .ss-dots i { width: .95cqw; height: .95cqw; border-radius: 50%; background: #cbd5e1; }
.ss-dots i:first-child { background: #f87171; } .ss-dots i:nth-child(2) { background: #fbbf24; } .ss-dots i:last-child { background: #34d399; }
.ss-url { flex: 1; display: inline-flex; align-items: center; gap: .7cqw; background: #fff; border: 1px solid var(--ln); border-radius: 99px; padding: .25cqw 1.2cqw; color: var(--mu); overflow: hidden; text-overflow: ellipsis; }
.ss-url i { color: #16a34a; font-size: 1.2cqw; }
.ss-shot { position: relative; }
.ss-chip { position: absolute; top: 5cqw; inset-inline-end: 1.6cqw; display: grid; font-size: 1.8cqw; font-weight: 650; }
.ss-chip > span { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: .8cqw; padding: .7cqw 1.4cqw; border-radius: 99px; white-space: nowrap; box-shadow: 0 1.4cqw 3cqw -1.4cqw rgba(15, 23, 42, .45); opacity: 0; transform: translateY(-.8cqw) scale(.94); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ss-chip .c1 { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ss-chip .c2 { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ss-chip .c3 { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.ss-chip .c4 { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ss-chip .c3 i { animation: ss-spin 1.1s linear infinite; }
[data-phase="1"] .ss-chip .c1, [data-phase="2"] .ss-chip .c2, [data-phase="3"] .ss-chip .c3, [data-phase="4"] .ss-chip .c4 { opacity: 1; transform: none; }
/* floating "saved securely" badge on the desktop app */
.ss-float { position: absolute; display: grid; place-items: center; border-radius: 1.8cqw; color: #fff; box-shadow: 0 2cqw 4cqw -1.6cqw rgba(15, 23, 42, .55); }
.ss-db { left: 3%; top: 64%; width: 9cqw; height: 9cqw; font-size: 3.6cqw; background: linear-gradient(135deg, var(--b), #60a5fa); opacity: 0; transform: translateY(2cqw) scale(.7); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ss-db i + i { position: absolute; right: -1.2cqw; bottom: -1.2cqw; font-size: 2.6cqw; width: 4.4cqw; height: 4.4cqw; display: grid; place-items: center; border-radius: 50%; background: #16a34a; border: .45cqw solid #fff; }
[data-phase="2"] .ss-db, [data-phase="3"] .ss-db { opacity: 1; transform: none; animation: ss-float 3s ease-in-out infinite; }
/* the cloud in the middle */
.ss-cloud { position: absolute; left: 78%; top: 6%; width: 15cqw; height: 15cqw; border-radius: 50%; z-index: 3; display: grid; place-items: center; background: #fff; border: 1px solid var(--ln); color: #94a3b8; font-size: 7cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(15, 23, 42, .45); transition: color .6s, box-shadow .6s, transform .6s var(--ease); animation: ss-float 4s ease-in-out infinite; }
.ss-cloud i { grid-area: 1 / 1; }
.ss-cloud i + i { color: #fff; font-size: 2.8cqw; margin-top: .8cqw; opacity: 0; transition: opacity .4s; }
[data-phase="3"] .ss-cloud { color: var(--v); box-shadow: 0 0 0 1.2cqw rgba(124, 58, 237, .12), 0 0 6cqw rgba(124, 58, 237, .45); }
[data-phase="3"] .ss-cloud i:nth-child(2) { opacity: 1; animation: ss-spin 1.1s linear infinite; }
[data-phase="4"] .ss-cloud { color: var(--t); box-shadow: 0 0 0 1.2cqw rgba(20, 184, 166, .12), 0 0 6cqw rgba(20, 184, 166, .4); }
[data-phase="4"] .ss-cloud i:nth-child(3) { opacity: 1; }
/* arrows between the app, the cloud and the web dashboard */
.ss-paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.ss-paths path { fill: none; stroke: url(#ssGrad); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 14; opacity: .25; transition: opacity .5s; }
.ss-paths circle { fill: #7c3aed; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 6px rgba(124, 58, 237, .9)); }
[data-phase="3"] .ss-paths path { opacity: 1; animation: ss-dash .8s linear infinite; }
[data-phase="3"] .ss-paths circle { opacity: 1; }
[data-phase="4"] .ss-paths path { opacity: .6; }
/* offline: the desktop app does the work, the web dashboard waits */
[data-phase="1"] .ss-app, [data-phase="2"] .ss-app { box-shadow: 0 40px 80px -40px rgba(37, 99, 235, .7), 0 0 0 .7cqw rgba(37, 99, 235, .18); }
[data-phase="1"] .ss-web, [data-phase="2"] .ss-web { opacity: .55; filter: saturate(.35); transform: translate(1.5%, 2%) scale(.97); }
[data-phase="4"] .ss-web { box-shadow: 0 40px 80px -40px rgba(20, 184, 166, .75), 0 0 0 .7cqw rgba(20, 184, 166, .2); }
/* live update on the web dashboard: the "Patients today" card lights up */
.ss-ping { position: absolute; left: 18.01%; top: 25.73%; width: 13.7%; height: 16.73%; border-radius: 1.2cqw; border: .35cqw solid var(--b); opacity: 0; transform: scale(.9); transition: opacity .4s, transform .5s var(--ease); }
.ss-ping b { position: absolute; top: -2.2cqw; right: -2.2cqw; width: 4.4cqw; height: 4.4cqw; display: grid; place-items: center; border-radius: 50%; background: var(--b); color: #fff; font-size: 1.9cqw; }
.ss-app .ss-ping { left: 20.9%; top: 28.9%; width: 12.3%; height: 19.3%; }
[data-phase="4"] .ss-web .ss-ping, [data-phase="1"] .ss-app .ss-ping { opacity: 1; transform: none; animation: ss-ring 1.6s ease-out infinite; }
[data-phase="1"] .ss-app .ss-ping { transition-delay: 1.2s; }
/* "Patients today" 3 -> 4: a small picture of the 4 over the 3 (same numbers on both dashboards once synced) */
.ss-num { position: absolute; height: auto; opacity: 0; transition: opacity .35s; }
.ss-app .ss-num { left: 21.67%; top: 38.67%; width: 2.2%; }
.ss-web .ss-num { left: 19.04%; top: 35.35%; width: 1.28%; }
.ss-app .ss-num, [data-phase="4"] .ss-web .ss-num { opacity: 1; }
[data-phase="1"] .ss-app .ss-num { animation: ss-in .35s 1.2s both; }
/* the desktop's "Not synced yet" label reads "Synced just now" once synced */
.ss-app .ss-synced { left: 75.26%; top: 37.11%; width: 8.93%; opacity: 0; animation: none; }
[data-phase="4"] .ss-app .ss-synced { opacity: 1; }
.ss-toast { position: absolute; left: 3%; bottom: 4%; display: inline-flex; align-items: center; gap: .8cqw; padding: .8cqw 1.5cqw; border-radius: 1.2cqw; background: rgba(11, 18, 32, .88); color: #fff; font-size: 1.8cqw; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(1.5cqw); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.ss-toast i { color: #fbbf24; }
[data-phase="4"] .ss-toast { opacity: 1; transform: none; }
/* the four steps under the picture (click one to show it) */
.ss-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; counter-reset: ss; }
.ss-steps button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .75rem .5rem .8rem; border-radius: 12px; border: 1px solid var(--ln); background: #fff; font: inherit; text-align: center; cursor: pointer; color: var(--tx); position: relative; overflow: hidden; transition: border-color .4s, box-shadow .4s, transform .3s var(--ease); }
.ss-steps button > i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f1f5f9; color: var(--mu); font-size: .85rem; transition: background .4s, color .4s; }
.ss-steps b { display: block; color: var(--ink); font-size: .8rem; line-height: 1.25; }
.ss-steps small { display: block; font-size: .72rem; line-height: 1.3; color: var(--mu); }
.ss-steps button::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--b), var(--t)); }
.ss-steps button.on { border-color: #bfdbfe; box-shadow: 0 14px 28px -20px var(--b); transform: translateY(-2px); }
.ss-steps button.on > i { background: linear-gradient(135deg, var(--b), var(--t)); color: #fff; }
.ss-steps button.done > i { background: #ecfdf5; color: #16a34a; }
.sync-scene.playing .ss-steps button.on::after { animation: ss-bar var(--ss-step, 2800ms) linear forwards; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@keyframes ss-float { 50% { translate: 0 -1.2cqw; } }
@keyframes ss-dash { to { stroke-dashoffset: -16; } }
@keyframes ss-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 100% { box-shadow: 0 0 0 2.4cqw rgba(37, 99, 235, 0); } }
@keyframes ss-bar { to { width: 100%; } }
@keyframes ss-in { from { opacity: 0; } }
@media (max-width: 560px) { .ss-steps { gap: .35rem; } .ss-steps button { padding: .6rem .3rem; } .ss-steps small { display: none; } .ss-steps b { font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) { .sync-scene *, .sync-scene *::after { animation: none !important; transition: none !important; } .ss-paths circle { display: none; } }
.hero-patient { margin: 1.3rem 0 0; font-size: .92rem; color: var(--mu); display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.hero-patient i { color: #e11d48; }
.trk-alt { justify-content: center; }
.hero-patient a, .hero-patient button { color: var(--b); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.strip b i { font-size: .9em; }
.sec-more { text-align: center; margin: 2rem 0 0; }
.sec-more a { color: var(--b); font-weight: 650; display: inline-flex; gap: .5rem; align-items: center; }
.tour { background: var(--bg); }
.tour-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.tour-grid figcaption a { color: var(--b); font-weight: 600; }
.offline .shot { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.dl-ver { margin: .9rem 0 0; font-size: .85rem; opacity: .75; }
.phone-shot { margin: 0 auto; max-width: 320px; border-radius: 36px; overflow: hidden; border: 10px solid #0b1220; box-shadow: 0 50px 90px -40px rgba(15, 23, 42, .6); background: #fff; }
.phone-shot img { display: block; width: 100%; height: auto; }
.pricing-teaser { background: var(--bg); }
.price-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.price-mini a { background: #fff; border: 1px solid var(--ln); border-radius: 18px; padding: 1.4rem; display: grid; gap: .35rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.price-mini a:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px var(--b); }
.price-mini a.popular { border: 2px solid var(--b); }
.price-mini b { color: var(--ink); font-size: 1.05rem; }
.pm-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.pm-price small { font-size: .85rem; font-weight: 500; color: var(--mu); margin-left: .2rem; }
.price-mini > a > small { color: var(--mu); font-size: .88rem; line-height: 1.45; }
@media (max-width: 960px) {
    .tour-grid, .price-mini { grid-template-columns: 1fr; }
}

/* WhatsApp button (every public page, bottom corner): opens a chat with the message already typed. */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.wa-float i { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; color: #fff; background: #25d366; box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 2px 6px rgba(11, 18, 32, .2); transition: transform .2s var(--ease); }
.wa-float:hover i, .wa-float:focus-visible i { transform: scale(1.06); }
.wa-tip { background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; padding: .5rem .8rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(11, 18, 32, .15); white-space: nowrap; }
.wa-tip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25d366; margin-right: .45rem; vertical-align: middle; }
@media (max-width: 600px) { .wa-float { right: .8rem; bottom: .8rem; } .wa-float i { width: 52px; height: 52px; font-size: 1.7rem; } .wa-tip { display: none; } }
@media print { .wa-float { display: none; } }

/* Blog post reading progress: a thin bar at the very top of the screen. */
.read-bar { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 70; pointer-events: none; }
.read-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--b), var(--t)); transform: scaleX(0); transform-origin: left center; }
@media print { .read-bar { display: none; } }

/* Phones, home page: bottom bar with Free trial, Book demo and WhatsApp once the top buttons scroll away.
   Hidden near the footer so it never covers the footer links. Never shown on tablets or computers. */
.m-bar { display: none; }
@media (max-width: 600px) {
    .m-bar:not([hidden]) { position: fixed; inset: auto 0 0 0; z-index: 65; display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ln); box-shadow: 0 -8px 24px -12px rgba(11, 18, 32, .25); }
    .m-bar .btn-l { flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; padding-inline: .6rem; white-space: nowrap; }
    .m-bar-wa { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: #25d366; text-decoration: none; }
    body.m-bar-on .wa-float { display: none; }
    body.m-bar-on .to-top, body.m-bar-on .to-top.has-wa { right: .8rem; bottom: calc(.8rem + 66px); }
    body.m-bar-on .pwa-bar { bottom: calc(1rem + 66px); }
}
@media print { .m-bar { display: none !important; } }

/* Back to top (every public page): above the WhatsApp button when there is one. */
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1rem; color: #fff; background: var(--b); box-shadow: 0 8px 20px -8px var(--b), 0 2px 6px rgba(11, 18, 32, .2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.has-wa { right: calc(1.1rem + 7px); bottom: calc(1.1rem + 58px + .75rem); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--b2); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 600px) { .to-top { right: .8rem; bottom: .8rem; } .to-top.has-wa { right: calc(.8rem + 4px); bottom: calc(.8rem + 52px + .6rem); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }

/* Book a free demo (/book-demo): day and time chips. */
.bd-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.bd-grid .ticks { margin: 0; }
.bd-legend, .bd-h2 { font-weight: 700; color: var(--ink); font-size: 1rem; margin: 0 0 .6rem; padding: 0; }
.form-l fieldset { border: 0; padding: 0; min-width: 0; }
.bd-days, .bd-times { display: flex; flex-wrap: wrap; gap: .5rem; }
.bd-times + .bd-times { margin-top: 1rem; }
.bd-times[hidden] { display: none; }
.bd-dayname { flex-basis: 100%; font-size: .82rem; font-weight: 600; color: var(--mu); }
#bookDemo.js .bd-dayname { display: none; }
.bd-chip { position: relative; margin: 0 !important; cursor: pointer; }
.bd-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bd-chip span { display: grid; place-items: center; min-width: 84px; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--ln); border-radius: 11px; background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink); white-space: nowrap; line-height: 1.2; transition: .15s; }
.bd-chip small { display: block; font-weight: 500; font-size: .72rem; color: var(--mu); }
.bd-chip:hover span { border-color: var(--b); }
.bd-chip input:checked + span { background: var(--b); border-color: var(--b); color: #fff; }
.bd-chip input:checked + span small { color: rgba(255, 255, 255, .8); }
.bd-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); }
.bd-submit { width: 100%; justify-content: center; }
.bd-done { text-align: center; display: grid; gap: .6rem; justify-items: center; }
.bd-done > i { font-size: 3rem; color: #16a34a; }
.bd-done h2 { margin: 0; font-size: 1.4rem; }
.bd-done p { margin: 0; line-height: 1.6; color: #334155; }
.bd-when { font-size: 1.15rem; font-weight: 700; color: var(--b) !important; }
@media (max-width: 920px) { .bd-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 520px) { .bd-chip span { min-width: 72px; } }
.mt-book { margin-top: 1.2rem; white-space: normal; text-align: center; justify-content: center; }

/* Menu right side (owner, 1 Nov 2026): Login is a plain link, then Try Demo (outline) and Sign up (solid). */
.nav-cta { align-items: center; }
.nav-login { background: none; border: 0; padding: .5rem .4rem; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; cursor: pointer; }
.nav-login:hover { color: var(--b); }
@media (max-width: 1180px) {
    .nav.open .nav-cta { flex-wrap: wrap; }
    .nav.open .nav-login { flex: 1 1 100%; text-align: center; border: 1px solid var(--ln); border-radius: 10px; padding: .6rem; order: 3; }
}

/* ---------- Owner popups (partials/popup, Owner → Popup messages); same block in pathoplus.css ---------- */
.pp-popup { padding: 0; border: 0; background: transparent; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.pp-popup::backdrop { background: rgba(15, 23, 42, .6); backdrop-filter: blur(3px); }
.pp-popup[open] { animation: pp-popup-in .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes pp-popup-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.pp-popup-box { position: relative; background: #fff; color: #334155; border-radius: 20px; overflow: hidden auto; max-height: calc(100dvh - 32px); box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45); text-align: start; font-family: inherit; }
.pp-popup-x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pp-popup-x:hover, .pp-popup-x:focus-visible { background: rgba(15, 23, 42, .8); }
.pp-popup-media:not(:has(img, video, iframe)) { display: none; }
.pp-popup-media img, .pp-popup-media video { display: block; width: 100%; max-height: 300px; object-fit: cover; background: #0f172a; }
.pp-popup-media video { object-fit: contain; }
.pp-popup-yt { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.pp-popup-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-popup-body { padding: 22px 22px 24px; }
.pp-popup-media:not(:has(img, video, iframe)) + .pp-popup-body { padding-top: 26px; padding-inline-end: 56px; }
.pp-popup-offer { display: inline-flex; white-space: nowrap; align-items: center; padding: 5px 12px; border-radius: 99px; background: linear-gradient(135deg, #f59e0b, #e11d48); color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: 10px; }
.pp-popup-title { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.25; margin: 0 0 8px; overflow-wrap: anywhere; }
.pp-popup-text { margin: 0; font-size: .95rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.pp-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pp-popup-actions:not(:has(a, span)) { display: none; }
.pp-popup-btn { flex: 1 1 140px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center; border: 1.5px solid #cbd5e1; color: #0f172a; background: #fff; }
.pp-popup-btn:hover { border-color: #94a3b8; color: #0f172a; }
.pp-popup-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.pp-popup-btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
@media (max-width: 480px) { .pp-popup-body { padding: 18px 16px 20px; } .pp-popup-title { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .pp-popup[open] { animation: none; } }

/* Privacy / terms / refund pages */
.legal-ur { display: block; font-family: 'Noto Naskh Arabic', serif; font-size: .7em; font-weight: 600; color: #64748b; margin-top: .25rem; }
.legal-sec h2 .legal-ur { display: inline-block; margin: 0 0 0 .5rem; font-size: .8em; }
.legal-sec p { line-height: 1.75; color: #334155; }
.legal-date { font-size: .9rem !important; color: #64748b !important; }
.legal-links { text-align: center; margin: 1.5rem 0; }
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: .25rem .4rem; }

/* Speed on computers: no blur behind the sticky menu on wide screens (slow scrolling on laptops). */
@media (min-width: 992px) { .nav.scrolled { backdrop-filter: none; background: rgba(255, 255, 255, .97); } }

/* ===== "Install SmartLAB Web" bar (partials/pwa-install) ===== */
.pwa-bar { position: fixed; z-index: 1090; inset-inline-start: 1rem; bottom: 1rem; width: min(440px, calc(100% - 2rem)); display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 16px; padding: .85rem 1rem; box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .45); font-size: .92rem; line-height: 1.4; }
.pwa-bar[hidden] { display: none; }
.pwa-bar .pwa-ic { height: 40px; width: auto; flex-shrink: 0; }
.pwa-bar .pwa-tx { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pwa-bar .pwa-tx span { color: #475569; font-size: .85rem; }
.pwa-bar .pwa-ios, .pwa-bar.ios .pwa-std, .pwa-bar.ios .pwa-go { display: none; }
.pwa-bar.ios .pwa-ios { display: inline; }
.pwa-bar .pwa-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-inline-start: auto; }
.pwa-bar button { font: inherit; font-weight: 600; border-radius: 10px; padding: .5rem .95rem; min-height: 40px; cursor: pointer; white-space: nowrap; }
.pwa-bar .pwa-go { background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.pwa-bar .pwa-go:hover { background: #1d4ed8; }
.pwa-bar .pwa-no { background: transparent; color: #475569; border: 1px solid #e2e8f0; }
.pwa-bar button:focus-visible { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 2px; }
@media (max-width: 575.98px) { .pwa-bar { inset-inline: .75rem; bottom: .75rem; width: auto; } }
.foot-install { background: none; border: 0; padding: 0; font: inherit; color: #cbd5e1; text-align: start; cursor: pointer; }
.foot-install[hidden] { display: none; }
.foot-install:hover { color: #fff; }

/* ---------- Phones: every link and button at least 44px tall to tap (owner, 9 Nov 2026) ----------
   Small text links (footer, breadcrumbs, article contents, FAQ questions) get a taller tap area; the text stays
   the same size. */
@media (max-width: 600px) {
    .foot-col { gap: 0; }
    :is(.foot-col, .site-foot li, .site-foot span, .crumbs, .tour-grid figcaption, .facts) a,
    .post-toc a, .sp-more a, .pub-card div > a { display: inline-flex; align-items: center; min-height: 44px; }
    .foot-legal { row-gap: 0; align-items: center; }
    .post-toc { gap: 0; }
    .crumbs { line-height: 1; }
    summary { padding-block: .75rem; margin-block: -.75rem; }
    .brand { min-height: 44px; }
}

/* ---------- Shorter home page on phones (owner, 9 Nov 2026) ----------
   Same content, less scrolling: feature cards and steps put the icon beside the text; the home page shows two guides
   and four labs (All guides / See all labs lead to the rest); the patient-portal picture is smaller. No extra taps. */
@media (max-width: 600px) {
    .grid-3 { gap: .8rem; }
    .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: start; padding: 1.1rem; border-radius: 16px; }
    .feat .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; margin: 0; }
    .feat h3 { font-size: 1.02rem; margin-bottom: .25rem; } .feat p { font-size: .9rem; line-height: 1.55; }
    .steps { gap: .9rem; }
    .step { display: grid; grid-template-columns: 48px 1fr; column-gap: .9rem; text-align: start; align-items: start; }
    .step .n { grid-row: span 2; width: 48px; height: 48px; font-size: 1.05rem; margin: 0; border-width: 2px; }
    .step h3 { margin-bottom: .2rem; }
    #guides .blog-card:nth-child(n+3), #find-lab .dir-card:nth-child(n+5) { display: none; }
    #guides .blog-card img { display: none; }
    .portal .phone-shot { max-width: 220px; border-width: 7px; border-radius: 28px; }
}

/* Owner → Promotions: the website offer bar, at the top of the fixed menu; the page moves down by its height. */
.promo-strip { margin: -1rem 0 .8rem; background: linear-gradient(90deg, var(--b), var(--v)); color: #fff; font-size: .88rem; }
.nav.scrolled .promo-strip { margin-top: -.6rem; margin-bottom: .6rem; }
.promo-strip .wrap { display: flex; align-items: center; gap: .6rem; height: 40px; }
.promo-strip .promo-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-strip .promo-cta { flex-shrink: 0; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.has-promo { padding-top: 40px; }
@media (max-width: 575px) { .promo-strip { font-size: .8rem; } .promo-strip .wrap { gap: .4rem; } .promo-strip .promo-words { display: none; } }
