/* Hira Pharmacy website — shared styles (landing page + release notes). */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1324;
  --ink-2: #26324d;
  --muted: #5a6781;
  --line: #e6e9f1;
  --line-2: #d6dce9;
  --bg: #ffffff;
  --soft: #f5f7fc;
  --soft-2: #edf1fa;

  --navy-950: #060d24;
  --navy-900: #0a1536;
  --navy-800: #10215a;
  --navy-700: #16296b;
  --navy-600: #1e3a8a;
  --navy-500: #2f55c4;
  --navy-200: #c9d5f5;
  --navy-100: #e4eafb;
  --navy-50: #f1f4fd;

  --green-950: #052e16;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;

  --amber-600: #b45309;
  --amber-100: #fef3c7;
  --red-600: #b91c1c;
  --red-100: #fee2e2;

  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, 0.05), 0 1px 3px rgba(11, 19, 36, 0.06);
  --shadow-md: 0 12px 28px -14px rgba(11, 19, 36, 0.22), 0 2px 6px rgba(11, 19, 36, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(6, 13, 36, 0.55);
  --font: 'Inter Variable', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss03';
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
section { scroll-margin-top: 80px; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 650; font-size: 0.97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: 12px; border: 1px solid transparent; padding: 12px 22px; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .2s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-500); color: var(--green-950); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 28px -10px rgba(34, 197, 94, 0.75); }
.btn-primary:hover { background: var(--green-400); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 34px -10px rgba(34, 197, 94, 0.85); }
.btn-ghost { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.36); }
.btn-outline { background: #fff; color: var(--navy-600); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--navy-500); background: var(--navy-50); }
.btn-dark { background: var(--navy-600); color: #fff; box-shadow: 0 10px 22px -12px rgba(30, 58, 138, 0.8); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- announcement + nav ---------- */
.announce { background: linear-gradient(90deg, #07102c, #0e2260 50%, #07102c); color: var(--navy-200); font-size: 0.9rem; text-align: center; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.announce a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.announce b { color: var(--green-400); font-weight: 700; }

.nav { position: sticky; top: 0; z-index: 60; background: rgba(6, 13, 36, 0.94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; }
.nav-links { display: none; gap: 4px; margin-left: 20px; }
.nav-links a { color: var(--navy-200); text-decoration: none; font-weight: 550; font-size: 0.94rem; padding: 8px 12px; border-radius: 9px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 15px; font-size: 0.9rem; border-radius: 10px; }
.nav-cta .btn-ghost { display: none; }
.nav-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; cursor: pointer; }
.nav-menu { display: none; border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0 16px; }
.nav-menu.open { display: block; }
.nav-menu a { display: block; color: var(--navy-200); text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-menu a:last-child { border-bottom: 0; }

/* ---------- section scaffolding ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 44rem; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--green-500); border-radius: 2px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 16px; text-wrap: balance; }

.reveal { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- final CTA + footer ---------- */
.final { position: relative; overflow: hidden; color: #fff; text-align: center; background: radial-gradient(900px 420px at 50% -10%, rgba(34,197,94,.22), transparent 62%), radial-gradient(700px 400px at 100% 100%, rgba(59,100,220,.45), transparent 60%), linear-gradient(165deg, var(--navy-950), var(--navy-700)); }
.final-inner { padding: 104px 0; max-width: 46rem; margin-inline: auto; }
.final h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; }
.final p { color: var(--navy-200); font-size: 1.15rem; margin: 18px auto 0; max-width: 34em; }
.final .cta-row { justify-content: center; margin-top: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

footer { background: var(--navy-950); color: var(--navy-200); font-size: 0.95rem; }
.foot-grid { display: grid; gap: 40px; padding: 64px 0 40px; }
.foot-brand p { margin-top: 14px; max-width: 24em; color: #9fb1dc; }
.foot-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--navy-200); text-decoration: none; padding: 5px 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: #8ea2d3; font-size: 0.9rem; }
.foot-bottom a { color: #fff; font-weight: 600; text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* ---------- download dialog ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(540px, calc(100% - 32px)); box-shadow: 0 50px 100px -24px rgba(0,0,0,.65); color: var(--ink); }
dialog::backdrop { background: rgba(6, 13, 36, 0.66); backdrop-filter: blur(4px); }
.dlg-head { background: linear-gradient(160deg, var(--navy-900), var(--navy-600)); color: #fff; padding: 30px 30px 26px; }
.dlg-head .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--green-500); color: var(--green-950); display: grid; place-items: center; margin-bottom: 16px; }
.dlg-head .tick .ic { width: 1.5em; height: 1.5em; stroke-width: 2.6; }
.dlg-head h2 { font-size: 1.6rem; font-weight: 800; }
.dlg-head p { color: var(--navy-200); margin-top: 8px; font-size: 0.98rem; }
.dlg-head p a { color: #fff; font-weight: 600; }
.dlg-body { padding: 26px 30px 30px; }
.dlg-body ol { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 10px; }
.dlg-body li::marker { color: var(--navy-600); font-weight: 800; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .nav-cta .btn-ghost { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-menu { display: none !important; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.02rem; gap: 9px; }
  .nav-cta .btn-primary .dl-label { display: none; }
  .nav-cta .btn-primary { padding: 9px 12px; }
  .announce { font-size: 0.82rem; padding: 8px 12px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .final-inner { padding: 76px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
