/* HumanShots website */
:root {
    /* Brand "Testigo" (docs/branding): charcoal, white, safety orange */
    --brand: #FF5A1F;
    --brand-strong: #E94A12;
    --brand-soft: #FFE6DB;
    --on-brand: #141414;
    --accent: #FF5A1F;
    --accent-ink: #C2410C;
    --bg: #F7F5F0;
    --bg-alt: #EDEAE3;
    --surface: #FFFFFF;
    --ink: #141414;
    --ink-soft: #5F5A52;
    --line: #DED9CF;
    --ok: #15803D;
    --ok-bg: #E2F5E7;
    --warn: #A16207;
    --warn-bg: #FBF0D9;
    --bad: #C2281D;
    --bad-bg: #FBE4E1;
    --neutral-bg: #ECE9E2;
    --dark: #141414;
    --radius: 14px;
    --shadow: 0 1px 0 rgba(20, 20, 20, 0.04), 0 8px 24px rgba(20, 20, 20, 0.06);
    --max: 1120px;
    --display: 'Archivo', 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #FF6A33;
        --brand-soft: #3A1F14;
        --accent-ink: #FF8A5C;
        --bg: #111111;
        --bg-alt: #171717;
        --surface: #1C1C1C;
        --ink: #F5F3EF;
        --ink-soft: #A9A49B;
        --line: #2E2E2E;
        --ok: #4ADE80;
        --ok-bg: #12301F;
        --warn: #FBBF24;
        --warn-bg: #33270F;
        --bad: #F87171;
        --bad-bg: #3A1716;
        --neutral-bg: #262626;
        --dark: #0A0A0A;
        --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; font-family: var(--display); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 900; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.85em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.hint { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.8em; }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; color: var(--brand); margin-bottom: 0.8em; font-family: var(--display); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
    text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); font-weight: 800; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 9px 16px; font-size: 0.92rem; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 30px; font-size: 1.1rem; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-text { color: var(--bad); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0 4px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none !important; }
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 500; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { white-space: nowrap; flex-shrink: 0; }
.header-cta .cta-short { display: none; }
.header-account { color: var(--ink); font-weight: 600; font-size: 0.92rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 0.85rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; right: 0; top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--bg-alt); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero h1 .hl { color: var(--brand); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 260px; aspect-ratio: 9 / 18; border-radius: 36px; overflow: hidden; border: 8px solid #141414; box-shadow: 0 30px 60px rgba(20, 20, 20, .25); background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; bottom: 36px; right: -24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.hero-card-text { color: var(--ok); font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 40px; }
.steps, .uses { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.uses { grid-template-columns: repeat(4, 1fr); }
.step, .use, .layer, .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.step { position: relative; }
.step-number { position: absolute; top: 14px; right: 18px; font-family: var(--display); font-weight: 900; color: var(--brand); font-size: 2rem; }
.step-icon, .use-icon, .layer-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.step p, .use p, .layer p { color: var(--ink-soft); margin: 0; }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.callout { border-left: 6px solid var(--brand); background: var(--surface); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.callout p { margin: 0; color: var(--ink-soft); }
.final-cta { background: var(--dark); color: #fff; }
.final-cta h2 { text-transform: uppercase; }
.final-cta .lead { color: rgba(255,255,255,.75); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.badge-credible { background: var(--ok-bg); color: var(--ok); }
.badge-doubtful { background: var(--bad-bg); color: var(--bad); }
.badge-divided { background: var(--warn-bg); color: var(--warn); }
.badge-insufficient { background: var(--neutral-bg); color: var(--ink-soft); }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.video-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-thumb { position: relative; aspect-ratio: 3 / 4; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 0.75rem; padding: 2px 6px; border-radius: 6px; }
.video-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; font-size: 0.85rem; }
.video-author { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.video-meta .badge { white-space: normal; }

/* Video page */
.video-page { padding-top: 40px; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player.portrait { max-width: 440px; margin: 0 auto; aspect-ratio: 9 / 16; }
.player.landscape { aspect-ratio: 16 / 9; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.video-side { display: flex; flex-direction: column; gap: 16px; }
.card-title { font-size: 1.05rem; }
.card-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin: 0 0 8px; display: block; }
.author { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; margin: 0; }
.author small { display: block; color: var(--ink-soft); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-family: var(--display); font-weight: 900; flex-shrink: 0; }
.avatar-large { width: 84px; height: 84px; font-size: 2rem; }
.vote-status { margin-bottom: 14px; }
.vote-buttons { display: grid; gap: 10px; }
.vote-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.vote-btn span { flex: 1; text-align: left; }
.vote-btn:hover:not(:disabled) { border-color: var(--ok); }
.vote-btn.down:hover:not(:disabled) { border-color: var(--bad); }
.vote-btn.active { background: var(--ok-bg); border-color: var(--ok); }
.vote-btn.down.active { background: var(--bad-bg); border-color: var(--bad); }
.vote-btn:disabled { cursor: default; opacity: .75; }
.certificate dl { margin: 0; font-size: 0.92rem; }
.certificate dt { color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 12px; }
.certificate dt:first-child { margin-top: 0; }
.certificate dd { margin: 2px 0 0; font-weight: 600; }
.certificate dd.hash { font-weight: 400; background: var(--bg-alt); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.integrity-ok { color: var(--ok); font-weight: 600; }
.integrity-warn { color: var(--warn); font-weight: 600; }
.integrity-muted { color: var(--ink-soft); }
.views { color: var(--ink-soft); font-size: 0.85rem; text-align: center; margin: 0; }

/* Profile */
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { font-size: 2rem; margin: 0; }
.profile-score { text-align: right; }
.profile-score .score { font-size: 2rem; color: var(--ok); }
.profile-actions { display: flex; gap: 8px; margin-bottom: 28px; }

/* Verify */

/* FAQ and legal */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }
.legal h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1em 0; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-alt); }
.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 10px; }

/* Forms and dialogs */
label { display: block; font-weight: 600; font-size: 0.9rem; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.inline-form label { flex: 1; min-width: 200px; }
.card { margin-bottom: 0; }
.narrow > .card { margin-bottom: 18px; }
.card-danger { border-color: var(--bad); }
.dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(92vw, 440px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(10, 8, 20, .55); }
.dialog-form { padding: 24px; display: grid; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: transform .25s; z-index: 50; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.footer-brand p { color: var(--ink-soft); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: center; }
.footer-links a { color: var(--ink-soft); }
.footer-copy { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.85rem; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner, .video-layout, .layers { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .steps { grid-template-columns: 1fr; }
    .uses { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .header-inner { justify-content: space-between; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .uses { grid-template-columns: 1fr; }
    .header-account { display: none; }
    .header-inner { gap: 12px; }
    .header-actions { gap: 8px; }
    .brand { gap: 8px; font-size: 1rem; min-width: 0; }

    .section { padding: 52px 0; }
    .hero { padding: 40px 0; }
    .phone { width: 210px; }
}

/* Code entry ("Have a code?") */
.code-form { display: flex; gap: 8px; max-width: 440px; margin-top: 10px; }
.code-form input { margin: 0; font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.code-form .btn { flex-shrink: 0; }
.code-boxes { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.code-form:has(.code-boxes) { width: 100%; }
.code-boxes input { flex: 1; min-width: 0; width: 4.6em; padding-left: 0; padding-right: 0; text-align: center; letter-spacing: 0.1em; font-size: 1.08rem; }
.code-boxes input:focus { border-color: var(--brand); }
.code-boxes .sep { color: var(--ink-soft); font-weight: 700; }
.code-label { font-size: 0.85rem; color: var(--ink-soft); margin: 28px 0 0; font-weight: 600; }
.center .code-form { margin-left: auto; margin-right: auto; }

/* Hero: the seal itself, explained (no staged video) */
.seal-showcase { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 20px 30px; align-items: center; background: var(--dark); color: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.seal-showcase img { width: 230px; height: auto; display: block; }
.seal-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: note; }
.seal-notes li { counter-increment: note; display: grid; gap: 2px; padding-left: 36px; position: relative; }
.seal-notes li::before { content: counter(note); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 900 13px/24px var(--display); text-align: center; }
.seal-notes b { font-family: var(--display); font-weight: 900; font-size: 0.95rem; letter-spacing: 0.02em; }
.seal-notes li:last-child b { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; color: var(--brand); }
.seal-notes span { color: #CFCAC0; font-size: 0.92rem; line-height: 1.4; }
.seal-showcase figcaption { grid-column: 1 / -1; color: #9A958C; font-size: 0.8rem; border-top: 1px solid #2E2E2E; padding-top: 14px; }
@media (max-width: 560px) { .seal-showcase { grid-template-columns: 1fr; justify-items: center; } .seal-showcase img { width: 170px; } }

/* Very narrow phones: the header CTA collapses to "App" so the header never scrolls sideways */
@media (max-width: 400px) {
    .header-cta .cta-long { display: none; }
    .header-cta .cta-short { display: inline; }
}
