/* =========================================================
 1. ESTILOS GERAIS DA LANDING PAGE
 ========================================================= */
:root {
--site-bg-950: #050811;
--site-bg-900: #0a1020;
--site-bg-800: #111a30;
--site-border: rgba(148, 163, 184, 0.16);
--emerald-400: #34d399;
--emerald-500: #10b981;
--text-light: #f8fafc;
--text-dim: #94a3b8;
--radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
margin: 0;
background: var(--site-bg-950);
color: var(--text-light);
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 780px; }

/* Cabeçalho */
.site-header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(5, 8, 17, 0.88);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--site-border);
}
.header-inner {
min-height: 74px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text span { font-size: 0.72rem; color: var(--emerald-400); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; color: var(--text-dim); font-weight: 600; }
.nav-links a:hover { color: var(--text-light); }

/* Botões do Site */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 12px 22px;
border-radius: 11px;
font-weight: 800;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.15s ease, filter 0.15s ease;
font-family: inherit;
font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary { background: var(--emerald-400); color: #042f2e !important; }
.btn-outline { border-color: var(--site-border); background: rgba(255, 255, 255, 0.04); color: var(--text-light); }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* Hero */
.hero {
padding: 64px 0 84px;
background: radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.14), transparent 38%);
}
.hero-grid {
display: grid;
grid-template-columns: 1fr 1.08fr;
gap: 44px;
align-items: center;
}
.badge-approved {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
border-radius: 999px;
background: rgba(52, 211, 153, 0.1);
border: 1px solid rgba(52, 211, 153, 0.35);
color: var(--emerald-400);
font-size: 0.78rem;
font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-400); }
h1 {
font-size: clamp(2.15rem, 4.2vw, 3.35rem);
line-height: 1.08;
letter-spacing: -0.038em;
margin: 18px 0;
}
.lead { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-metrics {
display: flex;
flex-wrap: wrap;
gap: 24px;
list-style: none;
padding: 20px 0 0;
margin: 0;
border-top: 1px solid var(--site-border);
}
.hero-metrics li { display: flex; flex-direction: column; }
.hero-metrics strong { color: var(--emerald-400); font-size: 1rem; }
.hero-metrics span { color: var(--text-dim); font-size: 0.78rem; }

/* =========================================================
 2. MOLDURA DO EMULADOR E SEU CSS FIEL DO ANKI
 ========================================================= */
.anki-emulator {
padding: 20px;
border-radius: 22px;
background: var(--site-bg-900);
border: 1px solid rgba(52, 211, 153, 0.28);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.emulator-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 12px;
}
.emulator-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.emu-tab {
padding: 7px 11px;
border-radius: 8px;
border: 1px solid var(--site-border);
background: rgba(255, 255, 255, 0.03);
color: var(--text-dim);
font-size: 0.76rem;
font-weight: 700;
cursor: pointer;
transition: 0.15s ease;
}
.emu-tab.active {
background: var(--emerald-400);
color: #042f2e;
border-color: transparent;
}
.theme-switch {
padding: 7px 12px;
border-radius: 8px;
border: 1px solid var(--site-border);
background: var(--site-bg-800);
color: var(--text-light);
font-size: 0.76rem;
font-weight: 700;
cursor: pointer;
}
.theme-switch:hover { border-color: var(--emerald-400); }

.emulator-meta {
display: flex;
justify-content: space-between;
font-size: 0.74rem;
color: var(--text-dim);
margin-bottom: 10px;
padding: 0 4px;
}
.note-badge { font-weight: 700; color: #cbd5e1; }
.side-badge { color: var(--emerald-400); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }

/* VARIÁVEIS EXATAS DO SEU TEMPLATE ANKI (MODO CLARO PADRÃO) */
.anki-viewport {
--bg-body: #F3F4F6;
--bg-card: #FFFFFF;
--text-main: #1F2937;
--text-muted: #6B7280;
--border-color: #E5E7EB;
--shadow-color: rgba(0, 0, 0, 0.08);

--tag-bg: #E5E7EB;
--tag-text: #4B5563;
--subdeck-bg: #E5E7EB;
--subdeck-text: #4B5563;

--extra-bg: #F9FAFB;
--cloze-color: #059669;
--cloze-revealed: #10B981;

--lei-bg: #F3F4F6;
--lei-text: #1F2937;
--lei-border: #D1D5DB;

background-color: var(--bg-body);
padding: 22px 14px;
border-radius: 14px;
border: 1px solid var(--site-border);
transition: background-color 0.3s ease;
margin-bottom: 14px;
}

/* VARIÁVEIS EXATAS DO SEU TEMPLATE ANKI (.nightMode) */
.anki-viewport.nightMode {
--bg-body: #1A1C23;
--bg-card: #121212;
--text-main: #F5F5F5;
--text-muted: #9CA3AF;
--border-color: #2A2F3A;
--shadow-color: rgba(0, 0, 0, 0.5);

--tag-bg: #333333;
--tag-text: #BDBDBD;
--subdeck-bg: #2C2C2C;
--subdeck-text: #9E9E9E;

--extra-bg: #1E2129;
--cloze-color: #34D399;
--cloze-revealed: #10B981;

--lei-bg: #1B2633;
--lei-text: #D1D5DB;
--lei-border: #334155;
}

/* ESTRUTURA EXATA DO SEU #kard e .card-content */
.anki-viewport #kard {
width: 96%;
max-width: 700px;
margin: 0 auto;
font-family: ui-rounded, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: center;
line-height: 1.6;
word-wrap: break-word;
}

.anki-viewport .card-content {
background-color: var(--bg-card);
color: var(--text-main);
padding: 26px 24px;
border-radius: 12px;
border: 1px solid var(--border-color);
box-shadow: 0 10px 30px var(--shadow-color);
position: relative;
border-left: 5px solid #4B5563;
transition: all 0.3s ease;
}

.anki-viewport .card-text {
font-size: 18px;
color: var(--text-main);
}

/* CLOZE E COMPONENTES DO SEU TEMPLATE */
.anki-viewport .cloze-hidden,
.anki-viewport .card-text .cloze {
color: var(--cloze-color);
font-weight: 600;
border-bottom: 2px dashed var(--cloze-color);
}

.anki-viewport .cloze-revealed {
color: var(--cloze-revealed) !important;
font-weight: 700;
border-bottom: none;
}

.anki-viewport .deck-info {
margin-bottom: 18px;
font-size: 12.5px;
color: var(--text-muted);
}

.anki-viewport .prettify-subdeck {
display: inline-block;
background-color: var(--subdeck-bg);
color: var(--subdeck-text);
font-style: italic;
padding: 4px 10px;
border-radius: 6px;
transition: 0.2s ease;
font-weight: 600;
margin: 2px 0;
}
.anki-viewport .prettify-subdeck:hover {
background-color: #3B82F6;
color: #FFFFFF;
}

.anki-viewport .tags-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin-top: 20px;
}

.anki-viewport .tag {
background-color: var(--tag-bg);
color: var(--tag-text);
padding: 5px 12px;
border-radius: 15px;
font-size: 12px;
font-style: italic;
transition: 0.2s ease;
font-weight: 600;
}
.anki-viewport .tag:hover {
background-color: #10B981;
color: #FFFFFF;
transform: scale(1.05);
}

.anki-viewport .separator {
border: none;
height: 1px;
background-color: var(--border-color);
margin: 18px auto;
width: 82%;
}

.anki-viewport #back-text,
.anki-viewport #verso {
color: var(--cloze-revealed);
font-style: normal;
font-weight: 600;
font-size: 17px;
margin-top: 14px;
}

.anki-viewport #extra-content {
color: var(--text-muted);
font-style: normal;
font-weight: 400;
font-size: 14.5px;
line-height: 1.55;
margin-top: 14px;
text-align: left;
background-color: var(--extra-bg);
padding: 14px 18px;
border-radius: 8px;
border: 1px solid var(--border-color);
}

/* DESTAQUE DE LEI LITERAL DO SEU TEMPLATE */
.anki-viewport .lei-literal,
.inline-lei {
display: inline;
padding: 0.12em 0.36em;
border-radius: 4px;
background: var(--lei-bg, #1B2633);
color: var(--lei-text, #D1D5DB);
border: 1px solid var(--lei-border, #334155);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 0.92em;
line-height: 1.55;
}

/* CORES DAS BORDAS LATERAIS DAS DISCIPLINAS DO SEU TEMPLATE */
.anki-viewport .card-content.area-tributaria { border-left-color: #B7791F; }
.anki-viewport .card-content.area-direito-publico { border-left-color: #7C83C8; }
.anki-viewport .card-content.area-linguagens { border-left-color: #4FA3A5; }
.anki-viewport .card-content.area-contabilidade-auditoria { border-left-color: #4F9D69; }
.anki-viewport .card-content.area-gestao-dados-economia { border-left-color: #8B6FB3; }
.anki-viewport .card-content.area-quantitativa { border-left-color: #B56576; }
.anki-viewport .card-content.area-comercio-internacional { border-left-color: #4C8DAE; }
.anki-viewport .card-content.area-padrao { border-left-color: #4B5563; }

/* Botões FSRS */
.fsrs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fsrs-btn {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px 6px;
border-radius: 10px;
border: 1px solid var(--site-border);
background: var(--site-bg-800);
color: var(--text-light);
font-weight: 800;
font-size: 0.8rem;
cursor: pointer;
}
.fsrs-btn:hover { border-color: var(--emerald-400); }
.fsrs-btn span { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.fsrs-btn.again { border-color: rgba(239, 68, 68, 0.45); }
.fsrs-btn.good { border-color: rgba(16, 185, 129, 0.45); }

/* =========================================================
 3. DEMAIS SEÇÕES DA PÁGINA
 ========================================================= */
.section { padding: 84px 0; }
.section-dark { background: var(--site-bg-900); border-block: 1px solid var(--site-border); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { color: var(--emerald-400); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 8px; display: block; }
.section-header h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.section-header p { color: var(--text-dim); margin: 0; }

.features-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card, .price-card {
position: relative;
padding: 28px;
border-radius: var(--radius-lg);
background: var(--site-bg-900);
border: 1px solid var(--site-border);
}
.section-dark .price-card { background: var(--site-bg-950); }
.feature-num { color: var(--emerald-400); font-weight: 900; font-size: 0.85rem; }
.feature-card h3 { margin: 12px 0 8px; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }

.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--emerald-400); transform: translateY(-6px); }
.popular-ribbon {
position: absolute;
top: -12px;
right: 20px;
padding: 4px 12px;
border-radius: 999px;
background: var(--emerald-400);
color: #042f2e;
font-size: 0.72rem;
font-weight: 900;
text-transform: uppercase;
}
.tier-name { color: var(--emerald-400); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.price-card h3 { margin: 6px 0; font-size: 1.4rem; }
.tier-desc { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 18px; }
.price-tag { margin-bottom: 20px; }
.price-tag strong { font-size: 2.5rem; letter-spacing: -0.04em; }
.currency, .period { color: var(--text-dim); font-size: 0.9rem; }
.tier-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex-grow: 1; font-size: 0.88rem; color: #cbd5e1; }
.tier-features li::before { content: "✓ "; color: var(--emerald-400); font-weight: 900; }

.author-box {
max-width: 820px;
padding: 36px;
border-radius: 22px;
background: var(--site-bg-900);
border: 1px solid var(--site-border);
}
.author-badge { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.author-badge h2 { margin: 4px 0; }
.author-sub { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

.faq-list details {
padding: 18px 22px;
border-radius: 14px;
background: var(--site-bg-950);
border: 1px solid var(--site-border);
margin-bottom: 12px;
}
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { color: var(--text-dim); margin: 12px 0 0; font-size: 0.92rem; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--site-border); color: var(--text-dim); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

[hidden] { display: none !important; }

@media (max-width: 920px) {
.nav-links a:not(.btn) { display: none; }
.hero-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
.price-card.featured { transform: none; }
}

/* Evolução v2: métricas, menu móvel e acessibilidade */
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; max-width:760px; margin:26px 0; padding:0; list-style:none; }
.hero-stats li { padding:15px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.045); }
.hero-stats strong, .hero-stats span { display:block; }
.hero-stats strong { color:var(--emerald-400); font-size:1.35rem; }
.hero-stats span { color:var(--text-dim); font-size:.72rem; }
.menu-button { display:none; width:44px; height:44px; padding:10px; border:1px solid var(--site-border); border-radius:10px; background:transparent; }
.menu-button span { display:block; width:100%; height:2px; margin:5px 0; border-radius:99px; background:var(--text-light); transition:transform .18s ease, opacity .18s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.emulator-disclaimer { margin:0 0 12px; color:var(--text-dim); font-size:.74rem; text-align:center; }
:focus-visible { outline:3px solid var(--emerald-400); outline-offset:3px; }
body.menu-open { overflow:hidden; }
@media (max-width:920px) {
 .menu-button { display:block; }
 .nav-links { position:absolute; top:74px; left:0; right:0; display:none; flex-direction:column; align-items:stretch; gap:0; padding:16px; background:rgba(5,8,17,.98); border-bottom:1px solid var(--site-border); }
 .nav-links.is-open { display:flex; }
 .nav-links a, .nav-links a:not(.btn) { display:flex; padding:14px 10px; border-bottom:1px solid var(--site-border); }
 .nav-links .btn { margin-top:12px; }
 .hero-stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:620px) { .brand-text span { display:none; } .anki-emulator { padding:12px; } .emulator-toolbar,.emulator-tabs { align-items:stretch; flex-direction:column; } .emu-tab,.theme-switch { width:100%; } .fsrs-grid { grid-template-columns:repeat(2,1fr); } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition-duration:.01ms !important; } }
