/* ============================================
   CashflowCheck.com.au - Landing Page Styles
   Mobile-first, high-conversion design
   ============================================ */

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

:root {
    --color-primary: #1a365d;
    --color-primary-light: #2a4a7f;
    --color-accent: #38a169;
    --color-accent-dark: #2f855a;
    --color-accent-light: #c6f6d5;
    --color-bg: #f7fafc;
    --color-bg-white: #ffffff;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-text-muted: #a0aec0;
    --color-border: #e2e8f0;
    --color-danger: #e53e3e;
    --color-danger-light: #fff5f5;
    --color-warning-light: #fffbeb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cn);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.125rem; }

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.625rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-size: 1.0625rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-cn);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(56, 161, 105, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.45);
    color: white;
}

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

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-switch:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: white !important;
    background: var(--color-accent);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    color: white;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.35;
}

.highlight {
    color: var(--color-accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--color-text);
}

.hero-cta-group {
    margin-bottom: 40px;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.06) 0%, transparent 70%);
    z-index: 1;
}

/* --- Pain Points --- */
.pain-points {
    padding: 80px 0;
    background: var(--color-bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.card {
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    margin-bottom: 16px;
}

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

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

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

.steps {
    max-width: 640px;
    margin: 0 auto 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h3 {
    margin-bottom: 6px;
    font-size: 1.0625rem;
}

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

.step-content strong {
    color: var(--color-text);
}

.step-connector {
    width: 2px;
    height: 32px;
    background: var(--color-border);
    margin-left: 23px;
}

.key-benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(56, 161, 105, 0.06);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.benefit-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.key-benefit p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.key-benefit strong {
    color: var(--color-text);
}

/* --- Fit Check --- */
.fit-check {
    padding: 80px 0;
    background: var(--color-bg-white);
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.fit-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 2px solid;
}

.fit-yes {
    border-color: var(--color-accent);
    background: rgba(56, 161, 105, 0.03);
}

.fit-no {
    border-color: var(--color-danger);
    background: rgba(229, 62, 62, 0.02);
}

.fit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fit-header h3 {
    font-size: 1.125rem;
}

.fit-yes .fit-header h3 { color: var(--color-accent-dark); }
.fit-no .fit-header h3 { color: var(--color-danger); }

.fit-card ul {
    list-style: none;
    padding: 0;
}

.fit-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.fit-card li strong {
    color: var(--color-text);
}

.fit-yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.fit-no li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--color-danger);
    font-weight: 700;
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-cn);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    line-height: 1.5;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
    background: var(--color-primary);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info h2 {
    color: white;
    font-size: 1.625rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.contact-info p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 24px;
}

.callback-time {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
}

.callback-time svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent-light);
}

.callback-time strong {
    color: white;
}

.contact-methods {
    margin-top: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.contact-method svg {
    color: rgba(255,255,255,0.5);
}

.contact-form-wrapper {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.required {
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-cn);
    font-size: 1rem;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
    margin-top: 4px;
}

/* --- Footer --- */
.footer {
    padding: 40px 0 24px;
    background: #0f2440;
    color: rgba(255,255,255,0.6);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.125rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-top: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    h1 { font-size: 2.75rem; }
    h2, .section-title { font-size: 2rem; }
    
    .hero {
        padding: 140px 0 80px;
    }

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

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

    .hero-stats {
        gap: 40px;
        max-width: 580px;
    }

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

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

    .card {
        padding: 36px 28px;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .contact-form-wrapper {
        padding: 40px 32px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: row;
        gap: 24px;
    }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cards-grid {
        gap: 28px;
    }

    .card {
        padding: 40px 32px;
    }

    .contact-wrapper {
        gap: 80px;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form Success State --- */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    color: var(--color-accent);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.form-success p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* --- Contact Options (Typeform + WeChat) --- */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-option {
    padding: 28px 24px;
}

.contact-option:first-child {
    padding-bottom: 24px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.option-header h3 {
    font-size: 1.0625rem;
    color: var(--color-primary);
    margin: 0;
}

.contact-option > p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-option > p strong {
    color: var(--color-text);
    font-family: var(--font-en);
}

.option-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.option-divider::before,
.option-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.option-divider span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.wechat-option {
    text-align: center;
}

.wechat-option .option-header {
    justify-content: center;
}

.wechat-qr-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.wechat-qr-container a {
    display: block;
    transition: transform 0.2s;
}

.wechat-qr-container a:hover {
    transform: scale(1.02);
}

.wechat-qr {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Responsive adjustments for contact options */
@media (min-width: 768px) {
    .contact-option {
        padding: 32px;
    }

    .contact-option:first-child {
        padding-bottom: 28px;
    }

    .option-divider {
        padding: 0 32px;
    }

    .wechat-qr {
        max-width: 220px;
    }
}
