/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* --- Animations still in use (single-shot on view; reveals are user-triggered) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Hero: the single orchestrated page-load moment --- */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Layout --- */
.landing-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* "Clinical paper & apothecary seal" background system.
   Each section carries one quiet, subject-grounded motif;
   pricing stays flat so the rhythm reads as intentional. */

/* Hero: prescription-pad ruled grid, strongest upper-right,
   dissolving before the CTA. Static — no motion. */
.landing-section--hero {
    background:
        radial-gradient(ellipse 60% 55% at 78% 12%, rgba(30, 110, 99, 0.05) 0%, rgba(30, 110, 99, 0) 70%);
    position: relative;
}

.landing-section--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(21, 82, 72, 0.07) 0, rgba(21, 82, 72, 0.07) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, rgba(21, 82, 72, 0.07) 0, rgba(21, 82, 72, 0.07) 1px, transparent 1px, transparent 32px);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 72% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 80% at 72% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}

.landing-section--hero > .landing-section {
    position: relative;
    z-index: 1;
}

.landing-section--alt {
    background: #eaf1ec;
    border-top: 1px solid var(--mist, #d7e4dc);
    border-bottom: 1px solid var(--mist, #d7e4dc);
}

.landing-section--dark {
    background: linear-gradient(135deg, #1c3a31 0%, #10261f 100%);
    color: #e9f1ec;
}

/* --- Hero --- */
/* Asymmetric opening: heavy headline set left, everything below stays quiet. */
.hero {
    margin-bottom: 20px;
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding-top: 30px;
    animation: hero-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #e6efeb;
    color: var(--bs-secondary, #155248);
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(163, 189, 177, 0.4);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 800;
    color: var(--ink, #16332b);
    margin-bottom: 25px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25em;
    color: var(--bs-darker, #155248);
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: 0;
    font-weight: 400;
    line-height: 1.7;
}

.landing-btn {
    padding: 0.75rem 2.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* --- Hero CTA gentle dance (same effect as /request/ selectors) --- */
@keyframes cta-dance {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(21, 82, 72, 0);
    }
    25% {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(21, 82, 72, 0.18);
    }
    50% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(21, 82, 72, 0);
    }
    75% {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(21, 82, 72, 0.12);
    }
}

.hero-cta--dance {
    animation: cta-dance 0.7s ease-in-out;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-secondary, #155248);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    color: #52655d;
    font-weight: 500;
}

/* --- Feature Cards Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.feature-card {
    padding: 35px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(163, 189, 177, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary, #1e6e63) 0%, var(--bs-secondary, #155248) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22, 79, 71, 0.12);
    border-color: var(--bs-primary, #1e6e63);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary, #1e6e63), var(--bs-secondary, #155248));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-icon ion-icon {
    color: white;
    font-size: 1.8rem;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(22, 79, 71, 0.3);
}

.feature-card h3 {
    color: var(--ink, #16332b);
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 700;
}

.feature-card p {
    color: #52655d;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Feature Expand Toggle --- */
.features-expand-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.features-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    border: 2px solid rgba(163, 189, 177, 0.4);
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--bs-secondary, #155248);
    cursor: pointer;
    transition: all 0.25s ease;
}

.features-expand-btn:hover {
    background: #eef4f0;
    border-color: var(--bs-primary, #1e6e63);
    box-shadow: 0 4px 16px rgba(22, 79, 71, 0.12);
}

.features-expand-btn ion-icon {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.features-expand-btn.is-expanded ion-icon {
    transform: rotate(180deg);
}

/* --- Feature Pill Grid --- */
.features-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
    animation: fadeIn 0.3s ease-out both;
}

.features-pill-grid[hidden] {
    display: none;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid rgba(163, 189, 177, 0.25);
    border-radius: 50px;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--ink, #16332b);
    transition: all 0.2s ease;
}

.feature-pill:hover {
    border-color: var(--bs-primary, #1e6e63);
    box-shadow: 0 2px 10px rgba(22, 79, 71, 0.1);
    color: var(--bs-secondary, #155248);
}

.feature-pill ion-icon {
    font-size: 1.1em;
    color: var(--bs-secondary, #155248);
    flex-shrink: 0;
}

.feature-pill--coming-soon {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #7f948b;
    cursor: default;
}

.feature-pill--coming-soon:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    color: #7f948b;
}

.feature-pill--coming-soon ion-icon {
    color: #d1d5db;
}

.feature-pill__badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #7f948b;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeIn 0.6s ease-out both;
}

.section-header h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--ink, #16332b);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15em;
    color: #52655d;
    line-height: 1.7;
}

.landing-section--dark .section-header h2 {
    color: #e9f1ec;
}

.landing-section--dark .section-header p {
    color: #a8bab1;
}

/* --- Directory CTA Cards --- */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.directory-card {
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(163, 189, 177, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(163, 189, 177, 0.12);
}

.directory-card .directory-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e6efeb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.directory-card .directory-icon ion-icon {
    font-size: 2.2rem;
    color: var(--bs-secondary, #155248);
}

.directory-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--ink, #16332b);
    margin-bottom: 12px;
}

.directory-card p {
    color: #52655d;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: flex;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
}

/* Hide scrollbar but keep functionality */
.pricing-grid::-webkit-scrollbar {
    display: none;
}
.pricing-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    border: 2px solid rgba(163, 189, 177, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Carousel: fixed width, snap, don't shrink */
    flex: 0 0 270px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* When viewport fits all 4 cards comfortably, share space equally */
@media (min-width: 1024px) {
    .pricing-grid {
        justify-content: center;
    }
    .pricing-card {
        flex: 0 1 280px;
        min-width: 0;
    }
}

/* Push the CTA button to the bottom so cards align vertically */
.pricing-card .btn {
    margin-top: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85em;
}

/* --- Enterprise card --- */
.pricing-card--enterprise {
    border-color: rgba(163, 189, 177, 0.3);
}

.pricing-price--label {
    font-size: 1.6em !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .pricing-card--enterprise {
        flex: 0 0 270px;
    }
}

.pricing-card--featured {
    border-color: var(--bs-primary, #1e6e63);
    box-shadow: 0 8px 32px rgba(22, 79, 71, 0.18);
}

/* The featured plan is the one warm moment on the page */
.pricing-card--featured .pricing-amount .price {
    color: var(--label-amber, #c88a3d);
}


.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--mist, #d7e4dc);
}

/* Only the featured plan earns a saturated label bar */
.pricing-card--featured::before {
    background: linear-gradient(90deg, var(--bs-primary, #1e6e63) 0%, var(--bs-secondary, #155248) 100%);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #e6efeb;
    color: #155248;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-badge--custom {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: var(--ink, #16332b);
}

#contactPlanBtn:focus,
#contactPlanBtn:focus-visible {
    outline: none;
    box-shadow: none;
}

.contact-copied-toast {
    display: block;
    text-align: center;
    font-size: 0.82em;
    color: #52655d;
    margin-top: 6px;
    animation: toast-fade 2s ease forwards;
}

@keyframes toast-fade {
    0%   { opacity: 0; transform: translateY(-4px); }
    15%  { opacity: 1; transform: translateY(0); }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

.pricing-plan-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--ink, #16332b);
    margin-bottom: 8px;
}

.pricing-amount {
    margin-bottom: 32px;
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-amount .price {
    font-size: 2.6em;
    font-weight: 800;
    color: var(--bs-secondary, #155248);
    line-height: 1;
}

.pricing-amount .period {
    font-size: 1.1em;
    color: #7f948b;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: #4a5d55;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--mist, #e3ece7);
}

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

.pricing-features li ion-icon {
    color: var(--bs-secondary, #155248);
    font-size: 1.2em;
    flex-shrink: 0;
}

/* --- Billing Interval Toggle --- */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.billing-toggle__label {
    font-size: 1em;
    font-weight: 600;
    color: #7f948b;
    transition: color 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.billing-toggle__label--active {
    color: var(--ink, #16332b);
}

.billing-toggle__badge {
    display: inline-block;
    padding: 2px 10px;
    background: #e6efeb;
    color: #155248;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 4px;
}

.billing-toggle__switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.billing-toggle__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 28px;
    transition: background 0.3s ease;
}

.billing-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.billing-toggle__switch input:checked + .billing-toggle__slider {
    background: var(--bs-primary, #1e6e63);
}

.billing-toggle__switch input:checked + .billing-toggle__slider::before {
    transform: translateX(24px);
}

/* --- Newsletter Section --- */
.landing-section--newsletter {
    background: #edf3ef;
    scroll-margin-top: 200px;
}

/* Apothecary seal: concentric rings bleeding off corners.
   `.landing-section--seal` clips and stacks; drop in one or more
   `.seal-ring` elements with a corner modifier to place them. */
.landing-section--seal {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.seal-ring {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 58%, rgba(30, 110, 99, 0.07) 58%, rgba(30, 110, 99, 0.07) 59.4%, transparent 59.4%),
        radial-gradient(circle, transparent 74%, rgba(30, 110, 99, 0.06) 74%, rgba(30, 110, 99, 0.06) 75%, transparent 75%),
        radial-gradient(circle, transparent 90%, rgba(30, 110, 99, 0.05) 90%, rgba(30, 110, 99, 0.05) 90.6%, transparent 90.6%);
    pointer-events: none;
    z-index: -1;
}

.seal-ring--top-left {
    top: -190px;
    left: -150px;
}

.seal-ring--bottom-left {
    bottom: -190px;
    left: -150px;
}

.seal-ring--top-right {
    top: -190px;
    right: -150px;
}

.seal-ring--bottom-right {
    bottom: -190px;
    right: -150px;
}

.newsletter-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.8s ease-out both;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(22, 79, 71, 0.15);
}

.newsletter-icon ion-icon {
    color: var(--bs-secondary, #155248);
    font-size: 2rem;
}

.newsletter-content h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--ink, #16332b);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.newsletter-subtitle {
    font-size: 1.1em;
    color: var(--ink, #16332b);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.newsletter-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-field {
    flex: 1;
}

.newsletter-field .form-control {
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid rgba(163, 189, 177, 0.3);
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-field .form-control:focus {
    border-color: var(--bs-secondary, #155248);
    box-shadow: 0 0 0 4px rgba(22, 79, 71, 0.12);
    outline: none;
}

.newsletter-field .form-control::placeholder {
    color: #7f948b;
}

.newsletter-btn {
    border-radius: 14px !important;
    padding: 14px 32px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Quiet CTA Section (More Info) --- */
/* Flat paper with the same hairline rules as the features band. */
.landing-section--quiet {
    background: var(--paper, #f1f5f2);
    border-top: 1px solid var(--mist, #d7e4dc);
    border-bottom: 1px solid var(--mist, #d7e4dc);
    scroll-margin-top: 200px;
}

.info-cta {
    position: relative;
    z-index: 1;
}

/* Hero treatment for the "more questions" CTA: the prescription-pad
   ruled grid bleeds off the upper-RIGHT corner; content stays centered.
   NOTE: background identical to .landing-section--hero, kept separate
   so the two sections can drift intentionally later. */
.landing-section--hero-mirror {
    position: relative;
    background:
        radial-gradient(ellipse 60% 55% at 78% 12%, rgba(30, 110, 99, 0.05) 0%, rgba(30, 110, 99, 0) 70%);
}

.landing-section--hero-mirror::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(21, 82, 72, 0.07) 0, rgba(21, 82, 72, 0.07) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, rgba(21, 82, 72, 0.07) 0, rgba(21, 82, 72, 0.07) 1px, transparent 1px, transparent 32px);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 72% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 80% at 72% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}

.landing-section--hero-mirror > .landing-section {
    position: relative;
    z-index: 1;
}

/* --- Newsletter Consent --- */
.newsletter-consent {
    text-align: left;
    margin-top: 4px;
}

.newsletter-scope {
    text-align: left;
    margin-top: 12px;
    margin-bottom: 16px;
}

.newsletter-scope-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ink, #16332b);
    margin-bottom: 8px;
}

.newsletter-scope-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-scope-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #4a5d55;
    cursor: pointer;
}

.newsletter-scope-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bs-secondary, #155248);
    cursor: pointer;
}

.newsletter-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85em;
    color: #4a5d55;
    line-height: 1.5;
    cursor: pointer;
}

.newsletter-consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--bs-secondary, #155248);
    flex-shrink: 0;
    cursor: pointer;
}

/* --- Privacy Policy Link (inline in consent text) --- */
.privacy-link {
    color: var(--bs-secondary, #155248);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dashed var(--bs-secondary, #155248);
    font-weight: 600;
    transition: color 0.15s, border-color 0.15s;
}

.privacy-link:hover {
    color: var(--bs-primary, #1e6e63);
    border-color: var(--bs-primary, #1e6e63);
}

/* --- Privacy Policy Modal --- */
.privacy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.privacy-modal-overlay.is-visible {
    display: flex;
}

.privacy-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.25s ease;
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #eee;
}

.privacy-modal-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #2d3e50;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.privacy-modal-close:hover {
    color: #333;
}

.privacy-modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    font-size: 0.92em;
    line-height: 1.7;
    color: #444;
}

.privacy-modal-body h4 {
    font-size: 1em;
    font-weight: 700;
    color: #2d3e50;
    margin: 20px 0 8px;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    margin: 0 0 10px;
}

.privacy-modal-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.privacy-modal-body li {
    margin-bottom: 4px;
}

/* --- Newsletter Messages --- */
.newsletter-message {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.92em;
    text-align: center;
}

.newsletter-message--error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.newsletter-message--success {
    background: white;
    color: var(--ink, #16332b);
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(22, 79, 71, 0.12);
    animation: fadeIn 0.5s ease-out both;
}

.newsletter-message--success ion-icon {
    font-size: 2.5rem;
    color: var(--bs-secondary, #155248);
    display: block;
    margin: 0 auto 12px;
}

.newsletter-message--success strong {
    font-size: 1.3em;
    display: block;
    margin-bottom: 8px;
    color: var(--ink, #16332b);
}

.newsletter-message--success p {
    color: #52655d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Public Directory Pages --- */
.directory-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.directory-page h1 {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--ink, #16332b);
    margin-bottom: 8px;
}

.directory-page .lead {
    color: #52655d;
    margin-bottom: 30px;
}

.filter-bar {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-bar .form-control {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
}

.filter-bar .form-control:focus {
    border-color: var(--bs-primary, #1e6e63);
    box-shadow: 0 0 0 0.2rem rgba(30, 110, 99, 0.2);
}

.clinic-card, .staff-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.clinic-card:hover, .staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary, #1e6e63);
}

.clinic-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #e6efeb 0%, #d7e4dc 100%);
}

.clinic-card .card-body, .staff-card .card-body {
    padding: 20px;
}

.clinic-card .card-title, .staff-card .card-title {
    font-weight: 700;
    color: var(--ink, #16332b);
    margin-bottom: 8px;
}

.clinic-card .card-text {
    color: #52655d;
    font-size: 0.9em;
    line-height: 1.5;
}

.staff-card .staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary, #1e6e63), var(--bs-secondary, #155248));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.staff-card .clinic-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eef4f0;
    color: var(--bs-secondary, #155248);
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f948b;
}

.empty-state ion-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* --- Pagination --- */
.pagination .page-link {
    color: var(--bs-secondary, #155248);
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-secondary, #155248);
    border-color: var(--bs-secondary, #155248);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .landing-section {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5em;
        letter-spacing: -0.01em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

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

    .features-pill-grid {
        gap: 10px;
    }

    .feature-pill {
        font-size: 0.83em;
        padding: 9px 14px;
    }

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

    .stats-bar {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-amount .price {
        font-size: 2.8em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .newsletter-content h2 {
        font-size: 2em;
    }

    .newsletter-input-row {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* --- More Info CTA --- */
.info-cta {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.info-cta .section-header {
    margin-bottom: 32px;
}

.info-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
