/*
 * style.css — Estilos do hotsite inspects.app.
 * 1) Tokens da marca (espelham inspects/src/web/styles/tokens.css — fonte da verdade no repo do app).
 * 2) Base e utilitários (container, botões, ícones, chips).
 * 3) Seções na ordem da página. 4) Responsivo e reduced-motion.
 * Tema: segue o sistema; [data-theme] no <html> força claro/escuro (main.js).
 */

/* ---------- 1. Tokens ---------- */
:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);

    /* Light theme (default) */
    --bg: #F5F7FB;
    --bg-alt: #EDF1F8;
    --surface: #FFFFFF;
    --surface-2: #F3F6FB;
    --text: #0F1B33;
    --text-muted: #556178;
    --border: rgba(15, 27, 51, 0.10);
    --brand: #1F5BD8;
    --brand-soft: #E3ECFC;
    --primary: #1F5BD8;
    --primary-hover: #1748B0;
    --on-primary: #FFFFFF;
    --accent: #D9480F;
    --accent-soft: #FFEBDD;
    --ok: #1A7F4E;
    --ok-soft: #DDF3E8;
    --nc: #C9372C;
    --nc-soft: #FBE3E0;
    --pend: #556178;
    --pend-soft: #E8ECF3;
    --nav-bg: rgba(245, 247, 251, 0.72);
    --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.06), 0 1px 1px rgba(15, 27, 51, 0.04);
    --shadow: 0 4px 16px rgba(15, 27, 51, 0.06), 0 1px 3px rgba(15, 27, 51, 0.05);
    --shadow-lg: 0 24px 60px rgba(15, 27, 51, 0.14), 0 4px 12px rgba(15, 27, 51, 0.06);
    --glow: radial-gradient(60% 50% at 75% 20%, rgba(31, 91, 216, 0.12), transparent 70%),
        radial-gradient(40% 40% at 20% 10%, rgba(217, 72, 15, 0.08), transparent 70%);
    color-scheme: light;
}

/* Dark theme: system preference (unless forced light) or forced dark */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0A0F1C;
        --bg-alt: #0E1526;
        --surface: #121A2B;
        --surface-2: #18223A;
        --text: #E8EEF9;
        --text-muted: #93A0B8;
        --border: rgba(232, 238, 249, 0.10);
        --brand: #6D9BF0;
        --brand-soft: rgba(109, 155, 240, 0.14);
        --primary: #2F6BD8;
        --primary-hover: #3F7BE8;
        --on-primary: #FFFFFF;
        --accent: #FF8A3D;
        --accent-soft: rgba(255, 138, 61, 0.14);
        --ok: #3DBB7E;
        --ok-soft: rgba(61, 187, 126, 0.14);
        --nc: #F06A5F;
        --nc-soft: rgba(240, 106, 95, 0.14);
        --pend: #93A0B8;
        --pend-soft: rgba(147, 160, 184, 0.14);
        --nav-bg: rgba(10, 15, 28, 0.72);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
        --glow: radial-gradient(60% 50% at 75% 20%, rgba(47, 107, 216, 0.22), transparent 70%),
            radial-gradient(40% 40% at 20% 10%, rgba(255, 138, 61, 0.10), transparent 70%);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0A0F1C;
    --bg-alt: #0E1526;
    --surface: #121A2B;
    --surface-2: #18223A;
    --text: #E8EEF9;
    --text-muted: #93A0B8;
    --border: rgba(232, 238, 249, 0.10);
    --brand: #6D9BF0;
    --brand-soft: rgba(109, 155, 240, 0.14);
    --primary: #2F6BD8;
    --primary-hover: #3F7BE8;
    --on-primary: #FFFFFF;
    --accent: #FF8A3D;
    --accent-soft: rgba(255, 138, 61, 0.14);
    --ok: #3DBB7E;
    --ok-soft: rgba(61, 187, 126, 0.14);
    --nc: #F06A5F;
    --nc-soft: rgba(240, 106, 95, 0.14);
    --pend: #93A0B8;
    --pend-soft: rgba(147, 160, 184, 0.14);
    --nav-bg: rgba(10, 15, 28, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    --glow: radial-gradient(60% 50% at 75% 20%, rgba(47, 107, 216, 0.22), transparent 70%),
        radial-gradient(40% 40% at 20% 10%, rgba(255, 138, 61, 0.10), transparent 70%);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--brand);
    text-decoration: none;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
}

.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-lg {
    width: 28px;
    height: 28px;
    stroke-width: 1.75;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 1rem/1.2 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 20px rgba(31, 91, 216, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:focus-visible,
.icon-btn:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--text);
}

/* Theme toggle shows the icon of the theme you would switch to */
.show-dark {
    display: none;
}

:root[data-theme="dark"] .show-dark {
    display: block;
}

:root[data-theme="dark"] .show-light {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .show-dark {
        display: block;
    }

    :root:not([data-theme="light"]) .show-light {
        display: none;
    }
}

.chip,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.chip-brand {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
}

.chip-accent {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
}

.tag-ok {
    background: var(--ok-soft);
    color: var(--ok);
    border-color: transparent;
}

.tag-nc {
    background: var(--nc-soft);
    color: var(--nc);
    border-color: transparent;
}

.tag-pend {
    background: var(--pend-soft);
    color: var(--pend);
    border-color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------- 3. Sections ---------- */

/* Nav (glass) */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-sm {
    font-size: 1rem;
}

.brand-tld {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero */
.hero {
    position: relative;
    padding: 96px 0 120px;
    background: var(--glow);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

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

.hero h1 .accent {
    display: block;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-note .icon {
    color: var(--ok);
}

/* Mockup */
.mock {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mock-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-body {
    padding: 20px;
    display: grid;
    gap: 18px;
}

.mock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mock-progress>div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.mock-progress span {
    color: var(--text-muted);
}

.bar {
    height: 8px;
    border-radius: 4px;
    background: var(--surface-2);
    overflow: hidden;
}

.bar-69 {
    width: 69%;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--brand));
}

.mock-evidence {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.thumb .icon {
    width: 26px;
    height: 26px;
}

.thumb em {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(10, 15, 28, 0.55);
    color: #fff;
}

.t1 {
    background: linear-gradient(135deg, #5B7FB8, #24395F);
}

.t2 {
    background: linear-gradient(135deg, #C77A4A, #6B3A22);
}

.t3 {
    background: linear-gradient(135deg, #8A97AD, #3E4A60);
}

.mock-findings {
    list-style: none;
    display: grid;
    gap: 2px;
}

.mock-findings li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}

.mock-findings small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.status {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
}

.status .icon {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.st-ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.st-nc {
    background: var(--nc-soft);
    color: var(--nc);
}

.st-pend {
    background: var(--pend-soft);
    color: var(--pend);
}

/* Generic section */
.section {
    padding: 112px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-head p,
.audience p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Steps */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step .icon-lg {
    color: var(--brand);
    margin-bottom: 18px;
}

.step-n {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
}

.step h3,
.feature h3,
.plan h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step p,
.feature p,
.plan p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-ico {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 18px;
}

/* Audience */
.audience {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}

.checks {
    list-style: none;
    display: grid;
    gap: 12px;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.checks .icon {
    color: var(--ok);
}

/* Plans */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.plan h3 {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.plan-big {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--text) !important;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.plan-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.plans-note {
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Waitlist */
.waitlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    background-image: var(--glow);
}

.waitlist-copy p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.waitlist-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 0.85rem;
    font-weight: 600;
}

.field em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-muted);
}

.field input,
.field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: 1rem var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.hp {
    display: none;
}

.form-status {
    min-height: 1.4em;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.form-status.ok {
    color: var(--ok);
}

.form-status.err {
    color: var(--nc);
}

/* FAQ */
.faq {
    max-width: 760px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 24px 20px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Reveal on scroll (main.js adds .visible) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ---------- 4. Responsive & accessibility ---------- */
@media (max-width: 960px) {

    .hero-grid,
    .audience,
    .waitlist {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .features,
    .plans {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .nav-inner {
        gap: 8px;
    }

    .nav-actions {
        gap: 6px;
    }

    .brand {
        font-size: 1.1rem;
    }

    .btn-sm {
        padding: 8px 14px;
    }

    .hero {
        padding: 56px 0 72px;
    }

    .section {
        padding: 72px 0;
    }

    .steps,
    .features,
    .plans {
        grid-template-columns: 1fr;
    }

    .waitlist {
        padding: 28px 20px;
        gap: 28px;
    }

    .mock-findings li {
        grid-template-columns: 28px 1fr;
    }

    .thumb .icon {
        margin-bottom: 22px;
    }

    .mock-findings .tag {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .nav {
        background: var(--bg);
        backdrop-filter: none;
    }
}
