/* ==========================================================================
   Therasoft Dental — marketing site
   Palette:
     --teal        #0E7C78  (primary brand)
     --teal-dark   #0A5F5C  (hover / deep)
     --navy        #12324A  (headings, footer)
     --amber       #E8913C  (warm accent / CTA)
     --amber-dark  #C97425
     --mint        #EAF4F3  (tinted section background)
     --ink         #23343F  (body text)
   Mobile-first. No external fonts. No build step.
   ========================================================================== */

:root {
  --teal: #0E7C78;
  --teal-dark: #0A5F5C;
  --navy: #12324A;
  --amber: #E8913C;
  --amber-dark: #C97425;
  --mint: #EAF4F3;
  --ink: #23343F;
  --muted: #5A6B75;
  --line: #D8E2E1;
  --white: #FFFFFF;
  --ok: #1E8E3E;
  --warn: #B3261E;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 50, 74, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #3A2408;
}
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-secondary:hover { background: var(--mint); color: var(--teal-dark); }
.btn-signin {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  padding: 0.5rem 1.1rem;
}
.btn-signin:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  white-space: nowrap;
}
.brand:hover { color: var(--teal-dark); }
.brand svg { flex: 0 0 auto; }
.brand .brand-dental { color: var(--teal); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.75rem 1.25rem 1.25rem;
}
.nav-menu.open { display: block; }
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-menu a {
  display: block;
  padding: 0.6rem 0.4rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  border-radius: 6px;
}
.nav-menu a:hover { background: var(--mint); color: var(--teal-dark); }
.nav-menu .nav-signin { margin-top: 0.5rem; }

/* Sign-in portal launcher */
.nav-portals { position: relative; margin-top: 0.5rem; }
#portal-toggle { cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 4px; }
.portal-caret { vertical-align: middle; }
/* override .nav-menu ul flex (which would lay these out in a row) */
.nav-portals .portal-menu {
  display: block;
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
}
.portal-menu li { margin: 0; }
.portal-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
}
.portal-menu a:hover,
.portal-menu a:focus-visible { background: var(--mint); color: var(--teal-dark); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--mint) 0%, #ffffff 100%);
  padding: 3rem 0 3.5rem;
}
.hero-agents {
  list-style: none;
  margin: 1.4rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-agents li { margin: 0; }
.hero-agents li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-agents li a:hover,
.hero-agents li a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-agents svg { flex-shrink: 0; }
.hero-agents-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  padding-left: 1.75rem;
}
.hero-mypractice { margin: 0; }
.hero h1 { font-size: 2rem; }
.hero .subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hero-tagline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0.9rem 0 1.1rem;
  max-width: 50ch;
}
.hero-tagline strong { color: var(--navy); font-weight: 700; }
.hero-tagline-icon { flex-shrink: 0; margin-top: 2px; }

.hero-copy-link { margin: 0.75rem 0 0; }
.hero-copy-link a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.hero-copy-link a:hover { text-decoration: underline; }

/* Hero lead-capture form */
.hero-grid { display: block; }
.hero-copy { margin-bottom: 2rem; }
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.lead-form-title { font-size: 1.3rem; margin: 0 0 0.35rem; color: var(--navy); }
.lead-form-sub { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.1rem; }
.lead-form .field { margin-bottom: 0.85rem; }
.lead-form label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.3rem;
}
.lead-form input, .lead-form select {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 120, 0.15);
}
.lead-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.35rem; }
.lead-form-fineprint { font-size: 0.75rem; color: var(--muted); margin: 0.7rem 0 0; }
.lead-form-status {
  margin: 0.8rem 0 0; padding: 0.6rem 0.7rem;
  border-radius: var(--radius); font-size: 0.9rem;
}
.lead-form-status.ok { background: #E6F4EA; color: #14532D; border: 1px solid #A7D8B4; }
.lead-form-status.err { background: #FDECEA; color: #7A1F17; border: 1px solid #F1B0A8; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------------------
   Credibility strip
   -------------------------------------------------------------------------- */
.credibility {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 1.25rem 0;
}
.credibility-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.credibility-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}
.credibility-item svg { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Feature sections
   -------------------------------------------------------------------------- */
.features { padding: 3rem 0 1rem; }
.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}
.features > .container > h2 { text-align: center; }
.features .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: none; }
.feature-figure {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}
.feature-figure svg { width: 100%; max-width: 360px; height: auto; }
.feature h3 { font-size: 1.35rem; }
.feature .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.feature ul {
  margin: 0 0 1em;
  padding-left: 1.2rem;
}
.feature li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   Integration (How it works)
   -------------------------------------------------------------------------- */
.integration {
  background: var(--navy);
  color: #DCE7EE;
  padding: 3.5rem 0;
}
.integration h2 { color: #fff; text-align: center; }
.integration .section-intro {
  text-align: center;
  color: #B8C9D5;
  max-width: 62ch;
  margin: 0 auto 2.5rem;
}
.integration a { color: #9AD5D2; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--amber);
  color: #3A2408;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step h3 { color: #fff; }
.step p { color: #B8C9D5; margin-bottom: 0; }
.integration-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 62ch;
  color: #B8C9D5;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Supporting features (reports / import-export)
   -------------------------------------------------------------------------- */
.supporting { padding: 3rem 0; background: var(--white); }
.supporting h2 { text-align: center; margin-bottom: 2rem; }
.supporting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.supporting-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.supporting-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.supporting-card ul { margin: 0; padding-left: 1.2rem; }
.supporting-card li { margin-bottom: 0.3rem; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing { padding: 3rem 0; background: var(--mint); }
.pricing h2 { text-align: center; }
.plans-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin: 1.75rem auto 0;
}
.pricing .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--teal); position: relative; }
.plan .plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.plan .plan-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.plan ul { margin: 0 0 1.5rem; padding-left: 1.2rem; flex: 1 1 auto; }
.plan li { margin-bottom: 0.4rem; }
.plan .plan-price {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.plan .btn { width: 100%; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { padding: 3rem 0; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq-question:hover { color: var(--teal-dark); }
.faq-question .chev {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink);
}
.faq-answer[hidden] { display: none; }
.faq-answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.final-cta h2 { color: #fff; }
.final-cta p {
  color: #D8ECEA;
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}
.final-cta .btn-primary { font-size: 1.05rem; }
.final-cta .cta-email { margin-top: 1rem; font-size: 0.95rem; }
.final-cta .cta-email a { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #B8C9D5;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #9AD5D2; }
.site-footer a { color: #B8C9D5; }
.site-footer a:hover { color: #fff; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-legal { color: #7E93A3; margin: 0; }
.footer-tagline { color: #7E93A3; margin: 0.5rem 0 0; max-width: 44ch; }

/* --------------------------------------------------------------------------
   Legal pages (privacy / terms)
   -------------------------------------------------------------------------- */
.legal-page { padding: 3rem 0; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 1.9rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-page .legal-updated { color: var(--muted); font-size: 0.95rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-page li { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Desktop layout (≥ 820px)
   -------------------------------------------------------------------------- */
@media (min-width: 820px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero h1 { font-size: 2.9rem; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
  }
  .hero-copy { margin-bottom: 0; padding-top: 0.5rem; }

  .nav-toggle { display: none; }
  .nav-menu {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-menu ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-menu a { padding: 0.5rem 0.75rem; }
  .nav-menu .nav-signin { margin-top: 0; margin-left: 0.5rem; }
  .nav-portals { margin-top: 0; margin-left: 0.5rem; }
  .portal-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 60;
  }

  .credibility-items {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }
  /* Alternate figure/text sides */
  .feature.reverse .feature-figure { order: 2; }
  .feature.reverse .feature-body { order: 1; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .supporting-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
