/* BarzegarRx: prior authorization service.
   Visual DNA borrowed from alephps.com (dark glowing hero, grid texture,
   gradient headline words, navy stat band, image cards, reveal motion),
   pushed more colorful: each audience owns a hue. */
:root {
  --navy: #0a1f3c;
  --navy-2: #0f2a52;
  --ink: #16283a;
  --body: #40546b;
  --mute: #7b8fa1;
  --blue: #2563eb;
  --teal: #14b8a6;
  --violet: #7c3aed;
  --coral: #f97316;
  --pink: #ec4899;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e3eaf3;
  --radius: 18px;
  --max: 1160px;
  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.01em; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-size: 1rem; font-weight: 600; }
.brand .rx { background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navlinks { display: flex; align-items: center; gap: 24px; font-size: .95rem; color: var(--body); font-weight: 500; margin-left: auto; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--navy); }
.navlinks a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.mobile-menu { display: none; }

/* buttons: rectangular with arrow (alephps winning formula) */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; font-weight: 600; padding: 13px 22px; font-size: .97rem; transition: transform .15s ease, box-shadow .15s ease, background .15s; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-arrow::after { content: "\2192"; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #1d4ed8); color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.32); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* hero */
.hero { position: relative; overflow: hidden; color: #eaf1fa;
  background:
    radial-gradient(1000px 560px at 82% -10%, rgba(124,58,237,.30), transparent 60%),
    radial-gradient(900px 520px at 4% 110%, rgba(20,184,166,.26), transparent 55%),
    radial-gradient(700px 400px at 50% 50%, rgba(37,99,235,.18), transparent 70%),
    linear-gradient(180deg, #071731, #0a1f3c 70%, #0c2447);
  background-size: 130% 130%, 130% 130%, 100% 100%, 100% 100%;
  animation: drift 16s ease-in-out infinite; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(900px 500px at 60% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(900px 500px at 60% 40%, #000, transparent 75%); pointer-events: none; }
@keyframes drift { 0%,100% { background-position: 0% 0%, 100% 100%, 50% 50%, 0 0; } 50% { background-position: 12% 6%, 88% 92%, 50% 50%, 0 0; } }
.hero-inner { position: relative; padding-block: 92px 96px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; color: var(--blue); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18); }
.hero .eyebrow { color: #7cc7ff; background: rgba(124,199,255,.1); border-color: rgba(124,199,255,.28); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); line-height: 1.07; letter-spacing: -0.03em; color: #f4f8fd; margin: 22px 0 18px; }
.grad { background: linear-gradient(120deg, #60a5fa, #5eead4 55%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.16rem; color: #b9c9de; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .9rem; color: #8fa6c4; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5eead4; margin-right: 8px; vertical-align: middle; }

/* hero photo with floating glass status cards */
.hero-visual { position: relative; }
.hero-photo { border-radius: 24px; overflow: hidden; border: 1px solid rgba(148,187,233,.25); box-shadow: 0 30px 80px rgba(2,10,24,.55); aspect-ratio: 5 / 4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.glass { position: absolute; border-radius: 16px; background: rgba(10,31,60,.82); border: 1px solid rgba(148,187,233,.28); box-shadow: 0 20px 50px rgba(2,10,24,.5); padding: 14px 18px; backdrop-filter: blur(10px); color: #eef5fc; animation: float 6s ease-in-out infinite; }
.glass .gk { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fb2e8; }
.glass .gv { font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.glass .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.glass-1 { left: -28px; bottom: 34px; }
.glass-2 { right: -18px; top: 26px; animation-delay: -3s; }
.glass-2 .dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.18); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* page hero (inner pages) */
.page-hero .hero-inner { padding-block: 76px 80px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }

/* stat band */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-block: 46px 22px; }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1.1; background: linear-gradient(120deg, #93c5fd, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(2) b { background-image: linear-gradient(120deg, #c4b5fd, #f0abfc); }
.stat:nth-child(3) b { background-image: linear-gradient(120deg, #fdba74, #fda4af); }
.stat:nth-child(4) b { background-image: linear-gradient(120deg, #6ee7b7, #93c5fd); }
.stat span { color: #b8c7dd; font-size: .93rem; display: block; margin-top: 4px; }
.stats .cite { padding-block: 0 30px; font-size: .8rem; color: #7f93ad; }
.stats .cite a { text-decoration: underline; }

/* sections */
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; }
.sec-lede { color: var(--body); font-size: 1.08rem; max-width: 660px; margin-top: 12px; }
.center { text-align: center; }
.center .sec-lede { margin-left: auto; margin-right: auto; }

/* audience image cards */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.icard:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(10,31,60,.12); }
.icard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.icard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.icard:hover .icard-media img { transform: scale(1.04); }
.icard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,31,60,.35)); }
.icard-bar { height: 5px; }
.icard-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.icard h3 { font-size: 1.22rem; color: var(--navy); letter-spacing: -0.01em; }
.icard p { color: var(--body); font-size: .97rem; flex: 1; }
.more { font-weight: 700; font-size: .93rem; display: inline-flex; gap: 8px; }
.more::after { content: "\2192"; transition: transform .15s; }
.icard:hover .more::after { transform: translateX(3px); }
.hue-teal .icard-bar { background: linear-gradient(90deg, #14b8a6, #22d3ee); } .hue-teal .cat, .hue-teal .more { color: #0d9488; }
.hue-violet .icard-bar { background: linear-gradient(90deg, #7c3aed, #6366f1); } .hue-violet .cat, .hue-violet .more { color: #6d28d9; }
.hue-coral .icard-bar { background: linear-gradient(90deg, #f97316, #ec4899); } .hue-coral .cat, .hue-coral .more { color: #ea580c; }

/* split: photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 26px 60px rgba(10,31,60,.16); }
.split-media .accent { position: absolute; inset: auto -16px -16px auto; width: 58%; height: 58%; border-radius: 22px; z-index: -1; }
.split h2 { margin-top: 14px; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--body); }
.checks li b { color: var(--navy); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--chk, var(--teal)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* steps: the bridge */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step .num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #fff; margin-bottom: 16px; }
.step:nth-child(1) .num { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.step:nth-child(2) .num { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.step:nth-child(3) .num { background: linear-gradient(135deg, #f97316, #ec4899); }
.step:nth-child(4) .num { background: linear-gradient(135deg, #0d9488, #22c55e); }
.step h3 { font-size: 1.06rem; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--body); font-size: .94rem; }

/* bridge diagram */
.bridge { margin: 48px auto 0; max-width: 880px; }
.bridge svg { width: 100%; height: auto; }

/* promise band */
.promise { position: relative; overflow: hidden; border-radius: 26px; padding: 56px 48px; color: #fff; background: linear-gradient(120deg, #1d4ed8, #7c3aed 50%, #db2777); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.promise::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 90% 10%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.promise h2 { color: #fff; position: relative; }
.promise p { color: rgba(255,255,255,.86); margin-top: 12px; font-size: 1.06rem; position: relative; }
.promise .big { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; text-align: center; letter-spacing: -0.03em; }
.promise .big small { display: block; font-family: var(--text); font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 10px; }

/* value cards */
.vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .18s, box-shadow .18s; }
.vcard:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10,31,60,.10); }
.vcard .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.vcard .ic svg { width: 24px; height: 24px; }
.vcard h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 6px; }
.vcard p { color: var(--body); font-size: .96rem; }
.ic-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.ic-violet { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.ic-coral { background: linear-gradient(135deg, #f97316, #fb7185); }
.ic-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.ic-pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.ic-green { background: linear-gradient(135deg, #16a34a, #4ade80); }

/* about teaser */
.about-card { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: center; }
.portrait { position: relative; }
.portrait img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; position: relative; z-index: 1; }
.portrait::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border-radius: 24px; background: linear-gradient(135deg, #2563eb, #14b8a6 60%, #a78bfa); }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.creds span { font-size: .84rem; font-weight: 600; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.about-body p { color: var(--body); margin-top: 14px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--body); margin-top: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 0 24px 60px rgba(10,31,60,.08); }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 16px; }
.form input, .form textarea, .form select { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fbfdff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid rgba(37,99,235,.35); border-color: var(--blue); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.roles input { position: absolute; opacity: 0; }
.roles label { margin: 0; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 6px; cursor: pointer; font-size: .88rem; position: relative; transition: border-color .15s, background .15s; }
.roles label:has(input:checked) { border-color: var(--blue); background: rgba(37,99,235,.06); color: var(--blue); }
.roles label:has(input:focus-visible) { outline: 2px solid var(--blue); }
.fine { font-size: .84rem; color: var(--mute); margin-top: 12px; }
.contact-side h2 { margin-top: 14px; }
.contact-side .sec-lede { margin-bottom: 26px; }
.contact-line { display: flex; gap: 14px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); color: var(--body); }
.contact-line .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line b { display: block; color: var(--navy); }

/* CTA band */
.band { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(700px 300px at 15% 0%, rgba(20,184,166,.28), transparent 60%),
  radial-gradient(700px 300px at 85% 100%, rgba(124,58,237,.32), transparent 60%),
  linear-gradient(120deg, var(--navy), var(--navy-2)); }
.band-inner { padding-block: 80px; text-align: center; position: relative; }
.band h2 { color: #fff; }
.band p { color: #c3d2e6; max-width: 580px; margin: 12px auto 30px; font-size: 1.06rem; }
.band .hero-ctas { justify-content: center; }

/* footer */
.footer { background: #071731; color: #9fb2cb; font-size: .92rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; padding-block: 52px 26px; flex-wrap: wrap; }
.foot-brand .brand { color: #fff; }
.foot-brand p { max-width: 320px; margin-top: 12px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col b { display: block; color: #dbe6f4; margin-bottom: 12px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.foot-col a { display: block; margin-bottom: 8px; }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7f93ad; }

/* motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero, .glass { animation: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-inner, .split, .about-card, .contact-grid, .promise { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-inner { padding-block: 60px 64px; gap: 40px; }
  .glass-1 { left: 12px; bottom: 12px; } .glass-2 { right: 12px; top: 12px; }
  .icards, .vcards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-card .portrait { max-width: 300px; }
  .navlinks { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 70px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 16px; }
  .mobile-menu a { padding-block: 12px; font-weight: 500; color: var(--navy); border-top: 1px solid var(--line); }
  .promise { padding: 40px 28px; }
  .section { padding-block: 68px; }
}
@media (max-width: 560px) {
  .steps, .stats-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .glass { display: none; }
  .form { padding: 24px; }
}
