:root {
    --ink: #1e1e1e;          /* charcoal — corps de texte */
    --heading: #08355c;      /* bleu logo sombre — titres */
    --navy: #0a4a7e;         /* bleu logo — structure / marque */
    --muted: #5b6b78;
    --surface: #ffffff;
    --background: #f5f1ec;   /* crème STRIM */
    --accent: #d81e2c;       /* rouge logo — CTA / liens */
    --accent-dark: #b5121f;
    --border: #e5ddd0;       /* bordure chaude sur crème */
    --success: #e2f4eb;
    --warning: #fff6dc;
    --error: #a61b1b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, Arial, sans-serif; color: var(--ink); background: var(--background); line-height: 1.6; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 3px solid var(--navy); }
.header-content { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--navy); }
.header-content > span { color: var(--muted); font-weight: 600; }
main { padding: 44px 0 70px; }
.site-footer { padding: 28px 0; color: rgba(255, 255, 255, .85); background: var(--navy); }
.site-footer a { color: #fff; }
h1, h2, h3 { font-family: 'IBM Plex Sans', sans-serif; color: var(--heading); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; font-weight: 700; }
h2 { margin-top: 36px; }
.hero, .success-panel, .notice, .form-card, .workflow-step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.hero { padding: 48px; }
.lead { font-size: 1.2rem; max-width: 780px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: var(--accent); }
.button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 4px 12px rgba(216, 30, 44, .28); }
.button.secondary { color: var(--navy); background: #eaf1f7; border: 1.5px solid var(--navy); }
.button.secondary:hover { background: #dbe8f2; box-shadow: 0 3px 10px rgba(10, 74, 126, .18); }
/* Botões bloqueados: etapa ainda não disponível */
.button:disabled, .button[disabled] { background: #eef1f2 !important; color: #9aa8ae !important; border: 1.5px dashed #c3ced2 !important; opacity: 1; cursor: not-allowed; box-shadow: none; }
.button:disabled::before, .button[disabled]::before { content: "🔒"; font-size: .95em; }
.workflow-step.locked { opacity: .55; }
.lock-hint { color: var(--muted); font-size: .9rem; font-weight: 700; margin: 8px 0 0; }
.step-done-badge { display: inline-block; margin-left: 10px; font-size: .75rem; font-weight: 700; color: #1a7f4b; background: #e5f6ec; border: 1px solid #b9e6cd; border-radius: 999px; padding: 3px 12px; vertical-align: middle; }
.step-done-badge[hidden] { display: none; }
.step-done-msg { color: #1a7f4b; font-weight: 700; margin: 8px 0 0; }
.play-another-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease-out, transform .3s ease-out;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .button { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.play-hint { background: #eef5fb; border: 1px solid #d3e3f0; border-radius: 10px; padding: 12px 16px; margin: 4px 0 18px; }
.play-hint p { margin: 4px 0; font-size: .95rem; color: var(--heading); }
.email-note { background: var(--warning); border: 1px solid #e9d8a6; border-radius: 10px; padding: 12px 16px; margin: 4px 0 16px; font-size: .95rem; color: var(--ink); }
.critical-note { background: #fdeceb; border: 2px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 4px 0 16px; }
.critical-note p { margin: 0; font-size: .95rem; color: var(--accent-dark); font-weight: 600; }
.button.opened::before { content: none; }
.game-overlay { position: fixed; inset: 0; background: rgba(30, 30, 30, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 200; overflow-y: auto; }
.game-overlay[hidden] { display: none; }
.game-modal { background: var(--background); border-radius: 14px; width: min(1200px, 96vw); height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; padding: 14px; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); }
.game-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-shrink: 0; position: sticky; top: 0; z-index: 2; }
.game-modal-title { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; color: var(--heading); }
.game-modal-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.game-modal-icon-btn { border: 1px solid var(--border); background: #fff; color: var(--heading); font-size: 1.1rem; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.game-modal-icon-btn:hover { background: #f0ece3; }
.game-frame { flex: 1; width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--background); min-height: 0; }
@media (max-width: 900px) { .game-modal { width: 98vw; height: 94vh; max-height: 94dvh; } }
@media (max-width: 640px) { .game-modal { width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 8px; } }
.confirm-box { display: flex; align-items: flex-start; gap: 10px; background: var(--warning); border: 1px solid #e9d8a6; border-radius: 10px; padding: 12px 16px; margin: 4px 0 16px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.confirm-box input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.terms-overlay { position: fixed; inset: 0; background: rgba(8, 53, 92, .55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.terms-overlay[hidden] { display: none; }
.terms-modal { background: var(--surface); border-radius: 14px; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.terms-modal h2 { margin-top: 0; }
.terms-body { color: var(--ink); font-size: .95rem; line-height: 1.65; }
.terms-actions { margin-top: 20px; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: 12px; padding: 22px; }
.steps li { margin-bottom: 10px; }
.narrow { max-width: 720px; margin: 0 auto; }
.form-card { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field > label:not(.checkbox) { display: block; font-weight: 700; margin-bottom: 6px; color: var(--heading); }
input[type="text"], input[type="email"] { width: 100%; padding: 12px; border: 1px solid #c9beac; border-radius: 7px; font-size: 1rem; font-family: inherit; }
input[type="text"]:focus, input[type="email"]:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { margin-top: 5px; accent-color: var(--accent); }
.error { color: var(--error); font-weight: 700; }
.messages { margin-bottom: 20px; }
.message { padding: 12px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.message.success { background: var(--success); }
.message.error { color: var(--error); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.summary-grid div { background: var(--background); border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow-wrap: anywhere; }
.summary-grid span { display: block; color: var(--muted); font-size: .85rem; }
.summary-grid strong { color: var(--heading); }
.workflow { display: grid; gap: 18px; margin-top: 24px; }
.workflow-step.done { border-left: 7px solid var(--navy); }
.notice { background: var(--warning); }
.success-panel { background: var(--success); }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--heading); }
.history-list { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 42px; }
@media (max-width: 640px) { .hero { padding: 28px; } main { padding-top: 24px; } }
