/* ============================================================
   OmnitechRx marketing page styles
   Brand tokens mirror src/OmniTechRx.Web.Shared/wwwroot/css/theme.css
   ============================================================ */

:root {
  /* Brand palette (from the app's design system) */
  --brand-blue: #0B6FB8;
  --brand-blue-dark: #0A5A95;
  --brand-blue-tint: #EFF6FB;
  --brand-teal: #16A6A0;
  --brand-teal-tint: #E6F7F7;
  --brand-green: #2BA84A;
  --brand-green-tint: #E8F7EC;

  /* Neutrals */
  --navy: #1A2733;
  --navy-deep: #0F1B26;
  --text-body: #475467;
  --text-muted: #5A6B7B;
  --surface: #FFFFFF;
  --surface-tint: #F7FAFC;
  --border: #E2E8F0;

  /* Signature gradient */
  --gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-green) 100%);

  /* Type + shape */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-lg: 0 8px 28px rgba(16, 24, 40, .12);

  --header-h: 72px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--brand-blue); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Anchor targets land below the sticky header */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 111, 184, .35);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(11, 111, 184, .45);
}

.btn-white {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(15, 27, 38, .25);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 27, 38, .35);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transition: box-shadow .25s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-logo { width: 40px; height: 40px; border-radius: 9px; }

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav > a:not(.btn) {
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}

.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--gradient);
  transition: right .22s ease;
}

.site-nav > a:not(.btn):hover::after { right: 0; }

.btn-nav { padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}

/* Soft gradient mesh + faint grid — subtle futuristic backdrop */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 12% 8%, rgba(11, 111, 184, .10), transparent 65%),
    radial-gradient(620px 420px at 88% 18%, rgba(22, 166, 160, .10), transparent 65%),
    radial-gradient(560px 400px at 55% 100%, rgba(43, 168, 74, .07), transparent 65%),
    var(--surface);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 111, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 111, 184, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 75% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 35%, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.hero-tagline { font-size: .95rem; font-weight: 500; color: var(--text-muted); }

/* Hero mockup */

.hero-visual { position: relative; }

.mockup-glow {
  position: absolute;
  inset: -18px;
  background: var(--gradient);
  border-radius: 26px;
  opacity: .18;
  filter: blur(28px);
}

.mockup {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #F87171; }
.dot-yellow { background: #FBBF24; }
.dot-green { background: #34D399; }

.mockup-url {
  margin-left: 10px;
  font-size: .72rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 14px;
}

.mockup-body { padding: 18px; }

.mockup-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.mockup-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--gradient);
  flex-shrink: 0;
}

.mockup-search {
  flex: 1;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

.mockup-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-blue-tint);
  border: 2px solid var(--brand-blue);
  flex-shrink: 0;
}

.mockup-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.chip {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.chip-active {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tile-thumb { height: 44px; border-radius: 7px; }
.thumb-blue  { background: linear-gradient(135deg, var(--brand-blue-tint), #CFE6F5); }
.thumb-teal  { background: linear-gradient(135deg, var(--brand-teal-tint), #C6EEEC); }
.thumb-green { background: linear-gradient(135deg, var(--brand-green-tint), #CDEFD6); }
.thumb-mix   { background: linear-gradient(135deg, #CFE6F5, #CDEFD6); }

.tile-line { height: 6px; border-radius: 3px; background: var(--border); }
.tile-line.short { width: 60%; }

.mockup-orders { display: flex; flex-direction: column; gap: 8px; }

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 14px;
}

.order-id { font-size: .76rem; font-weight: 600; color: var(--navy); }

.pill {
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
}

.pill-green { color: #1E7E38; background: var(--brand-green-tint); }
.pill-teal  { color: #0F7B76; background: var(--brand-teal-tint); }
.pill-blue  { color: var(--brand-blue-dark); background: var(--brand-blue-tint); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section-tint { background: var(--surface-tint); }

.section-head { max-width: 720px; margin-bottom: 48px; }

.gradient-rule {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient);
  margin: 18px 0 22px;
}

.section-lede { font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 166, 160, .45);
}

.card h3 { margin-top: 18px; }
.card p { margin-bottom: 0; font-size: .95rem; }

.card-compact { text-align: center; padding: 34px 22px; }
.card-compact h3 { font-size: 1rem; margin-top: 16px; margin-bottom: 0; }
.card-compact .card-icon { margin: 0 auto; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 26px; height: 26px; }

.icon-blue  { color: var(--brand-blue);  background: var(--brand-blue-tint); }
.icon-teal  { color: var(--brand-teal);  background: var(--brand-teal-tint); }
.icon-green { color: var(--brand-green); background: var(--brand-green-tint); }

/* Audience cards (For Doctors and Med Spas) */

.card-audience { padding-top: 0; overflow: hidden; }

.audience-bar {
  height: 5px;
  background: var(--gradient);
  margin: 0 -28px 26px;
}

/* ---------- Why Clinics (benefits) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-copy .btn { margin-top: 8px; }

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.benefit-list li {
  position: relative;
  padding: 14px 18px 14px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--navy);
  font-size: .95rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center / 13px no-repeat,
    var(--gradient);
}

/* ---------- Steps (How It Works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line behind the step numbers (desktop) */
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--gradient);
  opacity: .35;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 28px 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.step-num {
  width: 54px; height: 54px;
  margin: -27px auto 18px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 111, 184, .4);
}

.step p { margin-bottom: 0; font-size: .95rem; }

/* ---------- Final CTA band ---------- */

.cta-band {
  position: relative;
  padding: 96px 0;
  background: var(--gradient);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .10) 0, transparent 34%);
}

.cta-inner { position: relative; text-align: center; max-width: 680px; }

.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.cta-inner p {
  color: rgba(255, 255, 255, .92);
  font-size: 1.12rem;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #A9B8C6;
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.brand-footer .brand-name { color: #fff; }

.footer-desc { margin: 18px 0 14px; font-size: .95rem; max-width: 30em; }

.footer-app-link { font-weight: 600; color: #6FD0CB; }
.footer-app-link:hover { color: #9BE3DF; }

.footer-disclaimer { font-size: .8rem; line-height: 1.7; color: #7E8FA0; }

.footer-copy { font-size: .8rem; color: #7E8FA0; margin: 18px 0 0; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .step { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { align-items: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
}

@media (max-width: 860px) {
  .cols-3 { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }

  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }

  .site-nav.open { transform: none; opacity: 1; visibility: visible; }

  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav > a:not(.btn)::after { display: none; }

  .btn-nav { margin-top: 16px; text-align: center; }
}

@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
  .mockup-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding-bottom: 72px; }
  .btn-lg { width: 100%; text-align: center; }
}
