/* =========================================================
   DH Field EMR — damicohealth.com stylesheet
   ========================================================= */

:root {
  --orange: #F68630;
  --orange-dark: #c2590a;
  --cream: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --surface: #fafafa;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --max-w: 1160px;
  --font-body: "Mulish", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Quicksand", var(--font-body);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
.section-light { background: var(--cream); }
.section-white { background: #ffffff; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.brand-logo {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(246,134,48,.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .97rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(246,134,48,.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(246,134,48,.45);
}
.btn-outline {
  background: transparent;
  color: var(--orange-dark);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--orange); }
.btn-light {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { background: var(--cream); color: var(--orange-dark); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-top: 0; }
.hero-lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

/* iPad mockup */
.device {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5.3;
  background: #1f2937;
  border-radius: 34px;
  padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.3), 0 10px 30px -10px rgba(15,23,42,0.2);
  position: relative;
}
.device::before {
  content: "";
  position: absolute;
  inset: auto 0 8px 0;
  margin: 0 auto;
  width: 40%;
  height: 4px;
  background: #374151;
  border-radius: 4px;
}
.device-screen {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mock-bar {
  background: var(--orange);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-bar::before {
  content: "";
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 4px;
  opacity: .9;
}
.mock-body { padding: 14px; display: grid; gap: 10px; flex: 1; }
.mock-card {
  background: var(--cream);
  border: 1px solid #f6d9b6;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.mock-card .mock-title { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--text); }
.mock-row { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.mock-chip {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.mock-chip.green { background: var(--success); }
.mock-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: auto; }
.mock-metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.mock-metric .v { font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 1rem; }
.mock-metric .l { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .device { max-width: 320px; }
}

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.problem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246,134,48,.4);
  box-shadow: var(--shadow-md);
}
.problem-card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.problem-card h3 { margin-bottom: 4px; }
.problem-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Solution grid */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .solution-grid { grid-template-columns: 1fr; }
}
.solution-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.solution-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.solution-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.solution-card p { color: var(--muted); margin: 0; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-cat h3 {
  font-size: 1.1rem;
  color: var(--orange-dark);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--cream);
}
.feature-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-cat li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text);
  font-size: .96rem;
}
.feature-cat li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Platforms */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.platform-card .icon { font-size: 2.6rem; margin-bottom: 10px; }
.platform-card h3 { margin-bottom: 6px; }
.platform-card p { color: var(--muted); margin: 0; }
.platform-note {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
  font-size: 1rem;
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin: 0 auto 32px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: .92rem;
  transition: all .15s ease;
}
.billing-toggle button.active {
  background: var(--orange);
  color: #fff;
}
.billing-wrap { text-align: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(246,134,48,.25);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.price-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--text);
  margin: 12px 0 2px;
}
.price-tag .unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.price-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 20px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: .95rem;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.price-foot {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
  font-size: .95rem;
}

/* Use case */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 860px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
@media (max-width: 500px) { .usecase-list { grid-template-columns: 1fr; } }
.usecase-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .95rem;
}

/* Warning box */
.warning {
  max-width: 880px;
  margin: 0 auto;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 6px solid var(--danger);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.warning h2 {
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 10px;
}
.warning p { color: #7f1d1d; margin-bottom: 12px; }
.warning strong { color: #7f1d1d; }

/* Support */
.support {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.support-email {
  display: inline-block;
  background: var(--cream);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  margin: 10px 0 24px;
}
.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: .97rem;
}
.support-links a {
  color: var(--orange-dark);
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,.92); font-size: 1.15rem; margin-bottom: 28px; }

/* Footer */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 60px 0 28px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f2937;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #9ca3af; max-width: 320px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #d1d5db; }
.footer a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: #9ca3af;
  font-size: .88rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legal pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-meta { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal-page p, .legal-page ul { color: var(--text); }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }

/* Guide pages */
.guide-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.guide-page h1 { font-size: 2.4rem; margin-bottom: 8px; }
.guide-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.guide-page h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.guide-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.guide-page h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--orange-dark);
  scroll-margin-top: 80px;
}
.guide-page p, .guide-page ul, .guide-page ol { color: var(--text); }
.guide-page ul, .guide-page ol { padding-left: 22px; }
.guide-page li { margin-bottom: 6px; }
.guide-page strong { color: var(--text); }
.guide-page code {
  background: var(--cream);
  border: 1px solid #f6d9b6;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .9em;
  color: var(--orange-dark);
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 24px 0 36px;
}
.toc-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
@media (max-width: 600px) { .toc ul { columns: 1; } }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--orange-dark); font-size: .95rem; font-weight: 500; }
.toc a:hover { color: var(--orange); }

/* Callouts */
.callout {
  border-left: 4px solid var(--orange);
  background: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.callout.warning {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}
.callout-title { font-weight: 700; margin-bottom: 0.25rem; }
.callout p:last-child { margin-bottom: 0; }

/* Guides hub */
.guides-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: block;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(246,134,48,.4);
  color: var(--text);
}
.guide-card h3 {
  font-size: 1.25rem;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.guide-card p { color: var(--muted); margin: 0; }

/* Pricing info banner */
.pricing-info-banner {
  max-width: 880px;
  margin: 0 auto 28px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #1e3a8a;
  font-size: .98rem;
  text-align: center;
}
.pricing-info-banner strong { color: #1e3a8a; }
.price-foot-extra {
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
  font-size: .88rem;
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(246,134,48,.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
