/* ==========================================================================
   RootOnce Landing Page Styles
   AI Workflow Automation for Dental Practices.
   No external fonts — uses system font stack for fast loading.
   ========================================================================== */

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a2332;
  background-color: #ffffff;
}

/* ---------- Skip Link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background-color: #1a6bb5;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a6bb5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ---------- Typography ---------- */

h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #1a6bb5;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #155a96;
}

.btn-outline {
  background-color: transparent;
  color: #1a6bb5;
  border: 2px solid #1a6bb5;
}

.btn-outline:hover {
  background-color: #f0f7ff;
}

.btn-large {
  font-size: 1.125rem;
  padding: 18px 40px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 100px 0 80px;
  background: linear-gradient(170deg, #f0f7ff 0%, #ffffff 60%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: #e1eef9;
  color: #1a6bb5;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 24px;
  color: #0d1b2e;
}

.hero-sub {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ==========================================================================
   Problem / Pain Points
   ========================================================================== */

.problem {
  background-color: #ffffff;
  text-align: center;
}

.problem h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pain-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.pain-point {
  padding: 32px 20px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.pain-stat {
  font-size: 2.25rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 3px solid #dc2626;
  padding-bottom: 4px;
}

.pain-point h3 {
  font-size: 1.1rem;
}

.pain-point p {
  color: #4a5568;
  font-size: 0.9rem;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
  background-color: #f0f7ff;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #1a6bb5;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

/* ==========================================================================
   Offer Stack / Bonuses
   ========================================================================== */

.offer-stack {
  background-color: #ffffff;
  text-align: center;
}

.core-offer {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background-color: #eff6ff;
  border: 2px solid #1a6bb5;
  border-radius: 12px;
  text-align: left;
}

.core-offer h3 {
  font-size: 1.1rem;
  color: #1a6bb5;
  margin-bottom: 8px;
}

.core-offer p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}

.bonuses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.bonus-card {
  padding: 28px 24px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.bonus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bonus-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #1a6bb5;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
}

.bonus-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
  background-color: #f0fdf4;
  padding: 4px 12px;
  border-radius: 12px;
}

.bonus-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.bonus-card p {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bonus-total {
  margin-top: 32px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d1b2e;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  background-color: #f0f7ff;
  text-align: center;
}

.pricing > .container > h2 {
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border: 2px solid #1a6bb5;
  box-shadow: 0 8px 32px rgba(26, 107, 181, 0.12);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a6bb5;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #0d1b2e;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #2d3748;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1a6bb5;
  font-weight: 700;
}

.pricing-best-for {
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
  margin-bottom: 20px;
}

.pricing-card .btn {
  width: 100%;
}

/* Retainer */

.retainer {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 28px 32px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
}

.retainer h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.retainer p {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Comparison Table */

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

.comparison h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
  background-attachment: local, local, scroll, scroll;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.comparison-table thead {
  background-color: #f8fafc;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  font-weight: 600;
  color: #0d1b2e;
  font-size: 0.85rem;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #0d1b2e;
}

.comparison-table .highlight-col {
  background-color: #eff6ff;
  color: #1a6bb5;
  font-weight: 600;
}

.comparison-table thead .highlight-col {
  background-color: #1a6bb5;
  color: #ffffff;
}

/* ==========================================================================
   Guarantee
   ========================================================================== */

.guarantee {
  background-color: #f0fdf4;
  text-align: center;
}

.guarantee-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 2px solid #16a34a;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.12);
}

.guarantee-card h2 {
  color: #15803d;
  margin-bottom: 20px;
}

.guarantee-card p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

/* ==========================================================================
   Case Study Slots
   ========================================================================== */

.case-studies {
  background-color: #f8fafc;
  text-align: center;
}

.slots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.slot:hover {
  text-decoration: none;
  transform: translateY(-4px);
}

.slot-tab {
  width: 48px;
  height: 20px;
  border-radius: 0 0 6px 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.slot-body {
  width: 100%;
  padding: 24px 12px;
  border-radius: 12px;
  text-align: center;
}

.slot-status {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.slot-type {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Claimed slots */
.slot-claimed {
  pointer-events: none;
  opacity: 0.6;
}

.slot-claimed .slot-tab {
  background-color: #94a3b8;
}

.slot-claimed .slot-body {
  background-color: #e2e8f0;
  border: 2px solid #cbd5e1;
}

.slot-claimed .slot-status {
  color: #64748b;
}

.slot-claimed .slot-type {
  color: #64748b;
  text-decoration: line-through;
}

/* Open slots */
.slot-open .slot-tab {
  background-color: #1a6bb5;
}

.slot-open .slot-body {
  background-color: #ffffff;
  border: 2px solid #1a6bb5;
  box-shadow: 0 4px 16px rgba(26, 107, 181, 0.1);
}

.slot-open .slot-status {
  color: #16a34a;
}

.slot-open .slot-type {
  color: #1a6bb5;
}

.slot-open:hover .slot-body {
  border-color: #155a96;
  box-shadow: 0 8px 24px rgba(26, 107, 181, 0.18);
}

.slots-cta {
  margin-top: 8px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background-color: #ffffff;
  text-align: center;
}

.faq h2 {
  margin-bottom: 48px;
}

.faq-list {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

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

.faq-item summary {
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d1b2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #1a6bb5;
}

.faq-item summary:focus-visible {
  outline: 2px solid #1a6bb5;
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a6bb5;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.65;
  padding-bottom: 20px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(170deg, #0d1b2e 0%, #1a3a5c 100%);
  color: #ffffff;
  text-align: center;
  padding: 96px 0;
}

.final-cta h2 {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.final-cta > .container > p:first-of-type {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 40px;
}

.final-cta .btn-primary {
  background-color: #60a5fa;
  color: #0d1b2e;
  font-weight: 700;
}

.final-cta .btn-primary:hover {
  background-color: #93c5fd;
}

/* Booking CTA */

.cta-booking {
  margin-bottom: 8px;
}

.cta-booking .btn {
  font-size: 1.2rem;
  padding: 20px 48px;
}

.cta-booking-sub {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 32px auto;
}

.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.cta-divider span {
  font-size: 0.9rem;
  color: #94a3b8;
  white-space: nowrap;
}

.cta-email {
  margin-top: 20px;
  font-size: 0.95rem;
}

.cta-email a {
  color: #93c5fd;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background-color: #1a3a5c;
  color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #60a5fa;
  background-color: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status-success {
  color: #86efac;
}

.form-status-error {
  color: #fca5a5;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: #0a1420;
  color: #64748b;
  text-align: center;
  padding: 40px 0;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-contact a {
  color: #93c5fd;
}

.footer-address {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-links {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-links a {
  color: #93c5fd;
}

.footer-copyright {
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive — Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .pain-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .bonuses {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
  }

  .pricing-card-featured {
    transform: none;
  }

  .slots {
    gap: 12px;
  }

  .slot {
    width: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .final-cta {
    padding: 72px 0;
  }

  .final-cta h2 {
    font-size: 1.75rem;
  }

  .guarantee-card {
    padding: 36px 28px;
  }
}

/* ==========================================================================
   Responsive — Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero .btn,
  .cta-booking .btn {
    display: block;
    width: 100%;
  }

  .cta-divider span {
    white-space: normal;
    text-align: center;
  }

  .pain-points {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-amount {
    font-size: 2.25rem;
  }

  .section-sub {
    font-size: 1rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 10px;
  }
}
