/* =========================================================
   CurrencyForge — folha de estilo principal
   1. Tokens          6. Cards
   2. Base            7. Hero e home
   3. Layout          8. Comparador
   4. Componentes     9. Ranking, indicação, método
   5. Cabeçalho      10. Responsivo
   ========================================================= */

/* 1. Tokens ---------------------------------------------- */
:root {
    --paper: #fdf2f6;
    --paper-2: #f8e4ec;
    --surface: #fffafb;
    --ink: #14181d;
    --ink-2: #3c454f;
    --ink-3: #6b7683;
    --ink-4: #9aa4af;
    --line: #f0d4de;
    --line-2: #f6e3ea;

    --jade: #14a988;
    --jade-soft: #e3f6f0;
    --jade-ink: #0b6d58;
    --rose: #f2568f;
    --rose-soft: #fde8f0;
    --rose-ink: #b81f5c;
    --amber: #f0ac0b;
    --amber-soft: #fdf1d5;
    --amber-ink: #8a6100;

    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 22px;
    --shadow-s: 0 1px 2px rgba(20, 24, 29, .06), 0 2px 6px rgba(20, 24, 29, .04);
    --shadow: 0 4px 12px rgba(20, 24, 29, .06), 0 18px 40px -24px rgba(20, 24, 29, .22);
    --shadow-l: 0 30px 70px -40px rgba(20, 24, 29, .45), 0 6px 18px rgba(20, 24, 29, .06);

    --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --wrap: 1180px;
    --gutter: 24px;
}

/* 2. Base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* Precisa vir antes dos componentes: display próprio não pode vencer o atributo hidden */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--jade-ink); text-decoration-color: color-mix(in srgb, var(--jade) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-variation-settings: "SOFT" 20, "WONK" 1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--amber-soft); }

:focus-visible {
    outline: 2.5px solid var(--jade);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 99;
    background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; color: #fff; }

.sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.only-mobile { display: none; }

/* 3. Layout ---------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.wrap--wide { max-width: 1340px; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #f3f1ec; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
    font-family: var(--sans);
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--rose);
    display: block;
}
.section--ink .eyebrow { color: #b9c2bf; }

.head { max-width: 60ch; margin-bottom: 2.5rem; }
.head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

.head-row {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    align-items: flex-end; justify-content: space-between;
    margin-bottom: 2.2rem;
}
.head-row .head { margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.tabular { font-variant-numeric: tabular-nums; }

/* 4. Componentes ----------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--sans); font-size: .95rem; font-weight: 600;
    padding: .82rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--ink); color: #fff;
    text-decoration: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    box-shadow: var(--shadow-s);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(20, 24, 29, .5); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--jade); color: #fff; }
.btn--accent:hover { background: var(--jade-ink); }
.btn--rose { background: var(--rose); }
.btn--rose:hover { background: var(--rose-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-4); background: var(--surface); }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--light:hover { color: var(--ink); }
.btn--sm { padding: .55rem 1rem; font-size: .86rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8rem; font-weight: 600;
    background: var(--paper-2); color: var(--ink-2);
    border: 1px solid var(--line-2);
    text-decoration: none;
}
a.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip--jade { background: var(--jade-soft); color: var(--jade-ink); border-color: color-mix(in srgb, var(--jade) 25%, transparent); }
.chip--rose { background: var(--rose-soft); color: var(--rose-ink); border-color: color-mix(in srgb, var(--rose) 25%, transparent); }
.chip--amber { background: var(--amber-soft); color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.chip--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }

.tag-dismiss {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .5rem .35rem .8rem;
    border-radius: 999px; background: var(--ink); color: #fff;
    font-size: .8rem; font-weight: 600; text-decoration: none;
}
.tag-dismiss span { opacity: .6; font-weight: 400; }
.tag-dismiss:hover { color: #fff; background: var(--rose-ink); }

/* Escala de 1 a 5 */
.scale { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
.scale__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--line); display: block;
}
.scale__dot.is-on { background: var(--ink-3); }
.scale__dot.is-on.tone-jade { background: var(--jade); }
.scale__dot.is-on.tone-rose { background: var(--rose); }
.scale__dot.is-on.tone-amber { background: var(--amber); }

.scale-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.scale-row b { font-weight: 600; font-size: .9rem; }

.meter { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--jade); }

/* Lista de especificações com pontilhado */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li {
    display: flex; align-items: baseline; gap: .5rem;
    padding: .55rem 0; margin: 0;
    border-bottom: 1px dashed var(--line);
    font-size: .93rem;
}
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--ink-3); white-space: nowrap; }
.specs .v { margin-left: auto; text-align: right; font-weight: 600; }

.notice {
    border-left: 3px solid var(--amber);
    background: var(--amber-soft);
    padding: 1rem 1.2rem;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-size: .95rem;
    color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice--jade { border-color: var(--jade); background: var(--jade-soft); }

.empty {
    text-align: center; padding: 3.5rem 1.5rem;
    background: var(--surface); border: 1px dashed var(--line);
    border-radius: var(--radius-l);
}
.empty h3 { margin-bottom: .4rem; }

/* 5. Cabeçalho e rodapé ---------------------------------- */
.topbar {
    background: var(--ink); color: #cfd6d3;
    font-size: .82rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.topbar a:hover { color: var(--amber); border-color: var(--amber); }
.topbar__meta { display: flex; gap: 1.2rem; align-items: center; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; gap: 1.5rem;
    min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand__name {
    font-family: var(--serif); font-weight: 700; font-size: 1.32rem;
    letter-spacing: .06em; color: var(--ink); line-height: 1;
    text-transform: uppercase;
}
.brand__sub { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a {
    display: block; padding: .55rem .8rem; border-radius: 999px;
    font-size: .93rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-s); }

.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface);
    cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle i::before, .nav-toggle i::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }

.site-footer {
    background: var(--ink); color: #b6bfbc;
    padding: 3.5rem 0 2rem; margin-top: 4rem;
    font-size: .93rem;
}
.site-footer a { color: #eceae4; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { width: 150px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    font-size: .85rem; color: #8b9491;
}

.crumbs { font-size: .84rem; color: var(--ink-3); padding: 1.1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; gap: .4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--ink-4); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* 6. Cards ----------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 1.5rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--jade) 35%, var(--line)); }

/* Card de método */
.mcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 1.4rem 1.4rem 1.1rem;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--jade) 40%, var(--line)); }
.mcard__top { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.mcard__cat {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--jade-ink);
}
.mcard__cat.is-rose { color: var(--rose-ink); }
.mcard__cat.is-amber { color: var(--amber-ink); }
.mcard__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; margin: .15rem 0 0; line-height: 1.15; }
.mcard__title a { color: var(--ink); text-decoration: none; }
.mcard__title a:hover { color: var(--jade-ink); }
.mcard__obj { color: var(--ink-2); font-size: .94rem; margin: .5rem 0 1rem; }
.mcard__specs { margin-top: auto; }
.mcard__foot {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-2);
}
.mcard__link { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--jade-ink); }
.mcard__link:hover { color: var(--ink); }
.mcard__index {
    font-family: var(--serif); font-size: 1.5rem; color: var(--line);
    line-height: 1; margin-left: auto; font-weight: 700;
}

/* Botão de adicionar à comparação */
.pick {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 600; color: var(--ink-3);
    background: var(--paper-2); border: 1px solid var(--line);
    border-radius: 999px; padding: .35rem .7rem; cursor: pointer;
    transition: all .16s ease;
}
.pick:hover { color: var(--ink); border-color: var(--ink-4); }
.pick__box {
    width: 14px; height: 14px; border-radius: 4px;
    border: 1.5px solid var(--ink-4); display: grid; place-items: center;
}
.pick.is-on { background: var(--jade); border-color: var(--jade); color: #fff; }
.pick.is-on .pick__box { border-color: #fff; background: #fff; }
.pick.is-on .pick__box::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--jade); }

/* Card de categoria */
.ccard {
    display: block; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-l); padding: 1.6rem;
    position: relative; overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.ccard::after {
    content: ""; position: absolute; inset: auto -30% -45% auto;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--jade-soft), transparent 70%);
    opacity: .9; pointer-events: none;
}
.ccard.is-rose::after { background: radial-gradient(circle at 30% 30%, var(--rose-soft), transparent 70%); }
.ccard.is-amber::after { background: radial-gradient(circle at 30% 30%, var(--amber-soft), transparent 70%); }
.ccard__count { font-family: var(--serif); font-size: .95rem; color: var(--ink-3); }
.ccard h3 { margin: .5rem 0 .5rem; font-size: 1.35rem; }
.ccard p { margin: 0; color: var(--ink-2); font-size: .95rem; position: relative; z-index: 1; }
.ccard__q { margin-top: 1rem; font-size: .88rem; font-style: italic; color: var(--ink-3); position: relative; z-index: 1; }

/* Estatísticas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.stat { background: var(--surface); padding: 1.4rem 1.2rem; }
.stat b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; font-size: .84rem; color: var(--ink-3); margin-top: .45rem; }

/* 7. Hero e home ----------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(680px 420px at 88% -5%, color-mix(in srgb, var(--jade) 18%, transparent), transparent 70%),
        radial-gradient(560px 380px at 6% 8%, color-mix(in srgb, var(--rose) 14%, transparent), transparent 72%),
        radial-gradient(520px 340px at 60% 105%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%);
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .mark {
    position: relative; white-space: nowrap;
    background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--amber) 55%, transparent) 62%);
    padding: 0 .08em;
}
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; font-size: .87rem; color: var(--ink-3); }
.hero__meta b { color: var(--ink); font-weight: 650; }

/* Prévia do comparador dentro do hero */
.preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-l);
    padding: 1.35rem;
    position: relative;
}
.preview__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.preview__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.preview__grid {
    display: grid;
    grid-template-columns: minmax(6.4rem, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: .7rem;
    row-gap: 0;
    align-items: center;
}
.preview__col {
    background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: .75rem .85rem; margin-bottom: .85rem; text-align: center;
}
.preview__col h4 { font-family: var(--serif); font-size: 1.02rem; margin: 0 0 .15rem; }
.preview__col span { font-size: .76rem; color: var(--ink-3); }
.preview__grid .k,
.preview__grid .a,
.preview__grid .b {
    padding: .55rem 0;
    border-top: 1px dashed var(--line);
    font-size: .84rem;
}
.preview__grid .k { color: var(--ink-3); }
.preview__grid .a, .preview__grid .b { font-weight: 600; text-align: center; }
.preview__grid .a { color: var(--jade-ink); }
.preview__grid .b { color: var(--rose-ink); }
.preview__foot { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; }

/* Faixa de problemas */
.problem-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.problem {
    background: var(--surface); padding: 1.3rem 1.2rem; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: .35rem; transition: background .18s ease;
}
.problem:hover { background: var(--jade-soft); color: inherit; }
.problem b { font-size: .98rem; font-weight: 650; }
.problem span { font-size: .84rem; color: var(--ink-3); }
.problem em { font-size: .78rem; color: var(--jade-ink); font-style: normal; font-weight: 600; margin-top: .3rem; }

/* Duplas sugeridas */
.duel {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-l); padding: 1.1rem 1.3rem;
    text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.duel:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.duel__side { flex: 1; min-width: 0; }
.duel__side b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.duel__side span { font-size: .8rem; color: var(--ink-3); }
.duel__vs {
    font-family: var(--serif); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    background: var(--ink); color: #fff; border-radius: 999px;
    width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
}
.duel__side--b { text-align: right; }

/* Lista editorial numerada */
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.numbered > li {
    counter-increment: n;
    display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
    padding: 1.3rem 0; border-top: 1px solid var(--line); margin: 0;
}
.numbered > li::before {
    content: counter(n, decimal-leading-zero);
    font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
    color: var(--rose); line-height: 1;
}
.numbered h4 { margin-bottom: .35rem; }
.numbered p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* 8. Filtros --------------------------------------------- */
.filters {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-l); padding: 1.3rem 1.4rem;
    margin-bottom: 1.8rem;
}
.filters__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.filters__group label { display: block; font-size: .76rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.filters__foot { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }

select, input[type="text"], input[type="search"], input[type="email"], textarea {
    width: 100%; font-family: var(--sans); font-size: .94rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    padding: .6rem .8rem; appearance: none;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7683' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem;
}
select:hover, input:hover { border-color: var(--ink-4); }
textarea { min-height: 120px; resize: vertical; }

.searchbar { display: flex; gap: .6rem; }
.searchbar input { flex: 1; }

/* Sugestões instantâneas de busca (criadas pelo script) */
.suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; max-height: 340px; overflow-y: auto;
}
.suggest a {
    display: flex; align-items: baseline; gap: .7rem;
    padding: .7rem .95rem; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--line-2);
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover { background: var(--jade-soft); }
.suggest b { font-weight: 600; font-size: .93rem; }
.suggest span { margin-left: auto; font-size: .76rem; color: var(--ink-3); white-space: nowrap; }

.result-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.result-bar__count { font-size: .92rem; color: var(--ink-3); }
.result-bar__count b { color: var(--ink); }

/* 9. Comparador ------------------------------------------ */
.versus-section { padding-bottom: .4rem; }
.versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    margin: 2rem 0 0;
    position: relative;
}
.versus__slot {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem 1.3rem;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: var(--shadow-s);
}
.versus__slot:first-child { border-radius: var(--radius-l) 0 0 var(--radius-l); }
.versus__slot--b { border-radius: 0 var(--radius-l) var(--radius-l) 0; }
.versus__slot.is-on { background: #fff; }
.versus__slot--b.is-on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rose) 22%, transparent); }
.versus__slot.is-on:first-child { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jade) 28%, transparent); }
.versus__tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-4);
}
.versus__slot.is-on .versus__tag { color: var(--jade-ink); }
.versus__slot--b.is-on .versus__tag { color: var(--rose-ink); }
.versus select {
    font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
    background-color: var(--paper); border-radius: 12px; padding: .75rem 2.2rem .75rem 1rem;
}
.versus__obj { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; flex: 1; }
.versus__hint { margin: 0; color: var(--ink-4); font-size: .9rem; flex: 1; }
.versus__meta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.versus__meta a:not(.chip) { font-size: .84rem; font-weight: 600; color: var(--jade-ink); text-decoration: none; }
.versus__meta a:not(.chip):hover { text-decoration: underline; }
.versus__mid {
    width: 52px; height: 52px; margin: auto -26px;
    position: relative; z-index: 2;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: .95rem; font-weight: 700;
    background: var(--ink); color: #fff; border-radius: 50%;
    box-shadow: 0 10px 24px -12px rgba(20, 24, 29, .55);
    pointer-events: none;
}
.versus__go { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 1.1rem; }

.versus-tools {
    display: flex; flex-wrap: wrap; gap: .9rem 1.4rem;
    align-items: center; margin-top: 1.2rem; font-size: .88rem;
}
.versus-tools > a, .versus-tools > button {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ink-3); font: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.versus-tools > a:hover, .versus-tools > button:hover { color: var(--ink); }
.versus-add { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin-left: auto; }
.versus-add label { font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.versus-add select { width: auto; min-width: 200px; background-color: var(--surface); }

.versus-extras { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 0; font-size: .88rem; color: var(--ink-3); }
.versus-extras span {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: .2rem .35rem .2rem .75rem; color: var(--ink);
}
.versus-extras a { color: var(--ink-3); text-decoration: none; padding: 0 .35rem; font-size: 1.05rem; line-height: 1; }
.versus-extras a:hover { color: var(--rose-ink); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }

table.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
table.compare th, table.compare td {
    padding: .95rem 1.1rem; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--line-2); font-size: .93rem;
}
table.compare thead th {
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 2;
}
table.compare tbody th {
    font-weight: 600; color: var(--ink-3); font-size: .85rem;
    width: 210px; background: color-mix(in srgb, var(--paper) 60%, var(--surface));
}
table.compare tbody tr:hover td { background: color-mix(in srgb, var(--jade-soft) 45%, transparent); }
table.compare tr.is-diff th { color: var(--ink); }
table.compare tr.is-diff th::after { content: " •"; color: var(--rose); }

.ccol { min-width: 190px; }
.ccol__cat { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ccol__name { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; margin: .2rem 0 .5rem; display: block; color: var(--ink); text-decoration: none; }
.ccol__name:hover { color: var(--jade-ink); }
.ccol__drop { font-size: .78rem; color: var(--ink-3); text-decoration: none; }
.ccol__drop:hover { color: var(--rose-ink); }

.compare-add {
    display: grid; place-items: center; gap: .6rem;
    min-height: 120px; padding: 1rem;
    border: 1px dashed var(--line); border-radius: var(--radius);
    background: var(--paper); text-align: center;
}
.compare-add p { margin: 0; font-size: .85rem; color: var(--ink-3); }

/* 10. Ranking -------------------------------------------- */
.rank-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.rank-tabs a {
    padding: .5rem .9rem; border-radius: 999px; font-size: .87rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
}
.rank-tabs a:hover { border-color: var(--ink-4); color: var(--ink); }
.rank-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.rank-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.rank-table th, .rank-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.rank-table thead th { background: var(--paper-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rank-table tbody tr:hover { background: var(--paper); }
.rank-table__pos { font-family: var(--serif); font-weight: 700; color: var(--ink-4); width: 54px; }
.rank-table__name { font-weight: 600; }
.rank-table__name a { color: var(--ink); text-decoration: none; }
.rank-table__name a:hover { color: var(--jade-ink); }
.rank-table__name span { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-3); }
.rank-table tbody tr:first-child .rank-table__pos { color: var(--rose); }

/* 11. Ferramenta de indicação ---------------------------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2.4rem); }
.quiz__progress { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.8rem; font-size: .82rem; color: var(--ink-3); }
.quiz__progress .meter { flex: 1; }
.quiz__step { border-top: 1px solid var(--line); padding: 1.8rem 0 0; margin-top: 1.8rem; }
.quiz__step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.quiz__step h3 { margin-bottom: .3rem; }
.quiz__step > p { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.1rem; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
    display: block; cursor: pointer; height: 100%;
    background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: .9rem 1rem; transition: all .16s ease;
}
.opt label b { display: block; font-size: .96rem; font-weight: 650; margin-bottom: .15rem; }
.opt label span { font-size: .84rem; color: var(--ink-3); }
.opt label:hover { border-color: var(--ink-4); background: var(--surface); }
.opt input:checked + label { border-color: var(--jade); background: var(--jade-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 14%, transparent); }
.opt input:focus-visible + label { outline: 2.5px solid var(--jade); outline-offset: 2px; }

.quiz__foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* Resultado da indicação */
.match {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-l); padding: 1.4rem 1.5rem; margin-bottom: 1rem;
    position: relative; overflow: hidden;
}
.match--top { border-color: color-mix(in srgb, var(--jade) 45%, var(--line)); box-shadow: var(--shadow); }
.match--top::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--jade); }
.match__score { text-align: center; min-width: 76px; }
.match__score b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--jade-ink); }
.match__score span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.match__body h3 { margin-bottom: .25rem; font-size: 1.3rem; }
.match__body h3 a { color: var(--ink); text-decoration: none; }
.match__body h3 a:hover { color: var(--jade-ink); }
.match__why { list-style: none; margin: .7rem 0 0; padding: 0; }
.match__why li { font-size: .89rem; color: var(--ink-2); display: flex; gap: .5rem; margin-bottom: .3rem; }
.match__why li::before { content: "✓"; color: var(--jade); font-weight: 700; }
.match__why li.alert::before { content: "!"; color: var(--amber-ink); }
.match__side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }

/* 12. Página do método ----------------------------------- */
.mhero { padding: 2.5rem 0 0; position: relative; }
.mhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.mhero h1 { margin-bottom: .6rem; }
.mhero__tag { font-size: 1.15rem; color: var(--ink-2); font-family: var(--serif); font-style: italic; margin-bottom: 1.2rem; }
.mhero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-l); padding: 1.4rem;
    box-shadow: var(--shadow-s);
}
.panel--sticky { position: sticky; top: 94px; }
.panel h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; margin-bottom: 1rem; }
.panel + .panel { margin-top: 1.2rem; }

.article { max-width: 74ch; }
.article h2 { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article h3 { margin-top: 2rem; }
.article > p:first-of-type { font-size: 1.1rem; }
.article blockquote {
    margin: 1.8rem 0; padding: 1.2rem 1.5rem;
    background: var(--paper-2); border-left: 3px solid var(--rose);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--ink-2);
}
.article blockquote p:last-child { margin: 0; }

.toc { font-size: .9rem; }
.toc ol { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.toc li { counter-increment: t; margin-bottom: .1rem; }
.toc a {
    display: flex; gap: .6rem; padding: .4rem .1rem; text-decoration: none; color: var(--ink-2);
    border-bottom: 1px dashed var(--line-2);
}
.toc a::before { content: counter(t) "."; color: var(--ink-4); }
.toc a:hover { color: var(--jade-ink); }

.prosecons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 0; }
.pc { border-radius: var(--radius-l); padding: 1.3rem 1.4rem; border: 1px solid var(--line); background: var(--surface); }
.pc h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { font-size: .93rem; display: flex; gap: .6rem; margin-bottom: .6rem; color: var(--ink-2); }
.pc li::before { flex-shrink: 0; font-weight: 700; }
.pc--pro { background: color-mix(in srgb, var(--jade-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--jade) 22%, transparent); }
.pc--pro li::before { content: "+"; color: var(--jade-ink); }
.pc--con { background: color-mix(in srgb, var(--rose-soft) 45%, var(--surface)); border-color: color-mix(in srgb, var(--rose) 20%, transparent); }
.pc--con li::before { content: "−"; color: var(--rose-ink); }

.usecase { border-left: 2px solid var(--line); padding-left: 1.3rem; margin-bottom: 1.6rem; }
.usecase__who { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-ink); }
.usecase h4 { margin: .35rem 0 .4rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.usecase p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.faq details {
    border-bottom: 1px solid var(--line); padding: 1rem 0;
}
.faq summary {
    cursor: pointer; font-weight: 650; font-size: 1rem; list-style: none;
    display: flex; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--jade); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); font-size: .95rem; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.rel {
    display: block; padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease;
}
.rel:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.rel b { display: block; font-family: var(--serif); font-size: 1.06rem; font-weight: 600; margin-bottom: .25rem; }
.rel span { font-size: .86rem; color: var(--ink-3); }
.rel em { display: block; margin-top: .6rem; font-size: .78rem; font-style: normal; font-weight: 600; color: var(--jade-ink); }

.cta-band {
    background: var(--ink); color: #fff; border-radius: var(--radius-l);
    padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px;
    background: radial-gradient(circle, color-mix(in srgb, var(--jade) 40%, transparent), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 26ch; }
.cta-band p { color: #c3ccc9; max-width: 52ch; }

/* Conteúdo institucional */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.15rem; font-family: var(--sans); font-weight: 650; }
.prose ul li, .prose ol li { color: var(--ink-2); }

.dl-terms { margin: 0; }
.dl-terms > div {
    padding: 1.3rem 0; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem;
}
.dl-terms dt { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.dl-terms dd { margin: 0; color: var(--ink-2); font-size: .96rem; }
.dl-terms dd a { font-weight: 600; }

/* 13. Responsivo ----------------------------------------- */
@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: 1fr; }
    .preview { margin-top: 1rem; }
    .mhero__grid { grid-template-columns: 1fr; }
    .panel--sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    :root { --gutter: 18px; }

    .nav-toggle { display: flex; }
    .nav {
        position: fixed; inset: 74px 0 auto; z-index: 39;
        background: var(--surface); border-bottom: 1px solid var(--line);
        display: none; padding: .8rem var(--gutter) 1.2rem;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav a { padding: .8rem .6rem; border-radius: 10px; font-size: 1rem; }
    .only-mobile { display: block; }

    .topbar__meta span:not(:last-child) { display: none; }

    .dl-terms > div { grid-template-columns: 1fr; gap: .4rem; }
    .match { grid-template-columns: auto 1fr; }
    .match__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
    .numbered > li { grid-template-columns: 1fr; gap: .3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .versus { grid-template-columns: 1fr; }
    .versus__slot, .versus__slot--b, .versus__slot:first-child { border-radius: var(--radius-l); }
    .versus__mid { margin: -.18rem auto; width: 42px; height: 42px; font-size: .8rem; }
    .versus-add { margin-left: 0; width: 100%; }
    .versus-add select { min-width: 0; flex: 1; }
    .duel { flex-direction: column; align-items: stretch; text-align: left; gap: .7rem; }
    .duel__side--b { text-align: left; }
    .duel__vs { width: 30px; height: 30px; font-size: .7rem; }
    table.compare tbody th { width: 130px; font-size: .8rem; }
    .article h2 { margin-top: 2.2rem; }
}

@media (max-width: 430px) {
    .brand__sub { display: none; }
    .brand img { width: 32px; height: 32px; }
    .brand__name { font-size: 1.15rem; }
    .header-cta .btn { padding: .5rem .85rem; font-size: .82rem; }
    .site-header .wrap { gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .topbar, .filters, .btn { display: none !important; }
    body { background: #fff; }
    .compare-wrap { border: 0; }
}
