:root {
    --primary: #F12850;
    --black: #000000;
    --bg: #F4F4F0;
    --font-logo: 'Satoshi', sans-serif;
    --font-main: 'Satoshi', sans-serif;
    --font-accent: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased
}

html {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overscroll-behavior: none;
    overflow-x: hidden;
    position: relative;
}

body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--black);
}

main {
    flex: 1;
}

.page-content-wrap {
    padding-top: 96px
}

@media (max-width: 899px) {
    .page-content-wrap {
        padding-top: calc(56px + env(safe-area-inset-top, 0px))
    }
}

/* Hero */
.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 88px max(48px, env(safe-area-inset-right, 48px)) 48px max(48px, env(safe-area-inset-left, 48px));
    text-align: center;
}

@media (max-width: 767px) {
    .hero {
        padding: 40px 20px 36px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        padding: 56px 24px 48px;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 24px;
}

.eyebrow::before,
.eyebrow::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.98;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 52px !important;
    }
}

.hero h1 .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 1.32em !important;
    font-weight: 700;
    display: inline-block;
    margin-left: 0;
    margin-right: 0.12em;
    transform: translateY(3px) rotate(-2deg);
}

.hero p {
    font-size: clamp(16px, 3vw, 23px);
    font-weight: 500;
    color: #000000;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 24px !important;
    }
}



@media (max-width: 767px) {
    .hero {
        padding: 40px 20px 36px;
    }

    .eyebrow {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .hero h1 {
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .hero p {
        line-height: 1.5;
    }
}

/* Contact grid */
.contact-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px max(48px, env(safe-area-inset-right, 48px)) 80px max(48px, env(safe-area-inset-left, 48px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 64px;
        gap: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .contact-grid {
        padding: 0 24px 72px;
    }
}

.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .22s cubic-bezier(.23, 1, .32, 1), box-shadow .22s ease
}

.contact-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--black)
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg)
}

.contact-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #666;
}

.contact-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -.01em
}

.contact-card-desc {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 1.6;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 8px;
    transition: all .2s ease;
    margin-top: auto;
    width: fit-content
}

.contact-card-action:hover {
    background: var(--black);
    color: #fff;
    border-color: var(--black)
}

.contact-card-action svg {
    width: 14px;
    height: 14px;
    transition: transform .2s
}

.contact-card-action:hover svg {
    transform: translateX(3px)
}

/* FAQ Section Reverted to Simple List */
.faq-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 max(48px, env(safe-area-inset-right, 48px)) 100px max(48px, env(safe-area-inset-left, 48px));
}

@media (max-width: 767px) {
    .faq-section {
        padding: 0 20px 72px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .faq-section {
        padding: 0 24px 80px;
    }
}

.faq-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 52px !important;
    }
}

.faq-title .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 72px !important;
    font-weight: 700;
    display: inline-block;
    margin: 0 0.1em;
    transform: translateY(3px);
}

.faq-item {
    padding: 24px 0;
}

.faq-q {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    letter-spacing: -0.01em;
}

.faq-q::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-a {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    line-height: 1.8;
    padding-left: 40px;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 767px) {
    .faq-title {
        margin-bottom: 32px;
    }

    .faq-q {
        font-size: 16px !important;
        gap: 10px;
        margin-bottom: 8px;
    }

    .faq-q::before {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .faq-a {
        font-size: 14px !important;
        padding-left: 32px;
        line-height: 1.7;
    }

    .faq-item {
        padding: 18px 0;
    }

    .contact-card {
        padding: 24px 20px;
        gap: 12px;
    }

    .contact-card-title {
        font-size: 17px;
    }

    .contact-card-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .contact-card-action {
        font-size: 13px;
        padding: 8px 14px;
    }

    .contact-card-label {
        font-size: 10px;
    }
}

/* --------------------------------------------------
/* ══════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE TYPOGRAPHY SYSTEM
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    h1,
    .hero h1,
    .hero-title,
    .section-title,
    .about-hero-title,
    .mission-title,
    .about-cta-title,
    .stats-title,
    .showcase-title,
    .faq-title {
        font-family: var(--font-main) !important;
        font-size: clamp(34px, 8vw, 56px) !important;
        line-height: 0.98 !important;
        font-weight: 600 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: min(92vw, 700px) !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
    }

    h2,
    .hero p,
    .hero-sub,
    .section-sub,
    .about-hero-sub,
    .stats-subtitle,
    .about-cta-sub {
        font-family: var(--font-main) !important;
        font-size: clamp(16px, 3.8vw, 20px) !important;
        line-height: 1.45 !important;
        font-weight: 500 !important;
        max-width: min(92vw, 640px) !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: pretty !important;
        margin-bottom: 16px !important;
    }

    /* Override: .faq-title uses h2 tag but is a major section heading — restore heading scale */
    h2.faq-title {
        font-family: var(--font-main) !important;
        font-size: clamp(28px, 7vw, 44px) !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 32px !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        max-width: min(92vw, 700px) !important;
        margin-inline: auto !important;
    }

    /* Override: keep contact card titles and FAQ questions left-aligned */
    .contact-card-title {
        text-align: left !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .faq-q {
        text-align: left !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    h3,
    .mission-title,
    .contact-card-title,
    .card-title,
    .value-title,
    .booth-card-title,
    .faq-q {
        font-size: clamp(18px, 4vw, 24px) !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    p,
    .mission-body,
    .story-body,
    .value-desc,
    .sec p,
    .sec ul li,
    .faq-a,
    .card-desc,
    .booth-card-desc {
        font-size: clamp(14px, 3vw, 16px) !important;
        line-height: 1.6 !important;
        font-weight: 500 !important;
        margin-bottom: 14px !important;
    }

    small,
    .mission-label,
    .contact-card-label,
    .mission-stat-label,
    .badge {
        font-size: clamp(12px, 2.5vw, 14px) !important;
        line-height: 1.4 !important;
    }

    .eyebrow,
    .about-eyebrow {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    button,
    .btn-main,
    .about-cta-btn,
    .contact-card-action,
    .join-input-row button,
    .nav-cta,
    .booth-card-btn {
        font-size: clamp(14px, 3vw, 16px) !important;
        font-weight: 600 !important;
    }

    span.accent,
    h1 .accent,
    .hero h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        font-family: "Caveat", cursive !important;
        font-size: 1.32em !important;
        line-height: 0.8 !important;
        font-weight: 700 !important;
        display: inline-block !important;
        transform: translateY(4px) rotate(-2deg) !important;
        white-space: nowrap !important;
        margin: 0 !important;
        margin-right: 0.1em !important;
        letter-spacing: -0.01em !important;
    }

    .faq-title .accent {
        transform: translateY(2px) rotate(-2deg) !important;
    }
}

@media (max-width: 480px) {

    span.accent,
    h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        transform: translateY(4px) rotate(-2deg) !important;
    }

    .faq-title .accent {
        transform: translateY(2px) rotate(-2deg) !important;
    }
}


/* --- FINAL TABLET UI REFINEMENTS (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Hero & Section Title Standard - Forces 61.5px on iPad Air (820px) */
    html body h1.hero-title,
    html body .about-hero-title,
    html body .stats-title,
    html body .section-title,
    html body .about-cta-title,
    html body .faq-title,
    html body .hero h1 {
        font-size: clamp(56px, 8vw, 82px) !important;
        /* Upscaled */
        line-height: 0.98 !important;
        letter-spacing: -0.045em !important;
        margin-bottom: 24px !important;
        text-align: center !important;
        margin-inline: auto !important;
        text-wrap: balance !important;
        white-space: normal !important;
        display: block !important;
    }

    /* Subtitle Standard - Forces 24.6px on iPad Air (820px) */
    html body h2.hero-sub,
    html body .about-hero-sub,
    html body .stats-subtitle,
    html body .section-sub,
    html body .about-cta-sub,
    html body .hero p {
        font-family: var(--font-main) !important;
        font-size: clamp(23px, 3.2vw, 34px) !important;
        /* Upscaled */
        line-height: 1.45 !important;
        font-weight: 500 !important;
        margin-bottom: 40px !important;
        text-align: center !important;
        margin-inline: auto !important;
        text-wrap: balance !important;
        white-space: normal !important;
        display: block !important;
    }

    .sec h2,
    .contact-card-title {
        font-size: 26px !important;
        margin-bottom: 14px !important;
    }

    .faq-q {
        font-size: 21px !important;
        font-weight: 700 !important;
        margin-bottom: 14px !important;
    }

    .contact-card-desc,
    .faq-a {
        font-size: 19px !important;
        line-height: 1.65 !important;
    }

    .hero {
        padding: 140px max(40px, env(safe-area-inset-right, 40px)) 40px max(40px, env(safe-area-inset-left, 40px)) !important;
    }

    .contact-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 48px !important;
        /* Increased gap */
        padding: 0 max(48px, env(safe-area-inset-right, 48px)) !important;
        max-width: 1000px !important;
        margin-inline: auto !important;
    }

    .faq-section {
        padding: 48px max(48px, env(safe-area-inset-right, 48px)) 80px !important;
        max-width: 900px !important;
        margin-inline: auto !important;
    }

}

/* --- FINAL MOBILE UI REFINEMENTS (max-width: 767px) --- */
@media (max-width: 767px) {
    html body .hero {
        padding: 40px max(20px, env(safe-area-inset-right, 20px)) 24px max(20px, env(safe-area-inset-left, 20px)) !important;
    }

    html body .hero p {
        margin-bottom: 24px !important;
    }

    html body .faq-title {
        font-size: clamp(34px, 8vw, 56px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 24px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 767px) {
    .eyebrow,
    .about-eyebrow {
        font-size: 9px !important;
    }
    .eyebrow::before,
    .eyebrow::after,
    .about-eyebrow::before,
    .about-eyebrow::after {
        width: 14px !important;
    }
}
