/* status.meshio.com.br — mesmo desenho do site (site/style.css), fontes locais, sem CDN. */
@font-face { font-family: Manrope; src: url(assets/manrope-400.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/manrope-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/manrope-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/manrope-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0e1b2a; --muted: #667085; --soft: #526b8b; --line: #e3eaf2; --line-2: #eef1f5;
  --ok: #067647; --ok-bg: #ecfdf3; --ok-border: #abefc6; --ok-bar: #7fd4a2;
  --warn: #b54708; --warn-bg: #fffaeb; --warn-border: #fedf89; --warn-bar: #fdb022;
  --bad: #b42318; --bad-bg: #fef3f2; --bad-border: #fecdca; --bad-bar: #f04438;
  --info: #205ab7; --info-bg: #eff4fa; --info-border: #c7d7ee;
  --none: #e4e7ec; --unknown: #475467; --unknown-bg: #f2f4f7; --unknown-border: #d0d5dd;
  font-family: Manrope, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: #fff;
  line-height: 1.6; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: #2563eb; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 5px; left: 5px; background: #fff; padding: 12px; z-index: 10; }
.wrap { width: min(920px, calc(100% - 48px)); margin-inline: auto; }

header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; border-bottom: 1px solid #e7ebf1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; letter-spacing: -1.3px; line-height: 1; }
.brand:hover { color: var(--ink); }
.mark { display: inline-block; flex-shrink: 0; width: 41px; height: 25px; background: url(assets/meshio-mark.png) center/contain no-repeat; transform: translateY(1px); }
.brand small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--soft); margin-left: 4px; }
nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 10px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.button:hover { background: #244365; color: #fff; }
.button:disabled { opacity: .6; cursor: wait; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #c5d1df; }
.button.ghost:hover { background: var(--info-bg); color: var(--ink); }
.text-link { color: var(--info); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

main { padding-block: 44px 70px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.3px; color: var(--soft); margin: 0 0 14px; }
.dot { display: inline-block; width: 7px; height: 7px; background: #2563eb; border-radius: 50%; margin-right: 9px; }

/* Faixa geral */
.overall { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 14px; background: var(--unknown-bg); border: 1px solid var(--unknown-border); }
.overall .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--unknown); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.overall h1 { font-size: 26px; line-height: 1.25; letter-spacing: -1px; margin: 0; font-weight: 700; }
.overall p { margin: 4px 0 0; color: #475467; font-size: 14px; }
.overall[data-state="ok"] { background: var(--ok-bg); border-color: var(--ok-border); }
.overall[data-state="ok"] .ico { background: var(--ok); }
.overall[data-state="ok"] p { color: #3b5b4a; }
.overall[data-state="degraded"] { background: var(--warn-bg); border-color: var(--warn-border); }
.overall[data-state="degraded"] .ico { background: var(--warn); }
.overall[data-state="outage"] { background: var(--bad-bg); border-color: var(--bad-border); }
.overall[data-state="outage"] .ico { background: var(--bad); }
.overall[data-state="maintenance"] { background: var(--info-bg); border-color: var(--info-border); }
.overall[data-state="maintenance"] .ico { background: var(--info); }
.noscript { padding: 14px 18px; border-radius: 10px; background: var(--warn-bg); font-size: 14px; }

/* Avisos (manutenção, confirmação de inscrição) */
.maint, .notice { margin-top: 16px; padding: 18px 22px; border-radius: 12px; border: 1px solid var(--warn-border); background: var(--warn-bg); }
.maint.in-progress { border-color: var(--info-border); background: var(--info-bg); }
.maint b { font-size: 14px; }
.maint p { margin: 4px 0 0; font-size: 14px; color: #5b4a2e; }
.maint.in-progress p { color: #33475f; }
.notice { margin: 0 0 28px; border-color: var(--info-border); background: var(--info-bg); }
.notice-title { font-size: 18px; letter-spacing: -.4px; margin: 0 0 4px; }
.notice p { margin: 0 0 14px; font-size: 14px; color: #33475f; }
.notice .form-status { margin: 12px 0 0; }

h2 { font-size: 22px; letter-spacing: -.8px; margin: 46px 0 6px; font-weight: 700; line-height: 1.3; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* Componentes */
.components { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.comp { padding: 20px 24px; border-top: 1px solid var(--line-2); }
.comp:first-child { border-top: 0; }
.comp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.comp-name { font-weight: 700; font-size: 15px; margin: 0; }
.comp-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.state { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--unknown); }
.state::before { content: "●"; margin-right: 6px; }
.state.operational { color: var(--ok); }
.state.degraded { color: var(--warn); }
.state.outage { color: var(--bad); }
.state.maintenance { color: var(--info); }
.bars { display: flex; gap: 2px; margin-top: 14px; height: 30px; }
.bars i { flex: 1; min-width: 1px; border-radius: 2px; background: var(--ok-bar); }
.bars i.w { background: var(--warn-bar); }
.bars i.r { background: var(--bad-bar); }
.bars i.n { background: var(--none); }
.axis { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #667085; margin-top: 6px; }
.axis span:nth-child(2) { text-align: center; }
.comp.meta { background: #f7f9fc; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--soft); border: 1px solid #c5d1df; border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.ext { color: var(--info); font-weight: 600; }
.stale { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--ok-bar); }
.legend i.w { background: var(--warn-bar); } .legend i.r { background: var(--bad-bar); } .legend i.n { background: var(--none); }

/* Incidentes */
.inc { border-left: 2px solid var(--line); padding: 0 0 26px 22px; position: relative; }
.inc::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #fff; }
.inc.impact-degraded::before { background: var(--warn); }
.inc.impact-outage::before { background: var(--bad); }
.inc.impact-maintenance::before { background: var(--info); }
.inc.resolved::before { background: var(--ok); }
.inc-date { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--soft); }
.inc h3 { font-size: 16px; margin: 4px 0 4px; letter-spacing: -.3px; line-height: 1.4; }
.inc-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.upd { font-size: 14px; color: #4c5e73; margin: 0 0 6px; overflow-wrap: anywhere; }
.upd b { color: var(--ink); }
.active .inc { border-left-color: var(--bad-border); }
.empty { font-size: 14px; color: var(--muted); }

/* Inscrição */
.subscribe { margin-top: 44px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 28px 30px; border-radius: 12px; background: var(--info-bg); }
.subscribe-title { font-size: 16px; letter-spacing: -.2px; margin: 0; }
.subscribe p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.subscribe form { display: flex; gap: 8px; }
.subscribe input { width: 260px; padding: 10px 12px; border: 1px solid #c5d1df; border-radius: 7px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.subscribe .form-status { grid-column: 1 / -1; margin: 0; }
.form-status { font-size: 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #a12d2d; }
.form-status[data-state="success"] { color: #216449; }

footer { border-top: 1px solid #e7ebf1; padding-block: 28px 36px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-links a { font-weight: 600; color: var(--ink); margin-left: 18px; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  header { padding-block: 20px; }
  .hide-sm { display: none; }
  .brand { font-size: 23px; }
  main { padding-block: 32px 50px; }
  .overall { padding: 20px; gap: 14px; align-items: flex-start; }
  .overall h1 { font-size: 21px; }
  .comp { padding: 16px; }
  .comp-top { flex-direction: column; gap: 4px; }
  .bars { gap: 1px; height: 26px; }
  .axis { font-size: 10.5px; }
  .subscribe { grid-template-columns: 1fr; padding: 22px; }
  .subscribe form { flex-direction: column; }
  .subscribe input { width: 100%; }
  footer { flex-direction: column; }
  .footer-links a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
