* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1f2a33;
  --muted: #5c6c78;
  --accent: #0f7b6c;
  --accent-dark: #0a5a4e;
  --warm: #f2eee9;
  --cool: #e9f4f5;
  --sand: #faf7f2;
  --line: #d7dfe3;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--accent);
}

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  max-width: fit-content;
}

.main {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section {
  background: white;
  border-radius: 26px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.section.light {
  background: var(--cool);
}

.section.warm {
  background: var(--warm);
}

.section.split {
  gap: 2rem;
}

.section .eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section h1,
.section h2,
.section h3 {
  margin: 0;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  background: linear-gradient(120deg, rgba(15, 123, 108, 0.12), rgba(255, 255, 255, 0.9));
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-image {
  background-image: url("assets/hero-dental.svg");
  background-size: cover;
  background-position: center;
  min-height: 220px;
  border-radius: 20px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.inline-cta {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card img {
  border-radius: 14px;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat strong {
  font-size: 1.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.timeline span {
  display: block;
  font-weight: 600;
}

.media-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.overlay-box {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  background: white;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  max-width: 220px;
  font-size: 0.9rem;
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.price-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.sticky-cta {
  position: sticky;
  bottom: 1rem;
  align-self: flex-end;
  background: white;
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: white;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 20;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  flex: 1;
  padding: 0.6rem 0.9rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote {
  font-style: italic;
  background: white;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.4rem;
  border-radius: 14px;
}

.section-background {
  background-image: url("assets/pattern.svg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 900px) {
  .layout {
    flex-direction: row;
  }

  .sidebar {
    width: 260px;
    min-height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: none;
    position: sticky;
    top: 0;
    align-self: flex-start;
  }

  .nav-links {
    flex-direction: column;
  }

  .main {
    padding: 2.5rem;
  }

  .section.split {
    flex-direction: row;
    align-items: center;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .hero-image {
    min-height: 280px;
    flex: 1;
  }

  .hero-grid {
    flex-direction: row;
  }

  .cards {
    flex-direction: row;
  }

  .card {
    flex: 1;
  }

  .stats {
    flex-direction: row;
  }

  .stat {
    flex: 1;
  }

  .media-row {
    flex-direction: row;
  }

  .pricing {
    flex-direction: row;
  }

  .price-item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding-right: 1rem;
  }

  .price-item:last-child {
    border-right: none;
    padding-right: 0;
  }

  .form-card {
    flex-direction: row;
  }

  .form-card .form-text {
    flex: 1;
  }

  .form-card form {
    flex: 1;
  }
}
