/* Telão: the established charcoal and amber palette. No JavaScript or remote assets. */
@font-face {
    font-family: "Outfit";
    src: url("../brand/Outfit-Latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #0d0d0d;
    --surface: #171717;
    --surface-2: #202020;
    --line: #2e2e2e;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --accent: #f5a524;
    --accent-ink: #1a1203;
    --danger: #f87171;
    --ok: #4ade80;
    --radius: 14px;
    color-scheme: dark;
    accent-color: var(--accent);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sandbox-banner {
    padding: 12px 20px;
    background: var(--accent);
    color: var(--accent-ink);
    text-align: center;
}
.sandbox-banner strong { margin-right: 12px; }
.sandbox-banner span { white-space: normal; }
@media (max-width: 600px) {
    .sandbox-banner strong, .sandbox-banner span { display: block; }
    .sandbox-banner strong { margin-right: 0; margin-bottom: 4px; }
}

a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 96px);
    max-width: 1248px;
    margin: 0 auto;
    min-height: 104px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: "Outfit", sans-serif; font-weight: 650; font-size: 2.2rem; line-height: 1; text-decoration: none; letter-spacing: -.04em; }
.brand img { display: block; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
nav .nav-primary { color: var(--text); }

main { flex: 1; width: 100%; max-width: 944px; margin: 0 auto; padding: 56px 24px 80px; }
main > .muted { max-width: 70ch; margin-bottom: 28px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; padding: 36px 24px; }
.foot p { margin: 8px 0; }
.foot a:not(.brand) { color: var(--muted); }
.footer-brand { font-size: 1.65rem; margin-bottom: 14px; gap: 8px; }

h1, h2, h3 { font-family: "Outfit", sans-serif; letter-spacing: -.025em; }
h1 { font-size: 2.5rem; font-weight: 600; line-height: 1.15; margin: 0 0 20px; }
h2 { font-size: 1.45rem; font-weight: 550; line-height: 1.25; margin: 0 0 16px; }
h3 { font-weight: 550; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

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

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
.big { font-size: 1.5rem; font-weight: 700; }

label { display: block; font-weight: 600; margin: 22px 0 8px; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    caret-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }

button, .button {
    display: inline-block;
    margin-top: 14px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5;
    transition: transform 160ms ease-out, opacity 160ms ease-out;
}
button:hover, .button:hover { transform: translateY(-2px); text-decoration: none; }
button:active, .button:active { transform: translateY(0); }
button:disabled { opacity: .5; cursor: default; transform: none; }

button.secondary, .button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button.link { background: none; border: 0; padding: 0; margin: 0; color: var(--muted); font-weight: 400; }
button.link:hover { color: var(--text); }

form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.actions .button { margin-top: 0; }
.actions:not(.hero-actions) { margin-top: 20px; }

.errors { border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { border: 1px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 10px 14px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); }
.badge.trial { color: var(--accent); border-color: var(--accent); }
.badge.active { color: var(--ok); border-color: var(--ok); }
.badge.expired { color: var(--danger); border-color: var(--danger); }

.secret { background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 1.3rem; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* Task pages: one focused column. */
main.narrow { max-width: 640px; }
main.prose { max-width: 800px; }
main.prose .card ul { padding-left: 20px; }
main.prose .card li + li { margin-top: 10px; }
.lede { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 60ch; margin-bottom: 28px; }
button.wide, .button.wide { width: 100%; margin-top: 28px; }
.back { margin: 0 0 12px; font-size: .9rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
.notice { border: 1px solid var(--accent); background: var(--surface); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: .92rem; }
.lookup-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lookup-result .muted { margin-bottom: 8px; }
.form-switch { margin-bottom: 4px; }
.form-note { margin: 24px 0 0; }

/* TV panel: lists first, then one grouped settings surface. */
main.panel { max-width: 860px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.panel-head > div { flex: 1 1 420px; min-width: 0; }
.panel-head h1 { margin-bottom: 18px; }
.panel-head form button { margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.facts .badge + .muted { font-size: .85rem; }
.fact-action { font-size: .9rem; font-weight: 600; }
.lists h2 { margin-bottom: 8px; }
.empty { color: var(--muted); max-width: 60ch; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows li > div { min-width: 0; }
.rows strong { display: block; font-size: 1.05rem; }
.rows .muted { display: block; overflow-wrap: anywhere; }
.rows a { flex-shrink: 0; font-weight: 600; }
.group-title { margin: 56px 0 16px; font-size: 1.6rem; }
.settings { padding: 0; }
.settings > section { padding: 28px; border-top: 1px solid var(--line); }
.settings > section:first-child { border-top: 0; }
.settings h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.02em; }
.settings h3 + form label:first-child { margin-top: 14px; }
.settings p.small { max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; margin: 0; }
.stats dt { color: var(--muted); font-size: .88rem; }
.stats dd { margin: 4px 0 0; font-family: "Outfit", sans-serif; font-size: 1.9rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.stats dd .muted { display: block; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .85rem; font-weight: 400; }
.diag-card h3 { margin: 28px 0 12px; font-size: 1.15rem; }
.diag-filter { justify-content: flex-start; gap: 6px 18px; margin-bottom: 12px; }
.diag-table td { min-width: 7em; }
.diag-table .mono { letter-spacing: 0; overflow-wrap: anywhere; }
.diag-table summary { cursor: pointer; color: var(--accent); margin-top: 6px; }
.diag-table ol { margin: 4px 0 8px; padding-left: 20px; }

/* Landing: a spacious stage for the brand, followed by a practical setup guide. */
main.landing { max-width: 1248px; padding: 0 0 80px; width: calc(100% - 96px); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 620px; padding: 52px 0 64px; gap: 16px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 { font-size: 5.5rem; font-weight: 550; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 28px; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 400px; font-size: 1.12rem; color: var(--muted); line-height: 1.65; }
.hero-actions { margin-top: 32px; gap: 12px; flex-wrap: wrap; }
.hero-actions .button { padding: 15px 22px; }
.hero-copy > .hero-note { font-size: .82rem; margin: 18px 0 0; }
.hero-art { position: relative; margin: 0; min-width: 0; text-align: center; }
.hero-art > img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
/* The portrait's studio ground melts into the page instead of reading as a card. */
.hero-art > img,
.access-mascot {
    -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 48%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 54% at 50% 48%, #000 70%, transparent 100%);
}
.compatibility { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compatibility > p { margin: 0; color: var(--muted); font-size: .9rem; }
.compatibility ul { display: flex; align-items: center; justify-content: space-between; flex: 1; max-width: 760px; gap: 24px; margin: 0; padding: 0; list-style: none; }
.compatibility li { display: flex; flex-direction: column; }
.compatibility strong { font-family: "Outfit", sans-serif; font-size: 1.3rem; font-weight: 550; letter-spacing: -.02em; }
.compatibility li span { color: var(--muted); font-size: .8rem; }
.how-it-works { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 100px 0; }
.how-it-works h2 { font-size: 3rem; line-height: 1.12; font-weight: 550; margin-bottom: 24px; }
.how-intro > p { line-height: 1.7; margin-bottom: 28px; }
.text-link { font-size: .9rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.setup-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.setup-steps li { counter-increment: step; display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.setup-steps li:first-child { padding-top: 0; }
.setup-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.setup-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: "Outfit", sans-serif; font-size: .9rem; }
.setup-steps h3 { margin: 0 0 8px; font-size: 1.25rem; }
.setup-steps p { color: var(--muted); font-size: .95rem; line-height: 1.65; max-width: 48ch; }
.cinema-moment { position: relative; overflow: hidden; margin-bottom: 56px; border-radius: var(--radius); background: var(--surface); }
.cinema-moment > img { display: block; width: 100%; height: auto; }
.cinema-moment > div { position: absolute; top: 13%; left: 5%; width: 30%; }
.cinema-moment h2 { font-size: 2.7rem; line-height: 1.1; font-weight: 550; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(242, 242, 242, .12); font-size: .98rem; line-height: 1.45; }
.feature-list li:first-child { border-top: 0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.activation-callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; background: var(--surface); border-radius: var(--radius); }
.activation-callout h2 { margin-bottom: 8px; font-size: 1.6rem; }
.activation-callout p { color: var(--muted); font-size: .9rem; }
.activation-callout .button { margin: 0; flex-shrink: 0; }

/* A focused device login, sharing the same identity without adding form steps. */
main.tv-access { display: grid; grid-template-columns: 1fr 1fr; align-items: start; max-width: 1100px; gap: 100px; padding-top: 80px; }
.tv-access-intro h1 { font-size: 3.5rem; line-height: 1.1; }
.tv-access-intro > p { color: var(--muted); line-height: 1.7; max-width: 38ch; }
.tv-access-intro strong { color: var(--text); font-weight: 500; }
.tv-access-intro .access-qr-hint { font-size: .9rem; }
.access-mascot { display: block; width: 220px; height: auto; margin: 16px 0 0 -20px; }
.access-form { padding: 36px; }
.access-form h2 { font-size: 1.75rem; margin-bottom: 8px; }
.access-form .errors { margin-top: 20px; }
.access-form button { width: 100%; margin-top: 28px; }
.access-form input { font-size: 1.05rem; }
.access-alternative { font-size: .85rem; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.access-form > .small:last-child { font-size: .8rem; }
.icon-arrow { width: 18px; height: 18px; vertical-align: -.15em; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1050px) {
    .hero h1 { font-size: 4.5rem; }
    .hero { min-height: 560px; }
    .how-it-works { gap: 48px; }
    main.tv-access { gap: 48px; }
    .tv-access-intro h1 { font-size: 3rem; }
}
@media (max-width: 760px) {
    .top { width: calc(100% - 40px); min-height: 88px; padding: 20px 0; gap: 16px; }
    .brand { font-size: 1.9rem; gap: 8px; }
    .brand img { width: 36px; height: 36px; }
    nav { gap: 8px 18px; font-size: .88rem; }
    nav a[href="/#como-funciona"] { display: none; }
    main.landing { width: calc(100% - 40px); padding-bottom: 48px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 48px 0 40px; min-height: 0; }
    .hero h1 { font-size: 4rem; margin-bottom: 24px; }
    .hero-copy > p { max-width: 38ch; font-size: 1rem; }
    .hero-actions { margin-top: 24px; }
    .hero-actions .button { padding: 13px 18px; }
    .hero-art { width: 360px; max-width: 100%; margin: 20px auto 0; }
    .compatibility { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 0; }
    .compatibility ul { max-width: none; flex-wrap: wrap; gap: 24px 16px; }
    .compatibility strong { font-size: 1.15rem; }
    .how-it-works { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
    .how-it-works h2 { font-size: 2.6rem; margin-bottom: 18px; }
    .how-intro > p { margin-bottom: 18px; }
    .setup-steps li { gap: 18px; }
    .cinema-moment { margin-bottom: 32px; }
    .cinema-moment > div { position: static; width: auto; padding: 28px; }
    .cinema-moment h2 { font-size: 2.2rem; }
    .cinema-moment h2 br { display: none; }
    .activation-callout { align-items: flex-start; flex-direction: column; gap: 24px; padding: 28px; }
    .activation-callout h2 { font-size: 1.5rem; }
    main.tv-access { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 56px; max-width: 560px; }
    .tv-access-intro h1 { font-size: 2.7rem; }
    .tv-access-intro h1 br { display: none; }
    .tv-access-intro > p { max-width: none; }
    .access-mascot { display: none; }
    .access-form { padding: 28px; margin-bottom: 0; }
    main { padding: 36px 20px 56px; }
    .card { padding: 24px; }
    .settings > section { padding: 24px; }
    .panel-head { margin-bottom: 28px; }
    .group-title { margin-top: 44px; }
    h1 { font-size: 2rem; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 3.35rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { text-align: center; }
    .compatibility li { width: calc(50% - 8px); }
    .top .brand { font-size: 1.7rem; }
    .top nav { gap: 12px; }
    .access-form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    button, .button { transition: none; }
}

/* License purchase and payment administration share the existing task surfaces. */
.back-link { font-size: .9rem; margin-bottom: 20px; }
.payment-facts { margin-bottom: 24px; }
.payment-state { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.payment-state h3 { margin: 0 0 12px; }
.payment-expiry { margin-top: 16px; }
.payment-reference { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payment-detail { margin: 0; }
.payment-detail > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-detail > div:last-child { border-bottom: 0; }
.payment-detail dt { color: var(--muted); }
.payment-detail dd { margin: 0; min-width: 0; }
.payment-filter { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.payment-filter > div { flex: 1; }
.payment-filter label { margin-top: 0; }
.payment-filter button { margin-top: 0; }
.payments-table caption { text-align: left; padding-bottom: 16px; }
.payment-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.payment-attention { display: block; }
@media (max-width: 600px) {
    .payment-detail > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .payment-filter { flex-wrap: wrap; }
    .payment-filter > div { min-width: 200px; }
    .payments-table table, .payments-table tbody { display: block; }
    .payments-table caption { display: block; }
    .payments-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .payments-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
    .payments-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
    .payments-table td::before { content: attr(data-label); color: var(--muted); }
}
