/* ==========================================================================
   EverySingleCent Landing Page — Modern, Clean Design
   ========================================================================== */

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-bg:             #f8f9fb;
    --lp-bg-alt:         #ffffff;
    --lp-bg-dark:        #1a1f25;
    --lp-text:           #2d3239;
    --lp-text-secondary: #555555;
    --lp-text-muted:     #8898aa;
    --lp-accent:         #4b607f;
    --lp-expense:        #f23e16;
    --lp-income:         #949e34;
    --lp-cta:            #1a2129;
    --lp-cta-hover:      #2d3a47;
    --lp-border:         #e2e8f0;
    --lp-card-shadow:    0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    --lp-card-radius:    16px;
    --lp-max-width:      1140px;
    --font:              'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--lp-text);
    background: var(--lp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--lp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--lp-text);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 12px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--lp-cta);
    color: #fff;
}
.btn-primary:hover {
    background: var(--lp-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--lp-text-secondary);
    border: 1.5px solid var(--lp-border);
}
.btn-ghost:hover {
    background: var(--lp-bg-alt);
    border-color: var(--lp-text-muted);
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================================
   HEADER
   ======================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.site-header.scrolled {
    background: rgba(248, 249, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--lp-border);
    padding: 10px 0;
}

.header-inner {
    max-width: var(--lp-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--lp-text);
}

.header-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--lp-cta);
    color: #fff;
    border-radius: 10px;
    transition: all 0.2s;
}
.header-cta:hover {
    background: var(--lp-cta-hover);
    transform: translateY(-1px);
}

/* =======================================================================
   HERO
   ======================================================================= */
.hero {
    padding-top: 80px;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-text {
    max-width: 480px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--lp-text-secondary);
    margin-top: 16px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-hint {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--lp-text-muted);
    font-weight: 500;
}

.hero-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Hero Waitlist (compact bar) ── */
.hero-waitlist {
    padding: 40px 0 60px;
    text-align: center;
}

.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.waitlist-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--lp-border);
    background: var(--lp-bg-alt);
    color: var(--lp-text);
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-input:focus {
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(75, 96, 127, 0.1);
}

.waitlist-btn {
    white-space: nowrap;
}

.waitlist-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--lp-text-muted);
}

.waitlist-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}
.waitlist-message.success { color: #27ae60; display: block; }
.waitlist-message.error   { color: #e74c3c; display: block; }
.waitlist-message.info    { color: var(--lp-accent); display: block; }

/* =======================================================================
   PERSONAS (GSAP ScrollTrigger Section)
   ======================================================================= */
.personas {
    background: var(--lp-bg-alt);
    padding: 80px 0;
}

.personas-stage {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.personas-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.persona-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1.5px solid transparent;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    color: var(--lp-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.persona-tab:hover {
    background: var(--lp-bg);
    color: var(--lp-text-secondary);
    border-color: var(--lp-border);
}

.persona-tab.active {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-weight: 600;
    border-color: var(--lp-expense);
    box-shadow: var(--lp-card-shadow);
}

.persona-tab-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.persona-tab-name {
    line-height: 1.2;
}

/* Persona cards */
.personas-content {
    position: relative;
    min-height: 380px;
}

.persona-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.persona-card.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.persona-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.persona-tagline {
    font-size: 1.1rem;
    color: var(--lp-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.persona-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.persona-points li {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--lp-text-secondary);
    padding-left: 20px;
    position: relative;
}

.persona-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-expense);
}

.persona-points li strong {
    color: var(--lp-text);
    font-weight: 600;
}

/* =======================================================================
   FEATURES
   ======================================================================= */
.features {
    background: var(--lp-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--lp-bg-alt);
    border-radius: var(--lp-card-radius);
    padding: 28px 24px;
    box-shadow: var(--lp-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-bg);
    border-radius: 12px;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* =======================================================================
   DATA OWNERSHIP
   ======================================================================= */
.ownership {
    background: var(--lp-bg-dark);
    color: #e0e5ec;
}

.ownership h2 {
    color: #fff;
    margin-bottom: 12px;
}

.ownership-lead {
    font-size: 1.15rem;
    color: #8898aa;
    max-width: 520px;
    margin-bottom: 40px;
}

.ownership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ownership-point {
    padding: 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ownership-point strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}

.ownership-point span {
    font-size: 0.9rem;
    color: #8898aa;
    line-height: 1.5;
}

/* =======================================================================
   COMPARISON
   ======================================================================= */
.comparison {
    background: var(--lp-bg);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--lp-card-radius);
    overflow: hidden;
    background: var(--lp-bg-alt);
    box-shadow: var(--lp-card-shadow);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.comparison-row:not(:last-child) {
    border-bottom: 1px solid var(--lp-border);
}

.comparison-header {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-old,
.comparison-new {
    padding: 18px 24px;
    font-size: 0.95rem;
}

.comparison-old {
    color: var(--lp-text-muted);
    background: rgba(0,0,0,0.02);
}

.comparison-new {
    color: var(--lp-text);
    font-weight: 500;
}

.comparison-header .comparison-old {
    color: var(--lp-text-muted);
}
.comparison-header .comparison-new {
    color: var(--lp-text);
}

/* =======================================================================
   PHILOSOPHY
   ======================================================================= */
.philosophy {
    background: var(--lp-bg-alt);
    padding: 80px 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--lp-text);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.philosophy-item p {
    font-size: 1rem;
    color: var(--lp-text-muted);
}

/* =======================================================================
   FINAL CTA
   ======================================================================= */
.final-cta {
    background: var(--lp-bg);
    text-align: center;
    padding: 80px 0;
}

.final-cta h2 {
    margin-bottom: 12px;
}

.final-cta p {
    color: var(--lp-text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.waitlist-form-bottom {
    justify-content: center;
}

/* =======================================================================
   AI-CITABLE ABOUT SECTION
   ======================================================================= */
.about-detail {
    background: var(--lp-bg-alt);
    padding: 80px 0 60px;
    border-top: 1px solid var(--lp-border);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    margin-top: 40px;
}

.about-block h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--lp-text);
}

.about-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--lp-text-secondary);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.site-footer {
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-border);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
    color: var(--lp-text);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--lp-text-muted);
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        max-width: 100%;
        order: 1;
    }

    .hero-demo {
        order: 0;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-hint {
        text-align: center;
    }

    /* Personas */
    .personas-stage {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .personas-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        position: static;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .persona-tab {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .persona-tab-icon {
        font-size: 1.1rem;
    }

    .personas-content {
        min-height: auto;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Ownership */
    .ownership-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison */
    .comparison-old,
    .comparison-new {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Waitlist */
    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-btn {
        width: 100%;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }

    .persona-card h3 {
        font-size: 1.3rem;
    }
}
