/* DentScribe Landing Page — Based on Remedy template style (uiCookies, CC BY 3.0) */

:root {
    --primary: #0f7b6c;
    --primary-light: #e8f5f2;
    --primary-dark: #0a5c51;
    --accent: #f06449;
    --text: #1a2b3c;
    --text-muted: #5a6b7c;
    --bg: #ffffff;
    --bg-alt: #f7faf9;
    --border: #e2ebe8;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(15, 123, 108, 0.08);
    --shadow-lg: 0 12px 48px rgba(15, 123, 108, 0.12);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-secondary {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-color: var(--border);
    color: var(--text);
}
.btn-outline-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(160deg, var(--bg) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    color: var(--text);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}
.hero-stats .stat strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
}
.hero-stats .stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Phone mockup */
.hero-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    background: #1a2b3c;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    min-height: 500px;
}

.phone-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.phone-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.phone-card.recording {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.phone-card.recording .time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.phone-card.note {
    font-size: 0.78rem;
    line-height: 1.5;
}
.phone-card.note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.85rem;
}
.phone-card.note p {
    margin: 4px 0;
    color: var(--text-muted);
}

.phone-card.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    padding: 4px 0;
}

.badge-hipaa, .badge-copy {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 500;
}
.badge-hipaa {
    background: var(--primary-light);
    color: var(--primary);
}
.badge-copy {
    background: #fff3e0;
    color: #e65100;
}

/* Section styles */
.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 16px;
    max-width: 600px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 48px;
}

/* How It Works */
.how-section {
    padding: 100px 0;
    background: var(--bg);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
}

.step {
    flex: 1;
    padding: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 12px;
    line-height: 1;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.step-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
}

.step-connector {
    width: 48px;
    min-width: 48px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 6px, transparent 6px, transparent 12px);
    align-self: center;
    margin-top: 20px;
}

/* Features */
.features-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    transition: all 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Screenshots */
.screenshots-section {
    padding: 100px 0;
    background: var(--bg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.screenshot-item h4 {
    font-size: 1rem;
    margin: 16px 0 8px;
}
.screenshot-item > p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.ipad-showcase {
    margin-top: 64px;
    text-align: center;
}
.ipad-showcase h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-weight: 500;
}
.ipad-img {
    max-width: 900px;
    margin: 0 auto;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lightbox-close:hover {
    opacity: 1;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.testimonial-card .stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    font-size: 1.1rem;
    padding: 14px 36px;
}
.cta-section .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.82rem !important;
    opacity: 0.7 !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: #c0c8d0;
    padding: 64px 0 32px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
}

.site-footer p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 8px;
}
.site-footer ul a {
    color: #a0b0c0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.site-footer ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}
.footer-attribution a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 120px 0 60px;
    }
    .hero-phone {
        margin-top: 48px;
    }
    .steps {
        flex-direction: column;
        gap: 16px;
    }
    .step-connector {
        width: 2px;
        height: 32px;
        min-width: unset;
        background: repeating-linear-gradient(180deg, var(--primary) 0, var(--primary) 6px, transparent 6px, transparent 12px);
        align-self: center;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .screenshots-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse-dot { animation: none; }
    .feature-card { transition: none; }
}
