/* Escola de aplicadores Monofloor · página oficial (protótipo de staging)
   Sistema: tokens do brand-base (monofloor-design) + bordô dos filmes em pixel art.
   Mobile primeiro: tudo nasce em 360-430 px e abre para cima. */

@font-face { font-family: "Widescreen"; src: url("fonts/Widescreen-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Widescreen"; src: url("fonts/Widescreen-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Widescreen"; src: url("fonts/Widescreen-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Widescreen"; src: url("fonts/Widescreen-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FAFAF8;
  --areia: #F2F1ED;
  --areia2: #E5E3DC;
  --filme: #F0EFEC;      /* o fundo dos filmes em pixel art */
  --ink: #1B1A16;
  --preto: #0E0D0A;
  --soft: #58564E;
  --mute: #6B685F;
  --line: rgba(27, 26, 22, .12);
  --line2: rgba(27, 26, 22, .22);
  --bordo: #7A2F38;      /* a cartela dos filmes */
  --bordo-esc: #5F2229;
  --bordo-bg: #F3E8E7;
  --creme: #F6E7DC;      /* texto sobre bordô e preto */
  --ok: #585E38;         /* oliva LILIT */
  --ok-bg: #ECEEE3;
  --display: "Widescreen", "Helvetica Neue", Arial, sans-serif;
  --ui: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 20px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 760px) { :root { --gut: 32px; } }

/* rótulo (eyebrow): Inter Tight caixa alta */
.rot { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
/* título display: Widescreen Light minúscula escrita à mão (produto fica em CAIXA ALTA) */
.tit { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: .98; margin: 0; }
.tit b, .tit strong { font-weight: 500; }
.lead { font-family: var(--display); font-weight: 300; font-size: 17px; line-height: 1.55; color: var(--soft); letter-spacing: -.005em; }
@media (min-width: 760px) { .lead { font-size: 19px; } }

/* pílula: o único CTA */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 15px/1 var(--ui); letter-spacing: .01em; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.pill:hover { background: var(--preto); }
.pill:active { transform: scale(.98); }
.pill.claro { background: transparent; color: var(--ink); border-color: var(--line2); }
.pill.claro:hover { background: var(--areia); }
.pill.creme { background: var(--creme); color: var(--bordo-esc); border-color: var(--creme); }
.pill.creme:hover { background: #fff6ef; }
.pill.cheio { width: 100%; }
.pill.mini { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.pill[disabled], .pill[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.seta { width: 16px; height: 16px; flex-shrink: 0; }

/* faixa do protótipo (staging) */
.proto { background: var(--preto); color: #D9D5CB; font: 12px/1.35 var(--ui); }
.proto .wrap { display: flex; align-items: center; gap: 14px; min-height: 36px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.proto .wrap::-webkit-scrollbar { display: none; }
.proto b { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: #E2B9B4; }
.proto a { opacity: .8; text-decoration: none; padding: 8px 0; }
.proto a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* marcação de decisão pendente: só no protótipo */
.decidir { display: inline-block; font: 600 9.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px 3px; border: 1px dashed currentColor; border-radius: 4px; vertical-align: 2px; margin-left: 6px; opacity: .75; white-space: nowrap; }
.simulado { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--bordo); background: var(--bordo-bg); padding: 6px 9px 5px; border-radius: 999px; }

/* campos: só a linha embaixo */
.campo { display: block; margin-bottom: 18px; }
.campo > span { display: block; font: 500 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.campo input, .campo select { width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid var(--line2); background: transparent; padding: 10px 0 9px; font: 400 17px/1.3 var(--ui); border-radius: 0; -webkit-appearance: none; appearance: none; }
.campo select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2358564E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.campo input:focus, .campo select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.campo input::placeholder { color: #A9A59B; }
.campo .ajuda { display: block; font-size: 13px; color: var(--mute); margin-top: 6px; }
.campo.erro input { border-bottom-color: var(--bordo); }
.campo .msg-erro { display: none; font-size: 13px; color: var(--bordo); margin-top: 6px; }
.campo.erro .msg-erro { display: block; }
.duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* escolha em pílulas (aplicador / empresa, Pix / cartão) */
.escolha { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha label { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.escolha input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.escolha input:focus-visible + label { outline: 2px solid var(--bordo); outline-offset: 2px; }

/* consentimento */
.consente { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--soft); margin: 0 0 16px; cursor: pointer; }
.consente input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.consente b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
