:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #12201a;
  --muted: #58665f;
  --primary: #1d5c45;
  --primary-dark: #123c2d;
  --accent: #c86135;
  --accent-soft: #fdebdc;
  --line: #dce5dd;
  --shadow: 0 24px 70px rgba(18, 32, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 247, 0.9);
  border-bottom: 1px solid rgba(220, 229, 221, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.section-band,
.section {
  padding-inline: clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding-block: clamp(54px, 8vw, 104px);
  background:
    radial-gradient(circle at 78% 20%, rgba(29, 92, 69, 0.15), transparent 30%),
    linear-gradient(180deg, #fbfcfa 0%, #f2f7f2 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-text strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 28px rgba(29, 92, 69, 0.22);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--primary-dark);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-preview {
  border: 1px solid rgba(18, 60, 45, 0.14);
  border-radius: 8px;
  background: #10241c;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(16px, 3vw, 26px);
}

.patient-card,
.review-card {
  border-radius: 8px;
  background: #f8faf7;
  padding: clamp(18px, 3vw, 26px);
}

.review-card {
  background: #ffffff;
}

.card-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.patient-card h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.patient-card p,
.review-card dd {
  color: var(--muted);
}

.progress-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.progress-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.progress-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7c5bc;
}

.progress-list .complete::before {
  background: var(--primary);
}

.score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.score span {
  color: var(--muted);
  font-weight: 800;
}

.score strong {
  color: var(--primary);
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--ink);
  font-weight: 900;
}

dd {
  margin: 2px 0 0;
}

.section {
  padding-block: clamp(58px, 8vw, 104px);
}

.narrow {
  max-width: 980px;
}

.narrow p:last-child,
.split p,
.capture-copy p {
  color: var(--muted);
  font-size: 19px;
}

.section.tint {
  background: linear-gradient(180deg, #f3f8f3 0%, #eef4ef 100%);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.section-heading.center {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(34px, 5vw, 56px);
  text-align: center;
}

.section-heading .lead,
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.section-heading.center .lead {
  margin-inline: auto;
}

/* Browser-frame window for product screenshots */
.window {
  margin: 0;
  border: 1px solid rgba(18, 60, 45, 0.16);
  border-radius: 14px;
  background: #10241c;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.window-bar em {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-window {
  transform: perspective(1600px) rotateY(-3deg);
}

/* Screenshot showcase: copy + framed product image */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.showcase.reverse .showcase-copy {
  order: 2;
}

.showcase.subsection {
  margin-top: clamp(40px, 6vw, 72px);
}

.showcase-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.03em;
}

.showcase-copy p {
  color: var(--muted);
  font-size: 18px;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
}

.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
}

.step-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
}

.split,
.capture {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 18px 20px;
  background: white;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  margin-top: 4px;
  color: var(--muted);
}

/* You stay in control: software vs pharmacist */
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.control-col {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  background: white;
}

.control-col.pharmacist {
  border-color: rgba(29, 92, 69, 0.35);
  background: var(--surface-soft);
  box-shadow: 0 18px 50px rgba(18, 32, 26, 0.08);
}

.control-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.control-tag {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 11px;
  background: #eef4ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.control-tag.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.control-col h3 {
  margin: 0;
  font-size: 22px;
}

.control-col ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-col li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-weight: 600;
}

.control-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #c2cfc7;
}

.control-col.pharmacist li::before {
  background: var(--accent);
}

.control-note {
  max-width: 760px;
  margin: 22px auto 0;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
}

/* Safety by design */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.safety-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 24px;
  background: white;
}

.safety-card h3 {
  font-size: 18px;
}

.safety-card p {
  margin: 0;
  color: var(--muted);
}

/* Benefits */
.benefit-grid {
  display: grid;
  gap: 12px;
}

.benefit-card {
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 18px 20px;
  background: white;
}

.benefit-card strong,
.benefit-card span {
  display: block;
}

.benefit-card span {
  margin-top: 5px;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 16px;
}

.capture {
  background: var(--surface-soft);
}

.capture-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.capture-list li {
  position: relative;
  padding-left: 26px;
  color: var(--primary-dark);
  font-weight: 700;
}

.capture-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: white;
  box-shadow: 0 18px 50px rgba(18, 32, 26, 0.08);
}

label {
  display: grid;
  gap: 7px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdad2;
  border-radius: 8px;
  padding: 13px 12px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(29, 92, 69, 0.16);
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

code {
  border-radius: 5px;
  padding: 2px 5px;
  background: #eef4ef;
  color: var(--primary-dark);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .capture {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .showcase.reverse .showcase-copy {
    order: 0;
  }

  .hero-window {
    transform: none;
  }
}

/* Mobile: collapse primary nav into a burger menu */
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    font-size: 16px;
  }

  .nav a {
    padding: 13px 8px;
    border-radius: 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle[aria-expanded="true"] ~ .nav {
    display: flex;
  }
}

@media (max-width: 680px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-bottom: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
