/* TinyPlan Design System
   Based on TinyTax brand tokens (see tinytax.co.uk/brand) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Core */
    --navy: #1f2744;
    --green: #11B981;
    --green-hover: #0EA472;
    --coral: #F97066;

    /* Navy shades */
    --navy-light: #2d3a5c;
    --navy-800: #1E293B;

    /* Warm Neutrals */
    --warm-50: #FAFAF9;
    --warm-100: #F5F5F4;
    --warm-200: #E7E5E4;
    --warm-300: #D6D3D1;
    --warm-400: #A8A29E;
    --warm-500: #78716C;
    --warm-600: #57534E;
    --warm-700: #44403C;
    --warm-800: #292524;

    /* Primary (Green) */
    --primary-50: #ECFDF5;
    --primary-100: #D1FAE5;
    --primary-200: #A7F3D0;
    --primary-500: #11B981;
    --primary-600: #059669;

    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --shadow: 0 1px 3px rgba(31, 39, 68, 0.08);
    --shadow-md: 0 4px 12px rgba(31, 39, 68, 0.1);
    --shadow-lg: 0 12px 32px rgba(31, 39, 68, 0.12);
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--warm-700);
    line-height: 1.6;
    background: var(--warm-50);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: white;
    border-bottom: 1px solid var(--warm-200);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    height: 40px;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
}

.site-header nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--warm-300);
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--warm-50);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn-white {
    background: white;
    color: var(--navy);
    border-color: white;
}

.btn-white:hover {
    background: var(--primary-50);
    border-color: var(--primary-50);
    transform: translateY(-1px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 80px 0 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(17, 185, 129, 0.06);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(17, 185, 129, 0.04);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.hero-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
    background: white;
    border-bottom: 1px solid var(--warm-200);
    padding: 20px 0;
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--warm-500);
    font-weight: 500;
}

.trust-item strong {
    color: var(--navy);
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
    padding: 80px 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--warm-500);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.step {
    text-align: center;
    counter-increment: step;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--green);
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.step p {
    color: var(--warm-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--warm-50);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature {
    background: white;
    border: 1px solid var(--warm-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature p {
    color: var(--warm-500);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1px solid var(--warm-200);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2px solid var(--green);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.pricing-card .price-note {
    font-size: 0.8rem;
    color: var(--warm-400);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card li {
    padding: 5px 0;
    color: var(--warm-600);
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-card li::before {
    content: "\2713";
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 64px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.5);
    padding: 32px 0;
    font-size: 0.8rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: var(--green);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-200);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 56px 0 64px;
    }

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

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

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

    .features, .how-it-works, .pricing {
        padding: 56px 0;
    }

    .trust-bar .container {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .site-header nav .btn-outline {
        display: none;
    }

    .site-header nav .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .logo {
        height: 34px;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 1.4rem;
    }

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