/* ============================================
   DentalKing Software — Brand Stylesheet
   Matches dentalkingsoftware.com design system
   ============================================ */

:root {
    --accent: #FE330A;
    --accent-hover: #e52d08;
    --accent-light: #fff1ed;
    --black: #000000;
    --heading: #191919;
    --text: #555555;
    --text-light: #777777;
    --border: #e8e8e8;
    --bg: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #191919;
    --radius: 23px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo svg {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading);
    transition: color var(--transition);
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(254,51,10,0.3);
}

.btn-dark {
    padding: 14px 32px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius);
}

.btn-dark:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-outline {
    padding: 12px 28px;
    background: transparent;
    color: var(--heading);
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    padding: 12px 28px;
    background: transparent;
    color: var(--heading);
    border-radius: var(--radius);
}

.btn-ghost:hover {
    background: var(--bg-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* ---- Hero Section ---- */
.hero {
    padding: 150px 20px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-light);
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Trust Bar ---- */
.trust-bar {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-bar p {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 20px;
    flex-wrap: wrap;
}

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

.trust-stat .number {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading);
    display: block;
}

.trust-stat .label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ---- Features Section ---- */
.features {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text);
    max-width: 540px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.red { background: var(--accent-light); color: var(--accent); }
.feature-icon.dark { background: #f0f0f0; color: var(--heading); }

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text);
}

/* ---- Background Variants ---- */
.bg-light {
    background: var(--bg-light);
}

/* ---- Three Column Grid ---- */
.features-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Feature Highlights (Alternating Rows) ---- */
.feature-highlights {
    padding: 48px 0 96px;
}

.highlight-row {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 48px 0;
}

.highlight-row.reverse {
    flex-direction: row-reverse;
}

.highlight-content {
    flex: 1;
}

.highlight-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.highlight-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.6;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.highlight-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

/* Tooth grid visual */
.tooth-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.tooth-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tooth {
    width: 32px;
    height: 36px;
    border-radius: 6px 6px 10px 10px;
    border: 2px solid var(--border);
}

.tooth.healthy { background: #e8f5e9; border-color: #81c784; }
.tooth.treated { background: #e3f2fd; border-color: #64b5f6; }
.tooth.needs-care { background: #fff3e0; border-color: #ffb74d; }

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.healthy { background: #81c784; }
.dot.treated { background: #64b5f6; }
.dot.needs-care { background: #ffb74d; }

/* Queue preview visual */
.queue-preview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.queue-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.queue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-placeholder {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.line-placeholder.w35 { width: 35%; }
.line-placeholder.w40 { width: 40%; }
.line-placeholder.w50 { width: 50%; }
.line-placeholder.w60 { width: 60%; }
.line-placeholder.w70 { width: 70%; }
.line-placeholder.w80 { width: 80%; }

.queue-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.queue-badge.active { background: var(--accent-light); color: var(--accent); }
.queue-badge.waiting { background: #f0f0f0; color: var(--text-light); }

/* Calendar preview visual */
.calendar-preview {
    text-align: center;
}

.cal-header {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--heading);
    margin-bottom: 16px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cal-day {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 6px;
}

.cal-num {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-light);
}

.cal-num.has-appt {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

/* Claims preview visual */
.claims-preview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.claim-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.claim-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--border);
    flex-shrink: 0;
}

.claim-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.claim-status {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.claim-status.approved { background: #e8f5e9; color: #2e7d32; }
.claim-status.pending { background: #fff3e0; color: #e65100; }

/* ---- How It Works ---- */
.how-it-works {
    padding: 96px 0;
    background: var(--bg-light);
}

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

.step-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
}

/* ---- FAQ Section ---- */
.faq-section {
    padding: 96px 0;
}

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

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item[open] {
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 28px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 28px 20px;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.8;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    text-align: center;
    padding: 72px 40px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    color: #fff;
}

.cta-card h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.0625rem;
    color: #aaa;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.9375rem;
    color: var(--text);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-page {
    background: var(--bg);
}

.success-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.success-container {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* Checkmark Animation */
.success-animation {
    margin-bottom: 28px;
}

.checkmark-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 88px;
    height: 88px;
}

.checkmark-bg {
    stroke: var(--border);
}

.checkmark-ring {
    stroke: #22c55e;
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: ring-draw 0.6s ease-out 0.3s forwards;
    transform: rotate(-90deg);
    transform-origin: center;
}

.checkmark-path {
    stroke: #22c55e;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: check-draw 0.4s ease-out 0.8s forwards;
}

@keyframes ring-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.user-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow);
    margin: 0 auto 24px;
    object-fit: cover;
}

.success-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.success-message {
    margin-bottom: 40px;
}

.success-message .lead {
    font-size: 1.125rem;
    color: var(--heading);
    font-weight: 500;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
    text-align: left;
}

.info-card {
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.65;
}

/* Timeline */
.success-footer {
    padding-top: 16px;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-step.completed .timeline-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px #22c55e;
}

.timeline-step.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(254,51,10,0.12);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(254,51,10,0.12); }
    50% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 10px rgba(254,51,10,0.06); }
}

.timeline-step span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.timeline-step.completed span { color: #22c55e; }
.timeline-step.active span { color: var(--accent); }

.timeline-line {
    width: 72px;
    height: 2px;
    background: var(--border);
    margin: 0 10px;
    margin-bottom: 26px;
}

.timeline-line.active {
    background: linear-gradient(90deg, #22c55e, var(--accent));
}

/* Error Page */
.error-icon {
    margin-bottom: 24px;
}

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

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-stats {
        gap: 32px;
    }

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

    .highlight-row,
    .highlight-row.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .highlight-content h2 {
        font-size: 1.5rem;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

    .timeline {
        flex-direction: column;
        gap: 0;
    }

    .timeline-line {
        width: 2px;
        height: 28px;
        margin: 4px 0;
    }

    .timeline-step {
        flex-direction: row;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

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