/* Site do Combinô — segue as diretrizes visuais da Glodzinski Tecnologia
   (glodzinski.dev.br): tipografia Inter/Inter Tight, fios finos, listas em
   vez de cards, sem gradientes, sombras ou emojis. A cor de marca é o índigo
   do Combinô; o coral fica só no circunflexo do logotipo. */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/static/fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --surface: #F6F6F4;
  --line: #E4E4E0;
  --line-strong: #111316;
  --text: #111316;
  --muted: #5E636B;
  --brand: #1E2A78;      /* índigo Combinô: logotipo, links, números */
  --btn-bg: #1E2A78;
  --btn-bg-hover: #16205E;
  --btn-fg: #FFFFFF;
  --focus: #4F6BFF;
  --logo: #1E2A78;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1012; --surface: #17181B; --line: #26282C; --line-strong: #ECECEA;
    --text: #ECECEA; --muted: #A0A4AB; --brand: #A9B6FF;
    --btn-bg: #A9B6FF; --btn-bg-hover: #C3CCFF; --btn-fg: #0F1012; --focus: #A9B6FF; --logo: #ECECEA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1012; --surface: #17181B; --line: #26282C; --line-strong: #ECECEA;
  --text: #ECECEA; --muted: #A0A4AB; --brand: #A9B6FF;
  --btn-bg: #A9B6FF; --btn-bg-hover: #C3CCFF; --btn-fg: #0F1012; --focus: #A9B6FF; --logo: #ECECEA;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.018em; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.012em; margin: 0; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.006em; margin: 0 0 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 8px; height: 64px; }
.logo { display: inline-flex; color: var(--logo); text-decoration: none; margin-right: auto; }
.site-header .logo svg { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .header-cta { display: none; } }

/* Botões e links de ação */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; font: 600 .9375rem/1 "Inter", system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.link-arrow { font-weight: 600; color: var(--text); text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; } }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 40em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hint { color: var(--muted); font-size: .875rem; margin: 16px 0 0; }
.app-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.app-icon { width: 96px; height: 96px; border-radius: 22.5%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); margin-bottom: 20px; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Seções: fio de 1px, título à esquerda, descrição à direita */
.section { padding: 0 0 88px; }
.section-head { display: grid; gap: 12px 48px; border-top: 1px solid var(--line-strong); padding-top: 24px; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; } }
.section-head p { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 34em; }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding: 20px 0 28px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 .875rem/1 "Inter Tight", sans-serif; color: var(--brand); margin-bottom: 14px; letter-spacing: .02em; }
.steps strong { display: block; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 1.125rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .9375rem; }

/* Recursos */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { border-top: 1px solid var(--line); padding: 20px 0 24px; }
.features p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Princípios */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { border-top: 1px solid var(--line); padding: 16px 0 18px; color: var(--muted); }
.principles strong { color: var(--text); font-weight: 600; }
.more { margin: 24px 0 0; }

/* Perguntas */
.faq { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.375rem/1 "Inter", sans-serif; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Contato */
.channels { margin: 0; display: grid; gap: 0 48px; }
@media (min-width: 720px) { .channels { grid-template-columns: repeat(3, 1fr); } }
.channels div { border-top: 1px solid var(--line); padding: 16px 0 20px; }
.channels dt { color: var(--muted); font-size: .875rem; margin-bottom: 4px; }
.channels dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }
.channels a { color: var(--text); text-decoration: none; }
.channels a:hover { text-decoration: underline; }

/* Páginas de texto (privacidade, termos, exclusão) */
.page-head { padding-top: 56px; padding-bottom: 32px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .meta { color: var(--muted); font-size: .875rem; margin: 0; max-width: 46em; }
.doc-layout { display: grid; gap: 40px; padding-bottom: 96px; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: .875rem; }
.toc h2 { font: 600 .8125rem/1 "Inter", sans-serif; color: var(--muted); margin: 0 0 12px; letter-spacing: .02em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
@media (min-width: 960px) { .toc > div { position: sticky; top: 88px; } }
@media (max-width: 959px) { .toc { border-top: 1px solid var(--line-strong); padding-top: 20px; } }
.doc { max-width: 720px; border-top: 1px solid var(--line-strong); padding-top: 8px; }
.doc h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc small { color: var(--muted); }
.doc .note { background: var(--surface); border-left: 2px solid var(--brand); padding: 14px 18px; margin: 20px 0; }
.doc .block { border-top: 1px solid var(--line); margin-top: 24px; }
.doc .block h2 { margin-top: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--muted); font-size: .8125rem; }
@media (max-width: 600px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .doc td { border: 0; padding: 3px 0; }
}

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .logo svg { height: 26px; width: auto; }
.footer-tag { color: var(--muted); margin: 12px 0 0; }
.site-footer h2 { font: 600 .8125rem/1 "Inter", sans-serif; color: var(--muted); margin: 4px 0 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer-bottom .by { color: var(--muted); text-decoration: none; }
.footer-bottom .by:hover { color: var(--text); }

/* 404 */
.notfound { padding: 96px 0 120px; }
.notfound p { color: var(--muted); max-width: 32em; }
