/* PeriGauge landing — página estática, fontes do sistema, nenhuma requisição externa. */
:root {
  color-scheme: light dark;
  --paper: #F6F7FC; --surface: #FFFFFF; --surface-2: #EEF0FA; --line: #C9CDE6;
  --text: #151A33; --muted: #4A5273; --accent: #3D4FD1; --accent-soft: #E4E7FF;
  --ok: #0B6B3A; --warn: #8A5300; --critical: #B3261E; --charging: #0B6B8F;
  --btn-bg: #3D4FD1; --btn-text: #FFFFFF; --code-bg: #151A33; --code-text: #F2F4FF;
  --track: #D5D9EE;
  --shadow: 0 1px 2px rgb(21 26 51 / 6%), 0 24px 60px -30px rgb(21 26 51 / 35%);
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px; --gutter: clamp(18px, 4vw, 40px); --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1124; --surface: #161A33; --surface-2: #1D2243; --line: #363D6B;
    --text: #F2F4FF; --muted: #B4BAD9; --accent: #A9B4FF; --accent-soft: #232A5C;
    --ok: #5FD38D; --warn: #FFC15C; --critical: #FF8A80; --charging: #6CCBF0;
    --btn-bg: #A9B4FF; --btn-text: #0E1124; --code-bg: #090B18; --track: #363D6B;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 24px 60px -28px rgb(0 0 0 / 70%);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); }
:not(pre) > code { padding: .1em .38em; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); font-size: .88em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-text); font-weight: 650; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline: auto; }
.site-nav a, .lang a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 4px 2px; }
.site-nav a:hover, .lang a:hover { color: var(--text); text-decoration: underline; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang a[aria-current="page"] { background: var(--accent-soft); color: var(--text); font-weight: 650; }

/* Botões e selos */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); font-weight: 650; text-decoration: none; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; filter: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 650; }

/* Seções */
section { padding-block: clamp(48px, 8vw, 88px); }
.section-alt { background: var(--surface-2); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.prerelease { background: var(--accent-soft); border-bottom: 1px solid var(--line); padding-block: 8px; font-size: .92rem; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.02em; margin-block: 14px 18px; }
.hero .lead { margin-bottom: 26px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Capturas da interface */
figure { margin: 0; }
.product-shot { width: min(100%, 434px); margin-inline: auto; min-width: 0; }
.product-shot > img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.shot-controls { display: flex; gap: 6px; margin-bottom: 12px; }
.shot-controls[hidden] { display: none; }
.shot-controls button { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.shot-controls button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); border-color: var(--accent); }
.shot-controls button:hover { color: var(--text); }
.shot-fallback { margin-top: 8px; font-size: .88rem; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; }
.state svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-ok { color: var(--ok); } .s-warn { color: var(--warn); } .s-critical { color: var(--critical); } .s-charging { color: var(--charging); } .s-stale { color: var(--muted); }
figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin-top: 18px; }

/* Tabela */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 24px; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .95rem; }
caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: .85rem; }
tbody th { font-weight: 650; }

/* Cartões */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.thr { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; display: block; margin-bottom: 6px; }

/* Código */
.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 18px 20px; margin-top: 18px; overflow-x: auto; }
.code pre { margin: 0; font-size: .92rem; line-height: 1.7; }
.copy-row { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
[hidden] { display: none !important; }

footer { padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot { display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 14px; }
  .lang { margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
