/* Zohaib Labs — "lab at night" identity with a matching day theme.
   Theme: <html data-theme="light|dark"> set by the switch; no attribute = follow the device (Auto). */
:root {
  --night: #F5F7FC; --deep: #FFFFFF; --line: rgba(22,32,66,.12); --text: #0B1020; --muted: #3A4360;
  --volt: #2547E8; --cyan: #06776E; --ember: #D9651A; --ok: #11965F;
  --glass: rgba(14,19,36,.025); --glass-2: rgba(14,19,36,.05); --nav-bg: rgba(245,247,252,.82);
  --bezel: #1A2033; --ui-bg: #FFFFFF; --ui-dot: #D8DCE8; --net-line: 47,91,255; --net-dot: 10,158,147;
  --shadow: 0 30px 60px -30px rgba(20,30,70,.35); --glow-a: rgba(47,91,255,.10); --orb: .28;
  --on-accent: #FFFFFF; --mark-bg: rgba(217,101,26,.14);
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --night: #070A12; --deep: #0D1220; --line: rgba(160,180,255,.12); --text: #F4F6FC; --muted: #C5CCDD;
  --volt: #4D7CFF; --cyan: #2EE6D6; --ember: #FF8A3D; --ok: #3DDC97;
  --glass: rgba(255,255,255,.03); --glass-2: rgba(255,255,255,.07); --nav-bg: rgba(7,10,18,.72);
  --bezel: #1A2033; --ui-bg: #0F1526; --ui-dot: #2A3350; --net-line: 110,150,255; --net-dot: 46,230,214;
  --shadow: 0 40px 70px -30px #000; --glow-a: rgba(77,124,255,.10); --orb: .55; --mark-bg: rgba(255,138,61,.18);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --night: #070A12; --deep: #0D1220; --line: rgba(160,180,255,.12); --text: #F4F6FC; --muted: #C5CCDD;
  --volt: #4D7CFF; --cyan: #2EE6D6; --ember: #FF8A3D; --ok: #3DDC97;
  --glass: rgba(255,255,255,.03); --glass-2: rgba(255,255,255,.07); --nav-bg: rgba(7,10,18,.72);
  --bezel: #1A2033; --ui-bg: #0F1526; --ui-dot: #2A3350; --net-line: 110,150,255; --net-dot: 46,230,214;
  --shadow: 0 40px 70px -30px #000; --glow-a: rgba(77,124,255,.10); --orb: .55; --mark-bg: rgba(255,138,61,.18);
  color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px) }
a { color: inherit }
img { max-width: 100% }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0 }
p { margin: 0 }
.label, .eyebrow { font: 700 .9rem var(--body); letter-spacing: .01em; color: var(--cyan); margin: 0 }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.muted { color: var(--muted) } .small { font-size: .88rem } .big { font-size: 1.12rem }
.grad { background: linear-gradient(100deg, var(--volt), var(--cyan) 55%, var(--volt)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite }
@keyframes shine { to { background-position: 200% center } }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px }
.skip { position: absolute; left: -999px } .skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--deep); padding: 8px 12px }
mark { background: var(--mark-bg); color: var(--ember); border-radius: 4px; padding: 0 4px }

.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), var(--glow-a), transparent 60%) }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--body); padding: 14px 22px; border-radius: 14px; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--glass); color: var(--text); transition: transform .25s ease, background .25s }
.btn:hover { background: var(--glass-2) }
.btn.primary { border: 0; background: linear-gradient(120deg, var(--volt), #6A5BFF 50%, var(--cyan)); background-size: 200% 100%; color: var(--on-accent); box-shadow: 0 10px 40px -12px rgba(77,124,255,.7); animation: flow 5s ease infinite }
@keyframes flow { 50% { background-position: 100% 0 } }
.btn .arr { transition: transform .25s } .btn:hover .arr { transform: translateX(4px) }

/* nav */
nav.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent }
nav.top.scrolled, nav.top.solid { background: var(--nav-bg); backdrop-filter: blur(14px); border-color: var(--line) }
nav.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 14px }
.brand { display: flex; align-items: center; gap: 11px; font: 700 1.05rem var(--display); text-decoration: none }
.mark { width: 34px; height: 34px; display: block; flex: none }
.links { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: .95rem }
.links a { text-decoration: none; color: var(--muted); position: relative; transition: color .2s }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .25s }
.links a:hover { color: var(--text) } .links a:hover::after { transform: scaleX(1) }
nav.top .btn { padding: 10px 16px; font-size: .9rem }
.theme { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--glass) }
.theme button { border: 0; background: none; color: var(--muted); width: 32px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center }
.theme button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.theme button[aria-pressed="true"] { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line) }


/* hero */
.hero { position: relative; padding-top: 120px; padding-bottom: 70px; overflow: hidden; isolation: isolate }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1 }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--night)); z-index: -1 }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -2; opacity: var(--orb) }
.orb.a { width: 420px; height: 420px; background: var(--volt); top: -80px; right: 8%; animation: drift 14s ease-in-out infinite }
.orb.b { width: 320px; height: 320px; background: var(--cyan); bottom: 40px; left: -60px; opacity: calc(var(--orb) * .55); animation: drift 18s ease-in-out infinite reverse }
@keyframes drift { 50% { transform: translate(40px, 30px) scale(1.1) } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .85rem; color: var(--muted) }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55) } 70%, 100% { box-shadow: 0 0 0 8px rgba(61,220,151,0) } }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 800; margin-top: 22px }
.rot { display: inline-grid; justify-items: start; vertical-align: bottom }
/* Every word sits in the same cell, so the box is as wide as the longest one and never resizes.
   Only the current word is shown; changes wipe in and out from left to right. */
.rot .w { grid-area: 1 / 1; white-space: nowrap; clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.65,0,.35,1);
  background: linear-gradient(100deg, var(--volt), var(--cyan) 55%, var(--volt)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; padding-bottom: .08em }
.rot .w.on { clip-path: inset(0 0 0 0) }
.rot .w.off { clip-path: inset(0 0 0 100%) }
.rot .w.reset { transition: none }
.lede { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 52ch }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px }
.stats div { display: grid }
.stats b { font: 700 2rem var(--display); font-variant-numeric: tabular-nums }
.stats span { font-size: .85rem; color: var(--muted) }
.stage { position: relative; height: 470px; perspective: 1200px; min-width: 0; transition: transform .2s ease-out }
.dev { position: absolute; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 60px -24px rgba(77,124,255,.55) }
.dev img { display: block; width: 100% }
.dev.desk { width: 88%; right: 0; top: 30px; transform: rotateY(-14deg) rotateX(6deg); animation: float 7s ease-in-out infinite }
.dev.ph { width: 34%; left: 0; bottom: 0; border-radius: 26px; border: 6px solid var(--bezel); transform: rotateY(12deg) rotateX(4deg); animation: float 6s ease-in-out infinite -2s }
.dev.ph2 { width: 26%; right: 4%; bottom: -20px; border-radius: 22px; border: 5px solid var(--bezel); transform: rotateY(-10deg); animation: float 8s ease-in-out infinite -4s }
@keyframes float { 50% { translate: 0 -14px } }
.toast { position: absolute; left: 30%; top: 4px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .82rem; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite -1s }
.toast b { color: var(--ok) }
/* One column: the device scene keeps its proportions, so the phones never overlap the text above. */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr } .stage { height: auto; aspect-ratio: 5 / 4; width: 100%; max-width: 620px; margin: 10px auto 0 } }
@media (max-width: 480px) { .toast { display: none } }

/* marquee */
.marq { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--glass) }
.track { display: flex; gap: 46px; width: max-content; animation: slide 32s linear infinite }
.track span { font: 600 1.05rem var(--display); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 46px }
.track span::after { content: "✦"; color: var(--volt); font-size: .8rem }
@keyframes slide { to { transform: translateX(-50%) } }

/* sections */
section { position: relative; z-index: 1; padding-block: clamp(70px, 10vw, 120px) }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 720px }
.head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem) }
.head p { color: var(--muted); font-size: 1.08rem }
.reveal { transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s }
.reveal.pre { transform: translateY(26px); opacity: .25 }

.cur { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); width: max-content }
.cur button { position: relative; z-index: 1; font: 600 .88rem var(--body); border: 0; background: none; color: var(--muted); padding: 8px 18px; cursor: pointer; transition: color .25s }
.cur button[aria-pressed="true"] { color: #fff }
.cur .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: linear-gradient(120deg, var(--volt), var(--cyan)); transition: transform .35s cubic-bezier(.2,.8,.2,1) }
.cur[data-cur="usd"] .knob { transform: translateX(100%) }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px }
.card { position: relative; border-radius: 20px; padding: 28px; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); overflow: hidden; transition: transform .2s ease, border-color .3s; display: grid; gap: 12px; align-content: start }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(77,124,255,.18), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none }
.card:hover { border-color: rgba(77,124,255,.45) } .card:hover::before { opacity: 1 }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(77,124,255,.2), rgba(46,230,214,.12)); border: 1px solid var(--line) }
.ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.card h3 { font-size: 1.15rem; font-weight: 700 }
.card p { color: var(--muted); font-size: .96rem }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--muted) }
.card li::before { content: "→ "; color: var(--cyan) }
.price { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.price small { color: var(--muted) }
.price b { font: 700 1.55rem var(--display); font-variant-numeric: tabular-nums; transition: opacity .2s, transform .2s }
.price b.swap { opacity: 0; transform: translateY(-6px) }
.note { margin-top: 22px; color: var(--muted); font-size: .92rem }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr } }

.work { display: grid; gap: 26px }
.case { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(77,124,255,.08), var(--glass) 45%, rgba(46,230,214,.05)); overflow: hidden }
.case h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800 }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px }
.tag { font: 500 .76rem var(--mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--glass) }
.case p { color: var(--muted) }
.case dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 20px 0 0; font-size: .93rem }
.case dt { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding-top: 3px }
.case dd { margin: 0 }
.go { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--cyan); text-decoration: none }
.shot { position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px; min-width: 0 }
.shot .big { width: 100%; max-width: 560px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.case:hover .shot .big, .case:hover .ui { transform: scale(1.03) rotate(-.6deg) }
.shot .sm { position: absolute; right: -6px; bottom: -26px; width: 30%; max-width: 170px; border-radius: 22px; border: 5px solid var(--bezel); box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.case:hover .shot .sm { transform: translateY(-10px) rotate(3deg) }
@media (max-width: 880px) { .case { grid-template-columns: 1fr } .shot .sm { position: static; margin-left: -16%; align-self: flex-end } }
.ui { width: 100%; max-width: 560px; border-radius: 14px; border: 1px solid var(--line); background: var(--ui-bg); box-shadow: var(--shadow); overflow: hidden; font-size: .78rem; transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.ui .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line) }
.ui .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-dot) } .ui .bar i:first-child { background: #FF5F57 } .ui .bar i:nth-child(2) { background: #FEBC2E } .ui .bar i:nth-child(3) { background: #28C840 }
.ui .body { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 240px }
.ui aside { border-right: 1px solid var(--line); padding: 12px; display: grid; gap: 9px; align-content: start; color: var(--muted) }
.ui aside b { color: var(--text); font-family: var(--display); font-size: .8rem }
.ui main { padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0 }
.ui .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.ui .tile { border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: var(--glass); color: var(--muted) }
.ui .tile b { display: block; color: var(--text); font: 700 1rem var(--display) }
.ui table { width: 100%; border-collapse: collapse }
.ui td { padding: 7px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--muted) }
.ui td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums }
.st { font: 600 .64rem var(--mono); padding: 2px 6px; border-radius: 5px }
.st.ok { background: rgba(61,220,151,.15); color: var(--ok) } .st.due { background: rgba(255,138,61,.15); color: var(--ember) }
.sample { position: absolute; top: -10px; left: 8px; font: 600 .66rem var(--mono); background: var(--deep); color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; z-index: 2 }

.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.prod { border-radius: 22px; padding: 30px; border: 1px solid var(--line); background: radial-gradient(500px circle at 100% 0%, rgba(77,124,255,.14), transparent 60%), var(--glass); display: grid; gap: 12px; align-content: start }
.prod.b { background: radial-gradient(500px circle at 100% 0%, rgba(255,138,61,.13), transparent 60%), var(--glass) }
.prod h3 { font-size: 1.6rem } .prod p { color: var(--muted) } .prod .tags { margin: 4px 0 0 }
@media (max-width: 720px) { .prods { grid-template-columns: 1fr } }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px }
.rail { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line) }
.rail span { display: block; height: 100%; width: var(--fill, 0%); background: linear-gradient(90deg, var(--volt), var(--cyan)); box-shadow: 0 0 12px var(--cyan) }
.step { position: relative; display: grid; gap: 10px; align-content: start }
.dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--display); background: var(--night); border: 2px solid var(--line); transition: border-color .4s, box-shadow .4s, color .4s; color: var(--muted) }
.step.on .dot { border-color: var(--cyan); color: var(--text); box-shadow: 0 0 22px rgba(46,230,214,.4) }
.step h3 { font-size: 1.05rem } .step p { color: var(--muted); font-size: .93rem } .step small { font: .74rem var(--mono); color: var(--cyan) }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr } .rail { display: none } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px) }
@media (max-width: 860px) { .split { grid-template-columns: 1fr } }
.about p { color: var(--muted); font-size: 1.05rem; max-width: 60ch } .about p + p { margin-top: 14px }
.reach { display: grid; gap: 12px; margin-top: 28px }
.reach div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass) }
.reach a, .reach code { font: 600 1rem var(--mono); color: var(--text); text-decoration: none }
.copy { margin-left: auto; font: 600 .78rem var(--body); border: 1px solid var(--line); background: var(--glass); color: var(--muted); border-radius: 8px; padding: 6px 11px; cursor: pointer }
form.quote { position: relative; border-radius: 24px; padding: 28px; display: grid; gap: 14px; background: var(--deep); border: 1px solid var(--line); box-shadow: 0 0 80px -30px rgba(77,124,255,.5) }
form.quote::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: linear-gradient(140deg, var(--volt), transparent 40%, transparent 60%, var(--cyan)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem }
input, select, textarea { font: 400 1rem var(--body); color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: 11px; padding: 12px; width: 100%; transition: border-color .2s, box-shadow .2s }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(77,124,255,.18) }
select option { background: var(--deep); color: var(--text) }
textarea { min-height: 110px; resize: vertical }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px }
@media (max-width: 480px) { .two { grid-template-columns: 1fr } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden }
.out { font-size: .92rem; color: var(--muted) } .out.ok { color: var(--ok); font-weight: 600 } .out.bad { color: var(--ember); font-weight: 600 }

/* footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 44px 30px; color: var(--muted); font-size: .92rem }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: 30px; padding-bottom: 26px }
.fcol { display: grid; gap: 10px; align-content: start }
.fcol p { max-width: 42ch }
.fcol b { color: var(--text); font: 700 .85rem var(--display); margin-bottom: 4px }
.fcol a { color: var(--muted); text-decoration: none; width: max-content; transition: color .2s }
.fcol a:hover { color: var(--cyan) }
.mono-s { font: .8rem var(--mono) }
.fbase { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr } .foot .fcol:first-child { grid-column: 1 / -1 } }

/* legal / text pages */
.page { padding-top: 130px; padding-bottom: 70px; position: relative; z-index: 1 }
.page .wrap { max-width: 820px }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 10px }
.upd { color: var(--muted); font-size: .9rem; margin-top: 10px }
.doc { margin-top: 30px; color: var(--muted); font-size: 1rem }
.doc h2 { color: var(--text); font: 700 1.15rem var(--display); margin: 34px 0 10px }
.doc p, .doc li { max-width: 70ch } .doc p + p { margin-top: 12px }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0 }
.doc b { color: var(--text) }
.doc a { color: var(--cyan) }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px }
.toc a { font: 500 .8rem var(--mono); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted) }
.toc a[aria-current="page"] { color: var(--text); border-color: var(--cyan) }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .reveal.pre { transform: none; opacity: 1 }
}

/* release log (filled automatically from our apps) */
.rel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); overflow: hidden }
.rel li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 16px 22px; border-bottom: 1px dashed var(--line) }
.rel li:last-child { border-bottom: 0 }
.rel time { font: .8rem var(--mono); color: var(--muted); padding-top: 3px }
.rel b { font-weight: 600 }
.rel .tag { margin-left: 8px; font-size: .66rem; padding: 2px 7px; vertical-align: 2px }
.rel small { display: block; color: var(--muted); font-size: .9rem }

/* ===================== v2: multi-page components ===================== */
.brand span:last-child { white-space: nowrap }
.logo-img { height: 34px; width: auto; max-width: 180px; object-fit: contain; border-radius: 8px }
.links > a, .dd-btn { padding-block: 6px }
.links a[aria-current="page"] { color: var(--text) } .links a[aria-current="page"]::after { transform: scaleX(1) }
.dd { position: relative }
.dd-btn { display: inline-flex; align-items: center; gap: 4px }
.dd-btn svg, .burger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.dd-menu { position: absolute; top: calc(100% + 12px); left: -20px; width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-radius: 18px; background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s }
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none }
.dd-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text) }
.dd-menu a::after { display: none }
.dd-menu a:hover { background: var(--glass-2) }
.dd-menu b { font-size: .95rem } .dd-menu span { font-size: .82rem; color: var(--muted); line-height: 1.35 }
.dd-menu .all { grid-column: 1 / -1; color: var(--cyan); font-weight: 700; font-size: .9rem }
.burger { display: none; border: 1px solid var(--line); background: var(--glass); color: var(--text); width: 40px; height: 38px; border-radius: 11px; cursor: pointer; place-items: center }
.mnav { display: grid; gap: 4px; padding: 10px clamp(16px, 4vw, 32px) 20px; background: var(--deep); border-bottom: 1px solid var(--line) }
.mnav a { padding: 10px 4px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line) }
.mnav a.sub { padding-left: 18px; font-weight: 500; color: var(--muted) }
.mnav .btn { margin-top: 12px; justify-content: center; border: 0 }
@media (max-width: 960px) { .links { display: none } .theme { margin-left: auto } .burger { display: grid } nav.top .cta { display: none } }

section.alt { background: var(--glass); border-block: 1px solid var(--line) }
section.tight { padding-block: clamp(46px, 7vw, 80px) }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: none }
.head-side { display: grid; gap: 12px; justify-items: end; color: var(--muted) }
@media (max-width: 700px) { .head-side { justify-items: start } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr } }
.bar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px }

.phead { position: relative; overflow: hidden; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); isolation: isolate }
.phead .orb.a { top: -160px; right: -60px; z-index: -1 }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-top: 12px; max-width: 18ch }
.phead .lede { margin-top: 18px }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px }
.crumbs a { text-decoration: none; color: var(--muted) } .crumbs a:hover { color: var(--cyan) } .crumbs b { color: var(--text); font-weight: 600 }

a.card { text-decoration: none; color: inherit }
.card .more { font-weight: 700; color: var(--cyan); font-size: .92rem }

.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
@media (max-width: 980px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 620px) { .wgrid { grid-template-columns: 1fr } }
.wcard { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s }
.wcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(77,124,255,.45) }
.wimg { aspect-ratio: 16 / 10; overflow: hidden; background: var(--glass-2); border-bottom: 1px solid var(--line) }
.wimg img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1) }
.wcard:hover .wimg img { transform: scale(1.05) }
.wbody { padding: 22px; display: grid; gap: 8px; align-content: start }
.wbody h3 { font-size: 1.35rem } .wbody p { color: var(--muted) } .wbody .tags { margin: 6px 0 0 }
.wcard[hidden] { display: none }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px }
.filters button { font: 600 .92rem var(--body); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--night); border-color: var(--text) }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.why > div { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass) }
.why h3 { font-size: 1.05rem } .why p { color: var(--muted); font-size: .96rem }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr } }

.band { padding-block: clamp(50px, 7vw, 90px) }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 5vw, 52px); border-radius: 28px; background: linear-gradient(120deg, rgba(77,124,255,.16), rgba(46,230,214,.10)); border: 1px solid var(--line) }
.band-in h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem) } .band-in p { color: var(--muted); margin-top: 8px; max-width: 52ch }

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 60px); align-items: start }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr } .svc-side { position: static } }
.svc-main h2, .two-col h2, .case-grid h2 { font-size: 1.5rem; margin: 0 0 16px }
.svc-main h2:not(:first-child) { margin-top: 40px }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; color: var(--text) }
.checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--volt), var(--cyan)) }
.faq { display: grid; gap: 10px }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--glass); padding: 4px 18px }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1 }
.faq details[open] summary::after { content: "–" }
.faq p { color: var(--muted); padding-bottom: 14px }
.svc-side { position: sticky; top: 90px }
.pricebox { display: grid; gap: 14px; padding: 26px; border-radius: 24px; background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow) }
.pricebox .price { margin: 0; padding: 0; border: 0 }
.pricebox .price b { font-size: 2.2rem }
.pricebox dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 6px 0 4px; font-size: .93rem }
.pricebox dt { color: var(--muted) } .pricebox dd { margin: 0; font-weight: 600 }
.btn.wide { width: 100%; justify-content: center }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--deep) }
.ptable { width: 100%; border-collapse: collapse; min-width: 520px }
.ptable th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--line) }
.ptable td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top }
.ptable tr:last-child td { border-bottom: 0 }
.ptable td a { color: var(--text); text-decoration: none } .ptable td a:hover b { color: var(--cyan) }
.ptable td small { display: block; color: var(--muted); margin-top: 2px }
.ptable .num { font: 700 1.15rem var(--display); white-space: nowrap; font-variant-numeric: tabular-nums }
.pricing-more { margin-top: 50px }

.hero-shot { margin: 0 0 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow) }
.hero-shot img { display: block; width: 100% }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 60px); align-items: start }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr } }
.case-grid .btn { margin-top: 22px }
.facts dl { display: grid; gap: 4px; margin: 0; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass) }
.facts dt { font-size: .85rem; color: var(--cyan); font-weight: 700; margin-top: 10px } .facts dt:first-child { margin-top: 0 }
.facts dd { margin: 0 }
.gallery { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap }
.gallery img { height: 420px; max-width: 100%; width: auto; object-fit: contain; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow) }
@media (max-width: 620px) { .gallery img { height: auto; width: 100% } }
.nextp { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 50px; padding: 24px 28px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: var(--glass) }
.nextp b { font: 700 1.3rem var(--display) } .nextp:hover { border-color: var(--cyan) }

.prose p { color: var(--muted); font-size: 1.05rem; max-width: 62ch } .prose p + p { margin-top: 14px }
.steps-v { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s }
.steps-v li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px }
.steps-v li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--cyan); border: 2px solid var(--cyan) }
.steps-v span { color: var(--muted) }
.steps-v.small li::before { width: 28px; height: 28px; font-size: .85rem }
.toolgrid { display: flex; flex-wrap: wrap; gap: 10px }
.toolgrid span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--deep); font-weight: 600 }
.contact-side h3 { font-size: 1.1rem }
form.quote h2 { font-size: 1.5rem }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px }
.quotes figure { margin: 0; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass) }
.quotes blockquote { margin: 0 0 14px; font-size: 1.05rem } .quotes figcaption { color: var(--muted) }
.prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px }
.legal-wrap { max-width: 820px }
.reach .eyebrow { min-width: 92px }
.pill { text-decoration: none }

/* readable, single-family small text (was a mono "typewriter" face) */
.tag, .case dt, .st, .sample, .step small, .reach a, .reach code, .mono-s, .toc a, .rel time { font-family: var(--body); letter-spacing: 0 }
.tag { font-size: .82rem; font-weight: 600 }
.rel time { font-size: .88rem; font-weight: 600 }
.toc a { font-size: .88rem; font-weight: 600 }

/* direct contact: WhatsApp, call, email */
svg.fill { fill: currentColor; stroke: none }
.rbtn svg, .wa-float svg, .btn svg:not(.arr) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none }
.rbtn svg.fill, .wa-float svg.fill, .btn svg.fill { fill: currentColor; stroke: none }
.reachrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.rbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; transition: border-color .2s, transform .2s }
.rbtn:hover { border-color: var(--cyan); transform: translateY(-2px) }
.rbtn.wa { background: #25D366; border-color: #25D366; color: #fff }
.fcol .rbtn { width: auto; color: var(--text) } .fcol .rbtn.wa { color: #fff }
.reachbig { display: grid; gap: 12px; margin-bottom: 18px }
.reachbig .rbtn { padding: 16px 18px; font-size: 1rem }
.reachbig .rbtn span { display: grid; font-weight: 500; color: inherit; opacity: .95 }
.reachbig .rbtn b { font-size: 1.05rem }
.reachbig .rbtn svg { width: 24px; height: 24px }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); animation: wa-pop .6s cubic-bezier(.2,.8,.2,1) 1.2s both }
.wa-float svg { width: 24px; height: 24px }
.wa-float:hover { transform: translateY(-2px) }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: wa-ring 2.4s infinite 2s; pointer-events: none }
@keyframes wa-pop { from { transform: translateY(20px) scale(.9); opacity: 0 } }
@keyframes wa-ring { 70%, 100% { box-shadow: 0 0 0 14px rgba(37,211,102,0) } }
@media (max-width: 560px) { .wa-float span { display: none } .wa-float { padding: 14px } }

.links a.adm { display: inline-flex; align-items: center; gap: 5px }
.links a.adm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }

/* ---- Pakistan pages and blog ---- */
.cards.why { grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (max-width: 600px) { .cards.why { grid-template-columns: 1fr } }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr } }
.post-card img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 6px; aspect-ratio: 16 / 9; object-fit: cover }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; text-wrap: balance }
.article { max-width: 720px; margin-inline: auto; font-size: 1.08rem; line-height: 1.75; color: var(--text) }
.article > * + * { margin-top: 18px }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.25; margin-top: 44px; text-wrap: balance }
.article h3 { font-size: 1.2rem; margin-top: 30px }
.article p, .article li { color: var(--muted) }
.article b { color: var(--text) }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: 8px }
.article a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px }
.article .cover { width: 100%; border-radius: 18px; border: 1px solid var(--line) }
.article .byline { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px }
.fcol p.small a { color: inherit; text-decoration: underline; text-underline-offset: 3px }
