/* ============================================
   RIDGEWOOD.TAX - Production Stylesheet
   Steel Blue + White | Instrument Serif + DM Sans
   ============================================ */

/* --------------------------------
   CSS Variables / Design Tokens
   -------------------------------- */
:root {
    /* Colors */
    --steel-blue: #4682B4;
    --steel-blue-dark: #3A6F99;
    --steel-blue-light: #5A9BC9;
    --steel-blue-10: rgba(70, 130, 180, 0.1);
    --steel-blue-20: rgba(70, 130, 180, 0.2);
    --steel-blue-30: rgba(70, 130, 180, 0.3);
    
    --dark: #1a1a2e;
    --dark-secondary: #2d2d44;
    
    --white: #ffffff;
    --off-white: #FAFBFC;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    --green: #10b981;
    --red: #ef4444;
    --yellow: #FCD34D;
    
    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 120px 32px;
    --section-padding-mobile: 80px 20px;
    --max-width: 1200px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(70, 130, 180, 0.15);
    --shadow-lg: 0 20px 60px rgba(70, 130, 180, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------
   Noise Overlay
   -------------------------------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* --------------------------------
   Animations
   -------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp var(--transition-slow) forwards;
    animation-delay: var(--delay, 0s);
}

/* --------------------------------
   Navigation
   -------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--steel-blue-10);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--steel-blue);
}

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

.nav-link {
    font-size: 14px;
    color: var(--dark);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
}

.lang-toggle {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--steel-blue-30);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--steel-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--steel-blue-10);
}

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    background: var(--steel-blue);
    color: var(--white);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--steel-blue-dark);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-cta {
    font-size: 16px;
    font-weight: 500;
    padding: 14px 20px;
    background: var(--steel-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 8px;
}

/* --------------------------------
   Hero Section
   -------------------------------- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 32px 80px;
    gap: 80px;
}

.hero-content {
    max-width: 540px;
}

.hero-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-blue);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--steel-blue-10);
    border-radius: var(--radius-sm);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin-bottom: 24px;
}

.hero-subhead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--dark);
    opacity: 0.7;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    background: var(--steel-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(70, 130, 180, 0.3);
}

.btn-primary:hover {
    background: var(--steel-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(70, 130, 180, 0.4);
}

.btn-secondary {
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    background: transparent;
    color: var(--dark);
    border: 2px solid rgba(26, 26, 46, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--steel-blue);
    color: var(--steel-blue);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-sm);
    overflow: hidden;
    transform: rotate(-2deg);
}

.hero-card-header {
    padding: 12px 16px;
    background: var(--gray-50);
    display: flex;
    gap: 8px;
}

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

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.hero-card-body {
    padding: 32px;
}

.skeleton-line {
    height: 12px;
    background: var(--gray-100);
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-60 { width: 60%; }

.hero-card-amount {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.amount-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.amount-value {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--green);
}

/* --------------------------------
   Features Section
   -------------------------------- */
.features {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    text-align: center;
    margin-bottom: 64px;
    color: var(--dark);
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--steel-blue-10);
    transition: all var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-500);
}

/* --------------------------------
   How It Works Section
   -------------------------------- */
.how-it-works {
    padding: var(--section-padding);
    background: var(--steel-blue);
}

.section-title-light {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 400;
    text-align: center;
    margin-bottom: 64px;
    color: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.2);
    display: block;
    margin-bottom: 16px;
}

.step-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------
   Path Selection Section
   -------------------------------- */
.path-section {
    padding: var(--section-padding);
    max-width: 900px;
    margin: 0 auto;
}

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

.path-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
}

.path-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.path-card.featured {
    border-color: var(--steel-blue);
}

.path-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    background: var(--steel-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.path-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark);
}

.path-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--steel-blue);
    margin-bottom: 16px;
}

.path-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
}

.path-features {
    margin-bottom: 32px;
}

.path-features li {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check {
    color: var(--green);
    font-weight: 700;
}

.path-cta-primary {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: var(--steel-blue);
    color: var(--white);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.path-cta-primary:hover {
    background: var(--steel-blue-dark);
}

.path-cta-secondary {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    color: var(--steel-blue);
    border: 2px solid var(--steel-blue);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.path-cta-secondary:hover {
    background: var(--steel-blue-10);
}

/* --------------------------------
   Pricing Section
   -------------------------------- */
.pricing {
    padding: var(--section-padding);
    background: var(--steel-blue);
}

.pricing-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: -48px;
    margin-bottom: 64px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    position: relative;
    transition: all var(--transition-fast);
}

.pricing-card.popular {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    background: var(--dark);
    color: var(--white);
    border-radius: 20px;
}

.pricing-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark);
}

.pricing-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.price-block {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--dark);
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    color: var(--steel-blue);
    border: 2px solid var(--steel-blue);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.pricing-cta:hover {
    background: var(--steel-blue);
    color: var(--white);
}

.pricing-cta-popular {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    background: var(--steel-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.pricing-cta-popular:hover {
    background: var(--steel-blue-dark);
}

.complex-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 48px;
    margin-bottom: 16px;
}

.complex-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.complex-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* --------------------------------
   FAQ Section
   -------------------------------- */
.faq {
    padding: var(--section-padding);
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--steel-blue-10);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--steel-blue-20);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
}

.faq-toggle {
    font-size: 24px;
    color: var(--steel-blue);
    transition: transform var(--transition-medium);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-500);
    transition: all var(--transition-medium);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

/* --------------------------------
   Final CTA Section
   -------------------------------- */
.final-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    padding: 20px 48px;
    background: var(--steel-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 30px rgba(70, 130, 180, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(70, 130, 180, 0.5);
}

/* --------------------------------
   Footer
   -------------------------------- */
.footer {
    padding: 64px 32px 32px;
    background: var(--dark);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--white);
}

.footer-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* --------------------------------
   Responsive Design
   -------------------------------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 100px;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-card {
        width: 100%;
        max-width: 320px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .paths-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .path-card {
        padding: 28px;
    }
    
    .pricing-card {
        padding: 28px;
    }
}

/* --------------------------------
   PIN Protection Overlay
   -------------------------------- */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.pin-overlay.hidden {
    display: none;
}

.pin-modal {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 360px;
    width: 90%;
}

.pin-modal h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 8px;
}

.pin-modal p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pin-modal input {
    width: 100%;
    padding: 16px;
    font-size: 24px;
    font-family: var(--font-sans);
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.pin-modal input:focus {
    border-color: var(--steel-blue);
}

.pin-modal button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-sans);
    background: var(--steel-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pin-modal button:hover {
    background: var(--steel-blue-dark);
}

.pin-error {
    color: var(--red);
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 0;
}
