/* ==========================================================================
   ZuluWorks AI — app.css  (MOBILE-FIRST, v3 2026-09-30)

   Rule of this file: the UNQUALIFIED rules are the phone.
   Every @media block is (min-width: …) and only ADDS.

   Targets: 360–430px viewport (iPhone), tested first.
   Constraints: body >= 16px, tap targets >= 44px, no h-scroll,
   no hover-only affordances, reduced-motion honoured.
   ========================================================================== */

:root {
    --ink: #060606;
    --panel: #101010;
    --panel-2: #161616;
    --line: #262626;
    --gold: #FF9900;
    --copper: #D2691E;
    --white: #FFFFFF;
    --gray: #A0A0A0;
    --gray-dim: #7A7A7A;

    --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* fluid type — reads correctly at 360px, grows on its own */
    --fs-hero: clamp(1.9rem, 9.2vw, 4.6rem);
    --fs-h2: clamp(1.6rem, 6.4vw, 2.9rem);
    --fs-h3: clamp(1.15rem, 4.4vw, 1.5rem);
    --fs-body: clamp(1rem, 4.1vw, 1.125rem);
    --fs-small: 0.875rem;
    --fs-eyebrow: 0.72rem;

    --radius: 14px;
    --radius-lg: 20px;
    --pad-x: 20px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --maxw: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    text-transform: uppercase;
    /* Safety net: a single long word must never force the page wider than the
       phone. Without this, one 15-character word at display size sets a
       min-content width larger than the viewport and the browser zooms out. */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); text-transform: none; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
a { color: var(--gold); text-decoration: none; }
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

strong { color: var(--white); font-weight: 700; }
.highlight { color: var(--gold); }

/* ---------- layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

section { padding: 56px 0; }
.section-alt { background: var(--panel); }
.section-line { border-top: 1px solid var(--line); }

/* ---------- eyebrow / lede ---------- */
.eyebrow {
    display: block;
    font-family: var(--font-head);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.9rem;
}

.lede {
    font-size: var(--fs-body);
    color: var(--gray);
    max-width: 62ch;
    margin: 0 0 1.6rem;
}
.lede strong { color: var(--white); }

/* ---------- buttons (full-width on phone = thumb-reachable) ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 15px 22px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--copper));
    color: #0a0a0a;
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.22);
}
.btn-primary:active { transform: scale(0.985); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--line);
}
.btn-ghost:active { background: var(--panel-2); }

.btn-row { display: grid; gap: 12px; margin-bottom: 1.2rem; }

.micro {
    font-size: var(--fs-small);
    color: var(--gray-dim);
    line-height: 1.55;
}
.micro strong { color: var(--gray); }

/* ---------- nav (mobile: sticky bar + slide-down drawer) ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 6, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
}
.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;      /* thumb-reachable, not a 27px text link */
    padding: 8px 0;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    color: var(--white);
    text-transform: uppercase;
}
.brand span { color: var(--gold); }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--pad-x) 20px;
    background: rgba(6, 6, 6, 0.985);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
}
.nav-links.open { display: flex; }
.nav-links a {
    display: block;
    padding: 15px 4px;
    min-height: 48px;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
}
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a.nav-cta {
    margin-top: 14px;
    border-bottom: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--copper));
    color: #0a0a0a;
    text-align: center;
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; }
.hero h1 { margin-bottom: 0.5em; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 16px; }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- evidence / stat ---------- */
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 22px 20px;
}
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.3rem, 12vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.35rem;
}
.stat-label { display: block; color: var(--gray); font-size: var(--fs-small); }
.source { display: block; margin-top: 0.7rem; font-size: 0.75rem; color: var(--gray-dim); }

/* ---------- price cards ---------- */
.tier {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
}
.tier.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(255, 153, 0, 0.07), var(--panel) 42%);
}
.tier-flag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--gold);
    color: #0a0a0a;
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.tier-name {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.3em;
}
.tier-for { color: var(--gray); font-size: var(--fs-small); margin: 0 0 1.1rem; }
.tier-price {
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
}
.tier-price span { font-size: 1rem; color: var(--gray); font-weight: 600; }
.tier-setup {
    display: block;
    margin: 0.5rem 0 1.2rem;
    font-size: var(--fs-small);
    color: var(--gray);
}
.tier-setup b { color: var(--gold); font-weight: 700; }
.tier ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.tier li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.6rem;
    font-size: var(--fs-small);
    color: var(--gray);
    line-height: 1.55;
}
.tier li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.tier li strong { color: var(--white); }
.tier-cta { margin-top: auto; }

/* ---------- dot lists (shared by tiers and one-off audits) ---------- */
.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ticks li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.6rem;
    font-size: var(--fs-small);
    color: var(--gray);
    line-height: 1.55;
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.ticks li strong { color: var(--white); }

/* ---------- steps ---------- */
.step { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-n {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--gray); font-size: var(--fs-small); }

/* ---------- CTA band ---------- */
.band {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.12), transparent 62%), var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.band h2 { margin-bottom: 0.5em; }
.band .lede { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 44px 0 34px;
    font-size: var(--fs-small);
}
.footer h4 {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--gray-dim);
    margin: 0 0 0.9rem;
}
.footer-links { display: grid; gap: 4px; margin-bottom: 30px; }
.footer-links a {
    display: block;
    padding: 11px 0;
    min-height: 44px;
    color: var(--gray);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--gray-dim);
    font-size: 0.78rem;
}
.footer-bottom a { color: var(--gray); }

/* ---------- form ---------- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--white);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 15px;
    font-family: var(--font-body);
    font-size: 16px; /* >=16px stops iOS zoom-on-focus */
    color: var(--white);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    appearance: none;
}
.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 21px) 24px, calc(100% - 15px) 24px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: #555; }

/* ---------- reveal (no motion dependency) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.active { opacity: 1; transform: none; }

/* ==========================================================================
   ENHANCEMENTS — phone is the baseline, everything below only adds.
   ========================================================================== */

@media (min-width: 560px) {
    .btn-row { grid-auto-flow: column; justify-content: start; gap: 14px; }
    .btn { width: auto; min-width: 260px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}

@media (min-width: 760px) {
    :root { --pad-x: 32px; }
    section { padding: 84px 0; }
    .hero { padding: 72px 0 84px; }

    /* nav becomes a horizontal bar; hamburger retires */
    .nav-toggle { display: none; }
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 26px;
        padding: 0;
        background: none;
        border: 0;
        max-height: none;
        overflow: visible;
    }
    .nav-links a { padding: 8px 0; min-height: 0; border-bottom: 0; font-size: 0.92rem; }
    .nav-links a.nav-cta { margin-top: 0; padding: 11px 20px; min-height: 44px; }

    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid { gap: 22px; }

    .step { grid-template-columns: 130px 1fr; gap: 0 26px; padding: 26px 0; align-items: start; }
    .step-n { padding-top: 6px; }

    .footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px; }
    .footer-links { margin-bottom: 0; }
}

@media (min-width: 1000px) {
    section { padding: 104px 0; }
    .hero { padding: 88px 0 104px; }
    .tier { padding: 30px 26px; }
    .lede { font-size: 1.2rem; }
}

@media (hover: hover) {
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,153,0,0.3); }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
    .nav-links a:hover { color: var(--gold); }
    .footer-links a:hover { color: var(--gold); }
    .card:hover, .tier:hover { border-color: rgba(255,153,0,0.4); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* ===== imagery (v3) — human-relatable fal.ai photography ===== */
.media {
    margin: 2.2rem 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.media img {
    display: block;
    width: 100%;
    height: auto;
}
.media-band {
    padding: 2.5rem 0 0;
}
.media-band .media,
.split .media {
    margin: 0;
}


/* ===== magic cards + tiers — cursor spotlight + 3D tilt (hover only, no perpetual motion) ===== */
.card, .tier { position: relative; overflow: hidden; }
.card {
    transition: opacity .6s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tier {
    transition: opacity .6s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card > *, .tier > * { position: relative; z-index: 1; }
.card::before, .tier::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,153,0,.16), transparent 62%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.card:hover, .tier:hover {
    border-color: rgba(255,153,0,.5);
    box-shadow: 0 26px 60px -28px rgba(0,0,0,.9), 0 0 34px -8px rgba(255,153,0,.35);
}
.card:hover::before, .tier:hover::before { opacity: 1; }

/* staggered entrance — later cards rise in sequence */
.grid > .card:nth-child(2) { --i: 1; }
.grid > .card:nth-child(3) { --i: 2; }
.grid > .card:nth-child(4) { --i: 3; }
.grid > .card.reveal:not(.active) { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
    .card, .tier { transition: none; }
    .card::before, .tier::before { display: none; }
    .card:hover, .tier:hover { transform: none; }
}

/* ==========================================================================
   FREE PRESENCE CHECK — the self-serve tool
   Shared by the homepage block and the /presence-report page.
   ========================================================================== */

.tool-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}
.tool-row { display: grid; gap: 12px; }
.tool-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 11px;
}
.tool-input::placeholder { color: #555; }
.tool-input:focus { border-color: var(--gold); outline: none; }
.tool-note { color: var(--gray-dim); font-size: 0.78rem; margin: 10px 0 0; }

/* the ladder: free check -> $97 report -> $997 assessment */
.ladder { display: grid; gap: 14px; margin-top: 30px; }
.ladder-step {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
}
.ladder-step.is-now { border-color: var(--gold); }
.ladder-tag {
    font-family: var(--font-head);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-dim);
    display: block;
    margin-bottom: 8px;
}
.ladder-step.is-now .ladder-tag { color: var(--gold); }
.ladder-step h3 { margin: 0 0 8px; font-size: var(--fs-h3); color: var(--white); }
.ladder-step p { margin: 0 0 14px; color: var(--gray); font-size: var(--fs-small); line-height: 1.6; }
.ladder-price {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 0 10px;
}
.ladder-price span { font-size: 0.8rem; font-weight: 600; color: var(--gray-dim); }
.ladder-step ul { margin: 0 0 4px; padding-left: 18px; }
.ladder-step li { color: var(--gray); font-size: var(--fs-small); line-height: 1.6; margin-bottom: 4px; }
.ladder-cta { margin-top: auto; padding-top: 16px; }

@media (min-width: 760px) {
    .tool-panel { padding: 28px; }
    .tool-row { grid-template-columns: 1fr auto; align-items: start; }
    .tool-row .btn { min-width: 240px; }
    .ladder { grid-template-columns: repeat(3, 1fr); }
}
