/* SprayPro — design system e layout (mobile-first). */

/* ------------------------------------------------------------ tokens */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --line: #d9dfd6;
  --line-strong: #b9c3b4;
  --text: #121a14;
  --text-2: #4a564d;
  --text-3: #6b766d;

  --brand: #14532d;
  --brand-2: #1f7a43;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1e7;
  --accent: #e8a317;
  --focus: #2563eb;

  --ok: #1f7a43;   --ok-soft: #e3f1e7;
  --warn: #9a5b00; --warn-soft: #fff3d6;
  --bad: #b42318;  --bad-soft: #fde7e5;
  --info: #1d4f91; --info-soft: #e5eefb;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgb(16 24 16 / 6%), 0 2px 8px rgb(16 24 16 / 6%);
  --shadow-lg: 0 8px 28px rgb(16 24 16 / 16%);

  --gap: 16px;
  --tap: 48px;
  --appbar-h: 56px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sun"]) {
    --bg: #0e1310; --surface: #161d18; --surface-2: #1d261f; --line: #2a352d; --line-strong: #3b4a3f;
    --text: #e8eee9; --text-2: #b3beb5; --text-3: #8b978e;
    --brand: #4ade80; --brand-2: #22c55e; --brand-ink: #062b14; --brand-soft: #173322; --accent: #f5b83d; --focus: #60a5fa;
    --ok: #4ade80; --ok-soft: #173322; --warn: #fbbf24; --warn-soft: #33270c; --bad: #f87171; --bad-soft: #3a1714; --info: #93c5fd; --info-soft: #14243a;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%); --shadow-lg: 0 8px 28px rgb(0 0 0 / 50%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1310; --surface: #161d18; --surface-2: #1d261f; --line: #2a352d; --line-strong: #3b4a3f;
  --text: #e8eee9; --text-2: #b3beb5; --text-3: #8b978e;
  --brand: #4ade80; --brand-2: #22c55e; --brand-ink: #062b14; --brand-soft: #173322; --accent: #f5b83d; --focus: #60a5fa;
  --ok: #4ade80; --ok-soft: #173322; --warn: #fbbf24; --warn-soft: #33270c; --bad: #f87171; --bad-soft: #3a1714; --info: #93c5fd; --info-soft: #14243a;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%); --shadow-lg: 0 8px 28px rgb(0 0 0 / 50%);
  color-scheme: dark;
}
/* Modo sol: contraste máximo para tela sob luz direta. */
:root[data-theme="sun"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f0f0f0; --line: #8a8a8a; --line-strong: #000000;
  --text: #000000; --text-2: #1a1a1a; --text-3: #333333;
  --brand: #003d1c; --brand-2: #00602b; --brand-soft: #d9f2e1;
  --shadow: none; --shadow-lg: 0 0 0 2px #000;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
:root[data-theme="sun"] body { font-size: 17px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
svg:where(:not([width])) { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ shell */
.shell { min-height: 100dvh; }
.appbar {
  position: sticky; top: 0; z-index: 20; height: calc(var(--appbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0 16px; display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); color: #fff;
}
:root[data-theme="dark"] .appbar { background: #0b2615; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) .appbar { background: #0b2615; } }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent); }
.appbar-actions { display: flex; align-items: center; gap: 4px; }
.net { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: #2b1d00; padding: 3px 8px; border-radius: 99px; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: rgb(255 255 255 / 12%); }

.nav {
  position: fixed; inset: auto 0 0 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line);
}
.nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--brand-2); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-2); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #2b1d00; font-size: .7rem; display: grid; place-items: center; }

main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 760px; margin: 0 auto; outline: none; }
.boot { display: grid; place-items: center; gap: 12px; padding: 20vh 0; color: var(--text-2); }
.spin { width: 36px; height: 36px; animation: spin 1s linear infinite; color: var(--brand-2); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; }
  .appbar { grid-column: 1 / -1; }
  .nav {
    position: sticky; top: var(--appbar-h); height: calc(100dvh - var(--appbar-h)); display: flex; flex-direction: column;
    padding: 16px 12px; gap: 4px; border-top: 0; border-right: 1px solid var(--line);
  }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; height: 46px; border-radius: var(--r); font-size: .95rem; color: var(--text-2); }
  .nav a:hover { background: var(--surface-2); }
  .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .nav a[aria-current="page"]::before { display: none; }
  .badge { position: static; margin-left: auto; }
  main { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }
}

/* ------------------------------------------------------------ componentes */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; font-weight: 600; min-height: 40px; margin: -8px 0 4px -6px; padding: 0 6px; border: 0; background: none; cursor: pointer; }
.back svg { width: 20px; height: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-pad { padding: 16px; }
.section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 20px 4px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); }
:root[data-theme="dark"] .btn-primary { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) .btn-primary { color: var(--brand-ink); } }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .9rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }

/* campos */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field > label, .field-label { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--text-3); }
.field .err { font-size: .85rem; color: var(--bad); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.input, select.input {
  width: 100%; min-height: var(--tap); padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 1.05rem;
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgb(37 99 235 / 20%); }
.input[aria-invalid="true"] { border-color: var(--bad); }

/* stepper numérico */
.stepper { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stepper:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(37 99 235 / 20%); }
.stepper button { border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:active { background: var(--line); }
.stepper button svg { width: 20px; height: 20px; }
.stepper .val { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.stepper input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: right; font-size: 1.3rem; font-weight: 700; padding: 0; height: var(--tap); font-variant-numeric: tabular-nums; }
.stepper input:focus { outline: none; }
.stepper .val input { flex: 1 1 auto; }
.stepper .unit { flex: none; color: var(--text-3); font-size: .9rem; font-weight: 600; padding-right: 6px; white-space: nowrap; }
.grid-2 > .field + .field, .grid-3 > .field + .field { margin-top: 0; }
.grid-2 .stepper { grid-template-columns: 40px 1fr 40px; }
.grid-2 .stepper input { font-size: 1.15rem; }
.grid-2 .stepper .unit { font-size: .8rem; padding-right: 2px; }
.stepper[aria-invalid="true"] { border-color: var(--bad); }

/* chips / segmentado */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none;
}
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; font-size: .9rem; cursor: pointer; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--brand-2); }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); cursor: pointer; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); transition: transform .15s; }
.switch input:checked { background: var(--brand-2); }
.switch input:checked::after { transform: translateX(22px); }
.switch span small { display: block; color: var(--text-3); font-weight: 400; font-size: .82rem; }

/* acordeão */
details.fold { border-top: 1px solid var(--line); }
details.fold > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px;
  cursor: pointer; font-weight: 700;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .sum { font-weight: 500; color: var(--text-3); font-size: .85rem; text-align: right; margin-left: auto; }
details.fold > summary svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .15s; }
details.fold[open] > summary svg { transform: rotate(90deg); }
details.fold > .fold-body { padding: 4px 16px 18px; }

/* alertas */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: .92rem; font-weight: 550; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; margin-top: 1px; }
.alert + .alert { margin-top: 8px; }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-stop { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }

/* resumo de cálculo */
.calc {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px;
  border-radius: var(--r-lg); background: var(--brand); color: #fff;
}
:root[data-theme="dark"] .calc { background: #0b2615; color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) .calc { background: #0b2615; color: var(--text); } }
.calc .lbl { font-size: .8rem; opacity: .85; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.calc .big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc .big small { font-size: .95rem; font-weight: 600; opacity: .85; margin-left: 2px; }
.calc .range { font-size: .88rem; opacity: .9; }
.iso-hints { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.iso-hint { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: rgb(255 255 255 / 14%); font-size: .85rem; font-weight: 600; }

/* chip ISO */
.iso {
  --c: #ccc; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 4px; border-radius: 10px;
  background: var(--c); color: #111; font-weight: 800; font-size: .95rem; letter-spacing: -.02em; border: 1.5px solid rgb(0 0 0 / 18%);
  font-variant-numeric: tabular-nums; flex: none;
}
.iso.dark-ink { color: #fff; }
.iso.none { background: var(--surface-2); color: var(--text-2); border-style: dashed; border-color: var(--line-strong); }
.iso-sm { min-width: 30px; height: 26px; border-radius: 7px; font-size: .78rem; }

/* escala de gota */
.dscale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; position: relative; padding-top: 4px; }
.dscale span {
  height: 22px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; border-radius: 4px; color: rgb(0 0 0 / 55%);
  background: color-mix(in srgb, var(--c) 28%, var(--surface)); border: 1px solid transparent;
}
.dscale span.in-target { box-shadow: inset 0 -3px 0 var(--brand-2); }
.dscale span.on { background: var(--c); color: #000; border-color: rgb(0 0 0 / 35%); transform: scaleY(1.15); }
.dscale span.on.dark-ink { color: #fff; }
.dscale span.range { background: color-mix(in srgb, var(--c) 65%, var(--surface)); color: #000; }
:root[data-theme="dark"] .dscale span:not(.on):not(.range) { color: rgb(255 255 255 / 55%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) .dscale span:not(.on):not(.range) { color: rgb(255 255 255 / 55%); } }
.dpill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dpill i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1px solid rgb(0 0 0 / 30%); display: inline-block; }

/* medidor de pressão */
.gauge { position: relative; height: 34px; margin-top: 4px; }
.gauge .track { position: absolute; left: 0; right: 0; top: 12px; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.gauge .win { position: absolute; top: 12px; height: 10px; border-radius: 99px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.gauge .op { position: absolute; top: 9px; height: 16px; border-radius: 99px; background: color-mix(in srgb, var(--brand-2) 45%, transparent); }
.gauge .pt { position: absolute; top: 5px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
:root[data-theme="dark"] .gauge .pt { background: var(--brand); }
.gauge .tick { position: absolute; top: 26px; font-size: .68rem; color: var(--text-3); transform: translateX(-50%); font-variant-numeric: tabular-nums; }

/* cards de resultado */
.results { display: grid; gap: 12px; }
.rcard { padding: 14px 14px 12px; }
.rcard-head { display: flex; gap: 12px; align-items: flex-start; }
.rcard-title { flex: 1; min-width: 0; }
.rcard-title h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.rcard-title p { font-size: .85rem; color: var(--text-2); margin-top: 2px; }
.score { flex: none; text-align: center; min-width: 52px; }
.score b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.score small { font-size: .66rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.score.s-hi b { color: var(--ok); } .score.s-md b { color: var(--warn); } .score.s-lo b { color: var(--bad); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.kv div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; }
.kv dt { font-size: .7rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 2px 0 0; font-weight: 750; font-size: 1.02rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dd small { font-weight: 500; color: var(--text-2); font-size: .78rem; display: block; }
.rblock { margin-top: 12px; }
.rblock-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag svg { width: 14px; height: 14px; }
.tag-ai { background: var(--info-soft); color: var(--info); border-color: transparent; }
.rnotes { margin-top: 10px; display: grid; gap: 4px; }
.rnote { font-size: .84rem; display: flex; gap: 6px; color: var(--text-2); }
.rnote svg { width: 16px; height: 16px; margin-top: 2px; }
.rnote.warn { color: var(--warn); }
.ractions { display: flex; gap: 8px; margin-top: 12px; }
.ractions .btn { flex: 1; }

/* barra de resumo / filtros */
.summary-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 12px 0; flex-wrap: wrap; }
.group-title { display: flex; align-items: center; gap: 10px; margin: 18px 2px 8px; font-weight: 750; }

/* botão fixo inferior (mobile) */
.sticky-cta {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 10; margin-top: 16px;
  display: flex; gap: 8px; padding: 8px; border-radius: calc(var(--r) + 8px); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sticky-cta .btn { flex: 1; min-height: 54px; font-size: 1.05rem; box-shadow: var(--shadow-lg); }

/* tabelas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
table.t th, table.t td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.t thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); background: var(--surface-2); position: sticky; top: 0; }
table.t thead th:first-child { background: var(--surface-2); z-index: 2; }
table.t tr.hl td { background: var(--brand-soft); font-weight: 700; }
table.t tr.sus td { color: var(--text-3); text-decoration: line-through; }
table.t td.best { color: var(--ok); font-weight: 800; }

/* comparador */
.cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.cmp table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .9rem; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; min-width: 150px; }
.cmp th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); min-width: 112px; max-width: 120px; white-space: normal; }
.cmp thead td { background: var(--surface); }
.cmp td.best { background: var(--ok-soft); font-weight: 800; color: var(--ok); }

/* gráfico */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--text-3); font-family: var(--font); }
.chart .axis { stroke: var(--line-strong); }
.chart .grid { stroke: var(--line); }
.chart .curve { fill: none; stroke: var(--brand-2); stroke-width: 2.5; }
.chart .win { fill: var(--ok-soft); }

/* lista do catálogo */
.list { display: grid; gap: 0; }
.list a, .list button.li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer;
}
.list a:last-child { border-bottom: 0; }
.list a:hover { background: var(--surface-2); }
.list .li-main { flex: 1; min-width: 0; }
.list .li-main b { display: block; }
.list .li-main span { font-size: .84rem; color: var(--text-2); }
.list .li-chev { width: 20px; height: 20px; color: var(--text-3); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); }
.search .input { padding-left: 44px; }

/* vazio */
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); }
.empty h2 { color: var(--text); margin-bottom: 6px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--r); font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}

/* sobre / assinatura */
.support { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border: 0; }
.support .btn { background: var(--accent); border-color: var(--accent); color: #2b1d00; }
.prose p + p, .prose ul { margin-top: 10px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 4px; }

/* ------------------------------------------------------------ desktop: seletor em duas colunas */
@media (min-width: 1100px) {
  .split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
  .split > .split-form { position: sticky; top: calc(var(--appbar-h) + 16px); max-height: calc(100dvh - var(--appbar-h) - 32px); overflow: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .split .sticky-cta { display: none; }
  .results { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .only-mobile { display: none !important; }
}
@media (max-width: 1099px) {
  .only-desktop { display: none !important; }
}
@media (max-width: 380px) {
  .kv { grid-template-columns: 1fr 1fr; }
  .calc .big { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .appbar, .nav, .sticky-cta, .ractions, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ============================================================ v1.1 — passo a passo, recomendação, marcas */

/* topo: botão de assinatura */
.support-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; height: 36px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--accent); color: #2b1d00; font-weight: 750; font-size: .85rem; cursor: pointer; }
.support-btn svg { width: 16px; height: 16px; }
@media (max-width: 360px) { .support-btn span { display: none; } .support-btn { padding: 0 10px; } }

/* progresso dos passos */
.progress { list-style: none; margin: -4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--text-3); font-size: .72rem; font-weight: 700; }
.progress .pn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line-strong); font-weight: 800; font-size: .85rem; color: var(--text-2); position: relative; }
.progress .pn svg { width: 16px; height: 16px; }
.progress li { position: relative; }
.progress li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 30px); height: 2px; background: var(--line-strong); }
.progress li.done::before, .progress li.current::before { background: var(--brand-2); }
.progress li.done .pn { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.progress li.current .pn { background: var(--surface); border-color: var(--brand-2); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.progress li.current a, .progress li.done a { color: var(--text); }

/* passo */
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px 20px; box-shadow: var(--shadow); }
.step + .step { margin-top: 14px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.step-num { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-2); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step-head h2 { font-size: 1.25rem; }
.step-head p { color: var(--text-2); font-size: .92rem; margin-top: 2px; }
.wizard-body { padding-bottom: 96px; }
.field-label { font-weight: 700; font-size: .95rem; margin: 0 0 8px; display: block; }
.step .field + .field, .step .field + .switch, .step .switch + .grid-2, .step .grid-2 + .field { margin-top: 18px; }

/* cartões de escolha */
.tiles { display: grid; gap: 10px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 400px) { .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 96px; padding: 12px 6px;
  border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); color: var(--text); text-align: center;
  font-weight: 700; font-size: .92rem; line-height: 1.15; cursor: pointer; text-decoration: none; transition: border-color .12s, background .12s, transform .08s;
}
.tile:active { transform: scale(.98); }
.tile:hover { border-color: var(--line-strong); }
.tile small { font-weight: 500; color: var(--text-3); font-size: .74rem; }
.tile .app-ico { color: var(--brand-2); }
.tile.on { border-color: var(--brand-2); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-2); }
.tile.on .app-ico { color: var(--brand); }
.tile-sm { min-height: 84px; font-size: .88rem; }
.tile-sm svg { color: var(--info); }
.tile-bad.on { border-color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1px var(--bad); }
.tile-bad svg { color: var(--bad); }
.tile-art { min-height: 108px; }
.all-art { display: flex; gap: 0; height: 48px; align-items: flex-end; }
.tile-brand { min-height: 76px; padding: 10px; }
.tile-brand .tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-2); color: #fff; display: grid; place-items: center; }
.tile-brand .tick svg { width: 14px; height: 14px; }

/* modo de ação */
.sub-choice { margin-top: 18px; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); font-weight: 650; font-size: 1rem; text-align: left; cursor: pointer; }
.option .radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.option.on { border-color: var(--brand-2); background: var(--brand-soft); }
.option.on .radio-dot { border-color: var(--brand-2); }
.option.on .radio-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--brand-2); }
.hint-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--info-soft); color: var(--text); font-size: .92rem; font-weight: 600; }
.hint-box > svg { width: 20px; height: 20px; color: var(--info); margin-top: 1px; }
.hint-box .dpill { margin-left: 4px; }
.hint-box small { display: block; color: var(--text-2); font-weight: 500; margin-top: 2px; }

/* valores rápidos */
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qchip { min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.qchip[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.quick-lg .qchip { min-height: 46px; flex: 1 0 auto; }
.switch.compact { margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--brand-2); font-weight: 700; padding: 8px 2px; cursor: pointer; text-decoration: underline; font-size: .88rem; }
.mini-fold { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.mini-fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.mini-fold > summary::-webkit-details-marker { display: none; }
.mini-fold > summary > svg { width: 18px; height: 18px; margin-left: auto; color: var(--text-3); transition: transform .15s; }
.mini-fold[open] > summary > svg { transform: rotate(90deg); }
.mini-fold > :not(summary) { margin: 0 14px; }
.mini-fold[open] { padding-bottom: 14px; }
.dt-val { font-size: .8rem; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 99px; }

/* vazão necessária */
.flowbox { margin-top: 18px; border-radius: var(--r-lg); background: var(--brand); color: #fff; padding: 14px 16px; display: grid; gap: 12px; }
:root[data-theme="dark"] .flowbox { background: #0b2615; color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) .flowbox { background: #0b2615; color: var(--text); } }
.flowbox .lbl { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.flowbox .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.flowbox .big small { font-size: 1rem; opacity: .85; }
.flowbox .range { font-size: .86rem; opacity: .9; }
.iso-sugg-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.iso-sugg-item { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 12px; background: rgb(255 255 255 / 12%); font-size: .86rem; }
.iso-sugg-item small { display: block; opacity: .85; }

/* barra inferior dos passos (mobile) */
.stepbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.stepbar .btn { min-height: 52px; font-size: 1.02rem; }
.btn.disabled { opacity: .5; }
@media (min-width: 900px) { .stepbar { left: 220px; } }

/* desktop: passos + recomendação */
@media (min-width: 1100px) {
  .split { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); }
  .split-form .step { padding: 16px 14px 18px; }
  .split-form .tile { min-height: 84px; }
}

/* cenário */
.scenario { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scrollbar-width: none; }
.scenario::-webkit-scrollbar { display: none; }
.scn { flex: none; display: grid; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.scn small { font-size: .68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.scn b { font-size: .92rem; white-space: nowrap; }
.alerts { margin-bottom: 8px; }
.sec { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; margin: 22px 2px 10px; }
.sec svg { width: 20px; height: 20px; color: var(--accent); }
.sec .count { font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 99px; font-weight: 700; }

/* avaliação */
.rating { flex: none; display: inline-grid; justify-items: center; padding: 6px 10px; border-radius: 12px; line-height: 1.1; min-width: 74px; }
.rating b { font-size: .82rem; font-weight: 800; }
.rating small { font-size: .7rem; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
.rating-big { min-width: 88px; padding: 8px 12px; }
.rating-big b { font-size: .95rem; }
.rating-excelente { background: #1f7a43; color: #fff; }
.rating-muito-boa { background: #d9f2e1; color: #14532d; }
.rating-boa { background: #e8f0d0; color: #3f5410; }
.rating-aceitavel { background: #fff3d6; color: #7a4a00; }
.rating-fraca { background: #fde7e5; color: #8f1d13; }

/* selos */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; }
.badge-pill svg { width: 15px; height: 15px; }
.b-best { background: linear-gradient(135deg, #f5b83d, #e8a317); color: #2b1d00; }
.b-drift { background: #dbe8fb; color: #1d4f91; }
.b-coverage { background: #ffe7cc; color: #8a4500; }
.b-speed { background: #d9f2e1; color: #14532d; }
.b-brand { background: #ece6f7; color: #4b2a85; }

/* recomendação principal */
.hero { padding: 16px; border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.hero-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.hero-art { width: 76px; display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.hero-id { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.hero-model { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.1; }
.hero-sub { font-size: .86rem; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fact { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.fact span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.fact b { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact small { font-size: .78rem; color: var(--text-2); }
.reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.reasons li { display: flex; gap: 8px; font-size: .9rem; align-items: flex-start; }
.reasons li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.reasons li.ok svg { color: var(--ok); }
.reasons li.no svg { color: var(--warn); }
.reasons li.na svg { color: var(--text-3); }
.hero .ractions .btn { min-height: 50px; }

/* outras opções */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pick { display: grid; gap: 10px; padding: 12px; text-decoration: none; color: var(--text); }
.pick .badge-pill { justify-self: start; }
.pick-body { display: flex; gap: 10px; align-items: center; }
.pick-id { display: grid; gap: 2px; min-width: 0; }
.pick-id b { font-size: 1.05rem; overflow-wrap: anywhere; }
.pick-id small { color: var(--text-2); font-size: .82rem; }
.brand-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.bb { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; color: var(--text); }
.bb + .bb { margin-top: 0; }
.bb-id { display: grid; min-width: 0; }
.bb-id small { color: var(--text-2); font-size: .8rem; }

/* lista de resultados */
.rlist { overflow: hidden; }
.rrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; text-decoration: none; color: var(--text); }
.rrow-main:hover { background: var(--surface-2); }
.rrow-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rrow-id b { font-size: 1rem; overflow-wrap: anywhere; }
.rrow-id small { color: var(--text-2); font-size: .8rem; }
.rrow-brand { display: flex; }
.rrow-badges { display: flex; gap: 4px; }
.mini { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.mini svg { width: 14px; height: 14px; }
.rrow .rating { min-width: 64px; padding: 5px 6px; }
.rrow .rating b { font-size: .72rem; }
.rrow-cmp { flex: none; width: 48px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.rrow-cmp svg { width: 20px; height: 20px; }
.rrow-cmp[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }

/* logos */
.brand-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 6px; padding: 2px 6px; }
.brand-logo img { display: block; width: auto; object-fit: contain; }
.brand-logo .logo-dark { display: none; }
.brand-xs img { height: 14px; max-width: 70px; }
.brand-sm img { height: 18px; max-width: 90px; }
.brand-md img { height: 24px; max-width: 120px; }
.brand-lg img { height: 34px; max-width: 150px; }
.brand-xs { padding: 1px 4px; border-radius: 4px; }
:root[data-theme="dark"] .brand-logo { background: transparent; padding-left: 0; }
:root[data-theme="dark"] .brand-logo .logo-light { display: none; }
:root[data-theme="dark"] .brand-logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sun"]) .brand-logo { background: transparent; padding-left: 0; }
  :root:not([data-theme="light"]):not([data-theme="sun"]) .brand-logo .logo-light { display: none; }
  :root:not([data-theme="light"]):not([data-theme="sun"]) .brand-logo .logo-dark { display: block; }
}
.tile-brand .brand-logo, .bb-logo .brand-logo { padding: 0; }
.brand-txt { font-weight: 800; letter-spacing: -.01em; }

/* catálogo */
.clist { overflow: hidden; }
.crow { display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 64px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--surface-2); }
.crow-id { flex: 1; min-width: 0; display: grid; }
.crow-id small { color: var(--text-2); font-size: .82rem; }
.crow.more { justify-content: center; font-weight: 700; color: var(--brand-2); min-height: 48px; }
.iso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.iso-tile { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; font-size: .85rem; text-align: center; }
.iso-tile small { font-weight: 500; font-size: .7rem; color: var(--text-3); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 750; text-decoration: none; font-size: .88rem; }
.fchip svg { width: 14px; height: 14px; }
.series-head { display: flex; align-items: center; gap: 10px; margin: 18px 2px 8px; text-decoration: none; color: var(--text); }
.series-head span { color: var(--text-2); font-size: .85rem; }
.series-head .li-chev { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); }
.li-chev { width: 20px; height: 20px; color: var(--text-3); flex: none; }

/* detalhe */
.detail-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; align-items: center; }
.dh-art { width: 92px; display: grid; place-items: center; background: var(--surface-2); border-radius: 16px; padding: 6px; }
.dh-id { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.dh-id h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
.dh-id p { color: var(--text-2); font-size: .88rem; }
.dh-rate { grid-column: 1 / -1; }
.dh-actions { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 640px) { .detail-head { grid-template-columns: auto 1fr auto; } .dh-rate { grid-column: auto; } }

/* comparador */
.cmp-head { display: flex; gap: 8px; align-items: center; }
.cmp-head > div { display: grid; gap: 2px; justify-items: start; }
.cmp-head small { color: var(--text-2); font-size: .78rem; }

/* mais / assinatura */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool { display: grid; gap: 4px; padding: 14px; text-decoration: none; color: var(--text); }
.tool + .tool { margin-top: 0; }
.tool-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tool-ico svg { width: 22px; height: 22px; }
.tool small { color: var(--text-2); font-size: .8rem; }
.support { padding: 18px; background: linear-gradient(160deg, #14532d 0%, #1f7a43 100%); color: #fff; border: 0; }
.support h2 { display: flex; gap: 8px; align-items: center; font-size: 1.2rem; }
.support h2 svg { color: var(--accent); width: 22px; height: 22px; }
.support > p { margin-top: 8px; opacity: .95; }
.sub-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 99px; background: rgb(255 255 255 / 14%); font-weight: 800; font-size: .9rem; }
.sub-status svg { width: 16px; height: 16px; color: var(--accent); }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.support .sub-actions .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.sub-hint { margin-top: 10px; font-size: .82rem; opacity: .9; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #2b1d00; }
.btn-accent:hover { background: #f5b83d; }
.src-list { display: grid; gap: 8px; margin: 10px 0; }
.src { display: flex; gap: 10px; align-items: center; }
.more-app { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-top: 12px; text-decoration: none; color: var(--text); }
.more-app svg { width: 20px; height: 20px; }
.nz-art { display: block; flex: none; }

/* ajustes de revisão visual */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); }
.quick .qchip { min-width: 0; padding: 0 4px; }
.quick-lg { grid-template-columns: repeat(4, 1fr); }
.step .grid-2 > .field + .field { margin-top: 0; }
.flowbox .range { display: block; margin-top: 2px; }
.brand-logo img { max-width: 100%; }
.tile-brand .brand-logo { max-width: 100%; }
.tile-brand .brand-lg img { max-width: 100%; height: auto; max-height: 34px; }
.fact .dpill { font-size: 1.12rem; }
.fact .dpill i { width: 16px; height: 16px; }
.scenario { flex-wrap: wrap; overflow: visible; }
.bb { grid-template-columns: minmax(0, 110px) 1fr auto; }
.bb-logo { min-width: 0; overflow: hidden; }
.bb-logo .brand-md img { max-width: 100%; height: auto; max-height: 24px; }

.tag-pwm { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* ============================================================ v1.2 — página única, rodapé, instalação */
:root { --form-bg: #e6f0e4; --form-line: #c4d8c2; }
:root[data-theme="dark"] { --form-bg: #122318; --form-line: #24402c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sun"]) { --form-bg: #122318; --form-line: #24402c; } }
:root[data-theme="sun"] { --form-bg: #eef6ec; --form-line: #000; }

main { padding-bottom: 24px; }
.form-card { background: var(--form-bg); border: 1px solid var(--form-line); border-radius: 22px; padding: 6px; }
.form-grid { display: grid; gap: 6px; }
.form-card .step { background: transparent; border: 0; box-shadow: none; padding: 14px 10px 16px; }
.form-card .step + .step { margin-top: 0; border-top: 1px dashed var(--form-line); }
.form-card .tile, .form-card .option, .form-card .qchip:not([aria-pressed="true"]), .form-card .stepper, .form-card .input, .form-card .mini-fold { background: var(--surface); }
.form-card .mini-fold > summary { background: transparent; }
@media (min-width: 1100px) {
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .form-card .step + .step { border-top: 0; border-left: 1px dashed var(--form-line); }
  .form-card .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .form-card .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .form-card .tile { min-height: 84px; }
}
.resume { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; text-decoration: none; color: var(--text); }
.resume svg { width: 20px; height: 20px; color: var(--brand-2); transform: rotate(180deg); }
.resume small { display: block; color: var(--text-2); font-size: .82rem; }

.result-area { margin-top: 22px; scroll-margin-top: calc(var(--appbar-h) + 12px); outline: none; }
.result-title { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; margin: 0 2px 12px; }
.result-title svg { width: 24px; height: 24px; color: var(--accent); }
.result-title .count { font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.result-wait { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); border: 2px dashed var(--line-strong); color: var(--text-2); }
.result-wait b { color: var(--text); font-size: 1.05rem; }
.rw-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.rw-ico svg { width: 24px; height: 24px; color: var(--text-3); }
.to-result { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 26; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 99px; background: var(--brand-2); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-lg); }
.to-result svg { width: 18px; height: 18px; transform: rotate(90deg); }
@media (min-width: 900px) { .to-result { bottom: 24px; left: calc(50% + 110px); } }

/* topo: instalar */
.install-btn { height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid rgb(255 255 255 / 70%); background: transparent; color: #fff; font-weight: 750; font-size: .85rem; cursor: pointer; }
@media (max-width: 380px) { .appbar .brand-name { font-size: 1.1rem; } }

/* rodapé (mesmo padrão do ProFarm Calc) */
.app-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 26px 16px calc(var(--nav-h) + var(--safe-b) + 24px); border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-2); max-width: 1280px; margin: 0 auto; width: 100%; }
.app-footer strong { color: var(--text); margin-right: auto; font-size: .95rem; }
.app-footer a { color: var(--brand-2); font-weight: 650; }
.app-footer p { width: 100%; font-size: .74rem; color: var(--text-3); }
@media (max-width: 520px) { .app-footer strong { width: 100%; } }
@media (min-width: 900px) { .app-footer { grid-column: 2; padding: 26px 28px 32px; } }

/* páginas de ajuda */
.eyebrow { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--brand-2); margin-bottom: 6px; }
.howto { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.howto li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.howto h2 { font-size: 1.05rem; margin-bottom: 4px; }
.howto p { color: var(--text-2); font-size: .92rem; }
.howto p + p { margin-top: 6px; }
.hn { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-2); color: #fff; display: grid; place-items: center; font-weight: 800; }
.legend p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.legend p + p { margin-top: 10px; }
.iso-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.iso-legend > span { display: grid; justify-items: center; font-size: .8rem; }
.iso-legend small { color: var(--text-3); }
.install-cta { margin: 6px 0 14px; min-height: 54px; font-size: 1.05rem; }
.install-grid { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .install-grid { grid-template-columns: 1fr 1fr; } }
.install-grid .card + .card { margin-top: 0; }
.os { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.os-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.os-ico svg { width: 20px; height: 20px; }
.steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: .93rem; }
.ui-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ui-key svg { width: 14px; height: 14px; }
.install-tips { margin-top: 12px; }
.install-tips h2 { font-size: 1.05rem; margin-bottom: 6px; }
.install-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .92rem; color: var(--text-2); }
.help-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

.rrow-brand { align-items: center; gap: 6px; }
.rrow-series { font-size: .72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }

/* ============================================================ v1.3 — formulário compacto */
.form-card { padding: 4px; }
.form-card .step { padding: 12px 10px 14px; }
.form-card .step-head { margin-bottom: 10px; align-items: center; }
.form-card .step-head h2 { font-size: 1.08rem; }
.form-card .step-head p { font-size: .82rem; }
.form-card .step-num { width: 28px; height: 28px; border-radius: 8px; font-size: .9rem; }
.form-card .field-label, .form-card .field > label { font-size: .88rem; margin-bottom: 6px; }
.form-card .step .field + .field, .form-card .step .field + .switch, .form-card .step .switch + .grid-2, .form-card .step .grid-2 + .field { margin-top: 12px; }
.form-card .field { gap: 4px; }
.form-card .stepper { --tap: 44px; }
.form-card .stepper input { font-size: 1.15rem; height: 44px; }
.form-card .quick { margin-top: 6px; gap: 5px; }
.form-card .qchip { min-height: 36px; font-size: .86rem; border-radius: 9px; }
.form-card .quick-lg .qchip { min-height: 38px; }
.form-card .switch { min-height: 40px; }
.form-card .switch.compact { margin-top: 10px; }
.form-card .switch input { width: 46px; height: 26px; }
.form-card .switch input::after { width: 20px; height: 20px; }
.form-card .switch input:checked::after { transform: translateX(20px); }

/* passo 1 */
.form-card .tiles { gap: 6px; }
.form-card [data-step-id="1"] .tile { min-height: 64px; padding: 6px 4px; gap: 3px; font-size: .84rem; border-width: 1.5px; }
.sub-choice { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mode { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .86rem; cursor: pointer; color: var(--text); }
.mode svg { width: 16px; height: 16px; }
.mode.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.form-card .hint-box { margin-top: 10px; padding: 8px 12px; font-size: .84rem; }
.form-card .hint-box small { display: inline; margin-left: 4px; }

/* fluxo */
.form-card .flowbox { margin-top: 12px; padding: 10px 14px; gap: 6px; }
.form-card .flowbox .big { font-size: 1.6rem; }
.form-card .iso-sugg-list { margin-top: 2px; gap: 6px; }

/* passo 3 opcional */
.step-opt > summary { list-style: none; cursor: pointer; margin-bottom: 0 !important; }
.step-opt > summary::-webkit-details-marker { display: none; }
.step-opt > summary > div { flex: 1; min-width: 0; }
.step-opt > summary p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-opt[open] > summary { margin-bottom: 10px !important; }
.opt-chev { width: 22px !important; height: 22px !important; color: var(--text-3); transition: transform .15s; flex: none; }
.step-opt[open] .opt-chev { transform: rotate(90deg); }
.opt-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--surface); border: 1px solid var(--form-line); padding: 1px 6px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
.opt-grid { display: grid; gap: 14px; }
.opt-block { min-width: 0; }
.tiles-compact .tile { min-height: 58px; padding: 6px 4px; font-size: .8rem; gap: 2px; border-width: 1.5px; }
.tiles-compact .tile small { display: none; }
.tiles-compact .tile-art { min-height: 66px; }
.tiles-compact .all-art { height: 30px; }
.tiles-compact .tile-brand { min-height: 48px; padding: 6px; }
.tiles-compact .tile-brand .brand-md img { max-height: 20px; }
.tiles-4.tiles-compact { grid-template-columns: repeat(4, 1fr); }
.dt-row { margin-top: 10px; }
.dt-line { font-size: .84rem; margin-top: 6px; color: var(--text-2); }
.form-card .mini-fold { margin-top: 10px; }
.form-card .mini-fold > summary { min-height: 42px; font-size: .9rem; }

/* desktop: 1 e 2 lado a lado; 3 em faixa horizontal */
@media (min-width: 1100px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .form-card [data-step-id="3"] { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px dashed var(--form-line); }
  .form-card .step + .step { border-left: 1px dashed var(--form-line); }
  .opt-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 20px; }
  .form-card [data-step-id="1"] .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .form-card [data-step-id="2"] .grid-2 { gap: 10px; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .opt-grid .opt-block:first-child { grid-column: 1 / -1; }
}

.col-a { min-width: 0; }
.flow-d { display: none; }
@media (min-width: 1100px) {
  .flow-d { display: block; padding: 0 10px 12px; }
  .flow-m { display: none; }
  .form-card .col-a + .step { border-left: 1px dashed var(--form-line); }
}
.form-grid { grid-template-columns: minmax(0, 1fr); }
.form-grid > *, .step-opt > summary { min-width: 0; }
@media (min-width: 1100px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

/* catálogo: grupos por série em sanfona */
.sgroups { display: grid; gap: 10px; }
.sgroup { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.sgroup[open] { border-color: var(--brand-2); }
.sgroup > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; min-height: 72px; }
.sgroup > summary::-webkit-details-marker { display: none; }
.sgroup[open] > summary { background: var(--brand-soft); border-bottom: 1.5px solid var(--brand-2); }
.sg-art { flex: none; width: 44px; display: grid; place-items: center; }
.sg-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sg-brand { display: flex; }
.sg-name { font-size: 1.3rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.sg-type { font-size: .84rem; color: var(--text-2); }
.sg-isos { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.sg-isos i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); border: 1px solid rgb(0 0 0 / 25%); }
.sg-count { flex: none; display: grid; justify-items: center; font-weight: 800; font-size: 1.05rem; line-height: 1; color: var(--brand); }
.sg-count small { font-size: .66rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; margin-top: 2px; }
.sg-chev { width: 22px; height: 22px; color: var(--text-3); flex: none; transition: transform .15s; }
.sgroup[open] .sg-chev { transform: rotate(90deg); color: var(--brand-2); }
.sg-list { padding: 4px 0 0; }
.crow.sub { min-height: 56px; padding: 6px 14px 6px 24px; border-left: 3px solid transparent; }
.crow.sub:hover { border-left-color: var(--brand-2); }
.crow.sub b { font-size: .98rem; font-weight: 700; }
.sg-more { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; font-weight: 750; font-size: .88rem; color: var(--brand-2); text-decoration: none; border-top: 1px solid var(--line); }
.sg-more svg { width: 16px; height: 16px; }

/* v1.3.1 — desktop em faixas horizontais (sem colunas de alturas diferentes) */
.op-grid { display: grid; gap: 12px; }
.op-grid .field + .field { margin-top: 12px; }
@media (min-width: 1100px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .form-card .step + .step { border-left: 0 !important; border-top: 1px dashed var(--form-line); }
  .form-card [data-step-id="1"] .tiles-3 { grid-template-columns: repeat(6, 1fr); }
  .form-card [data-step-id="1"] .tile { min-height: 60px; }
  .form-card [data-step-id="1"] { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
  .form-card [data-step-id="1"] > .step-head { margin: 0; }
  .form-card [data-step-id="1"] > .tiles { grid-column: 2; }
  .form-card [data-step-id="1"] > .sub-choice, .form-card [data-step-id="1"] > .hint-box { grid-column: 2; }
  .op-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
  .flow-m { display: block !important; }
  .form-card .flowbox { grid-template-columns: auto 1fr; align-items: center; column-gap: 28px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .op-grid { grid-template-columns: 1fr 1fr; }
  .op-grid .op-col:last-child { grid-column: 1 / -1; }
}

/* v1.3.2 — quadro de vazão na coluna do espaçamento (desktop) e alinhamento mín./máx. */
.op-grid .grid-2 > .field + .field { margin-top: 0; }
.op-grid .grid-2 { align-items: end; }
@media (min-width: 1100px) {
  .flow-m { display: none !important; }
  .op-col .flow-d { display: block; padding: 0; }
  .op-col .flowbox { grid-template-columns: 1fr !important; margin-top: 12px; }
  .op-col .flowbox .big { font-size: 1.5rem; }
}

.form-card .step .grid-2 > .field + .field { margin-top: 0; }

/* ============================================================ v1.4 — menu horizontal, hero animado, rodapé */

/* topo: menu horizontal no desktop; sem barra lateral */
.topnav { display: none; }
@media (min-width: 900px) {
  .shell { display: block !important; }
  .nav { display: none !important; }
  .appbar { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; padding: 0 24px; }
  .topnav { display: flex; align-items: stretch; justify-content: center; gap: 2px; height: 100%; }
  .topnav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: rgb(255 255 255 / 82%); text-decoration: none; font-weight: 650; font-size: .93rem; white-space: nowrap; }
  .topnav a:hover { color: #fff; background: rgb(255 255 255 / 7%); }
  .topnav a[aria-current="page"] { color: #fff; }
  .topnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
  .topnav .badge { position: static; margin-left: 2px; }
  main { max-width: 1280px; margin: 0 auto; padding: 22px 28px 40px; }
  .app-footer, .site-footer { grid-column: auto !important; }
  .to-result { left: 50% !important; bottom: 24px; }
  .stepbar { left: 0 !important; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .topnav a { padding: 0 9px; font-size: .86rem; }
  .support-btn span { display: none; }
}

/* hero */
.hero-band { position: relative; overflow: hidden; border-radius: 22px; min-height: 230px; display: flex; align-items: center; margin: 0 0 18px; color: #fff; isolation: isolate; box-shadow: 0 10px 30px rgb(11 38 21 / 22%); background: #14532d; }
.hero-scene, .hero-photos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 30 16 / 88%) 0%, rgb(8 30 16 / 62%) 45%, rgb(8 30 16 / 8%) 100%); }
.hero-content { position: relative; padding: 22px 22px 20px; max-width: 640px; }
.hero-eyebrow { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #2b1d00; background: var(--accent); padding: 4px 10px; border-radius: 99px; }
.hero-band h1 { font-size: clamp(1.55rem, 4.2vw, 2.3rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.08; margin-top: 10px; text-wrap: balance; }
.hero-lead { margin-top: 8px; font-size: clamp(.92rem, 2vw, 1.04rem); color: rgb(255 255 255 / 88%); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: #2b1d00; font-weight: 850; text-decoration: none; box-shadow: 0 6px 18px rgb(232 163 23 / 35%); transition: transform .12s; }
.hero-cta:hover { transform: translateY(-1px); background: #f5b83d; }
.hero-cta svg { width: 20px; height: 20px; }
.hero-ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgb(255 255 255 / 45%); color: #fff; font-weight: 700; text-decoration: none; backdrop-filter: blur(4px); }
.hero-ghost svg { width: 18px; height: 18px; transform: rotate(180deg); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; font-size: .82rem; font-weight: 650; color: rgb(255 255 255 / 85%); }
.hero-points li { display: inline-flex; align-items: center; gap: 4px; }
.hero-points svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 560px) {
  .hero-band { min-height: 0; border-radius: 18px; margin: -4px 0 14px; }
  .hero-content { padding: 18px 16px 16px; }
  .hero-shade { background: linear-gradient(180deg, rgb(8 30 16 / 55%) 0%, rgb(8 30 16 / 88%) 100%); }
  .hero-points { display: none; }
  .hero-cta, .hero-ghost { min-height: 44px; }
}

/* cena animada */
.hs-boom { fill: #d9dfd6; }
.hs-fan { fill: url(#hsFan); transform-box: fill-box; transform-origin: 50% 0; animation: hsFan 2.6s ease-in-out infinite alternate; }
.hs-drop { fill: #e6f5ff; opacity: 0; animation: hsDrop 1.5s linear infinite; }
.hs-row { stroke: #8bc34a; stroke-opacity: .32; stroke-width: 2.5; stroke-dasharray: 14 22; animation: hsRow 1.6s linear infinite; }
.hs-zoom { transform-origin: 50% 40%; animation: hsZoom 22s ease-in-out infinite alternate; }
.hs-sweep { animation: hsSweep 7s ease-in-out infinite; }
@keyframes hsFan { from { opacity: .55; transform: scaleX(.88); } to { opacity: 1; transform: scaleX(1.05); } }
@keyframes hsDrop { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .95; } 100% { opacity: 0; transform: translateY(130px); } }
@keyframes hsRow { to { stroke-dashoffset: -36; } }
@keyframes hsZoom { from { transform: scale(1); } to { transform: scale(1.07) translateY(-4px); } }
@keyframes hsSweep { 0%, 15% { transform: translateX(0); } 70%, 100% { transform: translateX(1700px); } }
.hero-photos span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: hsPhoto calc(var(--n) * 6s) infinite; }
@keyframes hsPhoto { 0% { opacity: 0; transform: scale(1); } 8%, 30% { opacity: 1; } 40%, 100% { opacity: 0; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hs-fan, .hs-drop, .hs-row, .hs-zoom, .hs-sweep, .hero-photos span { animation: none !important; } .hs-drop { opacity: .6; } .hero-photos span:first-child { opacity: 1; } }

/* título do formulário (Limpar) */
.form-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 8px; scroll-margin-top: calc(var(--appbar-h) + 10px); }
.form-top h2 { font-size: 1.05rem; font-weight: 800; }

/* rodapé */
.app-footer { display: none !important; }
.site-footer { position: relative; margin-top: 40px; color: #d8e8dc; background: radial-gradient(1200px 300px at 85% 0%, rgb(232 163 23 / 14%), transparent 60%), linear-gradient(160deg, #0b2615 0%, #12401f 55%, #0e301a 100%); padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
.sf-wave { position: absolute; top: -47px; left: 0; width: 100%; height: 48px; fill: #0b2615; }
.sf-inner { max-width: 1280px; margin: 0 auto; padding: 34px 20px 10px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sf-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sf-inner { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; padding: 44px 28px 18px; } }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.sf-logo svg { width: 34px; height: 34px; color: var(--accent); }
.sf-logo b { color: var(--accent); font-weight: 850; }
.sf-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.55; color: #b9d0c0; max-width: 360px; }
.sf-badges { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-badges li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 12%); font-size: .78rem; font-weight: 700; color: #e9f3ec; }
.sf-badges svg { width: 14px; height: 14px; color: var(--accent); }
.sf-col { display: flex; flex-direction: column; gap: 4px; }
.sf-col h2 { font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sf-col a, .sf-col button { color: #d8e8dc; text-decoration: none; font-size: .93rem; padding: 5px 0; background: none; border: 0; text-align: left; cursor: pointer; width: fit-content; position: relative; }
.sf-col a:hover, .sf-col button:hover { color: #fff; }
.sf-col a::after, .sf-col button::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--accent); transition: width .2s; }
.sf-col a:hover::after, .sf-col button:hover::after { width: 100%; }
.sf-support p { font-size: .88rem; color: #b9d0c0; line-height: 1.5; }
.sf-cta { margin-top: 10px; display: inline-flex !important; align-items: center; gap: 8px; padding: 11px 18px !important; border-radius: 12px; background: var(--accent) !important; color: #2b1d00 !important; font-weight: 850; box-shadow: 0 6px 18px rgb(232 163 23 / 25%); }
.sf-cta::after { display: none; }
.sf-cta svg { width: 18px; height: 18px; }
.sf-bottom { max-width: 1280px; margin: 0 auto; padding: 16px 20px 22px; border-top: 1px solid rgb(255 255 255 / 10%); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .84rem; color: #b9d0c0; }
.sf-bottom b { color: #fff; }
.sf-bottom a { color: var(--accent); font-weight: 700; text-decoration: none; }
.sf-bottom p { width: 100%; font-size: .74rem; color: #8fae98; margin-top: 4px; line-height: 1.5; }
.sf-sep { color: #5f8a6c; }
@media (min-width: 900px) { .site-footer { padding-bottom: 0; } .sf-bottom { padding: 16px 28px 26px; } }
:root[data-theme="sun"] .site-footer { background: #003d1c; }

.nav { grid-template-columns: repeat(5, 1fr); }
.nav a { font-size: .68rem; }
@media (max-width: 560px) {
  .hero-shade { background: linear-gradient(180deg, rgb(8 30 16 / 25%) 0%, rgb(8 30 16 / 70%) 45%, rgb(8 30 16 / 90%) 100%); }
  .hero-content { padding-top: 64px; }
}
@media (max-width: 639px) {
  .sf-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .sf-brand, .sf-support { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-eyebrow { display: none; }
  .hero-content { padding-top: 84px; }
  .hero-band h1 { margin-top: 0; }
}

/* ============================================================ v1.5 — guia animado de instalação */
.os-tabs { margin: 6px 0 12px; max-width: 420px; }
.os-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.os-tabs svg { width: 16px; height: 16px; }
.idemo-card { padding: 18px; }
.idemo { display: grid; gap: 20px; justify-items: center; }
@media (min-width: 760px) { .idemo { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 34px; } }
.idemo-side { width: 100%; max-width: 520px; }
.isteps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.isteps button { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); transition: border-color .2s, background .2s; }
.isteps b { display: block; font-size: .95rem; }
.isteps small { display: block; color: var(--text-2); font-size: .84rem; margin-top: 2px; line-height: 1.4; }
.isn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--surface-2); color: var(--text-2); border: 1.5px solid var(--line-strong); }
.isteps li.on button { border-color: var(--brand-2); background: var(--brand-soft); }
.isteps li.on .isn { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.isteps li.done .isn { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.idemo-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.idemo-ctrl .btn svg { width: 16px; height: 16px; }
.iprog { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.iprog i { display: block; height: 100%; width: 0; background: var(--brand-2); border-radius: 99px; }

/* moldura do celular */
.phone { position: relative; width: 262px; height: 548px; border-radius: 44px; background: #0d0f10; padding: 11px; box-shadow: 0 0 0 2px #2a2d30, 0 22px 50px rgb(0 0 0 / 30%); flex: none; }
.phone.android { border-radius: 34px; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 6; }
.phone.android .phone-notch { width: 11px; height: 11px; top: 20px; border-radius: 50%; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", sans-serif; color: #111; }
.phone.android .phone-screen { border-radius: 26px; }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: #fff; display: flex; flex-direction: column; }
.scr.on { opacity: 1; z-index: 1; }
.scr svg { width: 20px; height: 20px; }
.scr svg.xs { width: 11px; height: 11px; }
.sb { height: 40px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 6px 26px; font-size: 12px; font-weight: 700; color: #111; }
.sb.and { height: 32px; align-items: center; padding: 0 16px; font-weight: 600; }
.sb.light { color: #fff; }
.sb-r { font-size: 9px; letter-spacing: 1px; }

/* página em miniatura */
.mp { flex: 1; overflow: hidden; background: #f4f6f3; font-size: 10px; }
.mp-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: #14532d; color: #fff; }
.mp-bar img { width: 16px; height: 16px; border-radius: 4px; }
.mp-bar b { font-size: 12px; } .mp-bar i { color: #e8a317; font-style: normal; }
.mp-hero { margin: 8px; border-radius: 10px; padding: 10px; background: linear-gradient(135deg, #0b3a1e, #1f7a43); color: #fff; display: grid; gap: 5px; }
.mp-hero span { width: 60%; height: 6px; border-radius: 4px; background: #e8a317; }
.mp-hero strong { font-size: 12px; line-height: 1.15; }
.mp-hero em { justify-self: start; font-style: normal; font-weight: 800; color: #2b1d00; background: #e8a317; padding: 4px 8px; border-radius: 6px; }
.mp-card { margin: 0 8px 8px; padding: 8px; border-radius: 10px; background: #e6f0e4; }
.mp-card p { font-weight: 800; margin-bottom: 6px; }
.mp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mp-tiles i { height: 22px; border-radius: 6px; background: #fff; border: 1px solid #d9dfd6; }
.mp-line { height: 18px; border-radius: 6px; background: #fff; border: 1px solid #d9dfd6; }
.mp-line.s { width: 60%; margin-top: 5px; }
.mp-standalone .mp-bar { height: 34px; }

/* Safari (iOS) */
.ios-urlbar { flex: none; display: flex; align-items: center; gap: 8px; margin: 6px 10px 0; height: 34px; padding: 0 10px; border-radius: 11px; background: #eeeef0; font-size: 12px; }
.ios-aa { font-weight: 700; font-size: 11px; }
.ios-url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ios-rel { color: #555; }
.ios-toolbar { flex: none; display: flex; justify-content: space-around; align-items: center; height: 44px; padding-bottom: 8px; color: #0a7aff; }
.ios-toolbar span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.dim { position: absolute; inset: 0; background: rgb(0 0 0 / 35%); }
.ios-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #f2f2f7; border-radius: 14px 14px 0 0; padding: 10px 10px 20px; transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); font-size: 12px; }
.scr.on .ios-sheet { transform: translateY(0); }
.ios-sheet-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; border-bottom: 1px solid #ddd; }
.ios-sheet-head img { width: 34px; height: 34px; border-radius: 8px; }
.ios-sheet-head div { flex: 1; } .ios-sheet-head small { display: block; color: #888; font-size: 10px; }
.ios-sheet-head .x { width: 22px; height: 22px; border-radius: 50%; background: #e3e3e8; display: grid; place-items: center; font-size: 10px; color: #666; }
.ios-share-row { display: flex; justify-content: space-between; padding: 10px 4px; font-size: 9px; color: #444; }
.ios-share-row span { display: grid; justify-items: center; gap: 4px; }
.ios-share-row i { width: 38px; height: 38px; border-radius: 50%; background: var(--c); }
.ios-actions { background: #fff; border-radius: 10px; overflow: hidden; }
.ios-act { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid #ececf0; font-size: 12px; }
.ios-act:last-child { border-bottom: 0; }
.ios-act svg { width: 17px; height: 17px; }
.ios-add { flex: 1; background: #f2f2f7; display: flex; flex-direction: column; font-size: 12px; }
.ios-add-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 12px; font-size: 11.5px; }
.ios-add-nav b { font-size: 12px; }
.blue { color: #0a7aff; } .strong { font-weight: 700; }
.t-add { padding: 4px 6px; border-radius: 6px; }
.ios-add-card { display: flex; gap: 10px; align-items: center; margin: 0 12px; padding: 10px; background: #fff; border-radius: 10px; }
.ios-add-card img { width: 46px; height: 46px; border-radius: 11px; }
.ios-name { font-size: 13px; font-weight: 600; border-bottom: 1px solid #e5e5ea; padding-bottom: 4px; }
.ios-add-card small { color: #8e8e93; font-size: 9.5px; }
.caret { display: inline-block; width: 1.5px; height: 14px; background: #0a7aff; margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ios-add-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 12px 0; padding: 10px; background: #fff; border-radius: 10px; }
.ios-toggle { width: 38px; height: 22px; border-radius: 99px; background: #34c759; position: relative; }
.ios-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; }
.ios-add-note { margin: 8px 16px; font-size: 9.5px; color: #8e8e93; }
.ios-kb { margin-top: auto; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 8px 4px 22px; background: #d1d3d9; }
.ios-kb i { height: 28px; border-radius: 5px; background: #fff; }

/* Chrome (Android) */
.and-urlbar { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 10px; background: #fff; border-bottom: 1px solid #eee; font-size: 12px; color: #444; }
.and-url { flex: 1; display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 99px; background: #f1f3f4; color: #202124; }
.and-tabs { width: 18px; height: 18px; border: 2px solid #444; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.t-menu { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.and-nav { flex: none; height: 20px; display: grid; place-items: center; background: #fff; }
.and-nav i { width: 90px; height: 4px; border-radius: 4px; background: #222; }
.and-nav.light { background: transparent; position: absolute; bottom: 0; left: 0; right: 0; }
.and-nav.light i { background: #fff; }
.and-menu { position: absolute; top: 74px; right: 6px; width: 188px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / 28%); padding: 4px 0; font-size: 12px; transform-origin: top right; transform: scale(.6); opacity: 0; transition: transform .25s, opacity .25s; }
.scr.on .and-menu { transform: scale(1); opacity: 1; }
.and-menu-top { display: flex; justify-content: space-around; padding: 6px 4px 8px; border-bottom: 1px solid #eee; color: #444; }
.and-menu-top svg { width: 17px; height: 17px; }
.and-mi { display: flex; align-items: center; gap: 12px; padding: 9px 14px; color: #202124; }
.and-mi svg { width: 17px; height: 17px; color: #555; }
.and-dialog { position: absolute; left: 18px; right: 18px; top: 34%; background: #fff; border-radius: 22px; padding: 18px 18px 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 30%); font-size: 12px; transform: scale(.9); opacity: 0; transition: transform .3s, opacity .3s; }
.scr.on .and-dialog { transform: scale(1); opacity: 1; }
.and-dialog > b { font-size: 16px; font-weight: 500; }
.and-dialog-app { display: flex; gap: 10px; align-items: center; margin: 14px 0 16px; }
.and-dialog-app img { width: 40px; height: 40px; border-radius: 50%; }
.and-dialog-app small { display: block; color: #666; }
.and-dialog-btns { display: flex; justify-content: flex-end; gap: 6px; color: #1a73e8; font-weight: 600; }
.and-dialog-btns span { padding: 8px 12px; border-radius: 99px; }

/* tela inicial */
.home { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 14px 10px; }
.home.ios { background: linear-gradient(160deg, #2c5a8a 0%, #6b4a8a 50%, #c96a5a 100%); }
.home.and { background: linear-gradient(160deg, #1b4332 0%, #2d6a4f 50%, #95d5b2 100%); padding-bottom: 26px; }
.scr[data-scene="home"] { background: #000; }
.scr[data-scene="home"] .sb { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding-top: 34px; }
.hs-app { display: grid; justify-items: center; gap: 3px; }
.hs-app i { width: 44px; height: 44px; border-radius: 11px; background: var(--c); opacity: .9; }
.home.and .hs-app i { border-radius: 50%; }
.hs-app small { font-size: 8.5px; color: #fff; text-shadow: 0 1px 2px #0008; }
.hs-app img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 8px #0005; }
.home.and .hs-app img { border-radius: 50%; }
.sp-new { transform: scale(0); }
.scr.on .sp-new { animation: popIn .6s .25s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes popIn { to { transform: scale(1); } }
.home-dock { display: flex; justify-content: space-around; padding: 8px; border-radius: 22px; background: rgb(255 255 255 / 25%); }
.home-dock i { width: 40px; height: 40px; border-radius: 10px; background: var(--c); }
.home.and .home-dock { background: transparent; } .home.and .home-dock i { border-radius: 50%; }
.done-badge { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 99px; background: #1f7a43; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 4px 14px #0004; animation: popIn .5s .2s both; }
.done-badge svg { width: 12px !important; height: 12px !important; }

/* destaque do alvo e dedo */
.hl { position: relative; z-index: 3; box-shadow: 0 0 0 3px #e8a317, 0 0 0 7px rgb(232 163 23 / 30%); border-radius: 8px; background-color: rgb(232 163 23 / 14%); transition: box-shadow .2s; }
.tap { position: absolute; z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(255 255 255 / 55%); border: 2.5px solid rgb(20 83 45 / 85%); box-shadow: 0 3px 10px rgb(0 0 0 / 35%); opacity: 0; transform: scale(1.4); transition: opacity .25s, transform .25s; pointer-events: none; }
.tap.show { opacity: 1; transform: scale(1); }
.tap.press { transform: scale(.78); background: rgb(232 163 23 / 70%); }
.tap.press::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #e8a317; animation: ripple .7s ease-out forwards; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ios-sheet, .and-menu, .and-dialog { transition: none; } .sp-new { transform: none; } .scr.on .sp-new, .done-badge { animation: none; } }

.done-badge { font-size: 10.5px; max-width: calc(100% - 24px); }

.done-badge { animation: badgeIn .5s .2s both; }
@keyframes badgeIn { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }

/* legenda do passo acima do celular (telas pequenas) */
.icap { display: flex; gap: 10px; align-items: flex-start; width: 100%; max-width: 360px; padding: 10px 12px; border-radius: 14px; background: var(--brand-soft); border: 1.5px solid var(--brand-2); min-height: 74px; }
.icap .isn { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.icap b { display: block; font-size: .98rem; }
.icap small { display: block; color: var(--text-2); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
@media (min-width: 760px) { .icap { display: none; } .idemo { grid-template-columns: auto 1fr; } }
@media (max-width: 759px) { .isteps { display: none; } .idemo-side { max-width: 360px; } }

/* Versão Google Play: sem compra de assinatura (política de pagamentos da loja) */
.is-play [data-action="support"], .is-play [data-pf-assinar], .is-play .sf-support, .is-play #assinatura, .is-play [data-gratis] { display: none !important; }
[data-pf-assinar][hidden] { display: none !important; }
