/* ===== Labour's Adda — Laboratory Partner Portal ===== */
:root {
  --green: #087F4F;
  --green-dark: #075B3B;
  --mint: #E8F6EE;
  --yellow: #FFC928;
  --ink: #172B24;
  --white: #FFFFFF;
  --muted: #4A6057;
  --line: #D5E8DD;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(23, 43, 36, .08);
  --shadow-lg: 0 18px 50px rgba(7, 91, 59, .22);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg use { pointer-events: none; }
.icon-badge svg, .step-icon svg, .ph-ico svg, .store-ic, .socials svg, .dash-side svg, .ph-tiles svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(8, 127, 79, .28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { color: var(--green-dark); border-color: var(--green); background: #fff; }
.btn-ghost:hover { background: var(--mint); }
.btn-outline { color: var(--green-dark); border-color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--mint); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn .ic { width: 18px; height: 18px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(23,43,36,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; color: var(--green-dark); font-weight: 800; }
.brand-text small { font-size: .76rem; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.nav-link { position: relative; display: block; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--ink); transition: background .2s, color .2s; }
.nav-link:hover { background: var(--mint); color: var(--green-dark); }
.nav-link.active { color: var(--green); }
.nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--green); border-radius: 2px; }
.nav-actions { display: flex; gap: 10px; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--green-dark); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: radial-gradient(900px 420px at 80% 0%, #D6F0E4 0%, transparent 60%), linear-gradient(180deg, var(--mint) 0%, #fff 100%); padding: 56px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--green); margin-bottom: 14px; }
.eyebrow.light { color: var(--yellow); }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; font-weight: 800; color: var(--green-dark); letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--green); }
.lead { font-size: 1.08rem; color: var(--muted); margin-top: 18px; max-width: 540px; }
.lead.dark { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.script-tag { margin-top: 30px; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem; color: var(--green-dark); position: relative; display: inline-block; }
.script-tag::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--yellow); transform: rotate(-1.5deg); }

.hero-visual { position: relative; padding-bottom: 20px; }
.photo-card { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--mint); }
.lab-art { display: block; width: 100%; height: auto; }
.photo-note { position: absolute; left: 12px; bottom: 12px; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--muted); padding: 4px 10px; border-radius: 999px; }

.dash-card { position: absolute; right: -8px; top: 22px; width: min(330px, 58%); background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(23,43,36,.28); overflow: hidden; font-size: .66rem; }
.dash-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dash-logo { width: 20px; height: 20px; }
.dash-head b { font-size: .72rem; }
.dash-body { display: flex; }
.dash-side { width: 78px; padding: 10px 6px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: #F7FBF9; }
.dash-side li { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 6px; color: var(--muted); font-size: .56rem; font-weight: 600; }
.dash-side li.on { background: var(--mint); color: var(--green-dark); }
.dash-side svg { width: 11px; height: 11px; flex: none; }
.dash-main { flex: 1; padding: 10px 12px 12px; min-width: 0; }
.dash-main h3 { font-size: .68rem; font-weight: 800; margin-bottom: 6px; }
.dash-rows { margin-bottom: 10px; }
.dash-rows li { display: grid; grid-template-columns: 44px 1fr 46px auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #EEF4F0; color: var(--muted); font-size: .55rem; }
.dash-rows li span:nth-child(2) { color: var(--ink); font-weight: 600; }

.tag { font-style: normal; font-size: .52rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tag.pending { background: #FFE9B8; color: #7A5200; }
.tag.confirmed { background: #CFF0DD; color: #075B3B; }
.tag.progress { background: #D5E6FF; color: #1D4C9C; }

.dash-steps { display: flex; justify-content: space-between; position: relative; }
.dash-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--line); }
.dash-steps li { position: relative; flex: 1; text-align: center; font-size: .52rem; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dash-steps i { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.dash-steps li.done i { background: var(--green); border-color: var(--green); }
.dash-steps li.done i::after { content: ""; position: absolute; left: 3.500px; top: 1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.500px 1.500px 0; transform: rotate(45deg); }
.dash-steps.small li { font-size: .56rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tint { background: var(--mint); }
.section-head { margin-bottom: 36px; }
.section-head h2, .h2, .app-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--green-dark); letter-spacing: -.01em; line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 520px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 14px 34px rgba(8,127,79,.16); }
.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 16px; flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.sm { width: 44px; height: 44px; margin: 0; }
.icon-badge.sm svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.02rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; line-height: 1.3; }
.feat p { color: var(--muted); font-size: .92rem; }

/* ===== For laboratories ===== */
.labs-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.check-grid li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.check-grid h3 { font-size: 1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 4px; }
.check-grid p { font-size: .88rem; color: var(--muted); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { position: relative; background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px 22px; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 62px; right: -20px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 9px); }
.step-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .9rem; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(255,201,40,.5); }
.step-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--green); margin: 0 auto 14px; box-shadow: var(--shadow); }
.step-icon svg { width: 30px; height: 30px; }
.step h3 { font-size: 1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; line-height: 1.3; }
.step p { font-size: .88rem; color: var(--muted); }

/* ===== App section ===== */
.app-section { background: radial-gradient(700px 400px at 100% 100%, rgba(255,255,255,.1) 0%, transparent 60%), linear-gradient(135deg, var(--green-dark), #064A31); color: #fff; padding: 80px 0; overflow: hidden; }
.app-inner { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 36px; align-items: center; }
.app-copy h2 { color: #fff; }
.app-copy .lead { color: #D2EBDD; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #5d6b65; border-radius: 12px; padding: 9px 18px; transition: transform .15s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: #fff; }
.store-ic { width: 28px; height: 28px; stroke: none; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.08rem; line-height: 1.1; }
.store small { font-size: .62rem; font-weight: 500; letter-spacing: .03em; }
.app-visual { text-align: center; }
.sample-note { margin-top: 14px; font-size: .75rem; color: #B7DAC7; }
.app-features { display: flex; flex-direction: column; gap: 16px; }
.app-features li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.app-features .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.12); }

/* ===== Phone ===== */
.phone { width: min(290px, 100%); margin-inline: auto; background: var(--ink); border-radius: 36px; padding: 9px; box-shadow: 0 24px 50px rgba(0,0,0,.35); position: relative; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; background: var(--ink); border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { background: #fff; color: var(--ink); text-align: left; border-radius: 28px; padding: 30px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-brand { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; color: var(--green-dark); }
.ph-brand svg { width: 20px; height: 20px; }
.pill-online { display: inline-flex; align-items: center; gap: 5px; background: var(--green); color: #fff; font-size: .6rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 0; }
.pill-online i { width: 6px; height: 6px; border-radius: 50%; background: #7CFFB5; }
.pill-online.off { background: #8A9A93; }
.pill-online.off i { background: #fff; }
.ph-block { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ph-block-head { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; }
.ph-block-head a { color: var(--green); font-weight: 700; font-size: .6rem; }
.ph-appt { display: flex; align-items: center; gap: 8px; width: 100%; background: #F7FBF9; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; text-align: left; color: inherit; }
.ph-appt:hover { border-color: var(--green); }
.ph-appt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ph-appt-txt b { font-size: .68rem; }
.ph-appt-txt em { font-style: normal; font-size: .58rem; color: var(--muted); }
.ph-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.ph-ico svg { width: 16px; height: 16px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tiles span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: .62rem; font-weight: 700; color: var(--green-dark); text-align: center; }
.ph-tiles svg { width: 20px; height: 20px; color: var(--green); }

/* ===== Footer ===== */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr 1.2fr; gap: 28px; padding: 54px 0 42px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 240px; }
.foot-col h4 { font-size: .95rem; font-weight: 800; color: var(--green-dark); margin-bottom: 14px; }
.foot-col li + li { margin-top: 9px; }
.foot-col a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.foot-col a:hover { color: var(--green); }
.foot-col a[aria-current="page"] { color: var(--green); font-weight: 700; }
.foot-col p { font-size: .92rem; color: var(--muted); }
.mail-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--green) !important; font-weight: 700; word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff !important; display: grid; place-items: center; transition: transform .15s, background .2s; }
.socials a:hover { background: var(--green-dark); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bar { background: var(--green-dark); color: #D2EBDD; font-size: .85rem; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.tagline { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.15rem; color: var(--yellow); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; z-index: 400; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(4n+2), .js .steps .reveal:nth-child(2) { transition-delay: .07s; }
.js .grid .reveal:nth-child(4n+3), .js .steps .reveal:nth-child(3) { transition-delay: .14s; }
.js .grid .reveal:nth-child(4n+4), .js .steps .reveal:nth-child(4) { transition-delay: .21s; }
.js .steps .reveal:nth-child(5) { transition-delay: .28s; }

/* ===== Legal pages ===== */
.legal-hero { background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--green); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--green-dark); letter-spacing: -.02em; line-height: 1.15; }
.legal-meta { margin-top: 8px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 48px 0 84px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 10px; font-weight: 800; }
.toc ol { counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.toc a::before { content: counter(t) "."; color: #8AA096; min-width: 20px; }
.toc a:hover { background: var(--mint); color: var(--green-dark); }
.toc a.active { background: var(--mint); color: var(--green); }
.legal-content { max-width: 780px; }
.legal-note { background: #FFF8DC; border: 1px solid #F3DE8A; color: #5C4A00; border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin-bottom: 30px; }
.legal-content section { padding-bottom: 8px; margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-content h2 { font-size: 1.35rem; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.legal-content h3 { font-size: 1.02rem; font-weight: 800; margin: 18px 0 8px; }
.legal-content p { color: var(--muted); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; color: var(--muted); }
.legal-content li { margin-bottom: 7px; padding-left: 4px; }
.legal-content li::marker { color: var(--green); }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--green-dark); }
.legal-links { margin-top: 14px; }

/* ===== Laptop ===== */
@media (max-width: 1200px) {
  .nav-link { padding: 8px 9px; font-size: .88rem; }
  .main-nav { gap: 14px; }
  .btn { padding: 0 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .step:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-col:nth-last-child(-n+2) { grid-column: span 2; }
  .app-inner { grid-template-columns: 1fr 1fr; }
  .app-features { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 14px 28px; justify-content: center; }
  .app-copy { grid-column: 1; }
}

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 22px; box-shadow: 0 18px 30px rgba(23,43,36,.12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--mint); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }

  .hero { padding: 40px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }

  .labs-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .labs-inner .lead { margin-inline: auto; }
  .check-grid { text-align: left; }

  .app-inner { grid-template-columns: 1fr; text-align: center; }
  .app-copy .lead { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .app-copy { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:nth-last-child(-n+2) { grid-column: auto; }

  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 64px; }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; column-gap: 20px; }
  .toc li { break-inside: avoid; }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 32px, 1240px); }
  .brand-icon { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .68rem; }
  .section, .app-section { padding: 56px 0; }
  .section-head { text-align: center; }
  .section-head p { margin-inline: auto; }

  .hero-cta .btn { width: 100%; }
  .script-tag { font-size: 1.3rem; }
  .hero-visual { padding-bottom: 0; }
  .dash-card { position: static; width: 100%; margin-top: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
  .dash-rows li { grid-template-columns: 48px 1fr auto; }
  .dash-rows li span:nth-child(3) { display: none; }
  .dash-card, .dash-main h3 { font-size: .75rem; }
  .dash-rows li, .dash-steps li { font-size: .62rem; }
  .tag { font-size: .58rem; }

  .grid-4 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step:not(:last-child)::after { display: none; }

  .store { flex: 1 1 100%; justify-content: center; }
  .app-features { flex-direction: column; align-items: flex-start; max-width: 280px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr; padding: 44px 0 32px; }
  .bar-inner { justify-content: center; text-align: center; }

  .legal-hero { padding: 30px 0 24px; }
  .toc ol { columns: 1; }
  .legal-content h2 { font-size: 1.2rem; }
}

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