/* =============================================================
   auExpert — Estilo unificado para docs
   Tema escuro (mesma paleta do app) com accent laranja.
   ============================================================= */

:root {
  --color-bg:           #0F1720;
  --color-surface:      #17212D;
  --color-surface-2:    #1E2A38;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.18);
  --color-text:         #E5E9F0;
  --color-text-muted:   #9AA7B4;
  --color-text-dim:     #6B7B8C;
  --color-accent:       #8F7FA8;
  --color-accent-hover: #A698BD;
  --color-accent-bg:    rgba(143, 127, 168, 0.14);
  --color-success:      #4ADE80;
  --color-danger:       #F87171;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --content-width: 780px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================
   HEADER / NAV
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 32, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-logo-au {
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
}

.site-logo-expert {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.site-nav a.active {
  color: var(--color-accent);
}

/* =============================================================
   SELETOR DE IDIOMA
   ============================================================= */

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.5px;
}

.lang-chevron {
  color: var(--color-text-muted);
  margin-left: 2px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: menu-in 0.12s ease-out;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-menu li { margin: 0; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.lang-option:hover {
  background: var(--color-surface-2);
}

.lang-option.active {
  color: var(--color-accent);
  background: var(--color-accent-bg);
}

/* =============================================================
   LANDING (index.html)
   ============================================================= */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1 .brand {
  color: var(--color-accent);
}

.hero p {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #1A0F05;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-border-hover);
}

.docs-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.doc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-bg);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.doc-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.doc-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.doc-card-link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================================
   PÁGINAS DE DOCUMENTO (privacy, terms)
   ============================================================= */

.doc-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}

.doc-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-dim);
  margin: 0 0 12px;
  padding: 0 10px;
}

.doc-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 7px 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.toc-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.toc-link.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-bg);
}

.doc-content {
  max-width: var(--content-width);
  min-width: 0;
}

.doc-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.doc-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.doc-header h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.doc-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.doc-intro {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 40px;
}

.doc-section {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.doc-section h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.doc-section h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 24px 0 12px;
  color: var(--color-text);
}

.doc-section p {
  margin: 0 0 16px;
  color: var(--color-text);
  line-height: 1.75;
}

.doc-section ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--color-text);
}

.doc-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.doc-section li::marker {
  color: var(--color-accent);
}

.notice {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--color-text);
}

.doc-section a,
.doc-content a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.doc-section a:hover,
.doc-content a:hover {
  border-bottom-color: var(--color-accent);
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 13px;
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
    padding: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
  }

  .doc-toc {
    max-height: 240px;
    overflow-y: auto;
  }

  .hero h1 { font-size: 36px; }
  .hero p  { font-size: 17px; }
  .doc-header h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .site-header .inner { padding: 14px 16px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 60px 16px 40px; }
  .hero h1 { font-size: 30px; }
  .docs-grid { padding: 20px 16px 60px; }
  .doc-layout { padding: 32px 16px 60px; }
}
                           