/* CSS Variables */
:root {
    --primary-color: #28a745;
    --primary-dark: #1e7e34;
    --primary-light: #d4edda;
    --secondary-color: #6c757d;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #fff;
    --bg-light: #f8faf9;
    --bg-dark: #1a1a2e;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 24px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.app-logo {
    font-size: 24px;
}

.app-balance {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.balance-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
}

.app-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gift-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    color: white;
}

.gift-card.amazon {
    background: linear-gradient(135deg, #ff9900, #ffad33);
}

.gift-card.tesco {
    background: linear-gradient(135deg, #00539f, #0066cc);
}

.gift-card .brand {
    font-weight: 600;
}

.gift-card .cashback {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.hero-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Brands Section */
.brands {
    background: var(--bg-light);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.brand-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 100%;
    height: 120px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.brand-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.brand-cashback {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 40px 32px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    font-size: 64px;
    margin: 24px 0;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-light);
}

/* Features */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.download-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: black;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.store-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.store-btn.disabled:hover {
    transform: none;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-label {
    font-size: 10px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
}

.coming-soon-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.8;
}

/* Page Hero (FAQ etc) */
.page-hero {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-categories {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 48px;
}

.faq-category h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    background: white;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 12px;
    color: var(--text-light);
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 24px;
}

.faq-answer ul {
    list-style: disc;
}

.faq-answer ol {
    list-style: decimal;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--primary-color);
}

.faq-cta {
    text-align: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-top: 60px;
}

.faq-cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.faq-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        transform: none;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .brand-grid {
        grid-template-columns: 1fr 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-intro {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.legal-intro p {
    margin-bottom: 12px;
}

.legal-intro p:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content .contact-info {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    margin: 16px 0;
}

.legal-content .contact-info p {
    margin-bottom: 8px;
}

.legal-content .contact-info p:last-child {
    margin-bottom: 0;
}

/* Cookie Policy Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.cookie-table td {
    color: var(--text-light);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.contact-page {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contact-info-section > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.business-info h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.business-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.business-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.company-reg {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.business-card .address,
.business-card .business-contact {
    margin-bottom: 20px;
}

.business-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.business-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.business-card a {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.form-success p {
    color: var(--text-light);
}

/* Help Topics Section */
.help-topics {
    padding: 80px 0;
    background: white;
}

.help-topics h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.topic-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.topic-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.topic-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.topic-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Legal Pages Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-form-section {
        padding: 32px 24px;
    }

    .cookie-table {
        font-size: 12px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .legal-content {
        padding: 24px 16px;
    }
}
