/* ============================================================================
   CONCRETIZA · Dosagem IPT/EPUSP — tema da marca (navy + azul corporativo +
   aço + bege-concreto sobre claro). Profissional, limpo, técnico.
   ============================================================================ */
:root {
  --navy:    #18293A;   /* navy profundo — títulos, ícone */
  --navy-2:  #22384C;
  --blue:    #1C5A8E;   /* azul corporativo Concretiza */
  --blue-d:  #144870;
  --blue-l:  #4F93C4;   /* azul claro — água/dados */
  --steel:   #5E7488;   /* cinza-aço */
  --taupe:   #C7B9A6;   /* bege-concreto */
  --taupe-l: #ECE6DC;
  --bg:      #EEF2F6;
  --bg-2:    #E6ECF1;
  --surface: #FFFFFF;
  --line:    #DCE3EA;
  --line-2:  #C9D3DC;
  --tx:      #1B2A39;
  --tx-2:    #56697A;
  --tx-3:    #8A99A7;
  --green:   #2A9D6E;
  --green-l: #E5F4EE;
  --red:     #CE4A42;
  --red-l:   #FBEAE9;
  --amber:   #C98A21;
  --amber-l: #FBF1DE;
  --r: 14px;
  --ease: cubic-bezier(.22,.7,.3,1);
  --shadow: 0 18px 40px -22px rgba(24,41,58,.35);
  --shadow-s: 0 6px 18px -10px rgba(24,41,58,.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--tx);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(28,90,142,.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 14px;
}
.display { font-family: 'Sora', sans-serif; letter-spacing: -.02em; }
.mono { font-family: 'Space Grotesk', monospace; font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.is-green { color: var(--green); } .is-red { color: var(--red); } .is-amber { color: var(--amber); } .is-blue { color: var(--blue); }

/* topbar */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 12px 26px; background: rgba(255,255,255,.86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.bar img.logo { height: 34px; width: auto; }
.bar .brand b { font-family: 'Sora'; font-weight: 800; font-size: 15px; color: var(--navy); letter-spacing: -.01em; display: block; line-height: 1; }
.bar .brand span { font-size: 10px; color: var(--steel); font-family: 'Space Grotesk'; letter-spacing: .18em; text-transform: uppercase; }
.bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--tx); cursor: pointer; font-family: 'Inter'; font-size: 14px; font-weight: 600; transition: all .18s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--steel); }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 10px 24px -12px rgba(28,90,142,.7); }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 16px 34px; font-size: 16px; border-radius: 12px; }

.app { min-height: 100vh; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn .45s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================ START */
.start { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 26px; }
.start img.logo-big { width: 210px; max-width: 64vw; margin-bottom: 30px; }
.start .eyebrow { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.start h1 { font-family: 'Sora'; font-weight: 800; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.03em; color: var(--navy); line-height: 1.05; max-width: 18ch; }
.start p { color: var(--tx-2); font-size: 16.5px; max-width: 58ch; margin: 20px auto 34px; line-height: 1.6; }
.start .feats { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; justify-content: center; color: var(--steel); font-size: 13px; }
.start .feats span { display: inline-flex; align-items: center; gap: 8px; } .start .feats svg { width: 16px; height: 16px; color: var(--blue); }

/* ============================================================ FORM */
.form-view { padding: 28px 0 70px; }
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.section-h h2 { font-family: 'Sora'; font-weight: 700; font-size: 19px; color: var(--navy); }
.section-h .n { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: 13px; flex: none; }
.lead { color: var(--tx-2); font-size: 14px; margin-bottom: 22px; max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-s); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.exp-card { padding: 18px; }
.exp-card .eh { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.exp-card .eh .tag { width: 24px; height: 24px; border-radius: 7px; background: var(--taupe-l); color: var(--navy); display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: 12px; }
.exp-card .eh b { font-family: 'Sora'; font-size: 14px; color: var(--navy); }

.field { margin-bottom: 13px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 12px; color: var(--tx-2); font-weight: 500; display: block; margin-bottom: 5px; }
.field label .sub { color: var(--tx-3); font-weight: 400; }
.in-unit { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); transition: border-color .15s; }
.in-unit:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,90,142,.1); }
.in-unit .pre { padding: 0 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--steel); font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; border-right: 1px solid var(--line); }
.in-unit input { flex: 1; border: 0; padding: 10px 12px; font-family: 'Space Grotesk'; font-size: 14px; color: var(--tx); background: transparent; min-width: 0; }
.in-unit input:focus { outline: none; }
.in-unit .un { padding: 0 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--steel); font-size: 12px; font-family: 'Space Grotesk'; border-left: 1px solid var(--line); white-space: nowrap; }

.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.radio-box { padding: 16px 18px; }
.radio-box > .t { font-size: 12.5px; color: var(--tx-2); font-weight: 600; margin-bottom: 12px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 13.5px; }
.radio input { display: none; }
.radio .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all .15s; }
.radio input:checked + .dot { border-color: var(--blue); }
.radio input:checked + .dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.radio:hover .dot { border-color: var(--steel); }
.radio.checked { color: var(--navy); font-weight: 500; }

.props-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; padding: 20px 22px; }
.props-bottom .field { margin-bottom: 0; }
.opt-tag { font-size: 10px; color: var(--tx-3); font-weight: 500; }

.form-actions { display: flex; justify-content: center; margin-top: 30px; }
.form-err { text-align: center; color: var(--red); font-size: 13.5px; margin-top: 14px; min-height: 18px; }

/* ============================================================ SIMULAÇÃO */
.sim { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 26px; }
.sim .ring { position: relative; width: 200px; height: 200px; margin-bottom: 30px; }
.sim .ring svg { transform: rotate(-90deg); }
.sim .ring .c { position: absolute; inset: 0; display: grid; place-items: center; }
.sim .ring .c .n { font-family: 'Sora'; font-weight: 800; font-size: 40px; color: var(--blue); }
.sim .ring .c .l { font-family: 'Space Grotesk'; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-3); margin-top: 3px; }
.sim h2 { font-family: 'Sora'; font-weight: 700; font-size: 22px; color: var(--navy); }
.sim .counter { font-family: 'Space Grotesk'; color: var(--blue); font-size: 15px; margin-top: 9px; }
.sim .subs { margin-top: 26px; display: flex; flex-direction: column; gap: 9px; max-width: 360px; width: 100%; }
.sim .sub { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--tx-3); }
.sim .sub.on { color: var(--tx); } .sim .sub.done { color: var(--tx-2); }
.sim .sub .tk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.sim .sub.done .tk { background: var(--green); border-color: var(--green); } .sim .sub.done .tk svg { width: 11px; color: #fff; }
.sim .sub.on .tk { border-color: var(--blue); }

/* ============================================================ RESULTADO */
.res { padding: 26px 0 80px; animation: fadeIn .5s var(--ease) both; }
.res .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.res .head .k { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.res .head h1 { font-family: 'Sora'; font-weight: 800; font-size: 27px; color: var(--navy); margin-top: 3px; }
.res .head .actions { display: flex; gap: 10px; }
.grid { display: grid; gap: 16px; }
.cardp { padding: 22px; }
.lbl { font-family: 'Space Grotesk'; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lbl svg { width: 15px; height: 15px; color: var(--blue); }

/* hero probabilidade */
.hero { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; }
.hero .ring { position: relative; width: 200px; height: 200px; }
.hero .ring svg { transform: rotate(-90deg); }
.hero .ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.hero .ring .c .n { font-family: 'Sora'; font-weight: 800; font-size: 46px; line-height: 1; }
.hero .ring .c .n small { font-size: 20px; }
.hero .ring .c .l { font-family: 'Space Grotesk'; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); margin-top: 5px; }
.hero .conf { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; font-weight: 700; font-size: 13.5px; font-family: 'Sora'; }
.conf.g { background: var(--green-l); color: var(--green); } .conf.a { background: var(--amber-l); color: var(--amber); } .conf.r { background: var(--red-l); color: var(--red); }
.hero h2 { font-family: 'Sora'; font-weight: 700; font-size: 20px; color: var(--navy); margin: 13px 0 7px; }
.hero p { color: var(--tx-2); font-size: 13px; line-height: 1.6; max-width: 56ch; }
.hero .ganho { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 13px; border-radius: 9px; background: var(--green-l); color: var(--green); font-size: 12.5px; font-weight: 600; }
.hero .ganho svg { width: 15px; height: 15px; }

/* traço */
.mixbar { height: 15px; border-radius: 8px; overflow: hidden; display: flex; margin-bottom: 18px; background: var(--bg-2); }
.mixbar > span { height: 100%; transition: width .9s var(--ease); }
.mix-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mix-row:last-child { border-bottom: 0; }
.mix-row .nm { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.mix-row .nm .sw { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.mix-row .pc { font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; min-width: 52px; text-align: right; color: var(--navy); }
.mix-row .kg { font-family: 'Space Grotesk'; color: var(--steel); font-size: 13px; min-width: 100px; text-align: right; }
.unit-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; background: var(--navy); color: #fff; font-family: 'Space Grotesk'; font-weight: 600; font-size: 14px; }
.batch-note { margin-top: 14px; font-size: 12.5px; color: var(--steel); }

/* leis */
.laws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.law { background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.law .nm { font-family: 'Sora'; font-weight: 700; font-size: 13px; color: var(--navy); }
.law .eq { font-family: 'Space Grotesk'; font-size: 12px; color: var(--blue); margin: 6px 0; }
.law .r2 { font-size: 11px; color: var(--tx-3); }
.law .r2 b { color: var(--green); }

/* métricas */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 16px; transition: all .2s var(--ease); }
.metric:hover { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.metric .mi { width: 32px; height: 32px; border-radius: 9px; background: var(--taupe-l); display: grid; place-items: center; margin-bottom: 12px; }
.metric .mi svg { width: 17px; height: 17px; color: var(--blue); }
.metric .mv { font-family: 'Sora'; font-weight: 700; font-size: 24px; color: var(--navy); letter-spacing: -.01em; }
.metric .mv small { font-size: 12px; color: var(--tx-3); font-weight: 600; }
.metric .ml { font-size: 12.5px; color: var(--tx-2); margin-top: 3px; }
.metric .mt { font-size: 11px; color: var(--tx-3); margin-top: 6px; }

/* riscos */
.risks { display: flex; flex-direction: column; gap: 9px; }
.risk { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--amber-l); border: 1px solid #F0DEB5; font-size: 13px; line-height: 1.5; color: #7A5A14; }
.risk svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 1px; }
.risk.ok { background: var(--green-l); border-color: #BFE6D4; color: #1A6B49; } .risk.ok svg { color: var(--green); }

/* IA */
.ai { background: linear-gradient(120deg, #F4F8FB, #fff); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r); padding: 22px; }
.ai .ah { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ai .ah .av { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; }
.ai .ah .av svg { width: 20px; height: 20px; color: #fff; }
.ai .ah b { font-family: 'Sora'; font-weight: 700; font-size: 15px; color: var(--navy); display: block; }
.ai .ah span { font-size: 11.5px; color: var(--steel); }
.ai .body { font-size: 14px; line-height: 1.65; color: var(--tx); }
.ai .body h4 { font-family: 'Sora'; font-size: 14px; color: var(--blue); margin: 14px 0 6px; }
.ai .body ul { margin: 6px 0 6px 2px; list-style: none; }
.ai .body li { padding: 5px 0 5px 22px; position: relative; }
.ai .body li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ai .connect { text-align: center; padding: 14px; }
.ai .connect p { color: var(--tx-2); font-size: 13.5px; margin-bottom: 14px; }
.ai .typing { display: inline-flex; gap: 5px; } .ai .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: blink 1.3s infinite both; }
.ai .typing span:nth-child(2){animation-delay:.18s} .ai .typing span:nth-child(3){animation-delay:.36s}
@keyframes blink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }

.disclaimer { margin-top: 20px; padding: 15px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; color: var(--tx-2); line-height: 1.6; display: flex; gap: 10px; }
.disclaimer svg { width: 16px; height: 16px; flex: none; color: var(--steel); margin-top: 1px; }
.disclaimer b { color: var(--tx); }
.block-err { margin: 30px auto; max-width: 580px; padding: 20px; border-radius: 14px; background: var(--red-l); border: 1px solid #ECC4C1; color: #8A312C; display: flex; gap: 12px; }
.block-err svg { width: 20px; flex: none; color: var(--red); margin-top: 2px; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(24,41,58,.4); backdrop-filter: blur(5px); animation: fadeIn .2s; }
.modal { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); animation: pop .25s var(--ease) both; }
.modal .mh { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.modal .mh .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; } .modal .mh .ic svg { width: 19px; color: #fff; }
.modal h3 { font-family: 'Sora'; font-weight: 700; font-size: 18px; color: var(--navy); }
.modal p { color: var(--tx-2); font-size: 13.5px; line-height: 1.6; margin: 6px 0 16px; }
.modal label { font-size: 11px; color: var(--tx-3); font-family: 'Space Grotesk'; letter-spacing: .05em; text-transform: uppercase; }
.modal input { width: 100%; margin: 7px 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--tx); font-family: 'Space Grotesk'; font-size: 14px; }
.modal input:focus { outline: none; border-color: var(--blue); }
.modal .err { color: var(--red); font-size: 12.5px; min-height: 16px; }
.modal .row { display: flex; gap: 10px; margin-top: 12px; } .modal .row .btn { flex: 1; justify-content: center; }
.modal .note { font-size: 11.5px; color: var(--tx-3); margin-top: 14px; line-height: 1.6; } .modal .note a { color: var(--blue); }
#iaBtn.on { border-color: #BFE6D4; color: var(--green); background: var(--green-l); }
#iaBtn .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* passo a passo da IA */
.passos { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: pas; }
.passos li { position: relative; padding: 9px 0 9px 38px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--tx); line-height: 1.55; counter-increment: pas; }
.passos li:last-child { border-bottom: 0; }
.passos li::before { content: counter(pas); position: absolute; left: 0; top: 8px; width: 25px; height: 25px; border-radius: 7px; background: var(--blue); color: #fff; font-family: 'Space Grotesk'; font-weight: 700; font-size: 12px; display: grid; place-items: center; }

/* ============================================================ BANCO */
.banco-resumo { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-pill { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; }
.cat-pill b { font-family: 'Sora'; font-weight: 800; font-size: 22px; }
.cat-pill span { font-size: 12px; font-weight: 600; opacity: .85; }
.banco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.banco-col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
.cat-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 2px solid; }
.cat-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cat-head b { font-family: 'Sora'; font-size: 15px; color: var(--navy); }
.cat-head .fx { font-size: 11.5px; color: var(--tx-3); font-family: 'Space Grotesk'; }
.cat-head .ct { margin-left: auto; font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 100px; }
.banco-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; }
.banco-empty { color: var(--tx-3); font-size: 13px; text-align: center; padding: 20px 8px; }
.traco-mini { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; transition: border-color .15s; }
.traco-mini:hover { border-color: var(--line-2); }
.tm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tm-fck { font-family: 'Sora'; font-weight: 700; font-size: 15px; color: var(--navy); }
.tm-fck span { font-family: 'Inter'; font-weight: 400; font-size: 11.5px; color: var(--tx-3); }
.tm-prob { font-family: 'Space Grotesk'; font-weight: 700; font-size: 17px; }
.tm-unit { font-size: 13px; color: var(--blue); margin: 8px 0 7px; }
.tm-meta { font-size: 11.5px; color: var(--tx-3); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tm-meta span { margin-left: auto; }

@media (max-width: 860px) {
  .exp-grid, .props, .laws, .banco-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .props-bottom { grid-template-columns: 1fr; }
  .res .head { flex-direction: column; align-items: flex-start; }
}
