/* Pedro Gomes · Semana da Empresa Inteligente (PGO-LANC-12/26)
   Design system PGO: a secretária do empresário à noite. Escuro quente, luz de candeeiro,
   papel (talões, bilhetes, post-its), marcador e traços à mão a brasa, linhas de rota. */
:root {
  --bg: #0c0906; --surface: #14130f; --surface-2: #1b1813; --ember-deep: #34241b; --line: #322d28;
  --ink: #f5f1ec; --ink-muted: #a29c97; --ember: #ee9d33; --ember-glow: #ff9c37; --ember-burnt: #df7948; --on-ember: #150b04;
  --ticket: #f7f2ee; --ticket-shade: #e4d9cb; --paper-ink: #17120e; --paper-muted: #5c5148; --ember-ink-paper: #8f520a; --danger: #e6000a;
  --gold-1: #fff1b8; --gold-2: #e9c46a; --gold-3: #c08a24; --gold-ink: #2a1c04;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-punch: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 4px; --r-md: 12px; --pill: 999px;
  --shadow-lift: 0 24px 60px -24px rgba(0,0,0,.7);
  --shadow-ember: 0 18px 50px -20px rgba(238,157,51,.55);
  --maxw: 1160px; --gx: 20px; --sec: 64px;
}
@media (min-width: 900px) { :root { --gx: 40px; --sec: 112px; } }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 27px; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
li, blockquote, legend, .opt, label, h4, .cal__w { text-wrap: pretty; }
.opt > span:last-child { text-wrap: balance; }
a { color: var(--ember); }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--on-ember); }

/* Página: secretária à noite, com a luz do candeeiro */
.pg { position: relative; isolation: isolate; min-height: 100vh; overflow-x: hidden; background: var(--bg); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gx); }
.narrow { max-width: 760px; }
.sec { position: relative; padding: var(--sec) 0; }
.c { text-align: center; }
.nw { white-space: nowrap; }
.goldt { background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lamp { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(238,157,51,.30), rgba(238,157,51,.08) 55%, transparent 72%); }

/* Marca escrita (ainda não há logo do Método ZERO) */
.wordmark { font: 700 18px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 16px; position: relative; z-index: 5; }

/* Traços à mão a brasa */
.mark { color: var(--on-ember); padding: 0 .14em; margin: 0 -.04em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ee9d33' d='M8 22C70 10 150 18 240 10s140 2 154 8c4 20 2 44 4 66-60 8-160 4-250 10-60 4-120 2-140-2C10 74 6 46 8 22Z'/%3E%3C/svg%3E") center / 100% 88% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.under { position: relative; display: inline-block; white-space: nowrap; }
.under svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .3em; overflow: visible; }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled svg { position: absolute; left: -7%; top: -26%; width: 114%; height: 152%; overflow: visible; pointer-events: none; }
.hand { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.punch { font-family: var(--font-punch); font-weight: 400; letter-spacing: 0; text-transform: uppercase; }

/* Carimbo: substitui a eyebrow. Rodado, contorno grosso, tinta brasa. Um por página */
.stamp { display: inline-block; font: 700 14px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ember); border: 3px solid var(--ember); border-radius: 6px; padding: 8px 12px 7px; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--ember); }
.stamp--paper { color: var(--ember-ink-paper); border-color: var(--ember-ink-paper); box-shadow: inset 0 0 0 2px var(--ticket), inset 0 0 0 4px var(--ember-ink-paper); }
/* Rótulo em frase normal (nunca em maiúsculas espaçadas) */
.lead-in { display: inline-flex; align-items: center; gap: 10px; font: 500 18px/1.3 var(--font-body); color: var(--ink-muted); margin: 0 0 14px; }
.lead-in svg { flex: none; }
.h2 { font-size: 36px; line-height: 1.04; }
@media (min-width: 900px) { .h2 { font-size: 56px; } }
.lead { font-size: 17px; line-height: 27px; color: var(--ink-muted); }
.lead strong, .txt strong { color: var(--ink); font-weight: 700; }

/* Botões: a brasa cheia é o único elemento cheio. Seta de rota num círculo */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 12px 0 24px; border: 0; border-radius: var(--r-sm); background: var(--ember); color: var(--on-ember); font: 700 17px/1.15 var(--font-display); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-ember); transition: filter .15s, transform .15s; }
.btn .go { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--on-ember); color: var(--ember); transition: transform .2s; }
.btn:hover { color: var(--on-ember); filter: brightness(1.06); }
.btn:hover .go { transform: translateX(3px); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 8px 0 16px; font-size: 14px; gap: 10px; }
.btn--sm .go { width: 26px; height: 26px; }
.btn--gold { background: linear-gradient(135deg, #7a5410 0%, var(--gold-2) 28%, var(--gold-1) 46%, #d9a531 64%, #8a6014 100%); color: var(--gold-ink); box-shadow: 0 14px 36px -14px rgba(233,196,106,.65); }
.btn--gold:hover { color: var(--gold-ink); }
.btn--gold .go { background: var(--gold-ink); color: var(--gold-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ember); }
.btn--ghost:hover { color: var(--ember); }
.btn--paper { background: var(--ticket); color: var(--paper-ink); box-shadow: var(--shadow-lift); }
.btn--paper:hover { color: var(--paper-ink); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Talão: o papel em cima da secretária. Picotado dos lados e canhoto tracejado */
.ticket { position: relative; background: var(--ticket); color: var(--paper-ink); border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--shadow-lift); }
.ticket--holes { -webkit-mask: radial-gradient(circle 10px at 0 var(--hole, 62%), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--hole, 62%), #0000 96%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 10px at 0 var(--hole, 62%), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% var(--hole, 62%), #0000 96%, #000) right / 51% 100% no-repeat; }
.ticket .stub { margin-top: 18px; padding-top: 16px; border-top: 2px dashed #cdbfae; }
.ticket p { color: var(--paper-muted); }
.ticket strong { color: var(--paper-ink); }
.ticket h3 { color: var(--paper-ink); }
.stack { position: relative; }
.stack::before { content: ""; position: absolute; inset: 8px -6px -8px 6px; background: var(--ticket-shade); border-radius: var(--r-md); transform: rotate(2.5deg); z-index: -1; }

/* Rota: listas como uma linha de transfer com paragens */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 16px; text-align: left; }
.route::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--ember); }
.route li { position: relative; padding-left: 38px; font-size: 17px; line-height: 25px; }
.route li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--ember); }
.route li.end::before { background: var(--ember); }
.ticket .route li::before { background: var(--ticket); box-shadow: inset 0 0 0 4px var(--ember-ink-paper); }
.ticket .route::before { background: var(--ember-ink-paper); }
.ticket .route li.end::before { background: var(--ember-ink-paper); }
.route--gold::before { background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); }
.route--gold li::before { box-shadow: inset 0 0 0 4px var(--gold-2); background: #15120c; }
.route--gold li.end::before { background: var(--gold-2); }
.nolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.nolist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 17px; line-height: 25px; color: var(--ink-muted); }
.nolist li svg { margin-top: 1px; }

/* Logos oficiais das ferramentas em fichas de papel */
.chip { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--ticket); box-shadow: 0 14px 30px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.05); }
.chip img { width: 62%; height: 62%; object-fit: contain; }
.chip--round { border-radius: 50%; }

/* Painel de partidas (contagem) */
.flap { display: flex; gap: 10px; align-items: flex-end; justify-content: center; }
.flap__u { display: grid; justify-items: center; gap: 8px; }
.flap__d { display: flex; gap: 4px; }
.flap__d i { font-style: normal; position: relative; width: 34px; height: 50px; display: grid; place-items: center; background: var(--surface-2); border-radius: 4px; font-family: var(--font-punch); font-size: 34px; line-height: 1; color: var(--ink); box-shadow: 0 6px 14px -8px #000, inset 0 0 0 1px rgba(255,255,255,.04); }
.flap__d i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--bg); }
.flap__l { font: 700 13px/1 var(--font-body); color: var(--ink-muted); }
.flap__colon { font-family: var(--font-punch); font-size: 30px; color: var(--ember); padding-bottom: 32px; }
@media (min-width: 900px) { .flap__d i { width: 44px; height: 64px; font-size: 44px; } .flap { gap: 14px; } }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font: 700 15px/20px var(--font-body); color: var(--ink); }
.help { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.input, .select, .textarea { width: 100%; min-height: 52px; appearance: none; -webkit-appearance: none; font: 400 16px/22px var(--font-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px; outline: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 24px; }
.input::placeholder, .textarea::placeholder { color: #7d756e; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(238,157,51,.22); }
.is-err .input, .is-err .select, .is-err .textarea { border-color: #ff5a4f; }
.err { font: 700 14px/20px var(--font-body); color: #ff7a70; margin: 0; }
.tel { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.select { padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fs legend { padding: 0; margin: 0 0 10px; font: 700 17px/24px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.legend-hint { display: block; font: 400 14px/20px var(--font-body); color: var(--ink-muted); margin-top: 2px; letter-spacing: 0; }
.q-list { display: flex; flex-direction: column; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 13px 14px; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 16px; line-height: 22px; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: #4a423b; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { width: 20px; height: 20px; border: 2px solid #5a524b; border-radius: 50%; display: grid; place-items: center; }
.opt--many .opt__box { border-radius: 4px; }
.opt.on { border-color: var(--ember); background: linear-gradient(90deg, rgba(238,157,51,.14), rgba(238,157,51,.03)); }
.opt.on .opt__box { border-color: var(--ember); background: var(--ember); }
.opt.on .opt__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-ember); border-bottom: 2px solid var(--on-ember); transform: translateY(-1px) rotate(-45deg); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--ember); outline-offset: 2px; }
.check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .opt__box { border-radius: 4px; }
.check.on .opt__box { border-color: var(--ember); background: var(--ember); }
.check.on .opt__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-ember); border-bottom: 2px solid var(--on-ember); transform: translateY(-1px) rotate(-45deg); }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .scale { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.scale .opt { grid-template-columns: 1fr; justify-items: center; padding: 0; min-height: 48px; font: 700 18px/1 var(--font-punch); }
.scale .opt__box { display: none; }
.scale .opt.on { background: var(--ember); color: var(--on-ember); }
.other-in { margin-top: 4px; }

/* Ecrã de confirmação de um formulário */
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: var(--on-ember); transform: rotate(-6deg); }
.done__t { font: 700 32px/1.05 var(--font-display); letter-spacing: -.03em; color: var(--ink); }

/* Rodapé */
.foot { padding: 36px 0 56px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.foot a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--ink); }

/* Passos do obrigado: uma rota com três paragens */
.trip { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto; max-width: 460px; }
.trip__s { display: grid; justify-items: center; gap: 8px; font: 700 13px/1 var(--font-body); color: var(--ink-muted); flex: none; width: 92px; }
.trip__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 3px var(--ember); color: var(--ink); font: 400 15px/1 var(--font-punch); }
.trip__s.ok { color: var(--ink); }
.trip__s.ok .trip__n { background: var(--ember); color: var(--on-ember); }
.trip__l { flex: 1 1 40px; height: 3px; margin-bottom: 21px; background: repeating-linear-gradient(90deg, var(--ember) 0 8px, transparent 8px 14px); opacity: .8; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .draw { stroke-dashoffset: 0; } }

[hidden] { display: none !important; }
