/* Pharmivo landing page. Brand: navy #14325C, signal green #22B573, Lexend. */
:root {
  --navy: #14325C;
  --navy-900: #0B1F3A;
  --navy-700: #1E4478;
  --green: #22B573;
  --green-ink: #137A4B;     /* green that passes contrast as text on white */
  --green-dark: #2FD38A;    /* green on navy */
  --amber: #A16207;
  --ink: #142033;
  --muted: #55647A;
  --line: #DCE4EE;
  --bg: #FFFFFF;
  --bg-alt: #F3F7FB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,50,92,.06), 0 8px 24px rgba(20,50,92,.08);
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow { color: var(--green-ink); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 1rem var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--green-ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--bg-alt); }
}
@media (max-width: 420px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(900px 420px at 85% 10%, #E5F6EE 0%, rgba(229,246,238,0) 60%), linear-gradient(180deg, #F6F9FC, #fff); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: 80px 0 96px; } }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 36em; }
.urdu { font-family: var(--urdu); color: var(--navy); font-size: 1.35rem; line-height: 2.2; margin: 0 0 1.2em; }
.urdu-sm { font-size: 1rem; margin: 0; color: #C6D3E6; }
.hero-copy .urdu { text-align: left; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

.hero-visual { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(20,50,92,.25), var(--shadow); padding: 20px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.mock-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.pill { font-size: .75rem; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-amber { background: #FDF3DC; color: var(--amber); }
.mock-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mock-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.mock-lines li { display: grid; grid-template-columns: 1fr auto 56px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-alt); font-size: .95rem; }
.mock-lines li span:nth-child(2) { color: var(--muted); }
.mock-lines b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.mock-total { display: flex; justify-content: space-between; align-items: flex-end; }
.mock-total small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mock-total strong { font-size: 2rem; color: var(--navy); font-weight: 600; }
.mock-btn { background: var(--green); color: #06301D; font-weight: 600; padding: 10px 18px; border-radius: 10px; font-size: .95rem; }
.mock-float { position: absolute; right: -16px; bottom: -78px; width: 270px; padding: 14px 16px; border-radius: 14px; }
@media (max-width: 560px) { .mock-float { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; } }
.smart { color: var(--green-ink); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.reorder { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reorder b { display: block; font-weight: 500; color: var(--navy); font-size: .95rem; }
.reorder small { color: var(--muted); font-size: .8rem; }
.mini-btn { border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 4px 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* Strip */
.strip { background: var(--navy); color: #fff; }
.strip-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 800px) { .strip-row { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; font-weight: 600; font-size: 1.1rem; color: #fff; }
.strip span { color: #B9C7DB; font-size: .92rem; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.feature p { color: var(--muted); margin: 0; }
.ficon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: #E8F0FA; align-items: center; justify-content: center; margin-bottom: 16px; }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-smart .ficon { background: #E3F6EC; }
.feature-smart .ficon svg { stroke: var(--green-ink); }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--green-ink); background: #E3F6EC; border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Demo */
.demo-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: .9fr 1.1fr; } }
.demo-grid > div:first-child > p { color: var(--muted); }
.video-box { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(20,50,92,.35); background: var(--navy-900); aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #E3F6EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137A4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; border-top: 1px solid var(--bg-alt); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.price { margin: 0 0 4px; color: var(--navy); }
.price strong { font-size: 2rem; font-weight: 600; }
.price span { color: var(--muted); margin-left: 4px; }
.plan-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan-featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--green); color: #06301D; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin: 0; }
.fineprint { text-align: center; color: var(--muted); font-size: .92rem; margin: 28px 0 0; }

/* Downloads */
.downloads { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 720px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.dl { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; transition: background-color .15s; position: relative; }
.dl:hover { background: var(--navy-700); }
.dl svg { width: 36px; height: 36px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dl[data-download="windows"] svg, .dl[data-download="ios"] svg { fill: #fff; stroke: none; }
.dl small { display: block; color: #B9C7DB; font-size: .8rem; }
.dl strong { display: block; font-size: 1.25rem; font-weight: 600; }
.dl-note { display: block; font-style: normal; color: #B9C7DB; font-size: .78rem; }
.dl.soon::after { content: "Coming soon"; position: absolute; top: 10px; right: 12px; font-size: .68rem; font-weight: 600; background: var(--green-dark); color: #06301D; border-radius: 999px; padding: 2px 8px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 500; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 500; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--green-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form { padding: 32px; } }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 500; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.opt, .hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.hint { margin-top: 4px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,50,92,.12); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { background: var(--navy-900); color: #C6D3E6; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-tag { margin: 0; font-size: .92rem; }
.footer-slogan { color: var(--green-dark); font-weight: 500; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer-h { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.footer a { color: #C6D3E6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.footer-base p { margin: 0; }
