/* ─────────────────────────────────────────────────────
   Subs Landing Page — Styles
   Colors sourced from the app's Material 3 theme:
     Primary:           #FB8C00  (Orange600)
     Primary Container: #FFE0B2  (Orange100)
     Secondary:         #FFC107  (Amber500)
     Background:        #FFFBF5  (WarmWhite)
     Surface:           #FFFFFF
     On Surface:        #1E1A15  (WarmGray900)
     On Surface Var:    #6B6158  (WarmGray600)
     Outline:           #D7CEC4  (WarmGray300)
     Error:             #E53935
     Success:           #4CAF50
   ───────────────────────────────────────────────────── */

/* ─── Typewriter cursor ─────────────────────────────── */
.typewriter-word {
    position: relative;
}
.typewriter-word::after {
    content: '|';
    font-weight: 300;
    position: absolute;
    opacity: 0;
}
.typewriter-word.typing::after {
    animation: blink-cursor 0.6s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E1A15;
    background: #FFFBF5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: #FB8C00;
    color: #fff;
    border-color: #FB8C00;
}
.btn-primary:hover {
    background: #F57C00;
    border-color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 140, 0, 0.35);
}
.btn-outline {
    background: transparent;
    color: #1E1A15;
    border-color: #D7CEC4;
}
.btn-outline:hover {
    border-color: #FB8C00;
    color: #FB8C00;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-nav {
    background: #FB8C00;
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
}
.btn-nav:hover {
    background: #F57C00;
}

/* ─── Badge ─────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    background: #FFF3E0;
    color: #E65100;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.badge-light {
    background: #FB8C00;
    color: #fff;
}

/* ─── Navbar ────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(215, 206, 196, 0.4);
    transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: #1E1A15;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #6B6158;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: #FB8C00; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #1E1A15;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── Hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.shape-1 {
    width: 600px; height: 600px;
    background: #FB8C00;
    top: -200px; right: -150px;
}
.shape-2 {
    width: 400px; height: 400px;
    background: #FFC107;
    bottom: -100px; left: -100px;
}
.shape-3 {
    width: 200px; height: 200px;
    background: #FF5722;
    top: 40%; left: 30%;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text { max-width: 540px; }
.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #1E1A15;
}
.gradient-text {
    background: linear-gradient(135deg, #FB8C00, #FF5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #6B6158;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1E1A15;
}
.stat span {
    font-size: 13px;
    color: #8D8278;
}
.stat-divider {
    width: 1px; height: 36px;
    background: #D7CEC4;
}

/* ─── Phone Mockup ──────────────────────────────────── */
.hero-visual {
    display: flex;
    justify-content: center;
}
.phone-mockup {
    perspective: 1000px;
}
.phone-frame {
    width: 280px;
    background: #1E1A15;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.phone-frame:hover {
    transform: rotateY(0) rotateX(0);
}
.phone-screen {
    background: #FFFBF5;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}
.phone-screen .screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Section Headers ───────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: #1E1A15;
}
.section-header p {
    font-size: 17px;
    color: #6B6158;
    line-height: 1.7;
}

/* ─── Features Grid ─────────────────────────────────── */
.features {
    padding: 100px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: #FFFBF5;
    border: 1px solid #E8E0D8;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: #FB8C00;
    box-shadow: 0 8px 30px rgba(251, 140, 0, 0.1);
    transform: translateY(-4px);
}
.feature-icon {
    width: 52px; height: 52px;
    background: #FFF3E0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #FB8C00;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1E1A15;
}
.feature-card p {
    font-size: 14px;
    color: #6B6158;
    line-height: 1.65;
}

/* ─── How It Works ──────────────────────────────────── */
.how-it-works {
    padding: 100px 0;
    background: #FFFBF5;
}
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}
.step-number {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #FB8C00, #FF5722);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-connector {
    width: 60px;
    height: 2px;
    background: #D7CEC4;
    margin-top: 26px;
    flex-shrink: 0;
}
.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1E1A15;
}
.step-content p {
    font-size: 14px;
    color: #6B6158;
    line-height: 1.65;
}

/* ─── Showcase ──────────────────────────────────────── */
.showcase {
    padding: 100px 0;
    background: #fff;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.showcase-card {
    text-align: center;
}
.showcase-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: #1E1A15;
}
.showcase-card p {
    font-size: 14px;
    color: #6B6158;
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}
.showcase-phone {
    max-width: 240px;
    margin: 0 auto;
}
.mini-screen {
    background: #FFFBF5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E8E0D8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.mini-screen .screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Pricing ───────────────────────────────────────── */
.pricing {
    padding: 100px 0;
    background: #FFFBF5;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 740px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid #E8E0D8;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    border-color: #D7CEC4;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.pricing-card-featured {
    border-color: #FB8C00;
    box-shadow: 0 8px 40px rgba(251, 140, 0, 0.15);
}
.pricing-card-featured:hover {
    border-color: #FB8C00;
    box-shadow: 0 12px 50px rgba(251, 140, 0, 0.2);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FB8C00, #FF5722);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 100px;
    letter-spacing: 0.03em;
}
.pricing-header {
    text-align: center;
    margin-bottom: 28px;
}
.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1E1A15;
}
.price {
    font-size: 42px;
    font-weight: 800;
    color: #1E1A15;
    line-height: 1;
}
.price-period {
    font-size: 14px;
    color: #8D8278;
}
.pricing-features {
    margin-bottom: 28px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #4A4239;
}

/* ─── Download / CTA ────────────────────────────────── */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #FB8C00 0%, #FF5722 100%);
    color: #fff;
}
.download-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.download-content h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.download-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 36px;
}
.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 8px;
}
.store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}
.store-btn img {
    display: block;
    height: 54px;
    width: auto;
}

/* ─── Footer ────────────────────────────────────────── */
.footer {
    padding: 60px 0 24px;
    background: #1E1A15;
    color: #D7CEC4;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo span { color: #fff; }
.footer-brand p {
    font-size: 14px;
    line-height: 1.65;
    color: #8D8278;
}
.footer-links {
    display: flex;
    gap: 64px;
}
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: #8D8278;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: #FB8C00; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6B6158;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid > :last-child { grid-column: span 2; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: rgba(255, 251, 245, 0.98);
        backdrop-filter: blur(16px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid #E8E0D8;
        box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    }
    .mobile-toggle { display: flex; }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-text { max-width: 100%; }
    .hero h1 { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-visual { order: -1; }
    .phone-frame {
        width: 240px;
        transform: none;
    }
    .phone-frame:hover { transform: none; }
    .mock-card { padding: 10px 12px; margin: 4px 8px; }
    .mock-card-icon { width: 32px; height: 32px; font-size: 15px; }
    .mock-card-info strong { font-size: 12px; }
    .mock-card-price { font-size: 12px; }

    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 28px; }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .step { padding: 16px 0; }
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-grid > :last-child { grid-column: span 1; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

    .download-content h2 { font-size: 28px; }
    .store-buttons { flex-direction: column; align-items: center; }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    .footer-links { gap: 40px; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 30px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
}

/* ─── Animations ────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Skip Link (Accessibility) ────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--md-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* ─── Legal Pages ──────────────────────────────────────────── */
.legal-page {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes (matching hero) */
.legal-page::before,
.legal-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}
.legal-page::before {
    width: 500px; height: 500px;
    background: #FB8C00;
    top: -180px; right: -120px;
}
.legal-page::after {
    width: 350px; height: 350px;
    background: #FFC107;
    bottom: -80px; left: -80px;
}

/* Content wrapper */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Back link */
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6B6158;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.legal-back:hover {
    color: #FB8C00;
    gap: 10px;
}

/* Page title */
.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #1E1A15;
}

/* "Last Updated" badge */
.legal-page .last-updated {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    background: #FFF3E0;
    color: #E65100;
    letter-spacing: 0.02em;
    margin-bottom: 48px;
}

/* Section headings */
.legal-page h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 52px;
    margin-bottom: 16px;
    color: #1E1A15;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFE0B2;
}
.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #1E1A15;
}

/* Body text */
.legal-page p {
    margin-bottom: 16px;
    color: #3A352F;
    line-height: 1.8;
    font-size: 0.975rem;
}

/* Lists — restore bullets/numbers stripped by global reset */
.legal-page ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}
.legal-page ol {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
    counter-reset: legal-ol;
}
.legal-page ul li,
.legal-page ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #3A352F;
    line-height: 1.75;
    font-size: 0.975rem;
}
/* Custom orange disc for ul */
.legal-page ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FB8C00;
}
/* Numbered counter for ol */
.legal-page ol li {
    counter-increment: legal-ol;
}
.legal-page ol li::before {
    content: counter(legal-ol) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #FB8C00;
    font-size: 0.95rem;
}

/* Bold keywords */
.legal-page strong {
    color: #1E1A15;
    font-weight: 600;
}

/* Links */
.legal-page a {
    color: #FB8C00;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(251, 140, 0, 0.35);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-page a:hover {
    color: #F57C00;
    text-decoration-color: #F57C00;
}

/* Info block (developer details, contact) */
.legal-page .info-block {
    background: #FFF3E0;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 20px 0 28px;
    border: 1px solid #FFE0B2;
}
.legal-page .info-block p {
    margin-bottom: 6px;
    color: #3A352F;
    font-size: 0.95rem;
}
.legal-page .info-block p:last-child {
    margin-bottom: 0;
}

/* Caps block (legal disclaimers) */
.legal-page .caps-block {
    background: #F5F0EB;
    border-left: 4px solid #FB8C00;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 20px 0 28px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #4A4239;
}
.legal-page .caps-block p {
    margin-bottom: 0;
    font-size: inherit;
    color: inherit;
}

/* Horizontal rule between major sections */
.legal-page hr {
    border: none;
    height: 1px;
    background: #E8E0D8;
    margin: 48px 0;
}

/* ─── Legal Pages — Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .legal-page { padding: 100px 0 60px; }
    .legal-page h1 { font-size: 1.9rem; }
    .legal-page h2 { font-size: 1.25rem; margin-top: 40px; }
    .legal-page h3 { font-size: 1.05rem; margin-top: 24px; }
    .legal-page .info-block,
    .legal-page .caps-block { padding: 20px 20px; }
}
@media (max-width: 420px) {
    .legal-page h1 { font-size: 1.65rem; }
    .legal-page .last-updated { font-size: 0.8rem; }
}
