/* Dentisapp Design System v1 (app redesign) applied to the website.
   Tokens mirror Dentisapp-app/docs/DESIGN_SYSTEM.md / ds_tokens.dart.
   Pricing (#Early-Access), the contact form (#contact-section) and the footer
   keep their original design: every rule below is scoped away from them. */
:root {
  --ds-accent: #0066B4; --ds-accent-bright: #0078D4; --ds-accent-soft: #E5EEF6;
  --ds-text: #1B1B1B; --ds-text2: #5F5F5F; --ds-stroke: #E5E5E5; --ds-stroke-control: #D1D1D1;
  --ds-sidebar: #F8F8F8; --ds-surface: #FFFFFF; --ds-success: #107C10; --ds-critical: #C42B1C;
  --ds-radius-control: 4px; --ds-radius-card: 8px;
  --ds-shadow-2: 0 8px 16px rgba(0,0,0,.10), 0 0 2px rgba(0,0,0,.08);
}

:is(h1, h2, h3, h4, h5, h6, p, a, li, .title):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *) { font-family: Outfit, "Noto Sans Arabic", sans-serif; }
p:not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *) { color: var(--ds-text2); }
:is(h1, h2, h3, .title):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *) { color: var(--ds-text); font-weight: 600; letter-spacing: -0.01em; }

/* No decorative colour */
.early-access-features img[src*="Blur"] { display: none !important; }
.hero-highlight { color: var(--ds-accent) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.hero-highlight::after { display: none !important; }
#Solutions.grey-section { background: var(--ds-sidebar) !important; }

/* Buttons: one filled (accent), others outline */
:is(.button, .w-button):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *) {
  background: var(--ds-accent) !important; color: #fff !important;
  border: 1px solid var(--ds-accent) !important; border-radius: var(--ds-radius-control) !important;
  box-shadow: none !important; font-weight: 600; transform: none !important;
}
:is(.button, .w-button):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *):hover { background: #005A9E !important; border-color: #005A9E !important; }
:is(.button.outline, .button.hero-btn-outline, .button.white):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *) {
  background: var(--ds-surface) !important; color: var(--ds-text) !important; border: 1px solid var(--ds-stroke-control) !important;
}
:is(.button.outline, .button.hero-btn-outline, .button.white):not(:is(#Early-Access, #contact-section, .footer-wrapper, .footer-copyright-holder, .footer-divider) *):hover { background: var(--ds-sidebar) !important; }

/* Badges / tags */
.hero-badge, .early-access-tag-holder {
  background: var(--ds-accent-soft) !important; color: var(--ds-accent) !important;
  border: 0 !important; border-radius: var(--ds-radius-control) !important; box-shadow: none !important; font-weight: 600; font-size: 12px;
}
.hero-badge-dot { background: var(--ds-accent-bright) !important; box-shadow: none !important; }
.early-access-tag-container { background: transparent !important; }

/* Cards */
.hero-video-wrapper { background: var(--ds-surface) !important; border: 1px solid var(--ds-stroke) !important; border-radius: var(--ds-radius-card) !important; box-shadow: none !important; }

/* Navbar */
.navbar { background: rgba(255,255,255,.92) !important; backdrop-filter: blur(8px); border-bottom: 1px solid var(--ds-stroke) !important; box-shadow: none !important; }
.navbar a:hover { color: var(--ds-accent) !important; }

/* Feature screenshots: full redesigned screen, inside the container */
.early-access-card { min-width: 0 !important; flex: 1 1 60%; perspective: none; overflow: visible; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.early-access-content-holder { flex: 1 1 40%; min-width: 0 !important; }
.early-access-image {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10 !important; object-fit: contain !important;
  border: 1px solid var(--ds-stroke); border-radius: var(--ds-radius-card) !important; box-shadow: var(--ds-shadow-2) !important; background: #fff;
}
@media (max-width: 991px) { .early-access-gird, .early-access-gird.reverse { flex-direction: column !important; } }

/* ---------- Mobile first (phones < 768px) ---------- */
@media (max-width: 767px) {
  .section:not(#Early-Access):not(#contact-section) { padding-top: 48px !important; padding-bottom: 48px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-section { padding-top: 96px !important; padding-bottom: 32px !important; min-height: 0 !important; }
  .hero-title { font-size: 34px !important; line-height: 1.15 !important; }
  .title { font-size: 26px !important; line-height: 1.2 !important; }
  .hero-cta-holder { flex-direction: column; gap: 12px; width: 100%; padding: 0 16px; box-sizing: border-box; }
  .hero-cta-holder .button { width: 100%; justify-content: center; min-height: 48px; }

  /* Feature rows: screenshot first, then text; one tight column */
  .early-access-wrapper { gap: 56px !important; grid-row-gap: 56px !important; }
  .early-access-gird, .early-access-gird.reverse { flex-direction: column !important; gap: 20px !important; }
  .early-access-content-holder { grid-row-gap: 12px !important; gap: 12px !important; }
  .early-access-button-holder .button { width: 100%; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  /* Phone screenshots (portrait) are shown at phone size, centred */
  .early-access-card picture:has(source[srcset*="phone-"]) .early-access-image {
    aspect-ratio: auto !important; width: 78%; max-width: 300px; margin: 0 auto; border-radius: 20px !important; border: 6px solid #1B1B1B;
  }
  .power-feature-background-holder-copy, .power-backbround { display: none !important; }
  .navbar .button, .w-nav-link { min-height: 44px; }
}

/* No decorative motion */
.whatsapp-float, [class*="whatsapp"] { animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 767px) {
  .early-access-content-holder { order: 1 !important; }
  .early-access-card { order: 2 !important; width: 100% !important; }
  .early-access-button-holder, .early-access-button-holder .button { width: 100% !important; box-sizing: border-box; }
}
