/* Attos — site. Um arquivo só, sem dependências. Cores por tema em variáveis. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #131722;
  --muted: #566074;
  --line: #e3e8ef;
  --brand: #0c87eb;
  --brand-strong: #0a6cc0;
  --brand-soft: rgba(12, 135, 235, 0.1);
  --ok: #0f8a5f;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-line: #d97706;
  --warn-text: #7c4a03;
  --shadow: 0 1px 2px rgba(19, 23, 34, 0.05), 0 12px 32px -12px rgba(19, 23, 34, 0.18);
  --phone-edge: #d5dce6;
  --radius: 24px;
  --maxw: 1120px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #090a0f;
  --surface: #131722;
  --surface-2: #1a2030;
  --text: #ffffff;
  --muted: #9aa5b8;
  --line: rgba(255, 255, 255, 0.09);
  --brand: #38a2f5;
  --brand-strong: #0c87eb;
  --brand-soft: rgba(56, 162, 245, 0.14);
  --ok: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-line: #f59e0b;
  --warn-text: #fcd9a0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --phone-edge: #2a3142;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Imagens por tema: só a do tema ativo é desenhada (e, com loading=lazy, só ela é baixada) */
:root[data-theme='dark'] .t-light, :root:not([data-theme='dark']) .t-dark { display: none; }

/* ---------- Cabeçalho ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--text); background: var(--surface-2); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.langs a { font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; }
.langs a:hover { text-decoration: none; color: var(--text); }
.langs a[aria-current='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme='dark'] .i-moon, :root:not([data-theme='dark']) .i-sun { display: none; }
.menu-btn { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--brand-strong); color: #fff; border: 0; cursor: pointer;
}
:root:not([data-theme='dark']) .btn:not(.ghost) { background: #0a72cc; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.soon { cursor: default; }
.btn.soon:hover { filter: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Telefone ---------- */
.phone {
  margin: 0; position: relative; width: 100%; max-width: 280px; aspect-ratio: 390 / 844;
  border-radius: 34px; padding: 7px; background: var(--phone-edge); box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; background: var(--surface); }
.phone button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; border-radius: 28px; }

/* ---------- Início ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; margin-top: 18px; letter-spacing: -0.035em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; max-width: 560px; }
.facts div { font-size: 13px; color: var(--muted); }
.facts b { display: block; font-size: 22px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.hero-phones { position: relative; height: 580px; }
.hero-phones .phone { position: absolute; max-width: 262px; }
.hero-phones .phone:first-child { left: 4%; top: 0; z-index: 2; }
.hero-phones .phone:last-child { right: 0; top: 56px; opacity: 0.96; }

.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.feature { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) { grid-template-columns: 300px 1fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 26px; font-weight: 800; }
.feature p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c87eb' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 15px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--bg); }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ico svg { width: 20px; height: 20px; }

.plans { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: table; }
.plans th, .plans td { padding: 14px 18px; text-align: center; border-top: 1px solid var(--line); font-size: 15px; }
.plans thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.plans thead th.pro { color: var(--brand); font-weight: 800; }
.plans td:first-child, .plans th:first-child { text-align: left; font-weight: 600; }
.plans .yes { color: var(--ok); font-weight: 800; }
.plans .no { color: var(--muted); }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.band { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-size: 28px; font-weight: 800; }
.band p { color: var(--muted); margin-top: 8px; }

/* ---------- Guia ---------- */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 42em; }
.guide { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc p { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: ch; }
.toc > ol > li > a { counter-increment: ch; display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.toc > ol > li > a::before { content: counter(ch); color: var(--muted); font-variant-numeric: tabular-nums; width: 14px; }
.toc a:hover { background: var(--surface-2); text-decoration: none; }
.toc a.on { background: var(--brand-soft); color: var(--brand); }
.toc a.on::before { color: var(--brand); }
.toc-select { display: none; }

.chapter { padding-top: 8px; margin-bottom: 72px; }
.chapter > header { margin-bottom: 8px; }
.chapter .num { font-size: 13px; font-weight: 700; color: var(--brand); }
.chapter h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-top: 6px; }
.chapter > header p { color: var(--muted); margin-top: 10px; font-size: 17px; max-width: 44em; }
.step { display: grid; grid-template-columns: 236px 1fr; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.chapter > header + .step { border-top: 0; }
.step .shots { display: grid; gap: 14px; }
.step.two { grid-template-columns: 420px 1fr; }
.step.two .shots { grid-template-columns: 1fr 1fr; }
.step .phone { max-width: 236px; border-radius: 30px; padding: 6px; }
.step .phone img, .step .phone button { border-radius: 25px; }
.step-n { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; font-weight: 800; margin-top: 4px; }
.step-body > p { color: var(--muted); margin-top: 10px; }
.step ol.how { margin-top: 16px; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.step ol.how li { counter-increment: how; position: relative; padding-left: 36px; }
.step ol.how li::before {
  content: counter(how); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step b, .prose b { font-weight: 700; color: var(--text); }
.tip { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); font-size: 14.5px; color: var(--text) !important; }
.tip strong { color: var(--brand); }
.pro-tag { display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0c87eb, #4f46e5); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }

/* ---------- Páginas de texto ---------- */
.prose-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 88px; }
.prose-meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 40px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 18px; border-left: 4px solid var(--warn-line); background: var(--warn-bg); }
.callout.ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); }
.callout.note { border-left-color: var(--brand); background: var(--brand-soft); }
.callout h3 { font-size: 16px; font-weight: 800; }
.callout p { margin-top: 6px; color: var(--text); font-size: 15px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.contact .card { padding: 18px; border-radius: 18px; }
.contact .card span { font-size: 13px; color: var(--muted); display: block; }
.contact .card a { font-weight: 700; word-break: break-all; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.links a.card { color: var(--text); display: block; }
.links a.card:hover { text-decoration: none; border-color: var(--brand); }
.links a.card b { color: var(--brand); font-size: 14px; display: block; margin-top: 14px; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); font-weight: 600; }
.foot small { display: block; margin-top: 10px; max-width: 46em; font-size: 13px; }

/* ---------- Ampliar captura ---------- */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog.zoom::backdrop { background: rgba(5, 7, 12, 0.82); backdrop-filter: blur(4px); }
dialog.zoom img { height: min(92vh, 844px); width: auto; border-radius: 26px; box-shadow: var(--shadow); cursor: zoom-out; }

/* ---------- Telas menores ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 500px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { max-width: 224px; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature .phone { margin: 0 auto; }
  .grid3 { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-select { display: block; position: sticky; top: 64px; z-index: 20; background: var(--bg); padding: 10px 0; margin-bottom: 8px; }
  .toc-select select { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: 0 12px; }
  .step.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 44px; }
  .section { padding: 52px 0; }
  .step, .step.two { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .step .shots { grid-template-columns: 1fr 1fr; max-width: 420px; }
  .step .shots.one { grid-template-columns: minmax(0, 220px); }
  .band { padding: 28px; }
  .contact, .links { grid-template-columns: 1fr; }
  .plans th, .plans td { padding: 12px 10px; font-size: 14px; }
  .facts { gap: 14px; }
  .facts b { font-size: 19px; }
  html { scroll-padding-top: 136px; }
}
@media (max-width: 400px) {
  .langs a { padding: 5px 8px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .foot, .toc, .toc-select { display: none; } body { background: #fff; color: #000; } }
