/* ================================================================
   DENTAL LEAD DESK — STYLE SYSTEM
   RhythmWorks AI Premium Build
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTY TOKEN SYSTEM
   ---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-base:        #0a0a0a;
  --bg-raised:      #111111;
  --bg-card:        #161616;
  --bg-section-alt: #0d1a0f;

  /* Accents */
  --accent-primary:   #00e676;
  --accent-highlight: #69f0ae;
  --accent-gold:      #c9a84c;

  /* Text */
  --text-primary: #f5f5f5;
  --text-muted:   #a0a0a0;
  --text-dim:     #6b6b6b;

  /* Borders */
  --border:       rgba(0, 230, 118, 0.15);
  --border-hover: rgba(0, 230, 118, 0.40);

  /* Glow */
  --glow: 0 0 30px rgba(0, 230, 118, 0.15);

  /* Spacing */
  --section-padding: 96px 0;
  --container-max:   1200px;
  --container-pad:   clamp(1.25rem, 5vw, 2.5rem);

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Transitions */
  --transition-fast:   0.18s ease;
  --transition-normal: 0.30s ease;
  --transition-slow:   0.50s ease;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Nav */
  --nav-height: 72px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--accent-highlight);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  list-style: none;
}

/* ----------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent-highlight);
}

/* ----------------------------------------------------------------
   4. CONTAINER
   ---------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ----------------------------------------------------------------
   5. SECTION BASE
   ---------------------------------------------------------------- */
.section {
  padding: var(--section-padding);
  background-color: var(--bg-base);
}

.section.section-alt {
  background-color: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.nav-logo-tagline {
  font-size: 0.68rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-promo-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.30);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.hamburger:hover {
  border-color: var(--border-hover);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem var(--container-pad);
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--text-primary);
}

.mobile-cta {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ----------------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

.btn-md {
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

/* Primary */
.btn-primary {
  background: var(--accent-primary);
  color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 16px rgba(0, 230, 118, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-highlight);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 28px rgba(0, 230, 118, 0.35);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(0, 230, 118, 0.08);
  color: var(--accent-highlight);
  border-color: var(--accent-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15);
}

/* Dark (for promo banner) */
.btn-dark {
  background: #0a0a0a;
  color: var(--accent-primary);
  border: 1.5px solid rgba(10,10,10,0.3);
  box-shadow: none;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: #111;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   8. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 5rem;
  overflow: hidden;
  background: var(--bg-base);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 230, 118, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 230, 118, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Visual Placeholder */
.hero-visual-placeholder {
  position: absolute;
  right: 0;
  top: var(--nav-height);
  bottom: 0;
  width: 42%;
  background: linear-gradient(135deg, #0d1a0f 0%, #0a1410 60%, #0a0a0a 100%);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hero-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-lg);
}

.hero-visual-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  opacity: 0.7;
}

.hero-visual-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 58%;
}

.hero-headline {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.75;
}

/* Promo Block */
.hero-promo-block {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.promo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.promo-value {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.promo-code {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.promo-code strong {
  color: var(--accent-primary);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.promo-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.promo-countdown {
  font-size: 0.85rem;
  color: var(--accent-highlight);
  font-weight: 600;
  min-height: 1.2em;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-primary);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ----------------------------------------------------------------
   9. PROMO BANNER
   ---------------------------------------------------------------- */
.promo-banner {
  background: var(--accent-primary);
  padding: 1.25rem 0;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.promo-banner-text strong {
  font-size: 1rem;
  color: #0a0a0a;
}

.promo-banner-sub {
  font-size: 0.85rem;
  color: rgba(10, 10, 10, 0.7);
}

/* ----------------------------------------------------------------
   10. CARD SYSTEM
   ---------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--glow), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card-icon {
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   11. FEATURES LIST
   ---------------------------------------------------------------- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----------------------------------------------------------------
   12. AUDIT SECTION
   ---------------------------------------------------------------- */
.audit-layout {
  max-width: 900px;
  margin: 0 auto;
}

.audit-value-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.30);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 2.5rem;
}

.audit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.audit-checklist h3,
.audit-cta-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-icon {
  color: var(--accent-primary);
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
  font-weight: 700;
}

.audit-cta-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.audit-urgency {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-highlight);
  margin-bottom: 1.5rem;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.audit-btn {
  width: 100%;
  margin-bottom: 1rem;
}

.audit-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ----------------------------------------------------------------
   13. PRICING CARDS
   ---------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--glow), 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Featured/Bundle Card */
.pricing-card-featured {
  border-color: rgba(0, 230, 118, 0.45);
  background: linear-gradient(160deg, rgba(0, 230, 118, 0.04) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.15), 0 8px 40px rgba(0, 230, 118, 0.12);
  transform: translateY(-6px);
}

.pricing-card-featured:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 230, 118, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.30), 0 0 40px rgba(0, 230, 118, 0.18), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-position {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0.35rem 0;
  line-height: 1.2;
}

.pricing-price {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.pricing-price strong {
  font-size: 2rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.pricing-savings {
  display: inline-block;
  background: rgba(0, 230, 118, 0.10);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.bundle-note {
  font-style: italic;
}

.pricing-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li span {
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.pricing-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ----------------------------------------------------------------
   14. WHY LIST
   ---------------------------------------------------------------- */
.why-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--text-primary);
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.why-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.why-check {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   15. COMPLIANCE DISCLAIMER
   ---------------------------------------------------------------- */
.compliance-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.compliance-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.compliance-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ----------------------------------------------------------------
   16. CONTACT / FORM SECTION
   ---------------------------------------------------------------- */
.contact-layout {
  max-width: 680px;
  margin: 0 auto;
}

.hipaa-note {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-placeholder {
  background: var(--bg-card);
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.form-placeholder-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  opacity: 0.7;
  margin-bottom: 1.75rem;
}

.form-placeholder-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-field-mock {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.required {
  color: var(--accent-primary);
  margin-left: 0.2em;
}

.form-placeholder-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ----------------------------------------------------------------
   17. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-logo-by {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--accent-primary);
  word-break: break-all;
}

.footer-email:hover {
  color: var(--accent-highlight);
}

.footer-bottom {
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-inner span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  font-style: italic;
}

/* ----------------------------------------------------------------
   18. ANIMATION SYSTEM
   ---------------------------------------------------------------- */

/*
  Content is ALWAYS visible without JavaScript.
  When JS runs, it adds .js-animations-ready to <html>
  only then do we apply the hidden initial state.
  This ensures WCAG / no-JS content visibility.
*/

.fade-up  { opacity: 1; transform: translateY(0); }
.fade-in  { opacity: 1; }

.js-animations-ready .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-animations-ready .fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.js-animations-ready .fade-up.visible,
.js-animations-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.js-animations-ready .stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-animations-ready .stagger-children > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   19. REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-animations-ready .fade-up,
  .js-animations-ready .fade-in,
  .js-animations-ready .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-arrow { animation: none; }
  .urgency-dot  { animation: none; }
}

/* ----------------------------------------------------------------
   20. RESPONSIVE — TABLET (max-width: 1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card-featured {
    grid-column: 1 / -1;
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .hero-text {
    max-width: 70%;
  }

  .hero-visual-placeholder {
    width: 35%;
  }
}

/* ----------------------------------------------------------------
   21. RESPONSIVE — MOBILE (max-width: 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  /* Nav */
  .nav-links,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    padding: calc(var(--nav-height) + 2rem) 0 4rem;
    min-height: auto;
  }

  .hero-visual-placeholder {
    display: none;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-promo-block {
    max-width: 100%;
  }

  /* Promo banner */
  .promo-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Audit */
  .audit-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured {
    transform: none;
    grid-column: auto;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .why-list   { max-width: 100%; }
  .features-list { max-width: 100%; }
}

/* ----------------------------------------------------------------
   22. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }

  .hero-headline   { font-size: 2.2rem; }
  .nav-logo-name   { font-size: 1rem; }
  .hero-promo-block { padding: 1.25rem; }
  .compliance-card  { padding: 1.5rem; }

  .audit-value-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* ================================================================
   23. DENTAL DISCOVERY PAGE
   /dental-discovery — post-purchase hidden onboarding page
   ================================================================ */

/* ----------------------------------------------------------------
   Minimal nav override for discovery page
   ---------------------------------------------------------------- */
.nav-minimal {
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.nav-minimal-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
}

/* ----------------------------------------------------------------
   Discovery hero
   ---------------------------------------------------------------- */
.discovery-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

.discovery-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.discovery-hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.discovery-page-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.discovery-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.discovery-subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 1rem;
}

.discovery-support-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* PHI trust notice */
.phi-trust-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
}

.phi-trust-notice p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.phi-trust-notice strong {
  color: #ffc107;
}

.phi-notice-icon {
  font-size: 1.1rem;
  color: #ffc107;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.phi-notice-inline {
  margin: 0 0 1.5rem;
  max-width: 100%;
}

/* ----------------------------------------------------------------
   Discovery form section
   ---------------------------------------------------------------- */
.discovery-form-section {
  padding: 0 0 96px;
  background: var(--bg-base);
}

.discovery-form-container {
  max-width: 860px;
  margin: 0 auto;
}

.form-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.form-intro-text strong {
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   Tally embed zone
   ---------------------------------------------------------------- */
.tally-embed-zone {
  margin-bottom: 2rem;
  min-height: 0;
}

/* ----------------------------------------------------------------
   Form section cards
   ---------------------------------------------------------------- */
.form-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  transition: border-color var(--transition-normal);
}

.form-section-card:focus-within {
  border-color: var(--border-hover);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.form-section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 400;
  margin: 0;
}

/* ----------------------------------------------------------------
   Field rows and groups
   ---------------------------------------------------------------- */
.field-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.field-row-2 { grid-template-columns: 1fr 1fr; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.field-row .field-group {
  margin-bottom: 0;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.field-required {
  color: var(--accent-primary);
  margin-left: 0.2rem;
}

.field-optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.field-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.phi-field-note {
  font-size: 0.75rem;
  color: rgba(255, 193, 7, 0.7);
  line-height: 1.5;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 193, 7, 0.04);
  border-left: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ----------------------------------------------------------------
   Inputs, selects, textareas
   ---------------------------------------------------------------- */
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim);
}

.field-input:hover,
.field-select:hover,
.field-textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 230, 118, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.field-input:invalid:not(:placeholder-shown),
.field-select:invalid:not(:placeholder-shown),
.field-textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 100, 100, 0.5);
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ----------------------------------------------------------------
   Radio and checkbox groups
   ---------------------------------------------------------------- */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.2rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

.radio-option:hover,
.checkbox-option:hover {
  background: rgba(0, 230, 118, 0.05);
  border-color: rgba(0, 230, 118, 0.2);
  color: var(--text-primary);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.35);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   Consent block
   ---------------------------------------------------------------- */
.consent-block {
  background: rgba(0, 230, 118, 0.04);
  border-color: rgba(0, 230, 118, 0.2);
}

.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.consent-checkbox {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  cursor: pointer;
}

.consent-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.consent-checkbox-row:has(.consent-checkbox:checked) .consent-label {
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   Submit section
   ---------------------------------------------------------------- */
.form-submit-section {
  text-align: center;
  padding: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-submit-btn {
  min-width: 240px;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.form-submit-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

.form-submit-routing {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.form-submit-routing strong {
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Success block
   ---------------------------------------------------------------- */
.form-success-block {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.form-success-block[hidden] {
  display: none;
}

.form-success-inner {
  max-width: 520px;
  margin: 0 auto;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.form-success-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.form-success-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.form-success-note a {
  color: var(--accent-primary);
  text-decoration: none;
}

.form-success-note a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   Discovery footer
   ---------------------------------------------------------------- */
.discovery-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.discovery-footer .footer-bottom-inner {
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.discovery-footer-brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Discovery page responsive — tablet
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .discovery-hero {
    padding: 56px 0 48px;
  }

  .discovery-headline {
    font-size: 2rem;
  }

  .form-section-card {
    padding: 1.5rem 1.25rem;
  }

  .field-row-2,
  .field-row-3 {
    grid-template-columns: 1fr;
  }

  .nav-minimal-badge {
    display: none;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
    gap: 0.4rem;
  }

  .radio-option,
  .checkbox-option {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .discovery-headline {
    font-size: 1.75rem;
  }

  .phi-trust-notice {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-section-header {
    gap: 0.75rem;
  }

  .form-section-title {
    font-size: 1.15rem;
  }

  .form-submit-btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   Reduced motion — discovery page
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .field-input,
  .field-select,
  .field-textarea,
  .radio-option,
  .checkbox-option,
  .form-section-card {
    transition: none !important;
  }
}
