/* ==============================================
   LANDING PAGE TEMPLATE — BASE STYLES

   Customize these variables for each site.
   Everything else should just work.
   ============================================== */

:root {
    /* === BRAND COLORS — Change these per site === */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-text: #1a1a2e;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* === TYPOGRAPHY === */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;

    /* === LAYOUT === */
    --max-width: 720px;
    --section-padding: 5rem 1.5rem;
    --border-radius: 8px;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* === LAYOUT === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HERO === */
.hero {
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

/* === TRUST SECTION === */
.trust {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-logos span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* === BENEFITS === */
.benefits {
    padding: var(--section-padding);
    background-color: var(--color-bg-alt);
}

.benefits .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.benefit h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === CAPTURE FORM === */
.capture-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
    justify-content: center;
}

.capture-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.capture-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.capture-form .btn {
    white-space: nowrap;
}

/* === FOOTER === */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .capture-form {
        flex-direction: column;
    }

    .capture-form input[type="email"],
    .capture-form .btn {
        width: 100%;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }
}
