/* ==================================================================
   estouexposto.pt — ShieldForce

   Segue o aspeto do site original: cabeçalho e hero escuros (cinzento
   carvão com brilho vermelho), vermelho vivo #EB1414, e as secções de
   conteúdo em claro. O rodapé volta ao escuro.
   ================================================================== */

/* Manrope, alojada no próprio site (sem pedidos ao Google Fonts).
   Licença: assets/fonts/OFL.txt */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'),
       url(fonts/manrope-latin-wght-normal.woff2) format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations'),
       url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* vermelho vivo do site original (hsl 0 84% 50%) */
  --red:       #EB1414;
  --red-glow:  #F04A4A;
  --red-dk:    #C41111;
  --red-soft:  #FDECEC;

  --ink:       #171717;
  --ink-2:     #3F3F46;
  --muted:     #71717A;
  --line:      #E4E4E7;

  --bg:        #FFFFFF;
  --bg-2:      #F6F6F7;

  /* escuros do hero */
  --dark:      #262626;
  --dark-2:    #1A1A1A;
  --dark-3:    #111111;
  --on-dark:   #FFFFFF;
  --on-dark-2: #B8BABE;

  --green:     #24A324;
  --green-sf:  #EAF7EA;
  --amber:     #D19A00;
  --amber-sf:  #FDF5E3;

  --r:         12px;
  --r-lg:      16px;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --wrap:      980px;
}

* { box-sizing: border-box; }

/* Regras como .btn{display:inline-flex} sobrepõem-se ao atributo hidden do
   navegador. Sem isto o botão "Voltar" aparecia na primeira pergunta. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

/* ================= cabeçalho escuro ================= */
.hdr { background: var(--dark-2); border-bottom: 1px solid rgba(255,255,255,.07); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 158px; height: auto; }
.hdr-cta {
  font-size: 14px; font-weight: 600; color: var(--on-dark-2); text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.hdr-cta:hover { border-color: var(--red); color: #fff; }
@media (max-width: 520px) { .hdr-cta { display: none; } }

/* ================= botões ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: var(--r); border: 1px solid transparent;
  background: linear-gradient(135deg, var(--red), var(--red-glow));
  color: #fff; cursor: pointer; text-decoration: none;
  transition: filter .15s ease, transform .1s ease, box-shadow .2s ease;
  box-shadow: 0 6px 22px rgba(235,20,20,.32);
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 8px 30px rgba(235,20,20,.42); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-2); filter: none; box-shadow: none; }
.btn-text { background: none; color: var(--muted); box-shadow: none; padding: 10px 6px; font-weight: 600; font-size: 15px; }
.btn-text:hover { background: none; color: var(--ink); filter: none; box-shadow: none; }

/* ================= hero escuro ================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3A3A3A 0%, var(--dark) 45%, var(--dark-3) 100%);
  color: var(--on-dark);
  padding: clamp(52px, 9vw, 100px) 0 clamp(48px, 8vw, 88px);
}
/* brilho vermelho por trás do título, como no site original */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 42%, rgba(235,20,20,.20), transparent 70%);
}
.hero-in { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }

.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-glow); margin-bottom: 18px; }
.eyebrow.c { text-align: center; }

.hero h1 { font-size: clamp(38px, 7.4vw, 62px); margin-bottom: 20px; color: #fff; }
.hero h1 em { font-style: normal; }
.hero h1 .bad { color: var(--red); }
.hero .lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--on-dark-2); margin-bottom: 34px; }

.trust {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 20px;
  font-size: 14.5px; font-weight: 700; color: #fff;
}
.trust li { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.trust svg {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: var(--red); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ================= cartões ================= */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }

/* ================= questionário ================= */
.quiz { padding: clamp(30px, 5vw, 58px) 0 clamp(48px, 8vw, 80px); background: var(--bg-2); }
.quiz-in { max-width: 640px; margin-inline: auto; }

.prog-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
#qPercent { color: var(--red); }
.prog-track { height: 7px; background: #DEDEE1; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.prog-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-glow)); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }

.q-card { animation: rise .3s ease both; text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-cat { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.q-text { font-size: clamp(20px, 3.3vw, 26px); margin-bottom: 8px; }
.q-hint { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.q-hint:empty { margin-bottom: 18px; }

.opts { display: grid; gap: 10px; text-align: left; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  /* os <button> trazem text-align:center do navegador e não herdam de .opts */
  text-align: left;
  font: inherit; font-weight: 600; font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
/* só em aparelhos com rato: nos telemóveis o "hover" ficava preso na opção seguinte */
@media (hover: hover) { .opt:hover { border-color: var(--ink-2); background: var(--bg-2); } }
.opt:active { transform: translateY(1px); }
.opt .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.opt[data-v="protected"] .dot { background: var(--green); }
.opt[data-v="partial"]   .dot { background: var(--amber); }
.opt[data-v="risk"]      .dot { background: var(--red); }
.opt[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }

/* ================= formulário (a porta para o resultado) ================= */
.gate { padding: clamp(30px, 5vw, 58px) 0 clamp(48px, 8vw, 80px); background: var(--bg-2); }
.gate .wrap { max-width: 640px; }

.gate-head { text-align: center; margin-bottom: 22px; }
.gate-head .ready {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green-sf); color: var(--green);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 16px;
}
.gate-head .ready svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gate-head h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.gate-head p { color: var(--muted); }

.form-card form { margin-top: 4px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field label b { color: var(--red); }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 15px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input::placeholder { color: #A1A1AA; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { width: 19px; height: 19px; flex: none; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.check b { color: var(--red); }

.hint { font-size: 13px; color: var(--muted); }
.err { color: var(--red); font-size: 13.5px; font-weight: 600; }
.err:empty { display: none; }
.form-err { text-align: center; margin-top: 4px; }
.foot-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ================= resultado ================= */
.result { padding: clamp(30px, 5vw, 58px) 0 clamp(48px, 8vw, 80px); background: var(--bg-2); }
.result .wrap { max-width: 640px; }

.score-card { text-align: center; animation: rise .35s ease both; }
.ring-wrap { display: flex; justify-content: center; margin: 6px 0 4px; }
.ring { position: relative; width: 240px; max-width: 100%; }
.ring svg { width: 100%; display: block; overflow: visible; }
.ring-bg, .ring-fill { fill: none; stroke-width: 15; stroke-linecap: round; }
.ring-bg { stroke: #E2E2E5; }
.ring-fill { stroke: var(--red); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1), stroke .5s ease; }
.ring-val { position: absolute; left: 0; right: 0; bottom: 4px; }
.ring-val span { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.ring-val .pc { font-size: 22px; font-weight: 700; color: var(--muted); }
.ring-val small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.badge { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin: 14px 0; }
.badge.lv-good   { background: var(--green-sf); color: var(--green); }
.badge.lv-medium { background: var(--amber-sf); color: var(--amber); }
.badge.lv-danger { background: var(--red-soft);  color: var(--red); }

.res-title { font-size: clamp(23px, 3.6vw, 30px); margin-bottom: 12px; }
.res-sub { color: var(--muted); }
.sent-note { margin-top: 18px; padding: 12px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.5; text-align: left; }
.sent-note.ok   { background: var(--green-sf); color: #1D6B1D; }
.sent-note.warn { background: var(--amber-sf); color: #7A5A00; }
.sent-note a { color: inherit; font-weight: 700; }

/* títulos que recebem o foco por código (para leitores de ecrã) */
.q-text:focus, #gateTitle:focus { outline: none; }

.gaps-card h3 { font-size: 20px; margin-bottom: 4px; }
.gaps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.gaps li { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg-2); border-radius: var(--r); padding: 14px 16px; border-left: 4px solid var(--line); font-weight: 700; font-size: 15.5px; }
.gaps li.sev-risk    { border-left-color: var(--red); }
.gaps li.sev-partial { border-left-color: var(--amber); }
.gaps .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.gaps li.sev-risk    .tag { color: var(--red); }
.gaps li.sev-partial .tag { color: var(--amber); }

/* ================= plano ================= */
.plan-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.tick { width: 40px; height: 40px; border-radius: 50%; background: var(--green-sf); display: grid; place-items: center; flex: none; }
.tick svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-head h3 { font-size: 21px; margin-bottom: 4px; }

.plan-list { list-style: none; counter-reset: p; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.plan-list li { counter-increment: p; background: var(--bg-2); border-radius: var(--r); padding: 18px 20px 18px 56px; position: relative; }
.plan-list li::before { content: counter(p); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.plan-list h4 { font-size: 16.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-list p { font-size: 15px; color: var(--ink-2); }
.prio { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.prio-risk    { background: var(--red-soft); color: var(--red); }
.prio-partial { background: var(--amber-sf); color: var(--amber); }

.plan-cta { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.plan-cta h4 { font-size: 19px; margin-bottom: 8px; }
.plan-cta p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ================= secções de conteúdo ================= */
.info { padding: clamp(52px, 8vw, 88px) 0; background: #fff; }
.sec-title { font-size: clamp(24px, 3.6vw, 32px); text-align: center; margin-bottom: 32px; }
.sec-title:not(:first-child) { margin-top: 68px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; text-align: center; }
.step .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-glow)); color: #fff; font-weight: 800; font-size: 15px; margin: 0 auto 14px; }
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--muted); }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.areas li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.areas strong { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 5px; }
.areas span { font-size: 14.5px; color: var(--muted); }

.faq { max-width: 700px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.faq summary { cursor: pointer; padding: 17px 20px; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--red); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }

/* ================= rodapé ================= */
.ftr { background: var(--dark-3); color: var(--on-dark-2); padding: 52px 0 26px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ftr-in { grid-template-columns: 1fr; gap: 26px; } }
.ftr-logo { width: 150px; margin-bottom: 16px; }
.ftr .muted { color: #8A8D93; font-size: 14.5px; }
.ftr h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.ftr p { font-size: 14.5px; margin-bottom: 6px; }
.ftr a { color: var(--on-dark-2); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-bot { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.ftr-bot p { font-size: 13.5px; color: #74777D; }

/* ================= páginas legais ================= */
.legal { padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 9vw, 90px); }
.legal .wrap { max-width: 760px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.legal .back::before { content: "\2190"; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p { margin-bottom: 14px; color: var(--ink-2); }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.legal li { margin-bottom: 7px; }
