@font-face {
    font-family: "Host Grotesk";
    src: url("../fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Host Grotesk";
    src: url("../fonts/host-grotesk-latin-wght-italic.woff2") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light dark;
    --verde: #0ac920;
    --azul: #10288c;
    --amarelo: #f9ff00;
    --laranja: #ff6700;
    --roxo: #6727aa;
    --preto: #191919;
    --branco: #f7f7f7;
    --bg: light-dark(var(--branco), var(--preto));
    --surface: light-dark(#ffffff, #232427);
    --ink: light-dark(var(--preto), var(--branco));
    --ink-soft: light-dark(#55585f, #a9acb3);
    --line: light-dark(#e2e3e7, #36383d);
    --accent: light-dark(var(--azul), var(--verde));
    --accent-ink: light-dark(var(--branco), var(--preto));
    --accent-text: light-dark(var(--azul), #3fdc52);
    --accent-soft: light-dark(#e3f7e5, #15301a);
    --highlight: var(--verde);
    --logo-fot: light-dark(var(--azul), var(--branco));
    --logo-ae: var(--verde);
    --field: light-dark(#858891, #6f727a);
    --ok: light-dark(#0b7a1c, #3fdc52);
    --ok-soft: light-dark(#e3f7e5, #15301a);
    --danger: light-dark(#c0392b, #ff8a7a);
    --danger-soft: light-dark(#fdecea, #3a1c19);
    --focus: light-dark(var(--roxo), var(--amarelo));
    --shadow-near: light-dark(rgba(25, 25, 25, .04), rgba(0, 0, 0, .3));
    --shadow-far: light-dark(rgba(16, 40, 140, .07), rgba(0, 0, 0, .25));
    --shadow: 0 1px 2px var(--shadow-near), 0 8px 24px var(--shadow-far);
    --radius: 14px;
    --radius-sm: 10px;
    --font: "Host Grotesk", Verdana, ui-sans-serif, system-ui, sans-serif;
    --display: "Host Grotesk", Verdana, ui-sans-serif, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(16px, 4vw, 40px);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 4px 0; }
.logo { display: block; height: auto; }
.logo .logo-fot { fill: var(--logo-fot); }
.logo .logo-ae { fill: var(--logo-ae); }
.brand .logo { width: 104px; }
.logo-inline { display: inline-block; width: 2.4em; vertical-align: -.36em; margin-left: .08em; }
.footer-brand .logo { width: 76px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav .btn { white-space: nowrap; }
.nav form { margin: 0; }

main { flex: 1; width: 100%; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; padding-block: clamp(16px, 4vh, 40px); }
.narrow { width: min(100% - 32px, 440px); margin: clamp(16px, 6vh, 64px) auto; }
.medium { width: min(100% - 32px, 720px); margin: clamp(16px, 4vh, 48px) auto; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 32px);
}

.card + .card { margin-top: 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h2 { font-size: 1.2rem; }
p { margin: 0 0 16px; }

.lead { color: var(--ink-soft); margin-bottom: 24px; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.center { text-align: center; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw-toggle { position: absolute; top: 0; right: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.field .hint { color: var(--ink-soft); font-size: .85rem; margin-top: 6px; }

input[type=text], input[type=email], input[type=password], input[type=tel] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}

input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 237, .18); }
input[aria-invalid=true] { border-color: var(--danger); }

.code-input { letter-spacing: .4em; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.error { color: var(--danger); font-size: .88rem; margin-top: 6px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .08s, filter .15s, background .15s;
}

.btn:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .92rem; }

.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--accent-soft); color: var(--ink); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list form { margin: 0; }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--line); color: var(--ink-soft); }

.qr { display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm); padding: 12px; width: max-content; margin: 0 auto 16px; }
.qr img { display: block; width: 200px; height: 200px; }

.secret { font-family: var(--mono); background: var(--bg); border-radius: 8px; padding: 10px 12px; word-break: break-all; text-align: center; }

.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: var(--mono); list-style: none; padding: 0; margin: 0 0 16px; }
.codes li { background: var(--bg); border-radius: 8px; padding: 8px; text-align: center; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

details summary { cursor: pointer; color: var(--ink-soft); font-size: .92rem; }


.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }

.footer { padding: 24px clamp(16px, 4vw, 40px); color: var(--ink-soft); font-size: .88rem; display: flex; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

.mt { margin-top: 20px; }

select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--field);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

select { height: 48px; padding-block: 0; }
textarea { min-height: 110px; resize: vertical; }
select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 237, .18); }
input[type=datetime-local], input[type=number] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; margin-bottom: 12px; }

.options { display: grid; gap: 10px; margin-bottom: 18px; }
.option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--field); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); margin-top: 4px; }
.option strong { display: block; }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.event-card:hover { border-color: var(--accent); color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card h2, .event-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-dated { flex-direction: row; gap: 16px; align-items: flex-start; }
.event-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-day { flex: none; display: grid; place-items: center; align-content: center; width: 58px; height: 64px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 700; text-transform: lowercase; line-height: 1.1; }
.slots { margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--accent-text); }
.spotlight { position: relative; margin-bottom: 20px; padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.spotlight-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.spotlight-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; margin: 0; }
.spotlight-label { margin: 0 0 6px; font-size: .92rem; font-weight: 700; color: var(--accent-text); }
.spotlight-count { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.spotlight .empty { margin: 0; }
.spotlight-search { margin-top: 20px; }
.spotlight-search summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); width: fit-content; }
.spotlight-search form { margin-top: 12px; flex-wrap: wrap; }
.event-day strong { font: 800 1.6rem var(--display); letter-spacing: -.03em; color: var(--ink); }
.date { font-weight: 700; color: var(--accent-text); font-size: .9rem; }

.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); }
.tag-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; }
dl.facts dt { color: var(--ink-soft); }
dl.facts dd { margin: 0; font-weight: 600; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }

.empty { text-align: center; color: var(--ink-soft); padding: 32px 16px; }

.invite { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invite input { flex: 1; min-width: 200px; font-family: var(--mono); }

.applicant { display: grid; gap: 6px; }
.applicant p { margin: 0; }

.pager { display: flex; justify-content: space-between; margin-top: 20px; }

.dropzone { display: grid; gap: 6px; place-items: center; text-align: center; padding: 40px 16px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.shot { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--line); }
.shot .protected-img { position: absolute; inset: 0; }
.shot img, .shot .protected-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.shot:hover img, .shot:hover .protected-img { transform: scale(1.03); }
.shot-wrap { position: relative; border-radius: 8px; }
.shot-wrap .shot { transition: box-shadow .15s; }
.shot-wrap.is-picked .shot { box-shadow: 0 0 0 3px var(--accent); }
.shot-wrap.is-picked img, .shot-wrap.is-picked .protected-img { transform: scale(.92); }
.shot-pick, .shot-add, .shot-badge { position: absolute; display: grid; place-items: center; border-radius: 50%; }
.shot-pick { top: 8px; left: 8px; width: 30px; height: 30px; cursor: pointer; background: rgba(20, 22, 29, .35); border: 2px solid #fff; transition: opacity .15s, background .15s; }
.shot-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.shot-pick:has(input:checked) { background: var(--accent); border-color: var(--accent); }
.shot-pick:has(input:checked)::after { content: ""; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.shot-pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.shot-add { right: 8px; bottom: 8px; width: 38px; height: 38px; border: 0; padding: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: opacity .15s, transform .15s; }
.shot-add:hover { transform: scale(1.08); }
.shot-add svg { width: 20px; height: 20px; }
.shot-badge { top: 8px; right: 8px; width: 28px; height: 28px; background: var(--ok); color: #fff; }
.shot-badge svg { width: 16px; height: 16px; }
.shot-wrap.is-added .shot { box-shadow: 0 0 0 2px var(--ok); }
@media (hover: hover) {
    .js-picker .shot-wrap:not(:hover):not(:focus-within):not(.is-picked) .shot-pick,
    .js-picker .shot-wrap:not(:hover):not(:focus-within) .shot-add { opacity: 0; }
    .js-picker.has-picked .shot-pick { opacity: 1 !important; }
}
.pick-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.pick-bar > span { margin-right: auto; }
.pick-bar .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.js-picker .pick-bar:not(.is-open) { display: none; }

.viewer { margin: 0 0 20px; display: grid; place-items: center; }
.viewer img { max-width: 100%; max-height: min(78vh, 860px); width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
img.mini { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }

.rating { font-weight: 700; color: var(--accent-text); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 1.8rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 4px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.tabs a:hover { background: var(--surface); color: var(--ink); }
.tabs a.on { background: var(--ink); color: var(--bg); }
.page-head .tabs { margin-bottom: 0; }
.period-tabs { margin: 20px 0 12px; justify-content: flex-end; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 14px; border-radius: var(--radius-sm); background: var(--bg); }
.stat strong { font-size: 1.4rem; letter-spacing: -.02em; }
.stat-alert { background: var(--accent-soft); }
.trend { font-size: .8rem; font-weight: 600; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--danger); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.table code { font-size: .85rem; }

.thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.thread li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); }
.thread li.internal { background: var(--accent-soft); }
.thread p { margin: 6px 0 0; }
input[type=search], input[type=date] { height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.field input[type=date] { width: 100%; height: 48px; }

.btn-ink { background: var(--ink); color: var(--bg); }
.btn-verde, .btn-verde:hover { background: var(--verde); color: var(--preto); }
.btn-ink:hover { color: var(--bg); }

.landing-hero {
    width: min(100% - 32px, 1120px);
    margin: clamp(24px, 6vh, 72px) auto clamp(40px, 8vh, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.landing-hero h1 {
    font-size: clamp(3rem, 9vw, 6.6rem);
    line-height: .92;
    letter-spacing: -.045em;
    margin-bottom: 28px;
}

.landing-hero-copy > p:first-of-type { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 28px; }
.landing-invite { margin-top: 18px; }

.viewfinder {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    justify-self: center;
    width: min(100%, 380px);
    aspect-ratio: 5 / 6;
    margin-bottom: 34px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.vf-corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--ink); opacity: .5; }
.vf-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.vf-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.vf-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.vf-br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.vf-focus {
    position: absolute;
    top: 22%;
    left: 34%;
    width: 30%;
    aspect-ratio: 4 / 3;
    border: 2px solid var(--highlight);
    border-radius: 6px;
    z-index: 3;
    animation: focus-in 1.3s cubic-bezier(.3, .7, .2, 1) both;
}

.vf-flash {
    position: absolute;
    inset: -25%;
    border-radius: 50%;
    background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, .6) 40%, rgba(255, 255, 255, 0));
    pointer-events: none;
    opacity: 0;
    z-index: 4;
    animation: flash .9s 1.05s ease-out both;
}

.strip-stack {
    position: relative;
    width: min(64%, 230px);
    transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx));
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
    transform-style: preserve-3d;
}

.strip {
    padding: 12px 12px 8px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(20, 22, 29, .08), 0 22px 50px rgba(20, 22, 29, .22);
    display: grid;
    gap: 9px;
}

.strip-front { position: relative; transform: rotate(4deg); z-index: 1; }
.strip-back { position: absolute; inset: 0 0 auto; transform: translate(-34%, 5%) rotate(-8deg); filter: saturate(.85) brightness(.97); }
.strip-back .frame span { font-size: 1.15rem; }

.frame {
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
    overflow: hidden;
    position: relative;
    animation: develop 1.8s 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.frame span {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -.03em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

.frame-a { background: radial-gradient(circle at 75% 25%, #f9ff00 0 18%, transparent 19%), linear-gradient(160deg, #ff8a2e, #e05200); }
.frame-b { background: radial-gradient(circle at 30% 70%, #ffffff 0 7%, transparent 8%), repeating-linear-gradient(90deg, #0ac920 0 26px, #09b01c 26px 52px); animation-delay: 1.3s; }
.frame-c { background: radial-gradient(circle at 20% 30%, #f9ff00 0 5%, transparent 6%), radial-gradient(circle at 70% 40%, #ff6700 0 6%, transparent 7%), radial-gradient(circle at 45% 75%, #0ac920 0 5%, transparent 6%), linear-gradient(200deg, #7a3bc0, #4a1a80); animation-delay: 1.5s; }
.frame-d { background: radial-gradient(circle at 70% 30%, #f9ff00 0 4%, transparent 5%), radial-gradient(circle at 35% 45%, #f9ff00 0 3%, transparent 4%), linear-gradient(180deg, #1c3aa8, #10288c); }
.frame-e { background: radial-gradient(circle at 65% 40%, #ffffff 0 14%, transparent 15%), linear-gradient(170deg, #9c6ad6, #6727aa); animation-delay: 1.2s; }
.frame-f { background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(249, 255, 0, .75) 46px 49px), linear-gradient(160deg, #2c2c2c, #191919); animation-delay: 1.4s; }

@keyframes develop {
    from { filter: grayscale(1) brightness(1.8) contrast(.5); opacity: .35; }
    to { filter: none; opacity: 1; }
}

@keyframes focus-in {
    0% { transform: scale(1.9); opacity: 0; }
    35% { transform: scale(1); opacity: 1; }
    48%, 62% { border-color: var(--ok); }
    55% { opacity: .2; }
    70% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; border-color: var(--ok); }
}

@keyframes flash {
    0% { opacity: 0; }
    10% { opacity: .95; }
    100% { opacity: 0; }
}

@keyframes tide { to { -webkit-mask-position: 200px 0; mask-position: 200px 0; } }

:root {
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath d='M0 8 C15 0 45 0 60 8 S105 16 120 8 L120 18 C105 26 75 26 60 18 S15 10 0 18 Z'/%3E%3C/svg%3E");
}

.calcadao {
    height: 56px;
    background: var(--ink);
    -webkit-mask: var(--wave) 0 0 / 120px 28px repeat;
    mask: var(--wave) 0 0 / 120px 28px repeat;
}

.landing-band { background: var(--surface); padding: clamp(48px, 8vh, 96px) 0; }
.landing-band .wrap { padding-block: 0; }
.landing-band h2, .landing-modes h2, .landing-care h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; max-width: 18ch; margin-bottom: 32px; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roles article {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px);
    transition: transform .2s, border-color .2s;
}
.roles article:hover { transform: translateY(-3px); border-color: var(--accent); }
.roles h3 { font-size: 1.3rem; }
.roles p:last-child { color: var(--ink-soft); margin: 0; }
.role-icon, .care-icon { display: inline-grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.role-icon { width: 46px; height: 46px; margin-bottom: 18px; }
.role-icon svg { width: 24px; height: 24px; }
.role-label { font-size: .92rem; font-weight: 700; color: var(--accent-text); margin-bottom: 6px; }

.landing-modes { padding-block: clamp(48px, 8vh, 96px) 0; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px); background: var(--verde); color: var(--preto); }
.mode::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 26px solid currentColor;
    opacity: .08;
}
.mode h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.mode p { margin: 0; max-width: 46ch; }
.mode .mode-tag { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: .85rem; font-weight: 700; }
.mode-dark { background: var(--azul); color: var(--branco); }

.landing-care { padding-block: clamp(48px, 8vh, 96px); }
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; }
.care dt { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; display: flex; flex-direction: column; gap: 14px; }
.care-icon { width: 40px; height: 40px; }
.care-icon svg { width: 21px; height: 21px; }
.care dd { margin: 0; color: var(--ink-soft); }

.landing-cta { position: relative; overflow: hidden; background: var(--azul); color: var(--branco); padding: clamp(48px, 9vh, 96px) 0; }
.landing-cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 0; }
.landing-cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.04em; margin: 0; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.05rem; }
.landing-events { padding-block: clamp(40px, 7vh, 80px); }
.landing-events > .row { margin-bottom: 24px; align-items: flex-end; }
.landing-events-next { padding-top: 0; }
.event-card .tag { align-self: flex-start; margin-top: 4px; }
.landing-events > .row h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; margin: 0; }

.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready.revealed { opacity: 1; transform: none; }

@media (max-width: 820px) {
    .landing-hero { grid-template-columns: 1fr; }
    .viewfinder { width: min(82%, 320px); }
    .strip-back { transform: translate(-22%, 5%) rotate(-7deg); }
    .frame span { font-size: 1.1rem; }
    .strip-back .frame span { font-size: .9rem; }
    .roles, .modes, .care { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .frame, .vf-focus, .vf-flash { animation: none; }
    .vf-focus, .vf-flash { display: none; }
    .strip-stack, .roles article { transition: none; }
    .reveal-ready { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
    .nav-extra { display: none; }
    .brand .logo { width: 84px; }
    .topbar { padding-inline: 16px; }
}

.theme-toggle { width: 38px; padding: 0; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle [data-icon] { display: none; }
.theme-toggle[data-mode="auto"] [data-icon="auto"],
.theme-toggle[data-mode="light"] [data-icon="light"],
.theme-toggle[data-mode="dark"] [data-icon="dark"] { display: block; }

.invite-code { font-family: var(--mono); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; letter-spacing: .12em; margin: 8px 0 12px; }
.invite-link { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink-soft); font: .9rem var(--mono); margin-bottom: 12px; }
.btn[data-copied-state] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

.busy-label { display: inline-flex; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
[data-progress]:not([data-busy]) .spinner { display: none; }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.pay-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-switch form { margin: 0; }
.count-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.btn .count-badge { background: var(--accent-ink); color: var(--accent); margin-left: 4px; }
.event-card-hot { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%); }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.list-bar .tabs { margin-bottom: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; align-items: center; }
.filters input, .filters select { height: 38px; padding: 0 12px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }
.filters input { width: 170px; flex: 1 1 140px; }
.filters select { width: auto; flex: none; }
.filters .btn { height: 38px; }

.is-inner main { position: relative; isolation: isolate; }
.is-inner main::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 220px;
    z-index: -1;
    pointer-events: none;
    background: var(--ink);
    opacity: .035;
    -webkit-mask: var(--wave) 0 0 / 120px 28px repeat, linear-gradient(#000, transparent);
    -webkit-mask-composite: source-in;
    mask: var(--wave) 0 0 / 120px 28px repeat, linear-gradient(#000, transparent);
    mask-composite: intersect;
}

.is-inner main h1 { position: relative; padding-bottom: 14px; }
.is-inner main h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 7px;
    background: var(--highlight);
    -webkit-mask: var(--wave) 0 0 / auto 100% repeat-x;
    mask: var(--wave) 0 0 / auto 100% repeat-x;
}
.is-inner .narrow h1::after, .is-inner .center h1::after { left: 50%; translate: -50% 0; }
.is-inner .narrow .card:not(.center) h1::after { left: 0; translate: none; }

.card > h2:first-child, .card > .row:first-child h2 { display: flex; align-items: center; gap: 10px; }
.card > h2:first-child::before, .card > .row:first-child h2::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 2px solid var(--highlight);
    box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 5px var(--highlight);
}

.narrow > .card { position: relative; overflow: hidden; padding-top: calc(clamp(20px, 4vw, 32px) + 14px); }
.narrow > .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 18px;
    background:
        radial-gradient(circle at 50% 50%, var(--surface) 0 3.5px, transparent 4px) 0 0 / 22px 18px repeat-x,
        var(--ink);
    opacity: .9;
}

.empty::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background-color: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2309a61b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='16' y='20' width='32' height='24' rx='3' stroke-dasharray='4 4'/%3E%3Ccircle cx='26' cy='29' r='3'/%3E%3Cpath d='M17 42l10-9 7 6 5-4 9 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.card .empty::before, .card.empty::before { width: 56px; height: 56px; }
p.empty::before, .list + .empty::before { display: none; }

.footer { position: relative; align-items: center; margin-top: 40px; padding-top: 34px; }
.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 12px;
    background: var(--line);
    -webkit-mask: var(--wave) 0 0 / 60px 12px repeat-x;
    mask: var(--wave) 0 0 / 60px 12px repeat-x;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; }
.is-home .footer { margin-top: 0; }

.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 46px; height: 46px; border-radius: 50%; border: 8px solid var(--highlight); opacity: .12; }
.protected-img { display: block; background: var(--line) center / cover no-repeat; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer .viewer-img { width: min(100%, calc(min(78vh, 860px) * var(--ratio, 1.5))); aspect-ratio: var(--ratio, 3 / 2); background-size: contain; background-color: transparent; border-radius: var(--radius-sm); }
.embed-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.embed-frame iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }
.embed-full { width: 100%; }
.embed-full .embed-frame { border: 0; border-radius: 0; box-shadow: none; }
.is-embed { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.is-embed main { display: flex; flex-direction: column; min-height: 0; }
.is-embed .embed-full, .is-embed .embed-frame { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.is-embed .embed-frame iframe { flex: 1; height: auto; min-height: 0; }
.is-bare .footer { margin-top: 0; }
.instagram-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.instagram-link svg { width: 18px; height: 18px; flex: none; }
.btn-lg.instagram-link svg { width: 22px; height: 22px; }
.temp-hero .btn-lg { height: auto; min-height: 56px; padding-block: 12px; line-height: 1.25; text-align: left; }
.temp-hero { position: relative; width: min(100% - 32px, 820px); margin: clamp(32px, 10vh, 120px) auto; padding: clamp(40px, 8vw, 88px) clamp(20px, 6vw, 72px); text-align: center; isolation: isolate; }
.temp-hero .vf-corner { border-color: var(--verde); opacity: 1; width: 40px; height: 40px; border-width: 4px; }
.temp-hero h1 { font-size: clamp(2.8rem, 9vw, 6rem); line-height: .95; letter-spacing: -.045em; margin-bottom: 24px; }
.temp-hero h1 span { color: var(--accent-text); white-space: nowrap; }
.temp-hero p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--ink-soft); max-width: 34ch; margin: 0 auto 32px; }
.temp-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.legal-dialog { width: min(100% - 24px, 760px); max-height: min(88vh, 900px); max-height: min(88dvh, 900px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(25, 25, 25, .6); }
.legal-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(18px, 4vw, 32px); border-bottom: 1px solid var(--line); }
.legal-dialog-head h1 { font-size: 1.3rem; margin: 0; padding: 0; }
.legal-dialog-head h1::after { display: none; }
.legal-dialog-head form { margin: 0; }
.legal-dialog-body { overflow-y: auto; padding: 8px clamp(18px, 4vw, 32px) 28px; }
.temp-events { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 4px; }
.temp-events a { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.temp-events a:hover { color: var(--accent-text); }
.temp-events time { color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; }
.temp-events-place { flex-basis: 100%; color: var(--ink-soft); font-size: .9rem; font-weight: 400; }

.pow .check { align-items: center; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); }
