/* ==========================================================================
   Pharma by DoctorG -- marketing site design system
   Static, no-build, one stylesheet for every page.
   Sections: 1 tokens - 2 base - 3 buttons - 4 chrome - 5 hero - 6 sections
   7 components - 8 forms - 9 motion - 10 responsive
   ========================================================================== */

/* 1 -- Tokens ------------------------------------------------------------- */
:root {
  /* brand: pharmacy green, distinct from the DoctorG navy/blue platform brand */
  --brand-900: #0b3d2e;
  --brand-800: #0f5138;
  --brand-700: #136945;
  --brand-600: #178a56;
  --brand-500: #1fa868;
  --brand-400: #3ec488;
  --brand-200: #b9ebd0;
  --brand-100: #e1f7ea;
  --brand-50: #f3fbf6;

  /* the DoctorG platform navy, used sparingly to signal "part of DoctorG" */
  --dg-900: #202c66;
  --dg-dot: #5170ff;

  --amber-500: #f5a524;
  --amber-100: #fdf0d8;
  --red-600: #c23b3b;
  --red-100: #fbe8e8;

  --ink: #0c1b16;
  --ink-2: #23392f;
  --muted: #5c7568;
  --muted-2: #839b8d;
  --line: #dcede2;
  --line-2: #ecf7f0;
  --surface: #ffffff;
  --tint: #f5fbf7;
  --tint-2: #eef8f2;

  --grad-brand: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 60%, var(--dg-900) 130%);
  --grad-deep: linear-gradient(150deg, #0f5138 0%, #136945 55%, #202c66 130%);
  --ring: 0 0 0 4px rgba(31, 168, 104, 0.18);
  --sh-xs: 0 1px 2px rgba(12, 27, 20, 0.06);
  --sh-sm: 0 4px 14px rgba(12, 27, 20, 0.07);
  --sh-md: 0 12px 32px rgba(12, 27, 20, 0.1);
  --sh-lg: 0 26px 60px rgba(12, 27, 20, 0.14);
  --sh-brand: 0 14px 30px rgba(23, 138, 86, 0.28);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --content: 1180px;
  --gutter: 24px;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

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

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

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
  color: var(--ink-2);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow .dg-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tint-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.dg-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dg-dot);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
}

/* 3 -- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  text-decoration: none;
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* 4 -- Chrome -------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--sh-brand);
}

.brand .name b {
  color: var(--brand-700);
}

.brand .name small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--brand-700);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--brand-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(12, 27, 22, 0.4);
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--sh-lg);
}

.drawer-panel a {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

footer.site-footer {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* 5 -- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background: radial-gradient(1100px 480px at 82% -10%, var(--brand-100), transparent 60%),
    var(--surface);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 14px;
}

.hero .lede {
  margin-top: 18px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-700);
}

.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--grad-deep);
  padding: 30px;
  color: #fff;
  box-shadow: var(--sh-lg);
}

.hero-art .flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-art .flow-step:last-child {
  border-bottom: none;
}

.hero-art .flow-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-art .flow-step h4 {
  color: #fff;
  font-size: 0.98rem;
}

.hero-art .flow-step p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  margin-top: 4px;
}

.page-hero {
  padding: 60px 0 48px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  margin-top: 14px;
}

/* 6 -- Section scaffolding ------------------------------------------------- */
section {
  padding: 76px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 12px;
}

.section-head .lede {
  margin-top: 14px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 7 -- Components ----------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.card .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.94rem;
}

.badge-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 12px;
}

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

.split-panel {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px;
}

.step-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.step-list li:first-child {
  border-top: none;
}

.step-list .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-list h4 {
  font-size: 0.98rem;
}

.step-list p {
  font-size: 0.9rem;
  margin-top: 3px;
}

.panel-dark {
  background: var(--grad-deep);
  border-radius: var(--r-xl);
  color: #fff;
  padding: 54px;
}

.panel-dark h2 {
  color: #fff;
}

.panel-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.scope-note {
  border: 1px dashed var(--brand-400);
  background: var(--brand-50);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.cta-band {
  background: var(--grad-brand);
  border-radius: var(--r-xl);
  padding: 52px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}

.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
}

.store-badge small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
  font-size: 0.92rem;
}

/* 8 -- Forms --------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--sh-sm);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--tint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

.form-success {
  display: none;
  background: var(--brand-100);
  color: var(--brand-800);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-weight: 600;
  margin-top: 18px;
}

.form-success.show {
  display: block;
}

.contact-routes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-routes .route {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-routes .ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 9 -- Motion / reveal ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* legal page */
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 34px;
  margin-bottom: 10px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.legal-body li {
  padding-left: 18px;
  position: relative;
}

.legal-body li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--muted-2);
}

.draft-banner {
  background: var(--amber-100);
  border: 1px solid var(--amber-500);
  color: #7a5410;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 100px 0;
}

.notfound .code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--brand-200);
}

/* 10 -- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav,
  .nav-actions .btn-ghost {
    display: none;
  }
  .drawer-btn {
    display: inline-flex;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 38px 26px;
  }
  .panel-dark {
    padding: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  section {
    padding: 54px 0;
  }
}
