/* Manual dos Eletrodomésticos — a service-manual look: enamel white, steel ink, teal accent, amber for "call a technician",
   green for "you can fix it". Self-hosted Archivo (display, variable width) + Source Sans 3 (text). */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #f3f5f6; --panel: #ffffff; --ink: #18232c; --muted: #566573; --line: #d6dde2; --soft: #e9eef1;
  --accent: #0b6f7a; --accent-2: #0f8f9c; --accent-ink: #ffffff; --accent-soft: #e2f2f3;
  --amber: #a85d00; --amber-bg: #fff3df; --amber-line: #f1c98a;
  --good: #1d6f39; --good-bg: #e6f4ea; --info: #3b5ba5; --info-bg: #e9eefb; --crit: #a33a2a;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif; --text: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --r: 8px; --shadow: 0 1px 2px rgba(16, 30, 40, .06), 0 4px 14px rgba(16, 30, 40, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171b; --panel: #1a2126; --ink: #e7ecef; --muted: #a2afba; --line: #34404a; --soft: #222b31;
    --accent: #4bb7c2; --accent-2: #2a9aa6; --accent-ink: #0d1a1c; --accent-soft: #173033;
    --amber: #f1aa4c; --amber-bg: #33240f; --amber-line: #6b4a1c; --good: #73d08f; --good-bg: #17301f; --info: #9db4f0; --info-bg: #1c2540; --crit: #f08a79;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12171b; --panel: #1a2126; --ink: #e7ecef; --muted: #a2afba; --line: #34404a; --soft: #222b31;
  --accent: #4bb7c2; --accent-2: #2a9aa6; --accent-ink: #0d1a1c; --accent-soft: #173033;
  --amber: #f1aa4c; --amber-bg: #33240f; --amber-line: #6b4a1c; --good: #73d08f; --good-bg: #17301f; --info: #9db4f0; --info-bg: #1c2540; --crit: #f08a79;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-stretch: 88%; font-weight: 750; margin: 18px 0 10px; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 2.6vw, 27px); font-stretch: 90%; font-weight: 700; margin: 34px 0 10px; }
h3 { font-size: 18px; font-weight: 650; margin: 0; }
p, li { max-width: 74ch; }
.lede { font-size: 19px; color: var(--ink); max-width: 68ch; margin: 0 0 18px; }
.note { color: var(--muted); font-size: 14.5px; max-width: 86ch; }
.note.warn { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--r); padding: 10px 14px; color: var(--ink); }
small { display: block; color: var(--muted); font-size: 13px; }

/* header + nav */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .word { font-family: var(--display); font-stretch: 85%; font-size: 17px; line-height: 1; letter-spacing: -.005em; }
.logo .word span { font-weight: 500; color: var(--muted); }
.logo .word b { font-weight: 750; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 15px; font-weight: 550; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-color: var(--accent); }
.nav a.nav-cta { background: var(--amber); color: #fff; padding: 7px 12px; border-radius: 999px; border: 0; }
.nav a.nav-cta:hover { filter: brightness(1.07); color: #fff; }
@media (max-width: 760px) { .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .nav a { white-space: nowrap; } }

.crumbs { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

/* hero (home) */
.hero { background: linear-gradient(180deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.hero h1 { max-width: 18ch; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.door { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.door h2 { margin: 0 0 8px; font-size: 21px; }
.door h2 a { color: var(--ink); text-decoration: none; }
.door ul { margin: 0 0 10px; padding-left: 18px; }
.door li { margin: 4px 0; }
.door .more { font-size: 14.5px; font-weight: 600; }

/* cards & chips */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 12px 0; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s; min-width: 0; }
.card:hover { border-color: var(--accent); }
.card b { display: block; font-family: var(--display); font-size: 17.5px; font-weight: 650; margin-bottom: 4px; color: var(--accent); }
.card span { display: block; font-size: 15px; color: var(--muted); }
.card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 26px; }
.brandcat h3 { margin-top: 14px; }

/* tables */
.tw { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--display); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; }
.cls { display: inline-block; min-width: 2.1em; text-align: center; font-family: var(--display); font-weight: 750; border-radius: 4px; padding: 0 5px; color: #fff; background: #7b8794; }
.cls-A { background: #1f8a3c; } .cls-B { background: #7cb342; } .cls-C { background: #e0a400; color: #1d1d1d; }
.cls-D { background: #ef7d00; } .cls-E, .cls-F { background: #d23a2a; }
.cls-A\+, .cls-A\+\+, .cls-A\+\+\+ { background: #146b2f; }

/* symptom pages */
.causes { list-style: none; counter-reset: c; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.causes li { counter-increment: c; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 52px; position: relative; max-width: none; }
.causes li::before { content: counter(c); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--ink); font: 700 14px/26px var(--display); text-align: center; }
.causes p { margin: 4px 0 0; color: var(--muted); }
.cause-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.who { font: 600 12px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.who-you { background: var(--good-bg); color: var(--good); }
.who-tech { background: var(--amber-bg); color: var(--amber); }
.who-both { background: var(--info-bg); color: var(--info); }
.who-info { background: var(--soft); color: var(--muted); }
.checks { background: var(--good-bg); border: 1px solid transparent; border-radius: var(--r); padding: 4px 20px 14px; margin: 26px 0; }
.checks h2 { margin-top: 16px; }
.checks ol { padding-left: 22px; }
.checks li { margin: 7px 0; }
.safety { font-size: 14.5px; background: var(--panel); border-left: 4px solid var(--crit); padding: 9px 12px; border-radius: 4px; max-width: none; }
.calltech { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--r); padding: 4px 20px 16px; margin: 26px 0; }
.calltech h2 { margin-top: 16px; }
.brandbox { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 4px 20px 12px; margin: 18px 0; }
.links { padding-left: 20px; }
.links li { margin: 5px 0; }

/* code pages */
.codehead { display: flex; gap: 16px; align-items: center; margin: 6px 0 14px; }
.codebig { font: 800 40px/1 var(--display); font-stretch: 80%; background: #10161a; color: #7cf3c7; padding: 12px 16px; border-radius: 8px; letter-spacing: .04em; min-width: 3.2em; text-align: center; box-shadow: inset 0 0 0 2px #2c3a43; }
.lookup { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.lookup label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 4px; }
.lookup-msg { width: 100%; margin: 0; font-size: 14.5px; color: var(--crit); }
.lookup-msg:empty { display: none; }

/* buttons, exits */
.btn { display: inline-block; font: 650 16px/1 var(--display); padding: 12px 16px; border-radius: 6px; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); color: var(--accent-ink); }
.btn-lead { background: var(--amber); color: #fff; }
.btn-lead:hover { color: #fff; }
.btn-buy { background: var(--good); color: #fff; font-size: 14px; padding: 8px 12px; }
.exits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 28px 0; }
.exit { display: block; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.exit b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 3px; }
.exit span { font-size: 14.5px; color: var(--muted); }
.exit-lead { border-top-color: var(--amber); } .exit-buy { border-top-color: var(--good); } .exit-keep { border-top-color: var(--accent); } .exit-decide { border-top-color: var(--info); }
.exit:hover { border-color: var(--accent); }
.offers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 2px; }

/* tariff picker & calculators */
.tariff, .calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.tariff label, .calc label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); min-width: 0; }
.tariff .note { width: 100%; margin: 2px 0 0; font-size: 13.5px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; width: 100%; }
.calc .tariff { border: 0; padding: 0; margin: 0; width: 100%; }
.calc label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 15.5px; }
.result { display: block; width: 100%; font-size: 18px; color: var(--ink); }
.result:empty { display: none; }
.result b { font-family: var(--display); font-size: 24px; }
.verdict { border-radius: var(--r); padding: 12px 16px; margin: 6px 0; }
.verdict.consertar { background: var(--good-bg); } .verdict.trocar { background: var(--amber-bg); } .verdict.empate { background: var(--info-bg); }
select, input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; max-width: 100%; }
select { max-width: 320px; }
input[type="number"] { width: 8em; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* lead form */
.leadwrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .leadwrap { grid-template-columns: 1fr; } }
.leadform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 18px; }
.leadform fieldset { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
.leadform legend { font: 700 17px var(--display); padding: 0; margin-bottom: 6px; }
.leadform label { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--muted); }
.leadform label.wide { grid-column: 1 / -1; }
.leadform small { display: inline; }
.leadform .consent { flex-direction: row; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 15px; color: var(--ink); background: var(--soft); padding: 10px 12px; border-radius: 6px; }
.leadform .consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.form-error { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 6px; padding: 8px 12px; color: var(--ink); }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.leadside { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px 10px; }
.leadside h2 { font-size: 20px; margin-top: 16px; }
.leadside li { margin: 6px 0; font-size: 15.5px; }

/* voltage confirm */
.confirm { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 16px; margin: 16px 0; }
.confirm button { margin-right: 8px; }

.updated { color: var(--muted); font-size: 14px; margin-top: 30px; }
.sources ul { font-size: 15px; }

/* footer */
.foot { margin-top: 56px; background: var(--panel); border-top: 1px solid var(--line); padding: 26px 0 36px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot p { font-size: 15px; color: var(--muted); }
.foot .fine { font-size: 13px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; align-content: start; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.suspect { color: var(--amber); }
.aviso { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; margin: 10px 0; }
.aviso h3 { margin: 4px 0 6px; }
td.v { font-size: 14px; white-space: nowrap; }
td.v-consertar { background: var(--good-bg); color: var(--good); }
td.v-trocar { background: var(--amber-bg); color: var(--amber); }
td.v-empate { background: var(--info-bg); color: var(--info); }

/* phone-width fixes */
fieldset { min-width: 0; }
.leadform fieldset { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.leadform input, .leadform select, .leadform textarea { width: 100%; }
.codehead { flex-wrap: wrap; }
.codehead > span { min-width: 0; flex: 1 1 200px; }
.who { white-space: normal; }
@media (max-width: 860px) { .leadwrap { grid-template-columns: minmax(0, 1fr); } }
.sources li, .note, .links li { overflow-wrap: anywhere; }
.chip { max-width: 100%; }
@media (max-width: 760px) { .nav .nav-cta { order: -1; } }
