/**
 * Function First Coaching - Base Stylesheet
 * 
 * Shared styles for all sales/landing pages.
 * Brand colors per style_guide.md
 */

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

/* ===== Design Tokens ===== */
:root {
    /* Product palette (per style_guide.md) */
    --color-dica-1: #1caba4;
    --color-dica-1-dark: #0d7a75;
    --color-dica-2: #1c4554;
    --color-dica-3: #bf816a;
    --color-intro: #a4acac;

    /* UI palette */
    --color-action: #f88379;
    --color-action-light: #ffb4ac;
    --color-text: #535641;
    --color-text-light: #5a5a4a;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-highlight: #fffbeb;
}

/* ===== Base Typography ===== */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Effra', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

h1,
h2,
h3 {
    color: var(--color-dica-2);
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

h2 {
    font-size: 2rem;
    margin: 48px 0 24px;
}

h3 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--color-dica-1-dark);
    text-decoration: underline;
}

a:hover {
    color: var(--color-dica-2);
}

/* ===== Layout ===== */
.sales-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.divider {
    text-align: center;
    margin: 48px 0;
    color: var(--color-dica-1);
    font-size: 1.5rem;
    letter-spacing: 8px;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-dica-2);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ===== Hero Section ===== */
.hero-sales {
    padding: 64px 0 48px;
    text-align: center;
}

.pre-head {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dica-1-dark);
    margin-bottom: 16px;
}

.hero-sales h1 {
    font-size: 2.6rem;
    max-width: 680px;
    margin: 0 auto 24px;
}

.hero-sales .subhead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.hero-portrait {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
}

/* ===== Highlight Box ===== */
.highlight-box {
    background: var(--color-highlight);
    border-left: 4px solid var(--color-dica-3);
    padding: 20px 24px;
    margin: 32px 0;
}

/* ===== Lists ===== */
.pain-list {
    list-style: none;
    margin: 24px 0;
}

.pain-list li {
    padding: 12px 0 12px 32px;
    position: relative;
}

.pain-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: bold;
}

.win-list {
    list-style: none;
    margin: 24px 0;
}

.win-list li {
    padding: 12px 0 12px 32px;
    position: relative;
}

.win-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-dica-1);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== Stats ===== */
.stat-callout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    padding: 24px 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dica-1);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ===== Offer Box ===== */
.offer-box {
    border: 3px solid var(--color-dica-1);
    border-radius: 12px;
    padding: 40px 32px;
    margin: 48px 0;
    text-align: center;
}

.offer-box h2 {
    margin-top: 0;
    color: var(--color-dica-1-dark);
}

.price-stack {
    margin: 32px 0;
}

.price-anchor {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.price-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-dica-2);
    line-height: 1.1;
}

.price-sub {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ===== Buttons ===== */
.btn-cta {
    display: inline-block;
    background: var(--color-action);
    color: #000000;
    padding: 18px 48px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 131, 121, 0.35);
}

.btn-cta-small {
    display: inline-block;
    background: var(--color-action);
    color: #000000;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 131, 121, 0.4);
}

/* ===== Urgency Bar ===== */
.urgency-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-dica-2);
    color: white;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: transform 0.3s ease;
}

.urgency-bar--hidden {
    transform: translateY(-100%);
}

.urgency-bar strong {
    color: var(--color-action-light);
}

/* ===== Founder Section ===== */
.founder-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px 0;
}

.founder-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.founder-creds {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: var(--color-text-light);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 48px 20px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--color-dica-1-dark);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .hero-sales h1 {
        font-size: 2rem;
    }

    .founder-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .founder-img {
        width: 200px;
        height: 200px;
    }

    .price-main {
        font-size: 2.8rem;
    }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1a1a2e;
        --color-bg-alt: #16213e;
        --color-text: #e8e8e8;
        --color-text-light: #b0b0b0;
        --color-highlight: #2a2a3e;
    }

    body {
        background: var(--color-bg);
    }

    h1,
    h2,
    h3 {
        color: #ffffff;
    }

    .offer-box {
        background: var(--color-bg-alt);
    }

    .urgency-bar {
        background: #0f1a2e;
    }

    .price-main {
        color: var(--color-dica-1);
    }

    a {
        color: var(--color-dica-1);
    }

    .faq-item {
        border-color: #3a3a5a;
    }

    .highlight-box {
        background: #2a2a3e;
    }
}