/* ==========================================================================
   PetHive — Landing Page
   Design language mirrors the real MVP: warm cream, orange accent,
   rounded friendly display type (Baloo 2), soft cards, generous whitespace.
   ========================================================================== */

:root {
    /* Brand — sampled from the live app */
    --orange: #F5943D;
    --orange-strong: #FF8842;
    --orange-deep: #E87B2E;
    --orange-soft: #FBE4CC;
    --orange-tint: #FDF0E1;      /* app background cream */

    --ink: #1F1B16;             /* near-black headings, as in app */
    --body: #5C544A;
    --muted: #8B8378;
    --line: #ECE3D6;

    --cream: #FBF4EA;
    --cream-deep: #F6ECDD;
    --white: #FFFFFF;

    /* Category colors from the diary screen */
    --cat-health: #57B85F;
    --cat-note: #6B6258;
    --cat-milestone: #F5943D;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-xs: 0 1px 3px rgba(31, 27, 22, 0.06);
    --shadow-sm: 0 4px 16px rgba(31, 27, 22, 0.06);
    --shadow-md: 0 12px 32px rgba(31, 27, 22, 0.09);
    --shadow-lg: 0 24px 60px rgba(31, 27, 22, 0.14);
    --shadow-glow: 0 20px 60px rgba(245, 148, 61, 0.28);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--body);
    background: var(--cream);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, .display {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accent { color: var(--orange-deep); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Baloo 2', sans-serif;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ico { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--orange-strong);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(245, 148, 61, 0.4); }

.btn-ghost {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-full { width: 100%; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

/* ==========================================================================
   Logo mark — the brand cat+dog icon, framed as a rounded app-icon tile
   so its warm background reads as intentional rather than clashing.
   ========================================================================== */
.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang-switcher {
    position: fixed;
    top: 4.75rem;
    right: 1.5rem;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    z-index: 999;
}
.lang-btn {
    padding: 0.4rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s var(--ease);
}
.lang-btn:hover { color: var(--orange-deep); }
.lang-btn.active { background: var(--orange-strong); color: var(--white); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(251, 244, 234, 0.85);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-xs);
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--body);
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--orange-deep); }
.nav-cta { padding: 0.7rem 1.4rem; font-size: 0.95rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 9.5rem 0 5rem;
    background:
        radial-gradient(1100px 620px at 78% -8%, var(--orange-soft) 0%, transparent 55%),
        linear-gradient(180deg, var(--orange-tint) 0%, var(--cream) 62%);
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--body);
    margin-bottom: 1.6rem;
}
.hero-eyebrow .pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--orange-strong);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    margin-bottom: 1.35rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--body);
    max-width: 33rem;
    margin-bottom: 2.2rem;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.4rem;
}
.hero-proof {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}
.hero-proof .avatars { display: flex; }
.hero-proof .avatars span {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    margin-left: -12px;
    background: var(--orange-strong);
    color: #fff;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.hero-proof .avatars span:first-child { margin-left: 0; }
.hero-proof .proof-text { font-size: 0.92rem; line-height: 1.4; }
.hero-proof .proof-text strong { color: var(--ink); font-family: 'Baloo 2', sans-serif; }

/* Hero phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
    position: relative;
    width: 300px;
    max-width: 76vw;
    background: #0e0e10;
    border-radius: 46px;
    padding: 11px;
    box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(0,0,0,0.06);
    z-index: 2;
}
.phone::before {
    content: '';
    position: absolute;
    top: 15px; left: 50%;
    transform: translateX(-50%);
    width: 96px; height: 22px;
    background: #0e0e10;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}
/* Screenshots keep their true 1125:2436 ratio — never stretched or cropped. */
.phone img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    display: block;
    background: #0e0e10;
}
.hero-visual .phone { animation: floaty 6s var(--ease) infinite; }

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

/* floating chips around the phone */
.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.95rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    z-index: 4;
    animation: floaty 5s var(--ease) infinite;
}
.chip .ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.chip .ico svg { width: 18px; height: 18px; }
.chip strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 0.9rem; color: var(--ink); line-height: 1.1; }
.chip span { font-size: 0.76rem; color: var(--muted); }
.chip-1 { top: 12%; left: -6%; animation-delay: 0.6s; }
.chip-1 .ico { background: #E7F6E8; color: var(--cat-health); }
.chip-2 { bottom: 15%; right: -8%; animation-delay: 1.8s; }
.chip-2 .ico { background: var(--orange-soft); color: var(--orange-deep); }
.chip-3 { bottom: 40%; left: -12%; animation-delay: 3s; }
.chip-3 .ico { background: #EEEAFE; color: #7C6BE0; }

.hero-blob {
    position: absolute;
    width: 420px; height: 420px;
    right: 4%; top: 12%;
    background: radial-gradient(circle, rgba(245,148,61,0.16) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Trust bar (SIBS + market)
   ========================================================================== */
.trustbar {
    background: var(--cream);
    padding: 2.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.trustbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trustbar .label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.trustbar .sibs {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.trustbar .sibs img { height: 42px; width: auto; }
.trustbar .sibs .sibs-text { font-size: 0.9rem; line-height: 1.35; text-align: left; }
.trustbar .sibs .sibs-text strong { color: var(--ink); font-family: 'Baloo 2', sans-serif; display: block; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: 6rem 0; }
.section-tint { background: var(--cream-deep); }
.section-cream { background: var(--cream); }

.section-head {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    background: var(--orange-soft);
    color: var(--orange-deep);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.9rem; }
.section-sub { font-size: 1.12rem; color: var(--body); }

/* ==========================================================================
   Problem → belief strip
   ========================================================================== */
.belief {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
}
.belief .container { max-width: 880px; }
.belief blockquote {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}
.belief blockquote .accent { color: var(--orange-strong); }
.belief .attribution { margin-top: 1.2rem; color: rgba(255,255,255,0.55); font-size: 0.95rem; }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.problem-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.problem-card .ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--orange-tint);
    color: var(--orange-deep);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.15rem;
}
.problem-card .ico svg { width: 26px; height: 26px; }
.problem-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.98rem; }

/* ==========================================================================
   Feature showcase (alternating)
   ========================================================================== */
.showcase { display: flex; flex-direction: column; gap: 6rem; }
.showcase-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}
.showcase-item.reverse .showcase-copy { order: 2; }
.feature-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    background: var(--orange-soft);
    color: var(--orange-deep);
}
.showcase-copy h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 1rem; }
.showcase-copy > p { font-size: 1.08rem; margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.8rem; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 500;
}
.feature-list li .check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--cat-health);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.feature-list li .check svg { width: 13px; height: 13px; }

.showcase-visual { display: flex; justify-content: center; position: relative; }
.showcase-visual .phone { width: 275px; animation: none; }
.showcase-visual::before {
    content: '';
    position: absolute;
    inset: 12% 8%;
    background: radial-gradient(circle, var(--orange-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ==========================================================================
   Gallery — horizontal scroll rail
   ========================================================================== */
.gallery-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 1.5rem 1.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--orange-soft) transparent;
    /* Center the row when it fits; scroll from the start when it doesn't. */
    justify-content: safe center;
    max-width: var(--maxw);
    margin: 0 auto;
}
.gallery-rail::-webkit-scrollbar { height: 8px; }
.gallery-rail::-webkit-scrollbar-thumb { background: var(--orange-soft); border-radius: 100px; }
.gallery-card {
    flex: 0 0 auto;
    width: 216px;
    scroll-snap-align: center;
    text-align: center;
}
.gallery-card .frame {
    background: #0e0e10;
    border-radius: 30px;
    padding: 7px;
    box-shadow: var(--shadow-md);
    transition: transform 0.35s var(--ease);
}
.gallery-card:hover .frame { transform: translateY(-8px); }
.gallery-card .frame img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    background: #0e0e10;
}
.gallery-card p { margin-top: 0.9rem; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.rail-hint { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0.5rem auto 0; max-width: var(--maxw); }

/* ==========================================================================
   Ecosystem — one platform, two sides (owners ⟷ pet profile ⟷ providers)
   ========================================================================== */
.eco-bridge {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
.eco-side, .eco-core {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.15rem 1.85rem;
    text-align: center;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.eco-side:hover, .eco-core:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* The pet profile is the shared source of truth — mark it as the centrepiece. */
.eco-core {
    background: linear-gradient(180deg, var(--orange-tint) 0%, var(--white) 100%);
    border-color: var(--orange-soft);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.eco-ico {
    width: 60px; height: 60px;
    border-radius: 18px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
}
.eco-ico svg { width: 30px; height: 30px; }
.eco-ico-owners { background: #EEEAFE; color: #7C6BE0; }
.eco-ico-core { background: var(--orange-strong); color: #fff; box-shadow: var(--shadow-glow); }
.eco-ico-providers { background: #E7F6E8; color: var(--cat-health); }
.eco-side h3, .eco-core h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.eco-side p, .eco-core p { font-size: 0.98rem; color: var(--body); }

/* ==========================================================================
   Providers
   ========================================================================== */
.providers { background: var(--ink); color: #fff; }
.providers-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: center;
    margin-bottom: 3.5rem;
}
.providers .eyebrow { background: rgba(245,148,61,0.18); color: var(--orange-strong); }
.providers h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.providers-copy > p { color: rgba(255,255,255,0.72); font-size: 1.08rem; }
.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.provider-feat {
    display: flex;
    gap: 1rem;
    padding: 1.4rem 1.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.provider-feat:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.provider-feat .ico {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(245,148,61,0.16);
    color: var(--orange-strong);
    display: flex; align-items: center; justify-content: center;
}
.provider-feat .ico svg { width: 22px; height: 22px; }
.provider-feat strong { display: block; font-family: 'Baloo 2', sans-serif; color: #fff; font-size: 1.03rem; }
.provider-feat p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 0; }
.providers-visual { display: flex; justify-content: center; }
.providers-visual .phone { width: 265px; animation: floaty 6s var(--ease) infinite; }

/* ==========================================================================
   Waitlist
   ========================================================================== */
.waitlist {
    position: relative;
    padding: 6rem 0;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(255,255,255,0.35) 0%, transparent 55%),
        linear-gradient(135deg, var(--orange-strong) 0%, var(--orange-deep) 100%);
    overflow: hidden;
}
.waitlist .container { position: relative; z-index: 2; max-width: 720px; }
.waitlist-head { text-align: center; margin-bottom: 2.5rem; color: #fff; }
.waitlist-head .eyebrow { background: rgba(255,255,255,0.2); color: #fff; }
.waitlist-head h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.waitlist-head p { color: rgba(255,255,255,0.92); font-size: 1.1rem; }

.waitlist-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; }
.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--body);
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
}
.field input, .field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--cream);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
    outline: none;
    background: var(--white);
    border-color: var(--orange-strong);
    box-shadow: 0 0 0 4px rgba(245,148,61,0.14);
}

/* Standalone field label (used where the control isn't a single input) */
.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--body);
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
}
.field-hint { font-weight: 500; color: var(--muted); }

/* Multi-select dropdown (pet type): a closed trigger that opens a checkbox
   panel, so owners can pick several types (a dog, a cat, a bird…). */
.multiselect { position: relative; }
.multiselect-trigger {
    /* match the look of .field input / select exactly */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--cream);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.multiselect-trigger:hover { border-color: var(--orange-soft); }
.multiselect.open .multiselect-trigger,
.multiselect-trigger:focus-visible {
    outline: none;
    background: var(--white);
    border-color: var(--orange-strong);
    box-shadow: 0 0 0 4px rgba(245,148,61,0.14);
}
.multiselect-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect-summary.is-placeholder { color: var(--muted); }
.multiselect-caret {
    width: 18px; height: 18px; flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s var(--ease);
}
.multiselect.open .multiselect-caret { transform: rotate(180deg); }

.multiselect-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    max-height: 260px;
    overflow-y: auto;
    animation: pop 0.16s var(--ease);
}
.multiselect-option {
    /* reset inherited .field label styles */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s var(--ease);
}
.multiselect-option:hover { background: var(--cream); }
.multiselect-option input {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: var(--orange-strong);
    cursor: pointer;
}
.multiselect-option:has(input:checked) { color: var(--orange-deep); font-weight: 600; }

.waitlist-form .btn { margin-top: 0.6rem; }
.form-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.1rem;
}
.success-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #E7F6E8;
    color: #2E7D34;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    animation: pop 0.3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #17140f; color: rgba(255,255,255,0.72); padding: 4.5rem 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand span { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; }
.footer-tagline { max-width: 20rem; margin-bottom: 1.3rem; }
.social-row { display: flex; gap: 1.25rem; margin-bottom: 0.4rem; line-height: 0; }
.social-btn {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.social-btn svg { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.social-btn:hover {
    color: var(--orange-strong);
    transform: translateY(-2px);
}
.footer-sibs { margin-top: 1.4rem; display: inline-flex; padding: 0.6rem 0.85rem; background: #fff; border-radius: 12px; }
.footer-sibs img { height: 34px; }
.footer-col h4 { color: #fff; font-family: 'Baloo 2', sans-serif; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.92rem; margin-bottom: 0.65rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--orange-strong); }
/* Pages that don't exist yet: shown but not clickable. */
.footer-col .soon {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.32);
    cursor: default;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.45);
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Reveal only animates once JS marks the document ready; without JS
   (or before it runs) everything stays fully visible. */
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-ready .reveal.in { opacity: 1; transform: none; }
/* The hero is above the fold — never hide it. */
.js-ready .hero .reveal { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    *, .hero-visual .phone, .chip, .providers-visual .phone { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
    .hero { padding-top: 8rem; }
    .hero .container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta-group, .hero-proof { justify-content: center; }
    .hero-visual { order: -1; }
    .chip-3 { display: none; }
    .nav-links a:not(.nav-cta) { display: none; }

    .showcase-item { grid-template-columns: 1fr; gap: 2.5rem; }
    .showcase-item.reverse .showcase-copy { order: 0; }
    .showcase-visual { order: -1; }
    .showcase-copy { text-align: center; }
    .feature-list { display: inline-flex; text-align: left; }

    .providers-intro { grid-template-columns: 1fr; gap: 2.5rem; }
    .providers-copy { text-align: center; }
    .providers-visual { order: -1; }
    .provider-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head.left { text-align: center; margin: 0 auto 3rem; }

    .eco-bridge { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 700px) {
    .problem-grid { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; }
    .lang-switcher { top: auto; bottom: 1rem; right: 50%; transform: translateX(50%); }

    /* Keep the hero phone and its chips inside the viewport */
    .phone { width: 260px; max-width: 66vw; }
    .chip { padding: 0.55rem 0.75rem; }
    .chip strong { font-size: 0.82rem; }
    .chip span { font-size: 0.7rem; }
    .chip-1 { top: 8%; left: 2%; }
    .chip-2 { bottom: 10%; right: 2%; }

    /* Compact nav so the CTA never clips */
    .nav .container { padding-left: 1rem; padding-right: 1rem; gap: 0.75rem; }
    .nav-links { gap: 0; flex-shrink: 0; }
    .nav-logo { font-size: 1.25rem; min-width: 0; }
    .nav-logo .logo-mark { width: 34px; height: 34px; }
    .nav-cta { padding: 0.6rem 1rem; font-size: 0.88rem; }
}

@media (max-width: 460px) {
    .section { padding: 4rem 0; }
    .hero-title { font-size: 2.35rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .trustbar .container { gap: 1.25rem; }
    .waitlist-form { padding: 1.75rem 1.35rem; }
}
