/* ==========================================================================
   Diagnóstico de maturidade em IA · LSG Business Hub
   Design system LSG (claude.ai/design) adaptado para web.
   Navy #11163A ↔ Cream #F4F2ED · Orange #F47A16 · Mint #82CDA3 · Sora + Inter
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --navy: #11163A;
  --navy-700: #0A0D23;
  --navy-800: #070917;
  --navy-card: #141A42;
  --cream: #F4F2ED;
  --orange: #F47A16;
  --orange-600: #C36212;
  --mint: #82CDA3;
  --mint-600: #45A070;
  --fg: var(--cream);
  --fg-muted: rgba(244, 242, 237, 0.62);
  --fg-subtle: rgba(244, 242, 237, 0.40);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --font-h: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-b: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-b);
  color: var(--fg);
  background: var(--navy-700);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 56px;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 55% at 80% 0%, rgba(244,122,22,.16), transparent 60%),
    linear-gradient(180deg, rgba(10,13,35,.80), rgba(7,9,23,.93)),
    url("img/bg-main.jpg") center center / cover no-repeat fixed;
  transition: opacity .7s var(--ease);
}
body.result-bg::before {
  background:
    radial-gradient(60% 55% at 50% 88%, rgba(244,122,22,.18), transparent 60%),
    linear-gradient(180deg, rgba(10,13,35,.74), rgba(7,9,23,.90)),
    url("img/bg-result.jpg") center center / cover no-repeat fixed;
}
.wrap { position: relative; z-index: 1; width: 100%; max-width: 620px; }

/* header */
.brandbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.brandbar .brand-logo { height: 34px; width: auto; display: block; }
.brandbar .brand-sep { color: var(--fg-subtle); font-size: 14px; border-left: 1px solid var(--border-strong); padding-left: 14px; }

/* progress */
.progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 26px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .4s var(--ease); }

/* card */
.card {
  background: rgba(18, 24, 60, 0.62);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
}
@media (max-width: 560px) { .card { padding: 26px 20px; border-radius: 18px; } }

.eyebrow {
  font-family: var(--font-b); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: 12px; color: var(--orange); margin-bottom: 14px;
}
h1 { font-family: var(--font-h); font-weight: 700; font-size: 30px; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-family: var(--font-h); font-weight: 700; font-size: 22px; line-height: 1.22; letter-spacing: -.015em; }
.lead { color: var(--fg-muted); font-size: 16px; line-height: 1.6; margin-top: 14px; }
.o { color: var(--orange); }

/* inputs */
.field { margin-top: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 8px; }
.field input {
  width: 100%; font-family: var(--font-b); font-size: 16px; color: var(--fg);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 14px 16px; transition: border-color .2s, background .2s;
}
.field input::placeholder { color: var(--fg-subtle); }
.field input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.06); }

/* options */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px 17px; transition: all .18s var(--ease);
  font-size: 15.5px; color: var(--fg); line-height: 1.35;
}
.opt:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.opt .mark {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--fg-subtle); position: relative; transition: all .18s var(--ease);
}
.opt.sel { border-color: var(--orange); background: rgba(244,122,22,.12); }
.opt.sel .mark { border-color: var(--orange); background: var(--orange); }
.opt.sel .mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff;
}

textarea {
  width: 100%; margin-top: 22px; min-height: 150px; resize: vertical;
  font-family: var(--font-b); font-size: 15.5px; line-height: 1.6; color: var(--fg);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 15px 17px;
}
textarea::placeholder { color: var(--fg-subtle); }
textarea:focus { outline: none; border-color: var(--orange); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.btn {
  font-family: var(--font-b); font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  border-radius: 12px; padding: 13px 24px; transition: all .18s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -8px rgba(244,122,22,.5); }
.btn-primary:hover { background: var(--orange-600); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-subtle); }
.btn-block { width: 100%; justify-content: center; margin-top: 26px; }

.meta-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-subtle); margin-top: 18px; }
.hint { font-size: 13px; color: var(--fg-subtle); margin-top: 16px; line-height: 1.5; }
.err { color: #F79F47; font-size: 14px; margin-top: 14px; min-height: 18px; }
.qcount { font-size: 13px; color: var(--fg-subtle); }

/* result */
.badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 28px; margin: 6px auto 22px;
  background: rgba(244,122,22,.14); border: 1px solid rgba(244,122,22,.4);
}
.badge .code { font-family: var(--font-h); font-weight: 800; font-size: 44px; color: var(--orange); line-height: 1; }
.badge .of { font-size: 12px; color: var(--fg-subtle); margin-top: 6px; letter-spacing: .1em; }
.center { text-align: center; }
.result-name { color: var(--fg-muted); font-size: 15px; }
.next {
  margin-top: 22px; background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-left: 3px solid var(--orange); border-radius: 12px; padding: 16px 18px; text-align: left;
}
.next .l { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); font-weight: 600; }
.next p { margin-top: 6px; font-size: 15px; color: var(--fg-muted); line-height: 1.55; }

.foot { text-align: center; color: var(--fg-subtle); font-size: 12px; margin-top: 24px; letter-spacing: .04em; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
