:root {
  --red: #e30613;
  --red-hover: #c10510;
  --navy: #001a3f;
  --navy-mid: #002d62;
  --text: #2b2f36;
  --muted: #5c6370;
  --line: #e6e8ee;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 26, 63, 0.08);
  --radius: 5px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--red);
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn.active {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--red-hover);
}

.btn-demo {
  padding: 11px 18px;
  font-size: 12px;
  white-space: nowrap;
}

.nav-demo {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 68vh;
  background: var(--navy) url("assets/hero-consent.png") center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 26, 63, 0.68) 0%,
    rgba(0, 26, 63, 0.32) 42%,
    rgba(0, 26, 63, 0.08) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 72px 0;
  color: var(--white);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.btn-hero {
  padding: 14px 22px;
  font-size: 13px;
}

/* Feature grid */
.features {
  padding: 56px 0 72px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
  min-height: 100%;
}

a.feature-card {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.feature-card:hover {
  border-color: var(--red);
  box-shadow: 0 20px 42px rgba(0, 26, 63, 0.18);
  transform: translateY(-8px);
}

a.feature-card:hover h2,
a.feature-card:hover .feature-card-cta {
  color: var(--red);
}

a.feature-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.feature-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.feature-card-cta::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.2s ease;
}

a.feature-card:hover .feature-card-cta::after {
  transform: translateX(6px);
}

.consent-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h2 {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Dental consent pathway */
.dental-hero {
  padding: 28px 0 12px;
  background: var(--white);
}

.dental-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  min-height: 340px;
  background: #071833;
  border-radius: 18px;
  overflow: hidden;
}

.dental-banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px 48px 52px;
  color: var(--white);
}

.dental-banner h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.dental-banner p {
  max-width: 440px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.dental-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-banner {
  padding: 13px 18px;
  font-size: 13px;
}

.btn.btn-outline {
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
}

.btn.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.dental-banner-media {
  position: relative;
  min-height: 260px;
}

.dental-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.dental-steps {
  padding: 52px 0 28px;
  background: var(--white);
}

.dental-steps h2,
.dental-procedures h2 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.step-card {
  background: var(--white);
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  padding: 20px 18px 22px;
  box-shadow: 0 1px 2px rgba(0, 26, 63, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card h3 {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.step-card h3,
.step-card h3 span,
.step-card p {
  transition: color 0.2s ease;
}

.step-card h3 span {
  color: var(--red);
  font-weight: 800;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step-card:hover {
  background: #071833;
  border-color: #071833;
  box-shadow: 0 16px 36px rgba(7, 24, 51, 0.16);
}

.step-card:hover h3,
.step-card:hover h3 span,
.step-card:hover p {
  color: var(--white);
}

.step-card:hover p {
  color: rgba(255, 255, 255, 0.84);
}

.steps-note {
  margin-top: 22px;
  max-width: 920px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}

.dental-procedures {
  margin-top: 36px;
  padding: 48px 0 72px;
  background: #f3f5f8;
}

.procedure-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-bottom: 16px;
}

.procedure-list li {
  background: var(--white);
  border: 1px solid #e3e6ee;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 26, 63, 0.04);
}

.procedure-more {
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.procedure-more:hover {
  color: var(--red-hover);
}

.video-dialog {
  width: min(920px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #071833;
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-dialog::backdrop {
  background: rgba(0, 15, 40, 0.78);
}

.video-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 18px;
}

.video-dialog-bar p {
  font-size: 14px;
  font-weight: 700;
}

.video-dialog-bar button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.video-dialog-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.video-dialog video {
  width: 100%;
  max-height: calc(100vh - 120px);
  display: block;
  background: #000;
}

.video-fallback {
  padding: 8px 18px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* Title-only pages */
.title-page {
  min-height: calc(100vh - 79px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.title-page h1 {
  color: var(--navy);
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Book a Demo form */
.demo-form {
  padding: 48px 0 80px;
  background: var(--white);
}

.demo-form-inner {
  max-width: 760px;
}

.demo-form iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Our Team / About */
.about-intro {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
}

.about-intro-inner {
  max-width: 760px;
}

.about-intro .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.about-intro h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.about-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
}

.our-story {
  padding: 64px 0 72px;
  background: var(--white);
}

.story-inner {
  max-width: 760px;
}

.our-story h2,
.team-heading h2 {
  color: var(--navy);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.our-story p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.our-story p:last-child {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 600;
}

.our-team {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 80px;
}

.team-heading {
  margin-bottom: 36px;
}

.team-heading h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.team-tagline {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.team-member {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--navy-mid);
  padding: 28px;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--white);
  border: 3px solid var(--white);
}

.team-member-copy h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.team-role {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.team-member-copy p:last-child {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* Regulations */
.regulations {
  padding: 64px 0 80px;
  background: var(--white);
}

.regulations-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
}

.regulation-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

.regulation-icon {
  width: 56px;
  height: 56px;
}

.regulation-icon svg {
  width: 100%;
  height: 100%;
}

.regulation-copy h2 {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.regulation-meta {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.regulation-copy p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #000f28;
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--red);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 36px;
}

.footer-mark {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.footer-mark span:first-child {
  color: var(--white);
}

.footer-mark span:last-child {
  color: var(--red);
}

.footer-brand p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
}

.footer-base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-inner > .btn-demo {
    display: none;
  }

  .nav-demo {
    display: inline-flex;
  }

  .logo img {
    height: 32px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 58vh;
  }

  .team-member {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .dental-banner {
    grid-template-columns: 1fr;
  }

  .dental-banner-copy {
    padding: 40px 28px 32px;
  }

  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .consent-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 0 28px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .about-intro,
  .our-team,
  .regulations {
    padding: 48px 0 52px;
  }

  .demo-form {
    padding: 32px 0 56px;
  }

  .regulation-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }

  .our-story {
    padding: 48px 0;
  }

  .team-member {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .team-member img {
    width: min(220px, 100%);
  }

  .dental-banner {
    grid-template-columns: 1fr;
  }

  .dental-banner-copy {
    padding: 32px 24px 28px;
  }

  .dental-banner-media {
    min-height: 220px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }
}
