
  :root {
    --forest: #1B4D2E;
    --forest-md: #2d6b45;
    --forest-lt: #3d8a5a;
    --gold: #8EC63F;
    --gold-dk: #6fa32e;
    --sage: #74B881;
    --bone: #FAFAF8;
    --bone-dk: #f0f0ea;
    --text: #1a1a1a;
    --text-md: #444;
    --text-lt: #777;
    --patient: #1B4D2E;
    --patient-lt: #e8f0e8;
    --patient-md: #2D6A4F;
    --border: #e0e0d8;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f4f4f0; color: var(--text); }
  h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; }

  /* ── Dev nav ── */
  .dev-nav {
    background: #1a1a1a;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .dev-nav span { color: #888; font-size: 11px; font-family: monospace; margin-right: 8px; }
  .dev-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    font-family: monospace;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .dev-nav a:hover, .dev-nav a.active { background: #2d6b45; color: #fff; border-color: #2d6b45; }
  .dev-nav a.patient { border-color: #1B4D2E; }
  .dev-nav a.patient:hover, .dev-nav a.patient.active { background: #1B4D2E; color: #fff; }

  /* ── Tab nav ── */
  .tab-nav {
    background: var(--patient);
    display: flex;
    gap: 2px;
    padding: 0 24px;
    overflow-x: auto;
  }
  .tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    padding: 12px 16px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .tab-btn:hover { color: #fff; }
  .tab-btn.active { color: #fff; border-bottom-color: #7dd0f0; }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── Shared layout ── */
  .page-shell {
    min-height: 100vh;
    background: var(--bone);
  }
  .navbar {
    background: var(--white);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--forest); font-weight: 600; }
  .logo span { color: var(--gold-dk); }
  .nav-links { display: flex; align-items: center; gap: 24px; }
  .nav-link { color: var(--text-md); font-size: 14px; text-decoration: none; font-weight: 500; }
  .nav-link:hover { color: var(--forest); }
  .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
  .btn-primary { background: var(--forest); color: #fff; }
  .btn-primary:hover { background: var(--forest-md); }
  .btn-patient { background: var(--patient); color: #fff; }
  .btn-patient:hover { background: var(--patient-md); }
  .btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
  .btn-outline:hover { background: var(--forest); color: #fff; }
  .btn-outline-patient { background: transparent; color: var(--patient); border: 2px solid var(--patient); }
  .btn-outline-patient:hover { background: var(--patient); color: #fff; }
  .btn-sm { padding: 8px 16px; font-size: 13px; }
  .btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

  /* ── Landing page ── */
  .landing-hero {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-md) 60%, #1B4D2E 100%);
    padding: 80px 40px;
    text-align: center;
    color: #fff;
  }
  .landing-hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 16px; }
  .landing-hero h1 em { color: #a8ddb5; font-style: normal; }
  .landing-hero p { font-size: 18px; opacity: 0.88; max-width: 560px; margin: 0 auto 36px; line-height: 1.6; font-family: 'Plus Jakarta Sans', sans-serif; }
  .hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .btn-hero { padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; border: none; }
  .btn-hero-primary { background: var(--gold); color: #1a1a1a; }
  .btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; }

  .trust-bar {
    background: rgba(255,255,255,0.12);
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px 40px;
    margin-top: 48px;
    border-radius: 12px;
    max-width: 640px;
    margin: 48px auto 0;
  }
  .trust-item { text-align: center; }
  .trust-num { font-size: 28px; font-weight: 700; }
  .trust-label { font-size: 12px; opacity: 0.8; margin-top: 2px; }

  .specialties-section {
    padding: 64px 40px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .section-title { font-size: 36px; color: var(--forest); margin-bottom: 8px; text-align: center; }
  .section-sub { color: var(--text-lt); text-align: center; margin-bottom: 40px; font-size: 15px; }
  .specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .specialty-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
    text-align: center;
  }
  .specialty-card:hover { border-color: var(--patient); box-shadow: 0 4px 20px rgba(27,77,46,0.15); transform: translateY(-2px); }
  .specialty-icon { font-size: 36px; margin-bottom: 12px; }
  .specialty-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
  .specialty-count { font-size: 12px; color: var(--text-lt); }

  /* ── How it works ── */
  .how-section { background: var(--bone-dk); padding: 64px 40px; }
  .steps-row {
    display: flex;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
  }
  .steps-row::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--patient) 0%, var(--sage) 100%);
  }
  .step-item { flex: 1; text-align: center; padding: 0 12px; }
  .step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--patient);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bone-dk);
  }
  .step-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
  .step-desc { font-size: 13px; color: var(--text-lt); line-height: 1.5; }

  /* ── Choose specialty page ── */
  .search-section { padding: 40px; max-width: 1100px; margin: 0 auto; }
  .search-header { margin-bottom: 32px; }
  .search-header h2 { font-size: 30px; color: var(--forest); margin-bottom: 8px; }
  .search-bar {
    display: flex;
    gap: 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    align-items: center;
    margin-bottom: 24px;
  }
  .search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
  }
  .search-icon { color: var(--text-lt); font-size: 18px; }
  .filters { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    cursor: pointer;
    background: var(--white);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .filter-chip:hover, .filter-chip.active { background: var(--patient); color: #fff; border-color: var(--patient); }

  .doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
  .doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
    cursor: pointer;
  }
  .doctor-card:hover { border-color: var(--patient); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .doctor-banner { height: 80px; background: linear-gradient(135deg, #1B4D2E 0%, #1B4D2E 100%); }
  .doctor-body { padding: 16px 20px 20px; }
  .doctor-avatar-wrap { margin-top: -36px; margin-bottom: 12px; }
  .doctor-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--bone-dk);
    border: 3px solid var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--forest);
    font-family: 'Cormorant Garamond', serif;
  }
  .doctor-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
  .doctor-crm { font-size: 12px; color: var(--text-lt); margin-bottom: 8px; }
  .doctor-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--patient-lt);
    color: var(--patient);
  }
  .tag.green { background: #e8f5e9; color: #2d6b45; }
  .doctor-stats { display: flex; gap: 16px; margin-bottom: 16px; }
  .doc-stat { font-size: 12px; color: var(--text-lt); }
  .doc-stat strong { display: block; font-size: 15px; color: var(--text); }
  .doctor-price { font-size: 22px; font-weight: 700; color: var(--forest); margin-bottom: 14px; }
  .doctor-price span { font-size: 13px; font-weight: 400; color: var(--text-lt); }
  .availability-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
  .avail-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bone);
    color: var(--patient);
    border: 1px solid var(--border);
    cursor: pointer;
  }
  .avail-pill:hover { background: var(--patient); color: #fff; }
  .avail-pill.selected { background: var(--patient); color: #fff; }

  /* ── Scheduling page ── */
  .schedule-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 40px; max-width: 1100px; margin: 0 auto; }
  .schedule-card { background: var(--white); border-radius: 16px; border: 1px solid var(--border); padding: 32px; }
  .calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .calendar-title { font-size: 18px; font-weight: 600; }
  .cal-nav { background: none; border: 1px solid var(--border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-day-header { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-lt); padding: 6px 0; }
  .cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .cal-day:hover:not(.empty):not(.past) { background: var(--patient-lt); color: var(--patient); }
  .cal-day.available { color: var(--patient); font-weight: 600; }
  .cal-day.selected { background: var(--patient); color: #fff; }
  .cal-day.past { color: var(--border); cursor: not-allowed; }
  .cal-day.empty { cursor: default; }
  .cal-day.today { border: 2px solid var(--patient); }

  .time-slots { margin-top: 28px; }
  .time-slots h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
  .slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .time-slot {
    padding: 10px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .time-slot:hover:not(.occupied) { border-color: var(--patient); color: var(--patient); }
  .time-slot.selected { background: var(--patient); color: #fff; border-color: var(--patient); }
  .time-slot.occupied { background: var(--bone-dk); color: var(--border); cursor: not-allowed; text-decoration: line-through; }
  .slot-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--text-lt); }
  .slot-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }

  .booking-summary {
    position: sticky;
    top: 80px;
  }
  .summary-doctor { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .summary-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B4D2E 0%, #1B4D2E 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
  }
  .summary-name { font-size: 16px; font-weight: 600; }
  .summary-crm { font-size: 12px; color: var(--text-lt); }
  .summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
  .summary-label { color: var(--text-lt); }
  .summary-value { font-weight: 600; color: var(--text); }
  .summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
  .summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 24px; }
  .summary-total .price { color: var(--forest); }

  .form-group { margin-bottom: 16px; }
  .form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--text-md); }
  .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: border-color .2s;
  }
  .form-input:focus { border-color: var(--patient); }
  .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    background: var(--white);
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── Confirmation page ── */
  .confirm-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bone);
  }
  .confirm-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .confirm-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
  }
  .confirm-title { font-size: 32px; color: var(--forest); margin-bottom: 8px; }
  .confirm-sub { font-size: 15px; color: var(--text-lt); margin-bottom: 32px; line-height: 1.6; }
  .confirm-details {
    background: var(--bone-dk);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    margin-bottom: 28px;
  }
  .confirm-detail-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
  .confirm-detail-row:last-child { margin-bottom: 0; }
  .detail-icon { font-size: 20px; width: 32px; flex-shrink: 0; }
  .detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-lt); margin-bottom: 2px; }
  .detail-value { font-size: 15px; font-weight: 600; }
  .confirm-actions { display: flex; flex-direction: column; gap: 10px; }
  .confirm-note {
    font-size: 12px;
    color: var(--text-lt);
    margin-top: 20px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid rgba(142,198,63,0.35);
    text-align: left;
  }
  .confirm-note strong { color: var(--forest); }

  /* ── My Appointments (patient area) ── */
  .patient-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
  .patient-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
  }
  .sidebar-profile { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
  .sidebar-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B4D2E 0%, #1B4D2E 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 700;
    margin-bottom: 10px;
  }
  .sidebar-name { font-size: 15px; font-weight: 600; }
  .sidebar-email { font-size: 12px; color: var(--text-lt); }
  .sidebar-nav { padding: 0 12px; }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-md);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
    margin-bottom: 2px;
  }
  .sidebar-item:hover { background: var(--bone-dk); }
  .sidebar-item.active { background: var(--patient-lt); color: var(--patient); font-weight: 600; }
  .sidebar-icon { font-size: 16px; width: 20px; }
  .sidebar-badge {
    margin-left: auto;
    background: var(--patient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
  }

  .patient-main { padding: 32px; }
  .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .page-title { font-size: 26px; color: var(--forest); }
  .appt-list { display: flex; flex-direction: column; gap: 16px; }
  .appt-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
  }
  .appt-card:hover { box-shadow: var(--shadow); }
  .appt-date-block {
    width: 60px;
    text-align: center;
    background: var(--patient-lt);
    border-radius: 10px;
    padding: 10px 6px;
    flex-shrink: 0;
  }
  .appt-day { font-size: 24px; font-weight: 700; color: var(--patient); line-height: 1; }
  .appt-month { font-size: 10px; text-transform: uppercase; color: var(--text-lt); font-weight: 600; margin-top: 2px; }
  .appt-info { flex: 1; }
  .appt-doctor { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .appt-specialty { font-size: 13px; color: var(--text-lt); margin-bottom: 6px; }
  .appt-time { font-size: 13px; color: var(--patient); font-weight: 500; }
  .appt-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
  }
  .status-confirmed { background: #e8f5e9; color: #2d7d32; }
  .status-pending { background: #fff8e1; color: var(--forest); }
  .status-completed { background: #f5f5f5; color: #666; }
  .appt-actions { display: flex; flex-direction: column; gap: 6px; }
  .appt-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
  }
  .appt-btn-primary { background: var(--patient); color: #fff; }
  .appt-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-md); }
  .appt-btn-red { background: #ffebee; color: #c62828; }

  /* ── Prescription/Document view ── */
  .doc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
  }
  .doc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .doc-title { font-size: 18px; font-weight: 600; }
  .doc-date { font-size: 13px; color: var(--text-lt); }
  .doc-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--patient-lt);
    color: var(--forest);
  }
  .doc-content { background: var(--bone-dk); border-radius: 10px; padding: 20px; font-size: 14px; line-height: 1.7; }
  .rx-header { display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--forest); }
  .rx-logo { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--forest); }
  .rx-logo span { color: var(--gold-dk); }
  .rx-info { text-align: right; font-size: 12px; color: var(--text-lt); }
  .rx-item { margin-bottom: 12px; padding-left: 16px; border-left: 3px solid var(--sage); }
  .rx-med { font-weight: 700; color: var(--text); }
  .rx-dose { font-size: 13px; color: var(--text-md); }
  .rx-inst { font-size: 12px; color: var(--text-lt); margin-top: 2px; }
  .rx-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; font-size: 12px; color: var(--text-lt); }

  /* Responsive */
  @media (max-width: 768px) {
    /* Landing hero */
    .landing-hero h1 { font-size: 32px; }
    .landing-hero { padding: 48px 20px 40px; }
    .trust-bar { gap: 16px; flex-wrap: wrap; justify-content: center; padding: 20px 16px; }
    .trust-num { font-size: 22px; }

    /* Navbar */
    .nav-links { display: none; }
    .navbar { padding: 0 16px; height: 56px; }

    /* Como funciona */
    .steps-row::before { display: none; }
    .steps-row { flex-direction: column; gap: 24px; }
    .how-section { padding: 48px 20px; }

    /* Especialidades */
    .specialties-section { padding: 40px 16px; }
    .section-title { font-size: 28px; }

    /* Busca */
    .search-section { padding: 20px 16px; }

    /* Agendamento */
    .schedule-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .booking-summary { position: static; }
    /* Calendário: manter 7 colunas mas wrapper com scroll horizontal */
    .schedule-card { padding: 16px; overflow-x: auto; }
    .calendar-grid { grid-template-columns: repeat(7, minmax(38px, 1fr)); min-width: 280px; }
    .cal-day-header { font-size: 10px; padding: 4px 0; }
    .cal-day { font-size: 12px; border-radius: 6px; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }

    /* Área do paciente */
    .patient-layout { grid-template-columns: 1fr; }
    .patient-sidebar { display: none; }
    .patient-main { padding: 16px; }

    /* Formulário */
    .form-row { grid-template-columns: 1fr; }

    /* Cards médicos */
    .doctor-grid { grid-template-columns: 1fr; }

    /* Receita */
    .rx-layout { flex-direction: column; }
  }

  /* Telas muito pequenas (< 400px) */
  @media (max-width: 400px) {
    .landing-hero h1 { font-size: 26px; }
    .btn-hero { padding: 14px 20px; font-size: 14px; }
    .tab-btn { padding: 10px 10px; font-size: 11px; }
  }


.step-indicator {
  display: none;
  background: #fff;
  border-bottom: 1px solid rgba(27,77,46,0.12);
  padding: 12px 24px;
}
.step-indicator-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
}
.step-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  color: rgba(17,24,39,0.35); white-space: nowrap;
}
.step-item.active { color: #1B4D2E; font-weight: 600; }
.step-item.done { color: #1B4D2E; }
.step-num {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; flex-shrink: 0;
}
.step-item.done .step-num { background: #1B4D2E; border-color: #1B4D2E; color: #fff; }
.step-item.active .step-num { background: #1B4D2E; border-color: #1B4D2E; color: #fff; }
.step-sep { flex: 1; height: 1px; background: rgba(17,24,39,0.1); min-width: 16px; max-width: 40px; margin: 0 6px; }
@media(max-width:600px){.step-item span:last-child{display:none}}

/* Added CRO CSS */

/* ══ CRO LANDING ══ */
.cro-hero { display:grid; grid-template-columns:1fr 420px; gap:60px; align-items:center; max-width:1140px; margin:0 auto; padding:72px 48px 80px; }
.avail-badge { display:inline-flex; align-items:center; gap:8px; background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; border-radius:100px; padding:6px 16px; font-size:13px; font-weight:600; margin-bottom:24px; }
.avail-dot { width:8px; height:8px; background:#4caf50; border-radius:50%; animation:pulse-g 2s infinite; }
@keyframes pulse-g { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.cro-h1 { font-size:46px; line-height:1.15; color:#111; margin-bottom:20px; font-weight:400; }
.cro-h1 em { color:var(--patient); font-style:normal; }
.cro-sub { font-size:17px; color:#555; line-height:1.65; margin-bottom:36px; max-width:520px; }
.cro-cta-block { margin-bottom:36px; }
.cro-btn-primary { background:var(--patient); color:#fff; border:none; border-radius:10px; padding:15px 32px; font-size:16px; font-weight:700; cursor:pointer; font-family:inherit; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; display:inline-block; text-decoration:none; }
.cro-btn-primary:hover { background:var(--patient-md); transform:translateY(-1px); box-shadow:0 6px 24px rgba(27,77,46,0.3); }
.cro-cta-hint { display:flex; align-items:center; gap:6px; color:#777; font-size:12px; margin-top:12px; }
.cro-trust { display:flex; align-items:center; gap:20px; padding-top:24px; border-top:1px solid #e8e8e2; }
.cro-trust-item { display:flex; flex-direction:column; }
.cro-trust-item strong { font-size:18px; color:#111; font-weight:700; }
.cro-trust-item span { font-size:11px; color:#888; }
.cro-trust-div { width:1px; height:28px; background:#e0e0d8; }
.cro-card-preview { position:relative; }
.cro-card { background:#fff; border:1px solid #e0e0d8; border-radius:16px; padding:24px; box-shadow:0 8px 40px rgba(0,0,0,0.10); }
.cro-card-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.cro-avatar { width:44px; height:44px; background:var(--patient); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex-shrink:0; }
.cro-card-name { font-weight:700; font-size:15px; color:#111; }
.cro-card-spec { font-size:12px; color:#777; }
.cro-badge-avail { margin-left:auto; background:#e8f5e9; color:#2e7d32; border-radius:100px; padding:4px 10px; font-size:11px; font-weight:600; white-space:nowrap; }
.cro-slots-label { font-size:11px; font-weight:600; color:#888; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.cro-slots { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:16px; }
.cro-slot { border:1.5px solid #e0e0d8; border-radius:8px; padding:10px; text-align:center; font-size:13px; font-weight:600; color:var(--patient); cursor:pointer; transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cro-slot:hover, .cro-slot.active { background:var(--patient); color:#fff; border-color:var(--patient); }
.cro-card-btn { width:100%; background:var(--patient); color:#fff; border:none; border-radius:8px; padding:12px; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; margin-bottom:12px; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.cro-card-btn:hover { background:var(--patient-md); }
.cro-card-price { font-size:12px; color:#888; text-align:center; }
.cro-card-price strong { color:var(--forest); }




.trust-strip { background:#f7f7f3; border-top:1px solid #e8e8e2; border-bottom:1px solid #e8e8e2; padding:20px 48px; }
.trust-strip-inner { max-width:1140px; margin:0 auto; display:flex; align-items:center; gap:32px; flex-wrap:wrap; }
.trust-strip-label { font-size:12px; color:#999; font-weight:600; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.trust-logos { display:flex; gap:32px; flex-wrap:wrap; }
.trust-logo-item { display:flex; align-items:center; gap:8px; color:#555; font-size:13px; font-weight:600; }
.trust-logo-item svg { color:var(--patient); }
.how-section { background:#f7f7f3; padding:72px 48px; }
.step-time { font-size:11px; color:var(--patient); font-weight:600; margin-top:8px; }
.section-title { font-size:36px; color:#111; margin-bottom:12px; text-align:center; }
.section-sub { font-size:16px; color:#777; text-align:center; margin-bottom:48px; max-width:600px; margin-left:auto; margin-right:auto; }
.steps-row { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; max-width:1000px; margin:0 auto; }
.step-title { font-size:15px; font-weight:700; color:#111; margin-bottom:8px; }
.step-desc { font-size:13px; color:#666; line-height:1.6; }
.specialties-section { padding:72px 48px; background:#fff; }
.depo-section { background:linear-gradient(135deg,var(--forest) 0%,var(--forest-md) 100%); padding:72px 48px; }
.depo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1140px; margin:0 auto; }
.depo-card { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:16px; padding:28px 24px; backdrop-filter:blur(4px); }
.depo-text { font-size:14px; color:rgba(255,255,255,0.88); line-height:1.65; margin-bottom:20px; font-style:italic; }
.depo-author { display:flex; align-items:center; gap:12px; }
.depo-avatar { width:38px; height:38px; border-radius:50%; background:var(--patient); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
.depo-name { font-size:13px; font-weight:700; color:#fff; }
.depo-city { font-size:11px; color:rgba(255,255,255,0.55); }
.faq-section { padding:72px 48px; max-width:880px; margin:0 auto; }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid #e0e0d8; border-radius:12px; overflow:hidden; }
.faq-item { border-bottom:1px solid #e0e0d8; border-right:1px solid #e0e0d8; }
.faq-item:nth-child(even) { border-right:none; }
.faq-item:nth-last-child(-n+2) { border-bottom:none; }
.faq-q { display:flex; justify-content:space-between; align-items:center; padding:18px 20px; cursor:pointer; font-size:14px; font-weight:600; color:#222; gap:12px; user-select:none; }
.faq-q:hover { background:#f9f9f6; }
.faq-icon { font-size:20px; color:var(--patient); flex-shrink:0; transition:transform .2s; }
.faq-q.open .faq-icon { transform:rotate(45deg); }
.faq-a { display:none; padding:0 20px 18px; font-size:13px; color:#555; line-height:1.65; }
.faq-a.visible { display:block; }
.final-cta-section { background:linear-gradient(135deg,var(--bone) 0%,var(--patient-lt) 100%); border-top:1px solid rgba(142,198,63,0.2); padding:80px 48px; text-align:center; }
.final-cta-inner { max-width:640px; margin:0 auto; }
.final-cta-badge { display:inline-flex; align-items:center; gap:8px; background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; border-radius:100px; padding:5px 14px; font-size:12px; font-weight:600; margin-bottom:24px; }
.final-cta-h2 { font-size:38px; color:#111; margin-bottom:12px; }
.final-cta-sub { font-size:16px; color:#555; margin-bottom:32px; }
.final-cta-row { display:flex; gap:16px; justify-content:center; align-items:center; flex-wrap:wrap; margin-bottom:24px; }
.final-cta-wa { display:inline-flex; align-items:center; gap:8px; color:#2e7d32; font-size:14px; font-weight:600; text-decoration:none; padding:14px 24px; border:2px solid #a5d6a7; border-radius:10px; background:#fff; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.final-cta-wa:hover { background:#e8f5e9; }
.final-cta-guarantees { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.final-cta-guarantees span { font-size:12px; color:#555; font-weight:600; }
.cro-footer { background:#1a1a1a; color:#666; padding:24px 48px; display:flex; justify-content:space-between; align-items:center; font-size:12px; flex-wrap:wrap; gap:12px; }
.cro-footer a { color:#999; text-decoration:none; }
.sticky-cta { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid #e0e0d8; padding:14px 24px; display:none; justify-content:space-between; align-items:center; z-index:200; box-shadow:0 -4px 24px rgba(0,0,0,0.08); gap:16px; }
.sticky-cta.visible { display:flex; }
.sticky-cta-text { font-size:14px; font-weight:600; color:#222; }
.sticky-cta-sub { font-size:12px; color:#888; }
@media(max-width:900px){
  .cro-hero{grid-template-columns:1fr;gap:40px;padding:40px 24px 60px}
  .cro-card-preview{display:none}
  .cro-h1{font-size:32px}
  .depo-grid{grid-template-columns:1fr}
  .faq-grid{grid-template-columns:1fr}
  .faq-item{border-right:none}
  .faq-item:nth-last-child(-n+2){border-bottom:1px solid #e0e0d8}
  .faq-item:last-child{border-bottom:none}
  .trust-strip-inner{gap:16px}
  .how-section,.depo-section,.faq-section,.final-cta-section{padding:48px 24px}
  .steps-row{grid-template-columns:1fr 1fr;gap:24px}
  .section-title{font-size:28px}
  .final-cta-h2{font-size:28px}
  .cro-footer{padding:20px 24px}
}
/* ══ FIM CRO ══ */

/* social proof abaixo do card */
.cro-card-proof { display:flex; align-items:center; gap:6px; justify-content:center; font-size:11px; color:#555; margin-top:10px; }
.cro-card-proof-dot { width:6px; height:6px; border-radius:50%; background:#4caf50; flex-shrink:0; }


/* ══════════════════════════════════════════════════════════════
   DARK HERO REDESIGN — Lead Generation
   ══════════════════════════════════════════════════════════════ */

/* Dark gradient background */
.cro-hero {
  background: linear-gradient(135deg, #0d2318 0%, #1B4D2E 55%, #0a1f12 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.cro-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(142,198,63,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.cro-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45,106,79,0.45) 0%, transparent 65%);
  pointer-events: none;
}

/* Text on dark background */
.cro-h1 { color: #ffffff; }
.cro-h1 em { color: #74B881; }
.cro-sub { color: rgba(255,255,255,0.62); }

/* Badge — forest glass on dark */
.avail-badge {
  background: rgba(142,198,63,0.12);
  border-color: rgba(142,198,63,0.30);
  color: #8EC63F;
}
.avail-dot { background: #8EC63F; }

/* Trust section on dark */
.cro-trust { border-top-color: rgba(255,255,255,0.12); }
.cro-trust-item strong { color: #ffffff; }
.cro-trust-item span { color: rgba(255,255,255,0.45); }
.cro-trust-div { background: rgba(255,255,255,0.15); }

/* Primary CTA row */
.cro-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Primary booking button — gold */
.cro-btn-primary {
  background: #8EC63F;
  color: #0d2318;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  font-size: 15px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}
.cro-btn-primary:hover {
  background: #7ab332;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(142,198,63,0.35);
}

/* WhatsApp button */
.cro-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.88);
  border-radius: 100px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}
.cro-btn-wa:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.45);
  color: #25D366;
}

/* Trust micro-copy below CTAs */
.cro-cta-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cro-cta-trust span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.2px;
}

/* Doctor card — glass on dark */
.cro-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.cro-card-name { color: #ffffff; }
.cro-card-spec { color: rgba(255,255,255,0.55); }
.cro-slots-label { color: rgba(255,255,255,0.50); }
.cro-slot {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.80);
}
.cro-slot:hover, .cro-slot.active {
  background: rgba(142,198,63,0.18);
  border-color: rgba(142,198,63,0.45);
  color: #8EC63F;
}
.cro-card-btn {
  background: #8EC63F;
  color: #0d2318;
  border-radius: 8px;
  font-weight: 700;
}
.cro-card-btn:hover { background: #7ab332; }
.cro-card-price { color: rgba(255,255,255,0.40); }
.cro-card-price strong { color: #8EC63F; }

/* Avatar */
.cro-avatar { background: rgba(142,198,63,0.20); color: #8EC63F; border: 1.5px solid rgba(142,198,63,0.35); }

/* Availability badge in card */
.cro-badge-avail {
  background: rgba(142,198,63,0.15);
  color: #8EC63F;
  border: 1px solid rgba(142,198,63,0.30);
}

/* Urgency bar */
.cro-urgency-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.cro-urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8EC63F;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Social proof in card */
.cro-card-proof { color: rgba(255,255,255,0.38); }
.cro-card-proof-dot { background: #8EC63F; }

/* Show card on mobile */
@media (max-width: 768px) {
  .cro-card-preview { display: block !important; }
  .cro-hero { grid-template-columns: 1fr; }
  .cro-cta-row { flex-direction: column; align-items: stretch; }
  .cro-btn-wa { justify-content: center; }
  .cro-cta-trust { justify-content: center; }
}

/* ── Fix: scope steps-row items separately from progress indicator ── */
.steps-row .step-item {
  display: block;
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid #e8e8e2;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow .2s, border-color .2s;
}
.steps-row .step-item:hover {
  box-shadow: 0 6px 24px rgba(27,77,46,0.10);
  border-color: rgba(27,77,46,0.20);
}
.steps-row .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(27,77,46,0.08);
  border: 2px solid rgba(27,77,46,0.18);
  color: #1B4D2E;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.steps-row .step-title {
  font-size: 15px; font-weight: 700;
  color: #111; margin-bottom: 8px;
}
.steps-row .step-desc {
  font-size: 13px; color: #666; line-height: 1.6;
  margin-bottom: 8px;
}
.steps-row .step-time {
  font-size: 11px; color: #1B4D2E;
  font-weight: 600; letter-spacing: 0.2px;
}

/* How section background */
.how-section {
  background: #f5f7f2;
  padding: 72px 48px;
  max-width: 100%;
}
.how-section .section-title { margin-bottom: 8px; }
.how-section .section-sub { text-align: center; margin-bottom: 40px; }

@media (max-width: 768px) {
  .steps-row { grid-template-columns: 1fr 1fr !important; }
  .how-section { padding: 48px 24px; }
}
@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr !important; }
}

/* ── Fix: hero must bleed full viewport width ─────────────── */
.cro-hero {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Keep inner content centered on wide screens */
.cro-hero-inner {
  max-width: 560px;
}

/* How-section full-width background */
.how-section {
  width: 100%;
  box-sizing: border-box;
  padding-left: max(24px, calc((100vw - 1140px) / 2 + 48px));
  padding-right: max(24px, calc((100vw - 1140px) / 2 + 48px));
}

/* ── Fix: overflow-x causado por calc() padding no how-section ─── */
.how-section {
  padding-left: 48px !important;
  padding-right: 48px !important;
}
.steps-row {
  grid-template-columns: repeat(4, 1fr) !important;
  max-width: 1100px !important;
  overflow: visible !important;
}

/* Prevent global horizontal scroll */
body { overflow-x: hidden; }

@media (max-width: 900px) {
  .how-section { padding-left: 24px !important; padding-right: 24px !important; }
  .steps-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr !important; }
}

/* ── Fix crítico: grid items não encolhem por white-space:nowrap + min-width:auto ── */
.steps-row {
  overflow: hidden !important;
}
.steps-row .step-item {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
}
.how-section {
  box-sizing: border-box !important;
  overflow: hidden;
}


/* ═══════════════════════════════════════════
   ACESSIBILIDADE — PACIENTE
   ═══════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus ring universal */
*:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Role=button divs — keyboard accessible */
[role="button"] { cursor: pointer; }

/* Accessibility widget (vanilla) */
#a11y-widget {
  position: fixed;
  bottom: 96px;
  left: 16px;
  z-index: 9000;
}
#a11y-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-size: 20px;
  transition: background-color .2s ease;
}
#a11y-trigger:hover { background: var(--forest-md); }
#a11y-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 260px;
  overflow: hidden;
  margin-bottom: 8px;
}
#a11y-panel.open { display: flex; }
.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: rgba(27,77,46,0.04);
}
.a11y-header-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
}
.a11y-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  color: #777;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.a11y-close:hover { background: rgba(0,0,0,0.06); }
.a11y-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.a11y-section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.a11y-font-btns { display: flex; gap: 6px; }
.a11y-font-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #f4f4f0;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', serif;
  transition: background-color .15s ease, color .15s ease;
}
.a11y-font-btn:hover { background: #e0e0d8; }
.a11y-font-btn.active { background: var(--forest); color: #fff; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; }
.a11y-row-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #777; }
.a11y-switch {
  width: 40px; height: 20px;
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color .2s ease;
  flex-shrink: 0;
}
.a11y-switch.on { background: var(--forest); }
.a11y-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .2s ease;
}
.a11y-switch.on::after { transform: translateX(20px); }
.a11y-reset {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: none;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.a11y-reset:hover { color: #555; border-color: rgba(0,0,0,0.2); }

/* High contrast mode */
body.hc-mode {
  --forest: #003300;
  --text: #000;
  --text-md: #111;
  --text-lt: #333;
  --bone: #fff;
  --bone-dk: #f0f0f0;
  --patient: #003300;
  --patient-md: #005500;
  --gold: #007700;
}
body.hc-mode a { text-decoration: underline; }
body.hc-mode button, body.hc-mode [role="button"] { border: 2px solid currentColor !important; }
body.hc-mode .cro-btn-primary { background: #003300 !important; }

/* Dyslexia font mode */
body.dyslexia-mode, body.dyslexia-mode p, body.dyslexia-mode span,
body.dyslexia-mode input, body.dyslexia-mode textarea, body.dyslexia-mode select {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
  line-height: 1.9 !important;
}

/* Font sizes */
body.fs-large { font-size: 110%; }
body.fs-xlarge { font-size: 125%; }

/* Reduced motion */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ── Fix: remove connector line (::before) — grid cards don't need it ── */
.steps-row::before { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   UI SKILLS IMPROVEMENTS — /paciente
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Step number circles — raise contrast (was rgba 0.08, almost invisible) */
.steps-row .step-num {
  background: rgba(27,77,46,0.14) !important;
  border: 2px solid rgba(27,77,46,0.35) !important;
  color: #1B4D2E !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

/* 2. FAQ — force single column to prevent layout jump on expand */
.faq-grid {
  grid-template-columns: 1fr !important;
}
.faq-item {
  border-right: none !important;
}
.faq-item:nth-last-child(-n+2) {
  border-bottom: 1px solid #e0e0d8 !important;
}
.faq-item:last-child {
  border-bottom: none !important;
}

/* 3. FAQ answer — fade+slide-in animation on show */
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-a.visible {
  animation: faqReveal 0.22s ease forwards;
}

/* 4. Hero stats subtext — raise opacity (was 0.45, fails contrast) */
.cro-trust-item span {
  font-size: 12px !important;
  color: rgba(255,255,255,0.70) !important;
  letter-spacing: 0.01em;
}
.cro-trust-item strong {
  font-size: 20px !important;
  letter-spacing: -0.02em;
}

/* 5. Depo avatars — brand-consistent glass style on dark bg */
.depo-avatar {
  background: rgba(142,198,63,0.18) !important;
  border: 1.5px solid rgba(142,198,63,0.35) !important;
  color: #c8e88b !important;
}

/* 6. Specialty icon size — more presence */
.specialty-icon {
  font-size: 38px !important;
  line-height: 1 !important;
}

/* 7. Specialty card — ensure transition for hover on mobile-first resets */
.specialty-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

/* 8. CTA hero button — slightly larger tap target */
.cro-cta-row .cro-btn-primary {
  font-size: 16px !important;
  padding: 15px 34px !important;
}

/* 9. Trust strip icons — ensure aria-hidden ones don't add visual noise on focus */
.trust-logo-item svg {
  flex-shrink: 0;
}

/* 10. Final CTA trust badges — better readability */
.final-cta-trust {
  font-size: 13px !important;
  color: #555 !important;
  gap: 20px !important;
}

/* 11. Section transitions — soften depo-to-faq boundary */
.faq-section {
  background: #fafaf7 !important;
  border-top: 1px solid #e8e8e2 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FAQ COMPLETE REDESIGN  — full-width accordion, chevron, smooth animation
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section background */
.faq-section {
  background: #f4f5f0 !important;
  border-top: 1px solid #e4e5de !important;
  padding-top: 64px !important;
  padding-bottom: 72px !important;
}

/* Section title */
.faq-section .section-title {
  margin-bottom: 8px !important;
}
.faq-section .section-sub {
  margin-bottom: 40px !important;
  color: #777 !important;
}

/* Grid container — single bordered card */
.faq-grid {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  border: 1px solid #deded7 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(27,77,46,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}

/* Each item — no border-box, just divider */
.faq-item {
  border: none !important;
  border-bottom: 1px solid #ededea !important;
  border-right: none !important;
}
.faq-item:last-child {
  border-bottom: none !important;
}

/* Question button — FULL WIDTH, proper reset */
.faq-q {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding: 22px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  gap: 16px !important;
  min-height: 64px !important;
}

.faq-q:hover {
  background: rgba(27,77,46,0.04) !important;
}

.faq-q:focus-visible {
  outline: 2px solid #1B4D2E !important;
  outline-offset: -2px !important;
  border-radius: 0 !important;
}

.faq-q.open {
  color: #1B4D2E !important;
  background: rgba(27,77,46,0.05) !important;
}

/* Question text span */
.faq-q > span:first-child {
  flex: 1 !important;
  line-height: 1.45 !important;
}

/* Chevron icon — CSS-drawn arrow, no "+" text */
.faq-icon {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #1B4D2E !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: rgba(27,77,46,0.08) !important;
  border-radius: 50% !important;
}

/* CSS chevron via ::after */
.faq-icon::after {
  content: '' !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid #1B4D2E !important;
  border-bottom: 2px solid #1B4D2E !important;
  transform: rotate(45deg) translateY(-2px) !important;
  flex-shrink: 0 !important;
}

/* Rotate chevron when open */
.faq-q.open .faq-icon {
  transform: rotate(180deg) !important;
  background: rgba(27,77,46,0.14) !important;
}

/* Answer — smooth max-height animation (overrides display:none) */
.faq-a {
  display: block !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 24px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #4a4a4a !important;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), padding 0.25s ease !important;
  animation: none !important;
}

.faq-a.visible {
  max-height: 400px !important;
  padding: 4px 24px 22px !important;
  animation: none !important;
}

/* First FAQ item — slightly rounded top corners on q button */
.faq-item:first-child .faq-q {
  border-radius: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO LAYOUT FIX — centraliza as duas colunas, elimina o vão gigante
   entre texto e card. Solução: minmax() + justify-content: center
   ═══════════════════════════════════════════════════════════════════════════ */
.cro-hero {
  grid-template-columns: minmax(300px, 600px) 420px !important;
  justify-content: center !important;
  gap: 72px !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
}

/* Remove max-width legado do inner — a coluna do grid já controla */
.cro-hero-inner {
  max-width: 100% !important;
}

@media (max-width: 1100px) {
  .cro-hero {
    grid-template-columns: minmax(280px, 540px) 380px !important;
    gap: 48px !important;
  }
}

@media (max-width: 900px) {
  .cro-hero {
    grid-template-columns: 1fr !important;
    justify-content: start !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DOCTOR ROTATION — fade transition on card header
   ═══════════════════════════════════════════════════════════════════════════ */
.cro-card-header {
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}
.cro-card-header.doc-fade-out {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}
.cro-card-header.doc-fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: docFadeIn 0.38s ease forwards !important;
}
@keyframes docFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dot indicator — which doctor is active */
.doc-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
}
.doc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.doc-dot.active {
  background: rgba(255,255,255,0.75);
  transform: scale(1.3);
}

/* Avatar background per doctor index */
.cro-avatar[data-doc="0"] { background: rgba(142,198,63,0.22); }
.cro-avatar[data-doc="1"] { background: rgba(63,142,198,0.22); }
.cro-avatar[data-doc="2"] { background: rgba(198,142,63,0.22); }
.cro-avatar[data-doc="3"] { background: rgba(142,63,198,0.22); }
