/* DentEase marketing site. Plain CSS, no build step. */

:root {
  --blue: #1565C0;
  --blue-deep: #0B3D7A;
  --blue-soft: #E8F0FB;
  --orange: #F5A623;
  --ink: #1F2933;
  --muted: #4F5B66;
  --line: #D9DEE5;
  --surface: #FFFFFF;
  --surface-alt: #F5F8FC;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(11, 61, 122, 0.12);
  --gutter: 16px;
  --max: 1120px;
  --header-h: 68px;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Poppins", "Nunito", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--blue-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.section-head { max-width: 680px; margin: 0 0 36px; }
.section-head p { color: var(--muted); }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue-deep); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 40px; height: 40px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(11, 61, 122, 0.08);
  padding: 8px var(--gutter) 20px;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.site-nav li a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-actions { display: grid; gap: 12px; }
.nav-signin { text-align: center; padding: 12px; font-weight: 700; text-decoration: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 24px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
  }
  .site-nav li a {
    padding: 6px 0;
    border: 0;
    color: var(--muted);
  }
  .site-nav li a:hover { color: var(--blue); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .nav-signin { padding: 10px 8px; color: var(--blue); text-decoration: none; }
  .nav-actions .btn { min-height: 44px; padding: 10px 18px; }
}

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, #F3F7FD 0%, #fff 100%); }
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.hero-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-soft);
  aspect-ratio: 4 / 3;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* Split layout */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}

.spot { margin: 0; }
.spot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }

/* Screenshot frame (CSS-only browser chrome) */
.frame {
  position: relative;
  margin: 0;
  padding-top: 28px;
  background: #F4F6F9;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background:
    radial-gradient(circle at 12px 14px, #C4CCD8 3.5px, transparent 4px),
    radial-gradient(circle at 26px 14px, #C4CCD8 3.5px, transparent 4px),
    radial-gradient(circle at 40px 14px, #C4CCD8 3.5px, transparent 4px),
    #E9EEF4;
  border-bottom: 1px solid var(--line);
}
.frame img { width: 100%; height: auto; }
/* The phone shot is cropped to the top of the screen so its card stays the
   height of its row instead of stretching the grid. */
.frame--phone { width: 170px; max-width: 100%; margin: 0 auto; border-radius: 18px; }
.frame--phone img { aspect-ratio: 390 / 460; object-fit: cover; object-position: top; }

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 620px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.feature-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.feature-head h3 { margin: 0; }
.feature p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.feature .frame { margin-top: auto; }
.feature .frame--phone { margin-top: auto; }

/* Tour */
.video-wrap { margin: 0; }
.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius);
  background: #0F2F57;
  box-shadow: var(--shadow);
}
.video-wrap figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.tiers {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  min-width: 0;
}
.tier--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.tier-tag {
  position: absolute;
  top: -14px;
  left: 24px;
  margin: 0;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #B9D0F0;
}
.tier-icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.tier .price { margin: 4px 0 4px; color: var(--muted); font-size: 0.95rem; }
.tier .price strong {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  color: var(--ink);
  margin-right: 4px;
}
.tier-fit { color: var(--muted); font-size: 0.98rem; min-height: 3.2em; }
.tier .check-list { margin-top: 8px; margin-bottom: 24px; }
.tier .check-list li { font-size: 0.98rem; }
.tier .btn { margin-top: auto; }
.pricing-fine {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 46em;
}

/* Trust */
.trust-head { display: flex; align-items: center; gap: 16px; }
.trust-head img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.trust-head h2 { margin: 0; }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.3rem;
  line-height: 32px;
  text-align: center;
  font-weight: 700;
}
.faq details[open] summary::after { content: "-"; }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 4px 18px; color: var(--muted); margin: 0; }

/* Closing CTA */
.cta {
  background: var(--blue);
  color: #fff;
  padding: 64px 0;
}
.cta h2 { color: #fff; }
.cta p { color: #E3EEFB; max-width: 40em; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: var(--blue-deep); }
.cta .btn-primary:hover { background: var(--blue-soft); color: var(--blue-deep); }
.cta :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer {
  background: #0F2F57;
  color: #C9D6E8;
  padding: 48px 0 28px;
  font-size: 0.98rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #BBD6FA; }
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-grid strong { color: #fff; font-family: "Poppins", sans-serif; }
.footer-grid p { margin: 6px 0 0; max-width: 28em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.copyright { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #2A4D7A; font-size: 0.9rem; color: #A9BCD6; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links ul { grid-auto-flow: column; gap: 28px; }
}
.site-footer :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

.trust-lead { margin-top: 16px; }
