/* Tess Desktop · landing · identidade Tess (tess-tokens.json) */
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #faf9f7; --panel: #f1efe9; --elev: #ffffff; --text: #101010; --muted: #4a4a48; --soft: #6b6a66;
  --border: rgba(16,16,16,.10); --border-strong: rgba(16,16,16,.18);
  --accent: #1b7a8c; --accent-strong: #14606f; --accent-soft: #d9ede9;
  --btn-bg: #101010; --btn-text: #faf9f7; --memory: #7c4fe0; --ok: #25ba3b;
  --aqua: linear-gradient(90deg,#a9d3cd,#d9ede9,#f6d9ad);
  --deep: linear-gradient(135deg,#33424d,#1a242b 55%,#557080);
  --shadow: 0 1px 2px rgba(16,16,16,.04), 0 12px 40px -12px rgba(16,16,16,.18);
  --radius: 22px; --max: 1180px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", "SF Mono", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0d0f; --panel: #1a1c1f; --elev: #131417; --text: #f2f1ee; --muted: #b9b8b3; --soft: #8f8e89;
  --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.16);
  --accent: #7ecad8; --accent-strong: #9adce8; --accent-soft: rgba(126,202,216,.12);
  --btn-bg: #f2f1ee; --btn-text: #0c0d0f; --memory: #b18aff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background .25s, color .25s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 500; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--btn-bg); color: var(--btn-text); padding: 8px 14px; border-radius: 99px; }

.eyebrow, .mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.band { height: 6px; background: var(--aqua); }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: .55em; border-radius: 999px; padding: .82em 1.4em; font: 500 .98rem/1 var(--sans);
       text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, opacity .15s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
               background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 28px; width: auto; }
.brand .product { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); border-left: 1px solid var(--border-strong); padding-left: 12px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.nav-links a { text-decoration: none; color: var(--muted); } .nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark-icon { display: none; } :root[data-theme="dark"] .theme-dark-icon { display: block; } :root[data-theme="dark"] .theme-light-icon { display: none; }

/* Hero */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 620px; background: radial-gradient(closest-side, rgba(169,211,205,.55), transparent 70%); filter: blur(10px); z-index: -1; }
:root[data-theme="dark"] .hero::before { background: radial-gradient(closest-side, rgba(126,202,216,.14), transparent 70%); }
.hero h1 { max-width: 17ch; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--soft); }
.hero-meta span::before { content: "●"; color: var(--ok); margin-right: 8px; font-size: .6rem; vertical-align: 2px; }
.window { margin-top: 64px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--elev); box-shadow: var(--shadow); }
.window-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--panel); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar span { margin-left: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--soft); text-transform: uppercase; }

/* Faixa de modelos */
.models-strip { padding: 34px 0 10px; text-align: center; }
.models-strip p { color: var(--soft); }
.model-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 14px; font-size: 1.12rem; font-weight: 500; color: var(--muted); }

/* Seções */
section.block { padding: 104px 0; }
section.alt { background: var(--panel); }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0 16px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }

/* Problema */
.problem .card { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.problem .card .ico { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }

/* Solução */
.split { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: .98rem; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--elev); }
.shot figcaption, figcaption.cap { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 12px 16px; border-top: 1px solid var(--border); }
figure { margin: 0; }

/* Passos */
.steps .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.steps .card .body { padding: 26px 26px 30px; }
.steps .card img { width: 100%; height: auto; flex: 0 0 auto; border-bottom: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; object-position: top left; }

/* Galeria */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--border-strong); background: transparent; color: var(--muted); border-radius: 99px; padding: .5em 1.05em; font: 500 .9rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.chip .count { font-family: var(--mono); font-size: .72rem; opacity: .65; margin-left: 6px; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.app { background: var(--elev); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 172px; transition: border-color .2s, transform .2s; }
.app:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top .ico { width: 36px; height: 36px; border-radius: 11px; } .app-top .ico svg { width: 18px; height: 18px; }
.tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--panel); color: var(--soft); padding: 4px 9px; border-radius: 99px; }
.app h3 { font-size: 1.02rem; margin-top: 6px; }
.app p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.app .go { margin-top: auto; color: var(--accent); font-size: .86rem; font-weight: 500; }
.gallery-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }

/* Benefícios */
.benefits h3.col-title { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.benefit { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.benefit b { display: block; font-size: 1.06rem; margin-bottom: 4px; font-weight: 600; }
.benefit span { color: var(--muted); font-size: .97rem; }
.tess-col { background: var(--deep); color: #f2f1ee; border-radius: var(--radius); padding: 34px; }
.tess-col .benefit { border-color: rgba(255,255,255,.14); }
.tess-col .benefit span { color: #c9d6dc; }
.tess-col .ico { background: rgba(126,202,216,.15); color: #7ecad8; }
.tess-col h3.col-title { color: #7ecad8; }
.plain-col { padding: 34px 6px; }

/* Comparação */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--elev); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
thead th.us { color: var(--accent); }
td.us { background: var(--accent-soft); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); width: 22%; }
.yes { color: var(--accent); font-weight: 600; } .no { color: var(--soft); }
.footnote { font-size: .82rem; color: var(--soft); margin-top: 14px; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; position: relative; }
.phase { padding: 26px 24px 0 0; position: relative; border-top: 2px solid var(--border-strong); }
.phase::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); }
.phase.now { border-top-color: var(--accent); } .phase.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.phase h3 { margin: 10px 0 10px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .94rem; display: grid; gap: 6px; }

/* FAQ */
.faq { max-width: 860px; }
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 1.08rem; font-weight: 500; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Download */
.download { background: var(--deep); color: #f2f1ee; border-radius: 28px; padding: clamp(28px, 5vw, 64px); }
.download .eyebrow { color: #7ecad8; }
.download .lead { color: #c9d6dc; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.dl { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl h3 { display: flex; align-items: center; gap: 10px; }
.dl h3 svg { width: 22px; height: 22px; }
.dl .file { font-family: var(--mono); font-size: .72rem; color: #9fb4bd; word-break: break-all; }
.dl p { color: #c9d6dc; font-size: .92rem; }
.dl .btn-primary { background: #f2f1ee; color: #0c0d0f; justify-content: center; margin-top: auto; }
.dl .file { margin-bottom: 8px; }
.dl .alt { font-size: .85rem; color: #9fb4bd; text-align: center; }
.dl .alt a { color: #7ecad8; }
.dl.suggested { border-color: #7ecad8; box-shadow: 0 0 0 1px #7ecad8 inset; }
.dl .badge { align-self: flex-start; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; background: #7ecad8; color: #0c0d0f; padding: 3px 8px; border-radius: 99px; }
.first-open { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.first-open .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #f2f1ee; }
.first-open .card p, .first-open li { color: #c9d6dc; font-size: .94rem; }
.first-open ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.first-open code { font-family: var(--mono); font-size: .8rem; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px; color: #f2f1ee; }
.key-note { margin-top: 18px; padding: 16px 20px; border-radius: 16px; border: 1px dashed rgba(126,202,216,.5); color: #c9d6dc; font-size: .95rem; }
.key-note b { color: #f2f1ee; }

/* Rodapé */
footer { padding: 56px 0 46px; border-top: 1px solid var(--border); margin-top: 104px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot .brand svg { height: 24px; }
.foot small { color: var(--soft); font-size: .82rem; display: block; max-width: 70ch; line-height: 1.6; }
.foot a { color: var(--soft); }
.foot nav { display: flex; gap: 20px; font-size: .9rem; } .foot nav a { text-decoration: none; color: var(--muted); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover, .app:hover { transform: none; } }

/* Responsivo */
@media (max-width: 1040px) { .apps { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .nav-links { display: none; } }
@media (max-width: 860px) {
  body { font-size: 16px; }
  section.block { padding: 76px 0; }
  .split, .g2, .g3, .first-open, .gallery-shots, .dl-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .apps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .roadmap { grid-template-columns: 1fr; gap: 26px; }
  .phase { border-top: 0; border-left: 2px solid var(--border-strong); padding: 0 0 0 24px; }
  .phase.now { border-left-color: var(--accent); }
  .phase::before { top: 2px; left: -8px; }
  .hero { padding-top: 56px; }
  .brand .product { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .apps, .g4 { grid-template-columns: 1fr; }
  .app { min-height: 0; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .nav-actions .btn { display: none; }
  .tess-col, .plain-col { padding: 26px 20px; }
}

/* Demo guiada */
.demo-shell { padding: 48px 0 80px; }
.demo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.demo-top h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 10px; }
.progress { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.demo-stage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.demo-stage .shot img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.demo-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 12px 0 14px; }
.demo-copy p { color: var(--muted); }
.demo-copy ul { color: var(--muted); padding-left: 18px; margin: 16px 0 0; display: grid; gap: 6px; font-size: .96rem; }
.demo-nav { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.dots { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.dots button { width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); font: 500 .78rem var(--mono); cursor: pointer; }
.dots button[aria-current="step"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.fade { animation: fade .45s ease; } @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .demo-stage { grid-template-columns: 1fr; gap: 24px; } }

/* Página de licenças */
.legal { max-width: 820px; padding: 56px 0; } .legal h1 { font-size: 2.2rem; margin-bottom: 24px; } .legal h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); } .legal code { font-family: var(--mono); font-size: .85em; }

/* Galeria compacta no celular: chips roláveis e 6 cartões + "Ver todos" */
.apps-more { display: none; }
@media (max-width: 520px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: 0 0 auto; }
  .apps.collapsed .app:nth-child(n+7) { display: none; }
  .apps-more:not([hidden]) { display: flex; width: 100%; justify-content: center; margin-top: 14px; }
  .app { padding: 16px; gap: 6px; }
  .app .go { display: none; }
}
