@import 'tokens.css';
@import 'base.css';
@import 'components.css';

/* landing.css overrides: body on landing has no flex column (no navbar/footer structure) */
body {
    min-height: unset;
    display: block;
}

/* ---- NAV ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 249, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-fog);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 3.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.01em;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-brand.nav-brand--visible { opacity: 1; }
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-brand .accent { color: var(--color-sun); }

/* ---- HERO BRAND (large, fades out on scroll) ---- */
.hero-brand {
    text-align: center;
    padding: 1rem 0 3rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hero-brand-wordmark {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.hero-brand-wordmark .accent { color: var(--color-sun); }

.hero-brand-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---- BUTTONS (landing-specific variants) ---- */
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-sun      { background: var(--color-sun); color: var(--color-text); }
.btn-sun:hover { background: var(--color-sun-light); }

.btn-blue     { background: var(--color-primary); color: white; }
.btn-blue:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(43,92,230,0.28); }

.btn-outline-inv {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-inv:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-pale); }

/* ---- HERO ---- */
.hero {
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -160px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43,92,230,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-sun-pale);
    border: 1px solid #f0d88a;
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a5500;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}
.hero-headline .hl { color: var(--color-primary); }

.hero-sub {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.trust-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

/* ---- PHONE MOCKUP ---- */
.hero-visual { position: relative; }

.phone {
    background: var(--color-surface);
    border-radius: 18px;
    border: 1px solid var(--color-fog);
    box-shadow: 0 20px 60px rgba(26,31,54,0.13);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.phone-bar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-h) 100%);
    padding: 1.1rem 1.25rem 1rem;
}

.phone-bar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.phone-event-name {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

.phone-event-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.phone-live-badge {
    background: var(--color-danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
}

.phone-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    margin-bottom: 5px;
}

.phone-progress-bar {
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.phone-progress-fill {
    height: 100%;
    width: 57%;
    background: linear-gradient(90deg, rgba(255,255,255,0.75), var(--color-sun-light));
    border-radius: 3px;
}

.phone-body { padding: 0.9rem 1rem; }

.phone-challenge {
    background: var(--color-primary-pale);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.6rem;
}

.phone-challenge-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.phone-challenge-q {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 5px;
}

.phone-challenge-hint {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-waypoints { display: flex; flex-direction: column; gap: 5px; }

.phone-wp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--color-card);
}
.phone-wp.wp-done { background: #d8f5ea; }
.phone-wp.wp-locked { opacity: 0.5; }

.phone-wp-dot {
    width: 18px; height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Nunito', sans-serif;
}
.phone-wp-dot.dot-done   { background: var(--color-success); color: white; }
.phone-wp-dot.dot-active { background: var(--color-primary); color: white; }
.phone-wp-dot.dot-locked { background: var(--color-border); color: white; }

.phone-wp-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text);
}
.phone-wp-text.wp-text-done   { color: var(--color-success-text); }
.phone-wp-text.wp-text-cur    { color: var(--color-primary); }
.phone-wp-text.wp-text-locked { color: var(--color-text-muted); }

/* Floating chips on visual — see components.css for .float-chip base styles */
.float-top-right {
    top: -18px;
    right: -20px;
}

.float-bottom-left {
    bottom: -16px;
    left: -18px;
    background: var(--color-primary);
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(43,92,230,0.3);
}

.float-bottom-left strong { color: white; }
.float-bottom-left span   { color: rgba(255,255,255,0.6); }

/* ---- PROOF BAR ---- */
.proof-bar {
    background: var(--color-surface);
    border-top: 1px solid var(--color-fog);
    border-bottom: 1px solid var(--color-fog);
    padding: 1.5rem 2rem;
}

.proof-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
}

.proof-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-border);
}

.proof-org {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-border);
    letter-spacing: -0.01em;
}

/* ---- SHARED SECTION STYLES ---- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2.75rem;
}

/* ---- PROBLEM / SOLUTION ---- */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ba-card {
    border-radius: 14px;
    padding: 2.25rem 2rem;
}

.ba-card.ba-before {
    background: #fff5f4;
    border: 1.5px solid #fdd5d1;
}

.ba-card.ba-after {
    background: #f0faf5;
    border: 1.5px solid #b8ecd4;
}

.ba-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.ba-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.ba-card.ba-before .ba-title { color: var(--color-danger); }
.ba-card.ba-after  .ba-title { color: var(--color-success-text); }

.ba-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ba-list li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.55;
}

.ba-list li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    top: 0;
}

/* ---- HOW IT WORKS ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-fog);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(26,31,54,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
    box-shadow: 0 10px 36px rgba(26,31,54,0.1);
    transform: translateY(-2px);
}

.step-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem; height: 1.75rem;
    border-radius: 6px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.step-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.step-desc { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.7; }

/* ---- FEATURES ---- */
.features-bg {
    background: var(--color-card);
    border-top: 1px solid var(--color-fog);
    border-bottom: 1px solid var(--color-fog);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-fog);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(26,31,54,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 10px 32px rgba(26,31,54,0.09);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.feature-desc { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.7; }

/* ---- QUOTE ---- */
.quote-section { background: var(--color-text); }

.quote-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.quote-text {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.quote-text .ql { color: var(--color-sun); }
.quote-sub { font-size: 0.875rem; color: var(--color-text-muted); }

/* ---- STATS ---- */
.stats-bg {
    background: var(--color-surface);
    border-top: 1px solid var(--color-fog);
    border-bottom: 1px solid var(--color-fog);
}

.stats-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Nunito', sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

/* ---- CONTACT CTA ---- */
.contact-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d40a6 100%);
    position: relative;
    overflow: hidden;
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: -80px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.contact-bg::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
}

.contact-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.contact-lead {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.contact-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.contact-bullets li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bullet-check {
    width: 18px; height: 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: white;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--color-sun);
    color: var(--color-text);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.16s ease;
    letter-spacing: 0.01em;
}

.contact-cta-btn:hover {
    background: var(--color-sun-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Existing admin CTA strip */
.cta-strip {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--color-bg);
}

.cta-strip .section-title { margin-bottom: 1rem; }
.cta-strip .section-lead  { margin: 0 auto 2rem; }

/* ---- FOOTER (landing-specific: flex layout, not centered) ---- */
.footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-fog);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: unset;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-text);
}

.footer-copy  { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-link  { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-link:hover { color: var(--color-primary); }

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
    .hero-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual   { max-width: 300px; margin: 0 auto; }
    .float-top-right, .float-bottom-left { display: none; }
    .before-after  { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-row     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero          { padding: 2rem 1.25rem 3rem; }
    .hero-brand    { padding: 0.5rem 1.25rem 2rem; }
    .section       { padding: 3.5rem 1.25rem; }
    .nav           { padding: 0 1.25rem; }
    .footer        { flex-direction: column; align-items: flex-start; }
    .proof-bar     { padding: 1.25rem; }
    .stats-row     { grid-template-columns: repeat(2, 1fr); padding: 2.5rem 1.25rem; gap: 1.5rem; }
    .contact-inner { padding: 3.5rem 1.25rem; }
    .cta-strip     { padding: 3.5rem 1.25rem; }
}
