/* =====================================================
   Mighty Pedia — Phase 1 site styles
   Extends the visual direction established by the
   original coming-soon page. Sky/cloud atmosphere,
   warm pediatric palette, Nunito + Fredoka type.
   ===================================================== */

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

/* ---------- Tokens ---------- */
:root {
    /* Palette (carried from coming-soon) */
    --orange: #F37021;
    --orange-dark: #d85f15;
    --teal: #00A99D;
    --teal-dark: #008c82;
    --cream: #FFF9F5;
    --sky-top: #e8f4f8;
    --sky-mid: #f0f7f6;
    --white: #ffffff;
    --gray-300: #e2e2e2;
    --gray-500: #888888;
    --gray-700: #555555;
    --gray-900: #2a2a2a;

    /* Layout */
    --maxw-narrow: 720px;
    --maxw-mid: 960px;
    --maxw-wide: 1100px;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Shadows */
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-cta: 0 4px 14px rgba(243, 112, 33, 0.3);
    --shadow-cta-hover: 0 6px 20px rgba(243, 112, 33, 0.4);

    /* Section rhythm */
    --section-py: clamp(4rem, 9vh, 7rem);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    /* Anchor offset so smooth-scrolled sections don't sit flush */
    scroll-padding-top: 2rem;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--cream);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sky-inspired gradient background (fixed, layered behind content) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 75% 20%, rgba(135, 206, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 169, 157, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 70%, rgba(243, 112, 33, 0.05) 0%, transparent 50%),
        linear-gradient(175deg, var(--sky-top) 0%, var(--cream) 35%, var(--cream) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Decorative clouds and dots ---------- */
.cloud {
    position: fixed;
    background: white;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}
.cloud-1 {
    width: 120px; height: 44px;
    top: 8%; left: 5%;
    animation: cloudDrift 45s linear infinite;
}
.cloud-1::before { width: 50px; height: 50px; top: -22px; left: 20px; }
.cloud-1::after { width: 36px; height: 36px; top: -14px; left: 58px; }

.cloud-2 {
    width: 90px; height: 32px;
    top: 18%; right: 8%;
    opacity: 0.22;
    animation: cloudDrift 55s linear infinite reverse;
}
.cloud-2::before { width: 38px; height: 38px; top: -18px; left: 14px; }
.cloud-2::after { width: 28px; height: 28px; top: -10px; left: 44px; }

.cloud-3 {
    width: 70px; height: 26px;
    top: 55%; left: 2%;
    opacity: 0.18;
    animation: cloudDrift 60s linear infinite;
    animation-delay: -20s;
}
.cloud-3::before { width: 30px; height: 30px; top: -14px; left: 10px; }
.cloud-3::after { width: 22px; height: 22px; top: -8px; left: 34px; }

@keyframes cloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

.dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.dot-1 {
    width: 10px; height: 10px;
    background: var(--orange);
    opacity: 0.12;
    top: 20%; left: 12%;
    animation: floatDot 9s ease-in-out infinite;
}
.dot-2 {
    width: 7px; height: 7px;
    background: var(--teal);
    opacity: 0.18;
    top: 70%; left: 8%;
    animation: floatDot 11s ease-in-out infinite;
    animation-delay: 1s;
}
.dot-3 {
    width: 14px; height: 14px;
    background: var(--orange);
    opacity: 0.08;
    bottom: 25%; right: 6%;
    animation: floatDot 13s ease-in-out infinite;
    animation-delay: 0.5s;
}
.dot-4 {
    width: 8px; height: 8px;
    background: var(--teal);
    opacity: 0.14;
    top: 40%; right: 3%;
    animation: floatDot 10s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ---------- Section primitives ---------- */
.section {
    position: relative;
    z-index: 1;
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section-inner {
    max-width: var(--maxw-wide);
    width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-narrow .section-inner { max-width: var(--maxw-narrow); }
.section-mid    .section-inner { max-width: var(--maxw-mid); }

.eyebrow {
    display: inline-block;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-dark);
    background: rgba(0, 169, 157, 0.08);
    border: 1.5px solid rgba(0, 169, 157, 0.18);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-heading {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-subhead {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.section-body {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--gray-700);
    line-height: 1.75;
    max-width: 60ch;
    margin-bottom: 2rem;
}

.accent-bar {
    width: 42px;
    height: 4px;
    background: var(--teal);
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.accent-bar.orange { background: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    line-height: 1.2;
}

.btn-primary {
    color: var(--white);
    background: var(--orange);
    box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta-hover);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    color: var(--teal-dark);
    background: transparent;
    border-color: var(--teal);
}
.btn-secondary:hover {
    background: rgba(0, 169, 157, 0.08);
    transform: translateY(-1px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ---------- Form inputs (shared) ---------- */
.input,
.select,
.textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--r-md);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--teal);
    box-shadow: var(--shadow-soft), 0 0 0 4px rgba(0, 169, 157, 0.12);
}

.input::placeholder,
.textarea::placeholder { color: #aaa; }

.textarea { min-height: 110px; resize: vertical; }

/* ---------- Placeholder slots (for assets Phil will supply) ---------- */
.asset-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(0, 169, 157, 0.05),
            rgba(0, 169, 157, 0.05) 12px,
            rgba(0, 169, 157, 0.09) 12px,
            rgba(0, 169, 157, 0.09) 24px
        ),
        var(--white);
    border: 2px dashed rgba(0, 169, 157, 0.35);
    border-radius: var(--r-lg);
    color: var(--teal-dark);
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

.asset-placeholder small {
    display: block;
    color: var(--gray-500);
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* =====================================================
   SECTION 1 — HERO
   ===================================================== */
.hero {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(3rem, 8vh, 5rem);
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    max-width: var(--maxw-wide);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 78vh;
    min-height: 78dvh;
}
.hero-content { flex: 1; max-width: 480px; }

.hero-logo {
    display: block;
    width: 220px;
    max-width: 60vw;
    height: auto;
    margin-bottom: 2rem;
    animation: logoIn 0.8s ease-out both;
}
@keyframes logoIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .accent-bar { animation: fadeUp 0.7s ease-out 0.15s both; }

.hero-headline {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 2.6rem);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s ease-out 0.2s both;
}

.hero-subhead {
    font-size: clamp(0.98rem, 2vw, 1.1rem);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s ease-out 0.35s both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeUp 0.7s ease-out 0.5s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-phone-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: phoneIn 1s ease-out 0.3s both;
}
.phone-wrapper {
    position: relative;
    width: clamp(260px, 34vw, 380px);
    filter: drop-shadow(0 24px 48px rgba(20, 40, 60, 0.18))
            drop-shadow(0 8px 18px rgba(20, 40, 60, 0.1));
}
.phone-wrapper::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(ellipse at center, rgba(0, 169, 157, 0.15) 0%, rgba(135, 206, 235, 0.08) 40%, transparent 70%);
    border-radius: 40px;
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}
.phone-img {
    width: 100%;
    height: auto;
    display: block;
    animation: phoneFloat 5s ease-in-out infinite;
    transform: rotate(-2deg);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
@keyframes phoneIn {
    from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.04); }
}

/* =====================================================
   SECTION 2 — TWO PRODUCTS, ONE MISSION (text-only)
   ===================================================== */
.about-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.about-head .accent-bar { margin: 0 auto 1.25rem; }
.about-head .section-body { margin: 0 auto; text-align: left; }

/* =====================================================
   SECTION 3 — THE APP
   ===================================================== */
.app-head {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.app-head .section-body { text-align: left; margin: 0 auto; }
.app-head .section-subhead { text-align: center; }

.app-screens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 760px;
    margin: 0 auto 3rem;
    align-items: center;
}
.app-screen-media {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}
.app-screen-media img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 40px rgba(20, 40, 60, 0.18))
            drop-shadow(0 8px 16px rgba(20, 40, 60, 0.1));
    transition: transform 0.5s ease;
}
.app-screen-media:hover img {
    transform: translateY(-4px);
}
/* Subtle vertical stagger so the pair reads as composed, not flat */
.app-screen-media-offset {
    transform: translateY(clamp(1rem, 3vw, 2rem));
}

/* Callout row — shared by Section 3 and Section 4 */
.callout-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}
.callout {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 169, 157, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.callout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.callout-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}
.callout-title::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--teal);
    border-radius: 3px;
    margin-bottom: 0.85rem;
}
.callout-body {
    font-size: 0.97rem;
    color: var(--gray-700);
    line-height: 1.65;
}

/* Eyebrow variants */
.eyebrow-orange {
    color: var(--orange-dark);
    background: rgba(243, 112, 33, 0.08);
    border-color: rgba(243, 112, 33, 0.2);
}

/* =====================================================
   SECTION 4 — THE MIGHTY PACK
   ===================================================== */
.section-pack { position: relative; }
.section-pack::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(243, 112, 33, 0.03) 30%, rgba(243, 112, 33, 0.03) 70%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}
.section-pack .callout-title::before { background: var(--orange); }

.pack-head {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.pack-head .section-body { text-align: left; margin: 0 auto; }
.pack-head .section-subhead { text-align: center; }

.pack-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 3rem;
    align-items: stretch;
}
.pack-hero, .pack-secondary { display: flex; }
.pack-hero .asset-placeholder,
.pack-secondary .asset-placeholder {
    aspect-ratio: auto;
    width: 100%;
    flex: 1;
    min-height: 240px;
}
.pack-hero .asset-placeholder { min-height: 360px; }

/* Real photo treatment — matches the soft, premium feel of the design system */
.pack-hero-media {
    width: 100%;
    flex: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--white);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pack-hero-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.08);
}
.pack-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* =====================================================
   SECTION 5 — WHO IT'S FOR
   ===================================================== */
.audiences-head {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.audiences-head .section-body { text-align: left; margin: 0 auto; }

.audience-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: 3rem;
}
.audience-col {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 169, 157, 0.08);
    position: relative;
    overflow: hidden;
}
.audience-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
}
.audience-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}
.audience-body {
    font-size: 0.98rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.beyond-callout {
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.06), rgba(0, 169, 157, 0.04));
    border: 1.5px solid rgba(243, 112, 33, 0.18);
    border-radius: var(--r-xl);
    padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.beyond-callout .eyebrow { margin-bottom: 1rem; }
.beyond-body {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 60ch;
    text-align: left;
}

/* =====================================================
   SECTION 6 — LET'S TALK
   ===================================================== */
/* Tighten the seam between #audiences (Section 5) and #contact (Section 6).
   No CTA bridges them anymore, so collapse the double section padding. */
#audiences { padding-bottom: clamp(1.25rem, 2.5vh, 2rem); }

.section-contact { position: relative; padding-top: clamp(2rem, 4vh, 3rem); }
.section-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 169, 157, 0.04) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.contact-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.contact-head .accent-bar { margin: 0 auto 1.25rem; }

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 920px;
    margin: 0 auto;
}

/* Equal visual weight is intentional — same padding, same shadow, same border. */
.contact-card {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 169, 157, 0.1);
    display: flex;
    flex-direction: column;
}
.contact-card-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.contact-card-body {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}
.contact-card .btn { align-self: flex-start; }

.waitlist-form {
    display: flex;
    gap: 0.5rem;
}
.waitlist-form .input { flex: 1; min-width: 0; }
.waitlist-form .btn { flex-shrink: 0; align-self: stretch; }

.waitlist-success {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(0, 169, 157, 0.08);
    border: 1.5px solid rgba(0, 169, 157, 0.2);
    border-radius: var(--r-md);
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.98rem;
}
.waitlist-success.visible { display: block; }

/* =====================================================
   SECTION 7 — FOOTER
   ===================================================== */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: clamp(3rem, 7vh, 5rem) 0 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 169, 157, 0.04) 100%);
    border-top: 1px solid rgba(0, 169, 157, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
}
.footer-col { min-width: 0; }

.footer-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}
.footer-tagline {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.footer-desc {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 36ch;
}

.footer-heading {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-list a,
.footer-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-list a:hover,
.footer-link:hover {
    color: var(--teal-dark);
}
.footer-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.95rem;
}
.footer-link-arrow span {
    transition: transform 0.2s ease;
}
.footer-link-arrow:hover span {
    transform: translateX(3px);
}

.footer-bar {
    border-top: 1px solid rgba(0, 169, 157, 0.12);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-copyright,
.footer-place {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.footer-place {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 500;
}

/* =====================================================
   QUOTE FORM MODAL
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 35, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-dialog {
    background: var(--cream);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
}
.modal.open .modal-dialog {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--gray-900);
}
.modal-body {
    padding: clamp(1.75rem, 4vw, 2.5rem);
}
.modal-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--gray-900);
    margin: 1rem 0 0.5rem;
    line-height: 1.25;
}
.modal-subtitle {
    color: var(--gray-700);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Form layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.field-full { grid-column: 1 / -1; }
.field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-900);
    font-family: 'Nunito', sans-serif;
}
.req { color: var(--orange-dark); font-weight: 700; }
.opt { color: var(--gray-500); font-weight: 400; font-size: 0.82rem; }

.field-checks {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.field-checks legend { margin-bottom: 0.4rem; }

.check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.4rem 0;
}
.check input[type="checkbox"] {
    accent-color: var(--teal);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.check-opt {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 169, 157, 0.04);
    border: 1px dashed rgba(0, 169, 157, 0.25);
    border-radius: var(--r-md);
    align-items: flex-start;
}
.check-opt span {
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Submit row */
.form-submit-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.75rem;
}
.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
}
.form-legal {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.form-legal a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.form-legal a:hover { color: var(--teal); }

/* Quote success state — when the form succeeds, the modal-body gets
   .is-success so the original eyebrow/title/subtitle hide and the
   thank-you message stands alone, centered. */
.modal-body.is-success .eyebrow,
.modal-body.is-success .modal-title,
.modal-body.is-success .modal-subtitle {
    display: none;
}
.quote-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}
.quote-success.visible { display: block; }
.quote-success h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.4rem;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
}
.quote-success p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Asset placeholder variants */
.asset-placeholder-tall { aspect-ratio: 3 / 4; }
.asset-placeholder-square { aspect-ratio: 1 / 1; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 880px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 1.5rem 3rem;
        gap: 2rem;
        min-height: 0;
    }
    .hero-content { max-width: 100%; }
    .hero-logo { margin-left: auto; margin-right: auto; }
    .hero .accent-bar { margin-left: auto; margin-right: auto; }
    .hero-headline, .hero-subhead { text-align: center; }
    .hero-ctas { justify-content: center; }
    .phone-wrapper { width: clamp(200px, 55vw, 280px); }

    .app-screens { grid-template-columns: 1fr; max-width: 340px; gap: 1.5rem; }
    .app-screen-media-offset { transform: none; }
    .callout-row { grid-template-columns: 1fr; }
    .pack-media { grid-template-columns: 1fr; }
    .pack-hero .asset-placeholder { min-height: 280px; }
    .audience-cols { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .form-grid { grid-template-columns: 1fr; }
    .field { grid-column: 1 / -1; }

    .section-inner { padding-left: 1.5rem; padding-right: 1.5rem; }

    .waitlist-form { flex-direction: column; }
}

@media (max-width: 420px) {
    .phone-wrapper { width: 200px; }
    .hero-logo { width: 180px; }
    .modal-body { padding: 1.5rem 1.25rem 1.75rem; }
}

/* =====================================================
   LEGAL PAGES (privacy.html / terms.html)
   ===================================================== */
/* All legal-page content wrappers need z-index so they sit ABOVE
   body::before (the fixed sky/cream gradient overlay at z-index 0).
   Without this, the opaque gradient paints over static block content
   and the page looks blank. */
.legal-page > .legal-topbar,
.legal-page > .legal-hero,
.legal-page > .legal-prose,
.legal-page > .legal-footer {
    position: relative;
    z-index: 1;
}
.legal-topbar {
    z-index: 2;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw-wide);
    margin: 0 auto;
}
.legal-topbar-logo { display: flex; align-items: center; }
.legal-topbar-logo img { height: 36px; width: auto; }
.legal-back {
    color: var(--teal-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.legal-back:hover { color: var(--teal); }

.legal-hero {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}
.legal-hero .accent-bar { margin: 0 auto 1.25rem; }
.legal-hero h1 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.legal-dates {
    display: inline-block;
    background: var(--white);
    border: 1.5px solid rgba(0, 169, 157, 0.18);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 500;
    margin-top: 0.5rem;
}
.legal-dates strong { color: var(--gray-900); }

.legal-prose {
    max-width: 740px;
    margin: 2.5rem auto 4rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 169, 157, 0.08);
}
.legal-prose h2 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--gray-900);
    margin: 2.5rem 0 0.85rem;
    line-height: 1.3;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 1.75rem 0 0.6rem;
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol {
    color: var(--gray-700);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.legal-prose ul,
.legal-prose ol {
    padding-left: 1.4rem;
}
.legal-prose li { margin-bottom: 0.35rem; }
.legal-prose strong { color: var(--gray-900); font-weight: 700; }
.legal-prose a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-prose a:hover { color: var(--teal); }

.legal-prose .all-caps {
    font-size: 0.92rem;
    background: rgba(0, 0, 0, 0.025);
    border-left: 3px solid var(--teal);
    padding: 0.85rem 1rem;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    line-height: 1.6;
}

.legal-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}
.legal-footer a {
    color: var(--teal-dark);
    text-decoration: none;
}
.legal-footer a:hover { color: var(--teal); }

@media (max-width: 600px) {
    .legal-topbar { padding: 1rem 1.25rem; }
    .legal-prose { margin: 1.5rem auto 3rem; }
}
