/* WorldMD public homepage (worldmd.pk). The legal pages share the top bar, buttons and footer.
 * Design language of the question bank (assets/qb/qb.css): warm paper, hairline borders, Poppins 600 headings,
 * Inter text, Newsreader for question text. Fonts are self-hosted (assets/fonts, latin subset) so the page needs no other site.
 * Motion: loops run only while on screen ([data-run].run, set by index.html) and everything is off under reduced motion.
 * Hidden-until-animated states sit behind .js (set in <head>), so the page reads fine without JavaScript. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --teal: #0F6E6A; --deep: #083D3B; --deep-2: #0B4C49; --bright: #2BA39C; --sand: #EBD3A8; --sand-2: #F5E9D2; --mist: #F4FBFA;
  --bg: #F6F4EE; --surface: #FDFCF8; --white: #FFFFFF; --surface-2: #F0EDE5; --ink: #1D2422; --muted: #5F6B68; --faint: #8A9592;
  --line: #E3DFD4; --line-2: #D3CEC1; --accent-soft: #E3F1EF;
  --ok: #1D7A4C; --ok-soft: #E3F3EA; --bad: #B23A30; --bad-soft: #FBE9E6; --flag: #C98A12;
  --hl0: #FBE28C; --hl1: #BDE7C5; --hl2: #C3DCF7; --hl3: #F6C8DB;
  --shadow: 0 1px 2px rgba(20, 30, 28, .05), 0 12px 32px -12px rgba(20, 30, 28, .14);
  --shadow-lg: 0 2px 4px rgba(20, 30, 28, .04), 0 40px 80px -30px rgba(8, 61, 59, .34);
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --head: 'Poppins', 'Inter', system-ui, sans-serif; --read: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--ui); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--teal); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .6rem; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43, 163, 156, .4); border-radius: 8px; }
::selection { background: rgba(43, 163, 156, .22); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(880px, 100% - 40px); }
.kicker { display: flex; align-items: center; gap: .6rem; font: 600 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 1rem; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--bright); }
.center .kicker { justify-content: center; }
.ic, .btn svg { width: 18px; height: 18px; 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: .5rem; min-height: 42px; padding: .5rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: 500 .95rem var(--ui); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 50px; padding: .65rem 1.4rem; font-size: 1rem; }
.btn-dark { background: var(--deep); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 18px -8px rgba(8, 61, 59, .6); } .btn-dark:hover { background: var(--deep-2); }
.btn-dark svg { transition: transform .25s var(--ease); } .btn-dark:hover svg { transform: translateX(3px); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: var(--surface); } .btn-line:hover { background: var(--white); border-color: var(--faint); }
.btn-quiet { color: var(--ink); } .btn-quiet:hover { background: var(--surface-2); }
.btn-sand { background: var(--sand); color: var(--deep); font-weight: 600; } .btn-sand:hover { background: #F1DDB8; }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, .28); background: transparent; } .btn-on-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* Launch ribbon (Admin → Settings → launch pricing) */
.ribbon { background: var(--deep); color: #fff; font-size: .88rem; }
.ribbon .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .8rem; padding: .55rem 0; text-align: center; }
.rb-l { color: var(--sand); font-weight: 600; } .ribbon a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Top bar with the pill menu (as in the question bank) */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { background: var(--surface); border-color: var(--line); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 64px; }
.logo img { height: 60px; width: auto; margin: -10px 0 -10px -7px; }
.pills { display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.pills a { padding: .42rem .95rem; border-radius: 999px; color: var(--muted); font: 500 .9rem var(--ui); white-space: nowrap; transition: background .15s, color .15s; }
.pills a:hover { color: var(--ink); background: var(--surface); }
.pills a.on { background: var(--deep); color: #fff; }
.top-r { justify-self: end; display: flex; align-items: center; gap: .35rem; }
.pills .p-login { display: none; }
.menu-b { display: none; width: 42px; height: 42px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 920px) {
  .top-in { grid-template-columns: 1fr auto; }
  .menu-b { display: inline-grid; place-items: center; }
  .top-r .btn { min-height: 38px; padding: .4rem .85rem; font-size: .9rem; }
  .pills .p-login { display: block; margin-top: .4rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--deep); font-weight: 600; }
  .pills { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; border-radius: 0; border-width: 0 0 1px; background: var(--surface); padding: .5rem 20px 1rem; gap: 0; display: none; box-shadow: 0 18px 30px -20px rgba(20, 30, 28, .3); }
  .pills.open { display: flex; animation: fadeUp .25s var(--ease); }
  .pills a { border-radius: 10px; padding: .85rem .6rem; font-size: 1rem; }
  .pills a.on { background: var(--surface-2); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(1.6rem, 3.6vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.12fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 1.3rem; }
.hero h1 span { display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 33em; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.7rem 0 .9rem; }
.fine { font-size: .9rem; color: var(--muted); margin: 0; }
.fine b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx { margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .65rem; }
.hx-row { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; align-items: baseline; }
.hx-row + .hx-row { margin-top: .55rem; }
.hx-l { font: 600 .7rem var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding-top: .4rem; }
.hx-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .7rem; border-radius: 99px; font: 500 .84rem var(--ui); white-space: nowrap; transition: border-color .15s, background .15s, transform .15s; }
.chip.live { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 3px rgba(43, 163, 156, .16); }
.chip.live:hover { border-color: var(--teal); }
.chip.soon { border: 1px dashed var(--line-2); color: var(--muted); }
.chip.soon:hover { color: var(--ink); }
.hx-count { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.hx-count b { color: var(--deep); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 440px) { .top-r { gap: .25rem; } .top-r .btn { padding: .4rem .7rem; } .logo img { height: 50px; margin: -6px 0 -6px -6px; } .menu-b { width: 38px; } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { max-width: 640px; } }
@media (max-width: 480px) { .hx-row { grid-template-columns: 1fr; gap: .4rem; } .hx-l { padding: 0; } .cta .btn { flex: 1 1 auto; } }

/* Hero demo: a 3D test screen with sample questions (index.html script). Steps: s1 stem, s2 options, s3 answered, s4 explanation. */
.demo { position: relative; min-width: 0; }
.dm-stage { position: relative; perspective: 1700px; padding: 8px 0 18px; }
.dm-orbit { position: absolute; left: -9%; top: -6%; width: 118%; height: 112%; fill: none; stroke: var(--line-2); stroke-width: 1; pointer-events: none; z-index: 0; }
.dm-orbit .o2 { stroke: #E2CFA8; stroke-dasharray: 3 7; }
.dm-sat { fill: var(--bright); stroke: none; }
.dm-tilt { position: relative; z-index: 1; transform-style: preserve-3d; transform: rotateX(5deg) rotateY(-9deg); will-change: transform; }
.dm-back { position: absolute; inset: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transform: translate3d(24px, 22px, -70px); opacity: .85; }
.qc { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateZ(0); }
.qc-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); background: var(--surface); }
.qc-exam { font: 600 .74rem var(--ui); letter-spacing: .02em; color: var(--deep); background: var(--accent-soft); padding: .18rem .55rem; border-radius: 6px; white-space: nowrap; }
.qc-item { white-space: nowrap; } .qc-item b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.qc-mode { font-size: .72rem; color: var(--teal); border: 1px solid #CBE5E1; padding: .08rem .45rem; border-radius: 99px; }
.qc-tools { margin-left: auto; display: flex; gap: .55rem; color: var(--faint); }
.qc-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qc-time { font-variant-numeric: tabular-nums; color: var(--ink); border: 1px solid var(--line); padding: .1rem .45rem; border-radius: 6px; }
.qc-body { padding: 1.15rem 1.35rem 1.1rem; transition: opacity .3s ease, transform .3s ease; }
.qc.swap .qc-body { opacity: 0; transform: translateY(-6px); }
.qc-stem { font: 400 1.01rem/1.55 var(--read); color: var(--ink); margin: 0 0 .95rem; }
.qc-stem span { transition: opacity .5s ease; }
.js .qc:not(.s1) .qc-stem span { opacity: 0; }
.qc.s1 .qc-stem span:nth-child(2) { transition-delay: .12s; } .qc.s1 .qc-stem span:nth-child(3) { transition-delay: .24s; } .qc.s1 .qc-stem span:nth-child(4) { transition-delay: .36s; } .qc.s1 .qc-stem span:nth-child(n+5) { transition-delay: .48s; }
.qc-opts { display: grid; gap: .4rem; }
.qc-opt { position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .42rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: .89rem; line-height: 1.35; color: var(--ink); cursor: pointer;
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .2s, background .2s, color .2s; }
.qc-opt span { flex: 1; min-width: 0; }
.qc-opt b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .74rem var(--ui); color: var(--muted); border: 1.5px solid var(--line-2); flex: none; transition: background .2s, color .2s, border-color .2s; }
.qc-opt:hover:not(:disabled), .qc-opt.hov { border-color: var(--teal); } .qc-opt:hover:not(:disabled) b, .qc-opt.hov b { border-color: var(--teal); color: var(--teal); }
.qc-opt:disabled { cursor: default; }
.js .qc:not(.s2) .qc-opt { opacity: 0; transform: translateY(5px); }
.qc-opt:nth-child(2) { transition-delay: 50ms; } .qc-opt:nth-child(3) { transition-delay: 100ms; } .qc-opt:nth-child(4) { transition-delay: 150ms; } .qc-opt:nth-child(5) { transition-delay: 200ms; } .qc-opt:nth-child(6) { transition-delay: 250ms; }
.qc.s3 .qc-opt { transition-delay: 0s; }
.qc-opt.right { border-color: rgba(29, 122, 76, .5); background: var(--ok-soft); } .qc-opt.right b { background: var(--ok); border-color: var(--ok); color: #fff; }
.qc-opt.wrong { border-color: rgba(178, 58, 48, .45); background: var(--bad-soft); } .qc-opt.wrong b { background: var(--bad); border-color: var(--bad); color: #fff; }
.qc.s3 .qc-opt:not(.right):not(.wrong) { color: var(--muted); }
.qc-tk { width: 17px; height: 17px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: tkDraw .45s .05s var(--ease) forwards; }
.right .qc-tk { stroke: var(--ok); } .wrong .qc-tk { stroke: var(--bad); }
.qc-expl { position: relative; margin-top: .85rem; padding: .7rem .9rem .65rem; border-left: 2px solid var(--bright); background: #FAFCFB; border-radius: 0 10px 10px 0; transition: background .4s, border-color .4s; }
.qc-ex { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.qc-ph { position: absolute; inset: 0; margin: 0 !important; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; font: 400 .84rem/1.4 var(--ui) !important; color: var(--faint) !important; transition: opacity .3s; }
.qc-ph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .qc-ph, .qc.s4 .qc-ph { opacity: 0; pointer-events: none; }
.js .qc:not(.s4) .qc-expl { background: var(--surface); border-left-color: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); }
.js .qc:not(.s4) .qc-ex { opacity: 0; transform: translateY(6px); }
.qc-expl small { display: flex; align-items: center; gap: .45rem; font: 600 .68rem var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--teal); margin-bottom: .25rem; }
.qc-expl p { margin: 0; font: 400 .9rem/1.5 var(--read); color: #36403D; }
.qc-key { display: flex; gap: .55rem; margin-top: .55rem !important; padding-top: .55rem; border-top: 1px dashed var(--line); font: 500 .82rem/1.45 var(--ui) !important; color: var(--ink) !important; }
.qc-key b { flex: none; font: 600 .66rem/1.9 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #8A6A2E; background: var(--sand-2); padding: 0 .45rem; border-radius: 5px; }
.qc-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .8rem .65rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface); }
.qc-hint { font-size: .8rem; color: var(--muted); }
.qc-next { display: inline-flex; align-items: center; gap: .35rem; font: 500 .82rem var(--ui); padding: .38rem .8rem; border-radius: 8px; border: 1px solid var(--deep); background: var(--deep); color: #fff; cursor: pointer; transition: background .2s, transform .12s; white-space: nowrap; }
.qc-next svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qc-next:hover, .qc-next.press { background: var(--deep-2); } .qc-next.press { transform: scale(.95); }
.qc-cur { position: absolute; left: 0; top: 0; width: 24px; height: 24px; pointer-events: none; fill: #1D2422; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); transform: translate(var(--cx, 80%), var(--cy, 90%)); transition: transform .85s cubic-bezier(.45, .05, .2, 1); z-index: 3; }
.qc-cur.press { scale: .82; transition: transform .85s cubic-bezier(.45, .05, .2, 1), scale .12s; }
.qc.manual .qc-cur, html:not(.js) .qc-cur { display: none; }
.qc-ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--bright); pointer-events: none; animation: ring1 .5s ease-out forwards; z-index: 2; }
.dm-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 .4rem; }
.dm-l { font: 600 .7rem var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.dm-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.dm-tabs button { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .36rem .8rem .42rem; font: 500 .8rem var(--ui); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.dm-tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.dm-tabs button.on { color: var(--deep); border-color: var(--teal); background: var(--white); }
.dm-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--bright); transform: scaleX(0); transform-origin: left; }
.dm-tabs button.on i { transform: scaleX(1); }
.dm-tabs.play button.on i { animation: tabFill 9.4s linear both; }
@media (max-width: 960px) { .demo { max-width: 620px; width: 100%; margin-inline: auto; } .dm-tilt { transform: none; } .dm-back { transform: translate3d(12px, 12px, -40px); } }
@media (max-width: 560px) { .qc-body { padding: 1rem .95rem .95rem; } .qc-stem { font-size: .96rem; line-height: 1.52; } .qc-opt { font-size: .85rem; padding: .42rem .6rem; } .qc-expl p { font-size: .88rem; } .qc-mode, .qc-tools { display: none; } .qc-time { margin-left: auto; } .dm-orbit { display: none; } .qc-hint { font-size: .74rem; } }

/* ---------- Sections ---------- */
.sec { padding: clamp(4rem, 8vw, 6.5rem) 0; scroll-margin-top: 64px; }
.contact { scroll-margin-top: 84px; }
.sec-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.nobr { display: inline-block; }
.sec-head p:last-child { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* Features: a grid of tiles, each with a small working-looking piece of the app drawn in HTML */
.feat { padding-top: clamp(2.5rem, 5vw, 4rem); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.w7 { grid-column: span 7; } .w5 { grid-column: span 5; }
.tile { position: relative; display: flex; flex-direction: column; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 2.4vw, 1.9rem); overflow: hidden; }
.t-text { max-width: 34em; }
.t-text h3 { font-size: clamp(1.2rem, 1.9vw, 1.42rem); letter-spacing: -.025em; margin-bottom: .45rem; }
.t-text p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.step { display: flex; align-items: center; gap: .5rem; font: 600 .7rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 .7rem; }
.step span { font-variant-numeric: tabular-nums; color: var(--faint); }
.mini { margin-top: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .8rem; color: var(--ink); }
.js .tile .mini { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .tile.in .mini { opacity: 1; transform: none; }
@media (max-width: 1000px) { .w7, .w5 { grid-column: 1 / -1; } }
@media (min-width: 700px) and (max-width: 1000px) { .tile:not(.t-gaps) { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 1.8rem; } .tile:not(.t-gaps) .mini { margin-top: 0; } }

/* Create a test */
.cb { padding: .9rem 1rem 1rem; display: grid; gap: .75rem; }
.cb-top { display: flex; justify-content: space-between; align-items: baseline; } .cb-top b { font: 600 .92rem var(--head); } .cb-top span { color: var(--faint); font-size: .74rem; }
.cb-sec small, .cb-n small { display: block; font: 600 .64rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.cb-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.cb-chips span { padding: .24rem .55rem; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-weight: 500; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.cb-chips i { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; margin-left: .15rem; transition: color .3s; }
.cb-chips .on { background: var(--accent-soft); color: var(--deep); border-color: #CBE5E1; } .cb-chips .on i { color: var(--teal); }
.cb-chips .more { background: none; color: var(--faint); }
.tile.in .cb-chips .tg1 { animation: chipOn .35s .7s forwards; } .tile.in .cb-chips .tg2 { animation: chipOn .35s 1.05s forwards; } .tile.in .cb-chips .tg3 { animation: chipOn .35s 1.4s forwards; }
.cb-last { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.cb-n { flex: 1 1 150px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .7rem; } .cb-n small { grid-column: 1 / -1; }
.cb-n b { font: 600 .95rem var(--head); font-variant-numeric: tabular-nums; color: var(--deep); }
.cb-range { position: relative; height: 4px; border-radius: 4px; background: var(--surface-2); }
.cb-range i { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; border-radius: 4px; background: var(--teal); transition: width 1.1s 1.6s var(--ease); }
.cb-range i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); }
.tile.in .cb-range i { width: 58%; }
.cb-seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 8px; } .cb-seg span { padding: .22rem .6rem; border-radius: 6px; color: var(--muted); font-weight: 500; } .cb-seg .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.cb-go { padding: .42rem .85rem; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 600; }
.tile.in .cb-go { animation: nudge .6s 2.8s var(--ease); }

/* The two test screens */
.t-layout { background: var(--mist); border-color: #DCEBE8; }
.ly { padding: .75rem; display: grid; gap: .7rem; }
.ly-seg { justify-self: start; display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.ly-seg button { border: 0; background: none; padding: .3rem .7rem; border-radius: 7px; font: 500 .78rem var(--ui); color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.ly-seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ly-screen { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 208px; }
.ly-a, .ly-b { grid-area: 1 / 1; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.ly-b { opacity: 0; transform: scale(.985); pointer-events: none; }
.ly.alt .ly-a { opacity: 0; transform: scale(.985); } .ly.alt .ly-b { opacity: 1; transform: none; }
.la-bar { display: flex; justify-content: space-between; align-items: center; padding: .45rem .7rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; background: var(--surface); }
.la-bar b { color: var(--ink); } .la-ic { display: flex; gap: .45rem; color: var(--faint); }
.la-ic svg, .ly-tools svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.la-stem { font: 400 .84rem/1.5 var(--read); padding: .65rem .75rem 0; margin: 0 0 .55rem; }
mark { background: var(--hl0); color: inherit; padding: 0 .1em; border-radius: 2px; }
.la-opts { display: grid; gap: .3rem; padding: 0 .75rem .75rem; }
.la-opts span { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border: 1px solid var(--line-2); border-radius: 8px; font-size: .74rem; }
.la-opts b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: .62rem; color: var(--muted); flex: none; }
.la-opts .sel { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); } .la-opts .sel b { background: var(--teal); border-color: var(--teal); color: #fff; }
.ly-b { background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; }
.lu-bar { display: flex; justify-content: space-between; gap: .5rem; background: #2A4C86; color: #fff; padding: .45rem .6rem; font-size: .68rem; }
.lu-t { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-body { display: grid; grid-template-columns: 30px 1fr; min-height: 175px; }
.lu-side { background: #EEF1F6; border-right: 1px solid #C9D0DC; display: grid; align-content: start; }
.lu-side i { font-style: normal; font-size: .66rem; text-align: center; padding: .25rem 0; color: #333; } .lu-side .on { background: #DCE6F7; font-weight: 700; }
.lu-main { padding: .6rem .7rem; font-size: .74rem; line-height: 1.5; } .lu-main p { margin: 0 0 .55rem; }
.lu-opts { display: inline-grid; border: 1px solid #C9D0DC; } .lu-opts span { display: flex; gap: .45rem; align-items: center; padding: .25rem .5rem; } .lu-opts span + span { border-top: 1px solid #C9D0DC; }
.lu-opts i { width: 11px; height: 11px; border: 1.5px solid #6B7280; border-radius: 50%; display: grid; place-items: center; flex: none; } .lu-opts .sel i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #111; }
.ly-tools { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); font-size: .74rem; padding: 0 .15rem; } .ly-tools span { display: inline-flex; gap: .35rem; align-items: center; }

/* Every option explained */
.ex { padding: .85rem; display: grid; gap: .65rem; }
.ex-opts { display: grid; gap: .3rem; }
.ex-o { position: relative; display: flex; align-items: center; gap: .55rem; padding: .38rem .6rem; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.ex-o b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: .66rem; color: var(--muted); flex: none; position: relative; z-index: 1; }
.ex-o span { flex: 1; position: relative; z-index: 1; } .ex-o em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); position: relative; z-index: 1; }
.ex-o i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: currentColor; opacity: .07; transform: scaleX(0); transform-origin: left; transition: transform 1s .5s var(--ease); }
.tile.in .ex-o i { transform: none; }
.ex-o.right { border-color: rgba(29, 122, 76, .45); background: var(--ok-soft); color: var(--ok); } .ex-o.right b { background: var(--ok); border-color: var(--ok); color: #fff; } .ex-o.right span { color: var(--ink); }
.ex-o.wrong { border-color: rgba(178, 58, 48, .35); background: var(--bad-soft); color: var(--bad); } .ex-o.wrong b { background: var(--bad); border-color: var(--bad); color: #fff; } .ex-o.wrong span { color: var(--ink); }
.ex-card { border-left: 2px solid var(--bright); background: #FAFCFB; padding: .55rem .7rem; border-radius: 0 9px 9px 0; }
.ex-card small, .pf-h, .vid-note b, .lib-top { font: 600 .62rem var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.ex-card small { color: var(--teal); }
.ex-card p { margin: .2rem 0 0; font: 400 .8rem/1.5 var(--read); color: #36403D; } .ex-card p b { font-family: var(--ui); font-weight: 600; font-size: .74rem; color: var(--ink); }
.ex-card .ex-key { display: flex; gap: .45rem; font: 500 .74rem/1.45 var(--ui); color: var(--ink); border-top: 1px dashed var(--line); padding-top: .4rem; margin-top: .45rem; }
.ex-card .ex-key b { flex: none; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: #8A6A2E; background: var(--sand-2); padding: 0 .4rem; border-radius: 4px; line-height: 1.9; height: fit-content; }
.ex-foot { display: flex; align-items: center; gap: .6rem; font-size: .72rem; color: var(--muted); }
.ex-qid { padding: .2rem .5rem; border: 1px solid var(--line-2); border-radius: 6px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ex-copied { display: inline-flex; align-items: center; gap: .3rem; color: var(--ok); font-weight: 500; }
.ex-copied svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.js .tile .ex-copied { opacity: 0; } .tile.in .ex-copied { animation: popIn .45s 1.6s var(--spring) forwards; }

/* Read it, or watch it */
.gp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; }
.lib { padding: .85rem .95rem; border-right: 1px solid var(--line); }
.lib-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--faint); margin-bottom: .55rem; }
.lib-f { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border-radius: 7px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.lib-f i { font-style: normal; white-space: nowrap; padding: .1rem .4rem; border-radius: 5px; color: var(--muted); font-size: .66rem; } .lib-f .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.lib h4 { font-size: .95rem; margin: 0 0 .35rem; }
.lib p { font: 400 .8rem/1.55 var(--read); color: #36403D; margin: 0 0 .45rem; }
.lib mark { background: linear-gradient(var(--hl0), var(--hl0)) no-repeat 0 0 / 100% 100%; padding: 0 .08em; }
.lib mark.h1 { background-image: linear-gradient(var(--hl1), var(--hl1)); }
.js .tile .lib mark { background-size: 0% 100%; transition: background-size 1.1s var(--ease); } .js .tile.in .lib mark { background-size: 100% 100%; }
.js .tile.in .lib mark.h0 { transition-delay: .9s; } .js .tile.in .lib mark.h1 { transition-delay: 1.9s; }
.hy { font: 600 .6rem var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #8A6A2E; background: var(--sand-2); padding: .05rem .35rem; border-radius: 4px; vertical-align: 1px; }
.lib-pens { display: flex; gap: .35rem; margin-top: .55rem; } .lib-pens i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line-2); }
.lib-pens .h0 { background: var(--hl0); box-shadow: 0 0 0 1.5px var(--ink); } .lib-pens .h1 { background: var(--hl1); } .lib-pens .h2 { background: var(--hl2); } .lib-pens .h3 { background: var(--hl3); }
.vid { padding: .85rem .95rem; display: grid; gap: .5rem; align-content: start; }
.vid-screen { position: relative; aspect-ratio: 16 / 9.4; border-radius: 9px; background: #10201F; background: radial-gradient(120% 90% at 30% 20%, #1B4644 0%, #0C2423 55%, #081918 100%); overflow: hidden; }
.vid-t { position: absolute; left: .6rem; top: .5rem; color: rgba(255, 255, 255, .8); font-size: .66rem; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.vid-play svg { width: 16px; height: 16px; fill: var(--deep); margin-left: 2px; }
.vid-sp { position: absolute; right: .5rem; bottom: .45rem; color: #fff; font: 600 .66rem var(--ui); background: rgba(255, 255, 255, .16); padding: .1rem .4rem; border-radius: 5px; }
.vid-bar { position: relative; height: 4px; border-radius: 4px; background: var(--surface-2); }
.vid-done { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-radius: 4px; background: var(--teal); transition: width 2.2s .7s cubic-bezier(.4, 0, .2, 1); } .tile.in .vid-done { width: 41%; }
.vid-mk { position: absolute; left: 41%; top: -4px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--flag); }
.js .tile .vid-mk { opacity: 0; } .tile.in .vid-mk { animation: popIn .4s 2.8s var(--spring) forwards; }
.vid-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; } .vid-btns { display: flex; gap: .45rem; } .vid-btns i { font-style: normal; }
.vid-note { display: flex; gap: .45rem; padding: .4rem .5rem; border-radius: 8px; background: #FBF4E6; font-size: .72rem; line-height: 1.4; }
.vid-note b { color: #8A6A2E; letter-spacing: 0; font-variant-numeric: tabular-nums; flex: none; }
.js .tile .vid-note { opacity: 0; transform: translateY(4px); } .tile.in .vid-note { animation: slideIn .5s 3.1s var(--ease) forwards; }
.vid-next { list-style: none; margin: .1rem 0 0; padding: .45rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.vid-next li { display: grid; grid-template-columns: auto 1fr auto; gap: .45rem; align-items: center; font-size: .72rem; color: var(--ink); }
.vid-next svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vid-next em { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; } .vid-next .off em { color: var(--ok); } .vid-next .off svg { stroke: var(--ok); }
@media (max-width: 560px) { .gp { grid-template-columns: 1fr; } .lib { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Know why you miss questions (drawn in the app's dark theme) */
.t-perf { background: var(--deep); border-color: var(--deep); }
.t-perf .t-text h3 { color: #fff; } .t-perf .t-text p:last-child { color: rgba(255, 255, 255, .72); } .t-perf .step { color: var(--sand); } .t-perf .step span { color: rgba(255, 255, 255, .45); }
.pf { background: #131A19; border-color: #24302E; color: #E4E9E7; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); padding: .9rem 1rem 1rem; }
.pf-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pf-k div { background: #1A2221; border: 1px solid #26312F; border-radius: 10px; padding: .5rem .65rem; display: grid; }
.pf-k small { font-size: .64rem; color: #9DA9A6; } .pf-k b { font: 600 1.05rem var(--head); font-variant-numeric: tabular-nums; color: #fff; } .pf-k b span { font: 400 .7rem var(--ui); color: #9DA9A6; }
.pf-h { color: #9DA9A6; margin: .85rem 0 .45rem; }
.pf-rows { display: grid; gap: .32rem; }
.pf-rows div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 2.2rem; align-items: center; gap: .7rem; padding: .32rem .1rem; border-bottom: 1px solid #222C2A; }
.pf-rows div:last-child { border-bottom: 0; }
.pf-rows span { display: grid; font-size: .78rem; line-height: 1.3; } .pf-rows small { color: #75817E; font-size: .66rem; }
.pf-rows i { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #34B3AA var(--w), #222C2A var(--w)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.pf-rows .win i { background: linear-gradient(90deg, var(--sand) var(--w), #222C2A var(--w)); }
.tile.in .pf-rows i { transform: none; }
.tile.in .pf-rows div:nth-child(2) i { transition-delay: .12s; } .tile.in .pf-rows div:nth-child(3) i { transition-delay: .24s; } .tile.in .pf-rows div:nth-child(4) i { transition-delay: .36s; } .tile.in .pf-rows div:nth-child(5) i { transition-delay: .48s; }
.pf-rows b { font: 600 .9rem var(--head); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .pf-rows div { grid-template-columns: minmax(0, 1fr) 70px 1.8rem; } }

/* A plan that counts down */
.pl { padding: .9rem 1rem 1rem; display: grid; gap: .8rem; }
.pl-top { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.pl-ring { position: relative; width: 96px; height: 96px; }
.pl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 8; } .pl-ring .r0 { stroke: var(--surface-2); }
.pl-ring .r1 { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s .5s var(--ease); }
.tile.in .pl-ring .r1, html:not(.js) .pl-ring .r1 { stroke-dashoffset: 30; }
.pl-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pl-ring b { font: 600 1.45rem/1 var(--head); color: var(--deep); font-variant-numeric: tabular-nums; } .pl-ring small { font-size: .6rem; color: var(--muted); line-height: 1.2; margin-top: .15rem; }
.pl-pace small, .pl-ex small { display: block; font: 600 .62rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pl-pace b { display: block; font: 600 1.05rem var(--head); color: var(--ink); } .pl-pace span { color: var(--muted); font-size: .74rem; }
.pl-heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.pl-heat i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.pl-heat .l1 { background: #CFE7E3; } .pl-heat .l2 { background: #8FCBC4; } .pl-heat .l3 { background: var(--bright); } .pl-heat .l4 { background: var(--teal); }
.js .tile .pl-heat i { opacity: 0; transform: scale(.4); } .tile.in .pl-heat i { animation: cellIn .35s var(--ease) forwards; animation-delay: calc(.6s + var(--d)); }
.pl-ex { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .2rem .8rem; } .pl-ex small { grid-column: 1 / -1; }
.spark { width: 100%; height: 40px; overflow: visible; } .spark polyline { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s 1s var(--ease); }
.tile.in .spark polyline, html:not(.js) .spark polyline { stroke-dashoffset: 0; } .spark circle { fill: var(--white); stroke: var(--teal); stroke-width: 2.4; }
.pl-ex span { font-size: .74rem; color: var(--muted); white-space: nowrap; } .pl-ex span b { color: var(--ok); font-weight: 600; }

/* Devices */
.devices { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: 1rem; padding: 1.2rem 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.dv-ic { display: flex; align-items: flex-end; gap: .3rem; color: var(--teal); }
.dv-ic svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dv-ic svg:nth-child(1) { width: 26px; height: 26px; } .dv-ic svg:nth-child(2) { width: 34px; height: 34px; } .dv-ic svg:nth-child(3) { width: 46px; height: 46px; }
.dv-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dv-list li { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: start; }
.dv-list svg { grid-row: span 2; width: 18px; height: 18px; margin-top: .15rem; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dv-list b { font-size: .9rem; font-weight: 600; } .dv-list span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) { .dv-ic { display: none; } .dv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dv-list { grid-template-columns: 1fr; } .devices { padding: 1.2rem; } }

/* ---------- Exams: routes from Pakistan ---------- */
.ex-sec { background: var(--surface); border-block: 1px solid var(--line); }
.map { position: relative; aspect-ratio: 1000 / 414; max-width: 1100px; margin: 0 auto clamp(1.5rem, 3vw, 2.4rem); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-dots { fill: none; stroke: #D9D2C1; stroke-width: 3.5; stroke-linecap: round; }
@property --mr { syntax: '<length>'; inherits: false; initial-value: 1800px; }
.map-svg { -webkit-mask-image: radial-gradient(circle var(--mr) at 68.7% 32.9%, #000 80%, transparent 100%); mask-image: radial-gradient(circle var(--mr) at 68.7% 32.9%, #000 80%, transparent 100%); }
.js .map:not(.in) .map-svg { --mr: 0px; }
.js .map.in .map-svg { animation: mapIn 2.2s var(--ease) both; }
.arc { fill: none; stroke-linecap: round; transition: stroke .2s, stroke-width .2s, opacity .2s; }
.arc.live { stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
.map.in .arc.live { animation: draw 1.5s var(--ease) forwards; animation-delay: calc(1s + var(--i) * .22s); }
.arc.soon { stroke: #C9A86A; stroke-width: 1.4; stroke-dasharray: 2 6; opacity: 0; }
.map.in .arc.soon { animation: fadeIn .8s forwards; animation-delay: calc(1.4s + var(--i) * .22s); }
.arc.hl { stroke-width: 2.6; opacity: 1; }
.trav { fill: var(--bright); }
.map-pins { position: absolute; inset: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15, 110, 106, .14); transition: transform .25s var(--spring); }
.pin.soon i { background: var(--surface); border: 2px solid #C9A86A; box-shadow: none; }
.pin.home i { left: -8px; top: -8px; width: 16px; height: 16px; background: var(--deep); border: 3px solid var(--sand); box-shadow: none; }
.pin.home i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--teal); opacity: 0; }
.map.run .pin.home i::after { animation: pulse 2.6s 2.2s ease-out infinite; }
.pin b { position: absolute; white-space: nowrap; font: 600 .78rem var(--ui); color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: .22rem .55rem; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(20, 30, 28, .25); transition: border-color .2s, transform .25s var(--ease); }
.pin b small { font-weight: 500; color: var(--faint); margin-left: .15rem; }
.pin.soon b { color: var(--muted); border-style: dashed; }
.pin[data-lab="n"] b { left: 0; bottom: 12px; transform: translateX(-50%); } .pin[data-lab="s"] b { left: 0; top: 12px; transform: translateX(-50%); }
.pin[data-lab="e"] b { left: 14px; top: 0; transform: translateY(-50%); } .pin[data-lab="w"] b { right: 14px; top: 0; transform: translateY(-50%); }
.pin.hl i { transform: scale(1.35); } .pin.hl b { border-color: var(--teal); }
.js .map:not(.in) .pin { opacity: 0; }
.map.in .pin { animation: popIn .5s var(--spring) backwards; animation-delay: 1.9s; } .map.in .pin.home { animation-delay: .2s; }
@media (max-width: 700px) { .map-dots { stroke-width: 4.5; } .pin b { font-size: .62rem; padding: .12rem .38rem; } .pin b small { display: none; } .pin i { transform: scale(.8); } }
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem 1.15rem; transition: border-color .2s, box-shadow .25s; }
.route:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.js .route { opacity: 0; transform: translateY(14px); } .route.in { animation: rise .7s var(--ease) forwards; }
.route:nth-child(2).in { animation-delay: .08s; } .route:nth-child(3).in { animation-delay: .16s; } .route:nth-child(4).in { animation-delay: .24s; } .route:nth-child(n+5).in { animation-delay: .3s; }
.route header { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.route h3 { font-size: 1.02rem; margin: 0; }
.r-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(15, 110, 106, .14); }
.route.soon .r-dot { background: none; border: 2px solid #C9A86A; box-shadow: none; }
.r-st { margin-left: auto; font: 600 .66rem var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.route.soon .r-st { color: #9C7A3C; }
.route ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.route li { display: grid; gap: .1rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.route li:first-child { padding-top: 0; border-top: 0; }
.route li > b { font: 600 .95rem var(--head); letter-spacing: -.01em; }
.route li > b em { font: 600 .62rem var(--ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #9C7A3C; border: 1px dashed #D9BF8C; padding: .05rem .35rem; border-radius: 5px; vertical-align: 2px; margin-left: .2rem; }
.route li > span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.route li.soon > b { color: var(--muted); }
.inc { display: flex; flex-wrap: wrap; gap: .25rem .7rem; margin-top: .25rem; }
.inc i { display: inline-flex; align-items: center; gap: .3rem; font-style: normal; font-size: .74rem; color: var(--teal); }
.inc svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.route li.soon .inc i { color: var(--faint); }
.news { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.6rem; align-items: baseline; margin-top: clamp(1.5rem, 3vw, 2.2rem); padding: 1.1rem 1.3rem; border: 1px dashed var(--line-2); border-radius: 16px; }
.news-h { margin: 0; font: 600 .72rem var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.news ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.news li { display: flex; gap: .5rem; align-items: baseline; font-size: .9rem; }
.news time { font-size: .74rem; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .news { grid-template-columns: 1fr; } .news ol { display: grid; gap: .5rem; } }

/* Reviews (Admin → Homepage; hidden until there are real ones) */
.rv-grid { columns: 3 300px; column-gap: 1rem; }
.rv { break-inside: avoid; margin: 0 0 1rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.rv blockquote { margin: 0 0 .9rem; } .rv blockquote p { font: 400 1.05rem/1.55 var(--read); margin: 0; }
.rv blockquote p::before { content: "\201C"; } .rv blockquote p::after { content: "\201D"; }
.rv figcaption { display: grid; font-size: .85rem; } .rv figcaption b { font-weight: 600; } .rv figcaption span { color: var(--muted); }

/* ---------- Pricing: the cards rise one after another, then the 1-year badge pops in (index.html adds .in) ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; max-width: 1060px; margin-inline: auto; }
.price { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.7rem 1.6rem 1.6rem; display: flex; flex-direction: column; }
.price h3 { font: 600 .78rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; transition: color .2s; }
.amt { font: 600 2.35rem/1.05 var(--head); letter-spacing: -.035em; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.per { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; font-variant-numeric: tabular-nums; } .per b { color: var(--ink); font-weight: 600; }
.was { font-size: .84rem; color: var(--muted); min-height: 1.4em; margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.incl { list-style: none; padding: 1.1rem 0 0; margin: 1rem 0 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; flex: 1; align-content: start; }
.incl li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.incl li::before { content: ""; position: absolute; left: 0; top: .42rem; width: .55rem; height: .3rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.incl a, details p a[data-ig], details p a[data-fb] { text-decoration: underline; text-underline-offset: 3px; }
.price-main { background: var(--deep); border-color: var(--deep); box-shadow: var(--shadow-lg); }
.price-main h3, .price-main .per, .price-main .was, .price-main .incl li { color: rgba(255, 255, 255, .74); }
.price-main .amt { color: #fff; } .price-main .per b { color: var(--sand); } .price-main .incl { border-color: rgba(255, 255, 255, .14); }
.price-main .incl li::before { border-color: var(--sand); }
.price-main .was s { color: rgba(255, 255, 255, .6); }
.badge { position: absolute; top: 1.5rem; right: 1.4rem; font: 600 .74rem var(--ui); background: var(--sand); color: var(--deep); padding: .26rem .66rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.price { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.price:hover { transform: translateY(-8px); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 22px 44px -18px rgba(8, 61, 59, .3); }
.price:hover h3 { color: var(--teal); }
.price-main:hover { border-color: var(--bright); box-shadow: 0 0 0 2px var(--bright), 0 30px 60px -24px rgba(8, 61, 59, .55); } .price-main:hover h3 { color: var(--sand); }
.price .badge { transition: transform .3s var(--ease); } .price:hover .badge { transform: scale(1.08); }
.js .prices .price { opacity: 0; }
.prices.in .price { opacity: 1; animation: rise .8s var(--ease) backwards; }
.prices.in .price:nth-child(2) { animation-delay: .14s; }
.prices.in .price-main { animation: rise .8s .28s var(--ease) backwards, ringDark 1.6s 1.1s ease-out 2; }
.prices.in .amt, .prices.in .per { animation: fadeUp .6s var(--ease) backwards; }
.prices.in .price:nth-child(1) .amt { animation-delay: .25s; } .prices.in .price:nth-child(2) .amt { animation-delay: .4s; } .prices.in .price:nth-child(3) .amt { animation-delay: .55s; }
.prices.in .price:nth-child(1) .per { animation-delay: .32s; } .prices.in .price:nth-child(2) .per { animation-delay: .47s; } .prices.in .price:nth-child(3) .per { animation-delay: .62s; }
.prices.in .badge { animation: popIn .5s .85s var(--spring) backwards; }
.every { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem .5rem; margin: 1.6rem auto 0; font-size: .86rem; color: var(--muted); max-width: 1060px; }
.every > b { font: 600 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-right: .3rem; }
.every > span { padding: .22rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem auto 0; max-width: 1060px; }
.pay-c { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--line-2); border-radius: 16px; }
.pay-c svg { width: 22px; height: 22px; margin-top: .15rem; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay h4 { font-size: 1rem; margin-bottom: .3rem; } .pay p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 520px; } .price-main { order: -1; } .pay { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Ambassadors ---------- */
.amb-sec { background: var(--deep); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.amb-sec::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -320px; border-radius: 50%; border: 1px solid rgba(235, 211, 168, .14); box-shadow: 0 0 0 90px rgba(235, 211, 168, .025), 0 0 0 200px rgba(235, 211, 168, .02); pointer-events: none; }
.amb-sec .kicker { color: var(--sand); } .amb-sec .kicker::before { background: var(--sand); }
.amb-sec h2 { color: #fff; font-size: clamp(1.85rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.amb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.amb-copy > p { font-size: 1.05rem; max-width: 34em; }
.amb-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; position: relative; }
.amb-steps::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .18); transform-origin: top; }
.js .amb-steps::before { transform: scaleY(0); transition: transform 1.2s .2s var(--ease); } .amb-steps.in::before { transform: none; }
.amb-steps li { counter-increment: s; position: relative; display: grid; padding: .85rem 0 .85rem 3.6rem; }
.amb-steps li::before { content: counter(s); position: absolute; left: 0; top: .7rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); border: 1px solid rgba(235, 211, 168, .45); color: var(--sand); font: 600 .9rem var(--head); }
.amb-steps li > b { color: #fff; font: 600 1.05rem var(--head); letter-spacing: -.01em; } .amb-steps li > span { color: rgba(255, 255, 255, .66); font-size: .92rem; } .amb-steps li > span b { color: var(--sand); }
.js .amb-steps li { opacity: 0; transform: translateX(-8px); } .amb-steps.in li { animation: slideIn .6s var(--ease) forwards; }
.amb-steps.in li:nth-child(2) { animation-delay: .2s; } .amb-steps.in li:nth-child(3) { animation-delay: .4s; } .amb-steps.in li:nth-child(4) { animation-delay: .6s; }
@media (max-width: 860px) { .amb { grid-template-columns: 1fr; } }

/* ---------- FAQ and contact ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 600 1.02rem var(--head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq summary:hover { color: var(--teal); }
.faq details p { color: var(--muted); margin: -.2rem 0 1.2rem; max-width: 62ch; }
.faq details[open] p { animation: fadeUp .3s var(--ease); }
.contact { position: sticky; top: 92px; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.contact h3 { font-size: 1.35rem; } .contact > p { color: var(--muted); font-size: .95rem; }
.contact-list { display: grid; gap: .5rem; }
.c-item { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: .75rem .95rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .15s, background .15s; }
.c-item:hover { border-color: var(--teal); background: var(--white); }
.c-item svg { grid-row: span 2; width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-item small { color: var(--muted); font-size: .74rem; line-height: 1.2; } .c-item span { font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .contact { position: static; } }

/* ---------- The WorldMD orbit (logo motif) before the footer ---------- */
.orbit-band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ob-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ob-in h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.035em; } .ob-in p:not(.kicker) { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.ob-vis { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1.4; margin-inline: auto; }
.o-ring { position: absolute; inset: 6% 0; border: 2.5px solid var(--teal); border-radius: 50%; transform: rotate(-18deg); }
.o-ring.r2 { inset: 18% 10%; border: 1.5px solid var(--sand); animation: oSpin 28s linear infinite reverse; }
.o-dot { position: absolute; inset: 6% 0; transform: rotate(-18deg); animation: oSpin 10s linear infinite; }
.o-dot::after { content: ""; position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(15, 110, 106, .12); }
.o-pill { position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 2.3; transform: translate(-50%, -50%); display: flex; border-radius: 999px; overflow: hidden; box-shadow: 0 12px 30px -10px rgba(8, 61, 59, .35); animation: oFloat 7s ease-in-out infinite; }
.o-pill span { flex: 1; display: grid; place-items: center; font: 600 clamp(1.6rem, 4vw, 2.4rem) var(--head); }
.o-pill span:first-child { background: var(--teal); color: #fff; } .o-pill span:last-child { background: var(--sand); color: var(--deep); }
@media (max-width: 760px) { .ob-in { grid-template-columns: 1fr; text-align: center; } .ob-in .kicker { justify-content: center; } .ob-vis { max-width: 280px; } }

/* ---------- Footer ---------- */
.foot { padding: 3rem 0 1.5rem; font-size: .9rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.foot-brand img { height: 44px; width: auto; margin: -6px 0 .4rem -5px; } .foot-brand p { color: var(--muted); }
.foot h4 { font: 600 .74rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.foot nav a { display: block; color: var(--ink); padding: .22rem 0; } .foot nav a:hover { color: var(--teal); }
.foot-b { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.2rem; color: var(--faint); font-size: .8rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* (i) tip bubble, in case one is used here */
.tip-pop { position: fixed; z-index: 300; max-width: min(300px, calc(100vw - 24px)); background: var(--ink); color: var(--bg); font: 400 .82rem/1.5 var(--ui); padding: .55rem .75rem; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .14s; }
.tip-pop.on { opacity: 1; }

/* Legal pages share the top bar and footer */
.legal .legal-lead { color: var(--ink); } .legal p, .legal li { color: #3D4744; } .legal-contact { background: var(--surface); border-color: var(--line); }
.legal-toc a { border-color: var(--line); text-decoration: none; } .legal-lead { border-color: var(--line); }

/* ---------- Motion ---------- */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }
.js .hero-copy > * { animation: fadeUp .7s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .05s; } .js .hero-copy > :nth-child(3) { animation-delay: .12s; } .js .hero-copy > :nth-child(4) { animation-delay: .18s; } .js .hero-copy > :nth-child(n+5) { animation-delay: .24s; }
.js .hero h1 span { animation: riseLine .9s var(--ease) both; } .js .hero h1 span + span { animation-delay: .1s; }
.js .demo { animation: demoIn 1.1s .15s var(--ease) both; }
.js .dm-sat { opacity: 0; animation: fadeIn 1s 1.2s forwards; }
[data-run]:not(.run) *, [data-run]:not(.run) *::before, [data-run]:not(.run) *::after { animation-play-state: paused !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes riseLine { from { opacity: 0; transform: translateY(.35em); } }
@keyframes demoIn { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes slideIn { to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; } }
@keyframes ringDark { 0% { box-shadow: 0 0 0 0 rgba(43, 163, 156, .45), var(--shadow-lg); } 100% { box-shadow: 0 0 0 16px rgba(43, 163, 156, 0), var(--shadow-lg); } }
@keyframes ring1 { from { opacity: .7; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
@keyframes tkDraw { to { stroke-dashoffset: 0; } }
@keyframes tabFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chipOn { to { background: var(--accent-soft); color: var(--deep); border-color: #CBE5E1; } }
@keyframes nudge { 40% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(15, 110, 106, .15); } }
@keyframes cellIn { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mapIn { from { --mr: 0px; } to { --mr: 1800px; } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes oSpin { from { transform: rotate(-18deg); } to { transform: rotate(342deg); } }
@keyframes oFloat { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .fade, .js .tile .mini, .js .route, .js .prices .price, .js .amb-steps li, .js .map:not(.in) .pin, .js .tile .ex-copied, .js .tile .vid-mk, .js .tile .vid-note, .js .tile .pl-heat i { opacity: 1 !important; transform: none !important; }
  .js .amb-steps::before { transform: none; } .js .map:not(.in) .map-svg { --mr: 1800px; } .arc.live { stroke-dashoffset: 0; } .arc.soon { opacity: .9; }
  .js .tile .lib mark { background-size: 100% 100%; } .cb-range i { width: 58%; } .ex-o i { transform: none; } .pf-rows i { transform: none; } .pl-ring .r1 { stroke-dashoffset: 30; } .spark polyline { stroke-dashoffset: 0; }
  .dm-tilt { transform: none !important; } .dm-back, .qc-cur { display: none; } .qc-tk { stroke-dashoffset: 0; }
  .price:hover { transform: none; } .o-dot { display: none; }
}

/* Link to the limited demo (worldmd.pk/demo), under the features */
.demo-link { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.demo-link:hover { border-color: var(--teal); transform: translateY(-2px); }
.demo-link .dl-k { font: 600 .7rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.demo-link .dl-t { flex: 1; display: grid; gap: .15rem; } .demo-link .dl-t small { color: var(--muted); }
.demo-link .ic { width: 20px; height: 20px; color: var(--teal); flex: none; }
@media (max-width: 560px) { .demo-link { flex-wrap: wrap; gap: .4rem .8rem; } .demo-link .dl-k { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .demo-link:hover { transform: none; } }
