/* ===================================================
   DentRep — Landing Page Styles
   Brand: Editorial, premium B2B, healthcare trust
   =================================================== */

/* --- Custom Properties --- */
:root {
  --slate:      #0F172A;
  --slate-mid:  #1E293B;
  --slate-light:#334155;
  --teal:       #0D7C66;
  --teal-light: #10B981;
  --amber:      #F59E0B;
  --amber-dim: #FCD34D;
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --text:       #0F172A;
  --text-mid:   #475569;
  --text-muted: #94A3B8;
  --border:     #E2E8F0;
  --border-mid: #CBD5E1;
  --danger:     #EF4444;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}

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

/* --- Hero --- */
.hero {
  background: var(--slate);
  color: white;
  padding: 5rem 2rem 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hero-cta-note-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Hero Visual */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  position: relative;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  color: var(--text);
}

.card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Phone mockup */
.hero-card-review { grid-column: 1; grid-row: 1 / 3; }

.card-phone {
  background: #111827;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}

.sms-bubble {
  background: rgba(255,255,255,0.08);
  border-radius: 12px 12px 12px 4px;
  padding: 0.75rem;
}

.sms-text {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.sms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--teal);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
}

.card-dentist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.card-avatar {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
}

.card-dentist-info { display: flex; flex-direction: column; }
.card-dentist-name { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.card-dentist-clinic { font-size: 0.65rem; color: var(--text-muted); }

/* Stars */
.hero-stars {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.star-row {
  display: flex;
  gap: 0.25rem;
}

.star-dot {
  width: 18px;
  height: 18px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-dot-empty { background: var(--border-mid); }

/* QR Code */
.hero-qr {
  grid-column: 2;
  grid-row: 1;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.qr-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.6rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

.qr-cell { border-radius: 2px; }
.qr-cell-dark { background: var(--slate); }
.qr-cell-light { background: var(--bg); }
.qr-cell-long { grid-row: span 2; }
.qr-cell-wide { grid-column: span 2; }

/* AI Approval */
.hero-card-approval {
  grid-column: 2;
  grid-row: 2;
}

.approval-quote {
  font-size: 0.7rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid var(--teal);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.approval-btns {
  display: flex;
  gap: 0.5rem;
}

.approval-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: default;
}

.approval-btn-approve {
  background: var(--teal);
  color: white;
}

.approval-btn-edit {
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem 0 3rem;
}

.hero-stat { flex: 1; padding: 0 2rem; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-sep {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

.hero-stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- Problem --- */
.problem { padding: 7rem 2rem; }
.problem-inner { max-width: 1200px; margin: 0 auto; }

.problem-top {
  margin-bottom: 4rem;
}

.problem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.problem-col { display: flex; flex-direction: column; gap: 1rem; }

.problem-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.problem-card-bad { border-color: #FEE2E2; background: #FFFBFB; }
.problem-card-good { border-color: #D1FAE5; background: #F0FDF4; }
.problem-card-accent { border-color: var(--teal); background: #F0FDFA; box-shadow: 0 4px 20px rgba(13,124,102,0.08); }

.problem-icon { flex-shrink: 0; margin-top: 0.1rem; }

.problem-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.problem-card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- Features --- */
.features { padding: 7rem 2rem; background: var(--bg); }
.features-inner { max-width: 1200px; margin: 0 auto; }

.features-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 40px rgba(15,23,42,0.08);
}

.feature-card-accent {
  border-color: var(--teal);
  background: linear-gradient(135deg, #F0FDFA 0%, var(--surface) 100%);
  box-shadow: 0 4px 24px rgba(13,124,102,0.08);
}

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

.feature-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.8rem;
  color: var(--text-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

/* --- Compliance --- */
.compliance { padding: 7rem 2rem; background: var(--surface); }
.compliance-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.compliance-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.compliance-list { display: flex; flex-direction: column; gap: 1.5rem; }

.compliance-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.compliance-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.compliance-item-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Compliance Visual */
.compliance-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

.compliance-rule-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compliance-rule-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.compliance-sms-demo {
  padding: 1.25rem;
}

.compliance-sms-text {
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.compliance-sms-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.compliance-sms-demo-blocked {
  background: #FEF2F2;
}

.compliance-sms-blocked { color: var(--danger); font-style: italic; }

.compliance-stat {
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.compliance-stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}

.compliance-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- Pricing --- */
.pricing { padding: 7rem 2rem; background: var(--bg); }
.pricing-inner { max-width: 1200px; margin: 0 auto; }

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 1rem;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}

.pricing-card-featured {
  border: 2px solid var(--teal);
  box-shadow: 0 8px 40px rgba(13,124,102,0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier-label {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

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

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.pricing-setup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.pricing-setup-label { font-size: 0.8rem; color: var(--text-muted); }
.pricing-setup-amount { font-size: 0.9rem; font-weight: 700; color: var(--text); }

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

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}

.pricing-features li strong { color: var(--text); }

.pricing-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Closing --- */
.closing {
  background: var(--slate);
  padding: 8rem 2rem;
  text-align: center;
}

.closing-inner { max-width: 800px; margin: 0 auto; }

.closing-badge {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.closing-stat {
  padding: 0 2.5rem;
}

.closing-stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-dim);
  margin-bottom: 0.4rem;
}

.closing-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.closing-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* --- Footer --- */
.footer {
  background: var(--slate);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 2rem 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

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

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-tiers { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
  .compliance-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .problem-split { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-stat-sep { display: none; }
  .hero-stat { padding: 0; }
  .nav-links { display: none; }
  .closing-actions { flex-direction: column; gap: 1.5rem; }
  .closing-divider { display: none; }
  .footer-links { gap: 2rem; flex-wrap: wrap; }
  .pricing-tiers { max-width: 100%; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-card-review { grid-column: 1; grid-row: auto; }
  .hero-stars, .hero-qr, .hero-card-approval { display: none; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
