/* Simplifik — landing page
   Direction: "The product performs" · type: Archivo (variable, wdth + wght) · colour: graphite and one accent */

/* Archivo, self-hosted (assets/fonts, SIL OFL 1.1: assets/fonts/OFL.txt). Variable font: wdth 100–125, wght 400–600,
   latin and latin-ext subsets as served by Google Fonts (archivo v25), so no request leaves the site. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07090c;
  --surface: #0f1318;
  --surface-2: #161b22;
  --surface-3: #1f262f;
  --line: #232b35;
  --ink: #eef2f6;
  --muted: #9aa6b2;

  /* The accent. Lime and cyan are still being decided: swapping is these two lines
     (cyan would be --accent: #3ec6ff; --accent-strong: #19b4f5). Everything else derives from them. */
  --accent: #c8ff2e;
  --accent-strong: #b2ec10;
  --accent-ink: #07090c;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 55%, transparent);
  /* brand: lime to cyan, from the "plugue K" mark */
  --brand-gradient: linear-gradient(135deg, #c8ff2e 0%, #8af06a 48%, #3ec6ff 100%);

  --ml: #ffe600;
  --sp: #ee4d2d;
  --nf: #3ec6ff;
  --lg: #ffffff;

  --font: "Archivo", system-ui, sans-serif;
  --wide: 116%;   /* the Archivo width axis, for headings */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 5.5rem);
  --step-display: clamp(4rem, 9vw, 9rem);

  --margin: clamp(16px, 2.8vw, 40px);
  --section: clamp(6rem, 13vw, 12rem);
  --bar-h: 64px;
  --radius: 0px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  --z-bar: 20;
  --z-dock: 30;
  --z-skip: 40;
  --z-consent: 35;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { overflow-x: clip; }
main:focus { outline: none; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[id] { scroll-margin-top: calc(var(--bar-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: fixed; z-index: var(--z-skip); top: 8px; left: 8px; padding: 12px 18px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); translate: 0 -160%; transition: translate var(--t-ui) var(--ease-out); }
.skip:focus-visible { translate: 0 0; }

.h-head { font-size: var(--step-head); }
.h-lead { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.15; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); background-image: var(--brand-gradient); color: var(--accent-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-ghost { background: var(--surface-3); background-image: none; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background: var(--accent-strong); background-image: none; }
  .button-ghost:hover { background: var(--ink); color: var(--bg); }
}

/* channel badges, shared by every interface fragment */
.nb { width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; font-size: 10px; font-weight: 600; letter-spacing: 0; line-height: 1; }
.nb-ml { background: url(assets/mercado-livre.png) center / 100% auto no-repeat; color: transparent; overflow: hidden; }
.nb-sp { background: url(assets/shopee.png) center / auto 100% no-repeat; color: transparent; overflow: hidden; }
.nb-nf { background: var(--nf); color: #04222f; }
.nb-lg { background: var(--lg); color: #07090c; }
.nb-erp, .nb-tt, .nb-az { background: #2a323c; color: #c9d2db; }
.nb-az { font-size: 14px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: var(--z-bar); height: var(--bar-h); display: flex; align-items: center; gap: 2rem; padding-inline: var(--margin); background: color-mix(in oklab, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar { background: var(--bg); } }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.25rem; font-stretch: var(--wide); letter-spacing: -0.03em; text-decoration: none; }
.wordmark-mark { width: 1.6em; height: 1.6em; flex: none; }
.bar-nav { display: flex; gap: 1.75rem; margin-left: 1rem; }
.bar-nav a { font-size: var(--step-small); font-weight: 500; color: var(--muted); text-decoration: none; padding: 0.5rem 0; transition: color var(--t-hover) ease; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.bar-talk { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.tl-short { display: none; }
.button-login { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--step-small); background: var(--ink); background-image: none; color: var(--bg); border-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) {
  .bar-nav a:hover, .bar-talk:hover { color: var(--ink); }
  .button-login:hover { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--bar-h)); }
.hero-left { padding: clamp(3rem, 11vh, 8rem) var(--margin) var(--margin); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-title { font-size: clamp(2.125rem, 3.7vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero-title .line { white-space: nowrap; }
.hero-sub { color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.hero-actions .link { font-weight: 600; }
.hero-note { max-width: 40ch; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--muted); font-size: var(--step-small); line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 16px 18px; background: var(--surface); }
.hero-stats dd { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 500; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: var(--step-small); line-height: 1.35; color: var(--muted); }
.hero-right { container-type: inline-size; background: var(--surface); position: relative; display: grid; place-items: center; padding: var(--margin) var(--margin) calc(var(--margin) + 4.5rem); }

/* the connection map (product interface) */
[data-ui].map { position: relative; width: min(100%, 900px, calc(100svh - 300px)); min-width: min(100%, 420px); aspect-ratio: 1; font-size: clamp(12px, 1.75cqi, 19px); line-height: 1.25; letter-spacing: 0; }
[data-ui] .map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[data-ui] .map-lines .edge { stroke: #2b333d; stroke-width: 1.5; transition: stroke 300ms ease; }
[data-ui] .map-lines .edge.soon { stroke-dasharray: 3 6; }
[data-ui] .map-lines .edge.hot { stroke: var(--accent); }
[data-ui] .map-lines .ring { fill: none; stroke: #1c232b; stroke-width: 1; }
[data-ui] .map-hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 31%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: 1px solid #2b333d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em; text-align: center; }
[data-ui] .map-hub.pulse { animation: hub-pulse 700ms var(--ease-out); }
@keyframes hub-pulse { 0% { scale: 1; } 30% { scale: 1.05; border-color: var(--accent); } 100% { scale: 1; } }
[data-ui] .hub-name { display: inline-flex; align-items: center; gap: 0.3em; font-size: 1.4em; font-weight: 600; letter-spacing: -0.02em; }
[data-ui] .hub-mark { width: 1.1em; height: 1.1em; }
[data-ui] .hub-ai { font-size: 0.85em; font-weight: 600; color: var(--accent-ink); background: var(--accent); background-image: var(--brand-gradient); padding: 0.15em 0.7em; border-radius: 99px; }
[data-ui] .hub-rate { font-size: 0.92em; color: var(--muted); }
[data-ui] .hub-rate b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-ui] .node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.8em 0.45em 0.45em; background: var(--surface-2); border: 1px solid #262e38; border-radius: 0.75em; text-align: left; white-space: nowrap; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
[data-ui] .node:active { scale: 0.96; }
[data-ui] .node .nt { display: flex; flex-direction: column; font-weight: 600; font-size: 1em; }
[data-ui] .node .nb { width: 2.1em; height: 2.1em; font-size: 0.8em; border-radius: 0.45em; }
[data-ui] .node .nb-az { font-size: 1.05em; width: 1.6em; height: 1.6em; }
[data-ui] .node small { font-size: 0.85em; font-weight: 400; color: var(--muted); }
[data-ui] .node.is-hot { border-color: var(--accent); }
[data-ui] .node.is-hot small { color: var(--accent); }
/* "em breve": dashed border and muted name instead of opacity, so the text keeps its contrast */
[data-ui] .node-soon { cursor: default; border-style: dashed; border-color: #3a4552; }
[data-ui] .node-soon .nt { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .node:not(.node-soon):hover { background: var(--surface-3); border-color: #3a4552; }
}
[data-ui] .map-log { position: absolute; left: 0; right: 0; bottom: -1.2em; translate: 0 100%; display: flex; flex-direction: column; gap: 0.3em; min-height: 5em; font-size: 1em; color: var(--muted); font-variant-numeric: tabular-nums; }
[data-ui] .map-log li { animation: log-in 400ms var(--ease-out); }
[data-ui] .map-log li:first-child { color: var(--ink); }
[data-ui] .map-log b { color: var(--accent); font-weight: 600; }
@keyframes log-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* ---------- docs: output index and live sheet ---------- */
.docs, .cells, .talk, .plans, .faq { max-width: 1760px; margin-inline: auto; }
.docs { margin-top: var(--section); display: grid; grid-template-columns: 5fr 7fr; gap: var(--margin); padding-inline: var(--margin); }
.docs-index { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-top: 4.5rem; }
.doc-tab { font-size: var(--step-head); font-weight: 500; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.1; color: #56616d; text-align: left; transition: color var(--t-hover) ease, translate var(--t-ui) var(--ease-out); }
.doc-tab[aria-selected="true"] { color: var(--ink); }
.doc-tab:active { translate: 4px 0; }
@media (hover: hover) and (pointer: fine) { .doc-tab:hover { color: var(--muted); } .doc-tab[aria-selected="true"]:hover { color: var(--ink); } }
.docs-note { margin-top: 2rem; color: var(--muted); max-width: 34ch; }
.docs-stage { background: var(--surface); height: 680px; position: relative; overflow: hidden; }
/* honest labels: the showcase and the cells are illustrative (docs/compliance/regras-de-copy.md) */
.docs-disclaimer { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); max-width: none; }
.cells-note { margin: -32px 0 40px; font-size: var(--step-small); color: var(--muted); }
.talk .como-note { margin: -48px 0 48px; font-size: var(--step-small); color: var(--muted); }
/* "em breve": planned features in the illustrative screens (docs/compliance/regras-de-copy.md) */
.soon-tag { display: inline-block; vertical-align: middle; margin-left: 0.4em; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 0.75rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; white-space: nowrap; }
[data-ui].sheet .soon-tag { background: #e3e6ea; color: #15181c; }
.doc-tab[aria-selected="true"] .soon-tag { background: var(--surface-3); color: var(--ink); }

[data-ui].sheet { position: absolute; top: 72px; left: 64px; width: 560px; background: #fbfbfa; color: #15181c; border-radius: 6px; padding: 28px; font-size: 14px; line-height: 1.45; letter-spacing: 0; transition: opacity 200ms ease; }
[data-ui].sheet[hidden] { display: block; opacity: 0; pointer-events: none; visibility: hidden; }
[data-ui].sheet-narrow { width: 440px; }
[data-ui] .s-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid #e3e5e8; }
[data-ui] .s-head b { font-size: 18px; font-weight: 600; }
[data-ui] .s-head span { color: #66707b; font-size: 13px; }
[data-ui] .s-block { padding: 16px 0; border-bottom: 1px solid #eceef0; }
[data-ui] .s-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #47505a; }
[data-ui] .s-label em { margin-left: auto; font-style: normal; font-weight: 400; color: #1f6b39; font-variant-numeric: tabular-nums; }
[data-ui] .s-label .nb { width: 22px; height: 22px; font-size: 9px; border-radius: 5px; }
[data-ui] .s-title { margin-top: 8px; font-size: 15px; background: color-mix(in oklab, var(--accent) 14%, #fbfbfa); padding: 8px 10px; border-radius: 4px; }
[data-ui] .s-attrs { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
[data-ui] .s-attrs-1 { grid-template-columns: 1fr; margin-top: 16px; }
[data-ui] .s-attrs dt { font-size: 12px; color: #586069; }
[data-ui] .s-attrs dd { font-weight: 600; }
[data-ui] .s-actions { display: flex; gap: 8px; padding-top: 18px; }
[data-ui] .s-btn { padding: 9px 14px; border-radius: 6px; background: #eceef0; font-weight: 600; font-size: 13px; transition: background-color var(--t-hover) ease; }
[data-ui] .s-btn-primary { background: #15181c; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { [data-ui] .s-btn:hover { background: #dfe2e6; } [data-ui] .s-btn-primary:hover { background: #000; } }
[data-ui] .s-timeline { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
[data-ui] .s-timeline li { padding-left: 18px; position: relative; color: #3a424b; }
[data-ui] .s-timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #c4cad1; }
[data-ui] .s-timeline li.now::before { background: #2c8a4b; }
[data-ui] .s-timeline b { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; color: #15181c; }
[data-ui] .s-sum { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e3e5e8; display: flex; flex-direction: column; gap: 6px; }
[data-ui] .s-sum div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
[data-ui] .s-sum dd { font-weight: 600; }
[data-ui] .s-sum .total { padding-top: 8px; font-size: 16px; }
[data-ui] .s-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
[data-ui] .s-table th, [data-ui] .s-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e3e5e8; font-size: 13px; }
[data-ui] .s-table th { color: #586069; font-weight: 400; }
[data-ui] .s-table tfoot td { font-weight: 600; border-bottom: 0; }
[data-ui] .s-key { margin-top: 14px; font-size: 12px; color: #66707b; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
[data-ui] .s-text { margin-top: 16px; font-size: 15px; }
[data-ui] .s-alerts { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
[data-ui] .s-alerts li { padding: 10px 12px; border-radius: 4px; background: #f2f4f6; }
[data-ui] .s-alerts .warn { background: #fff4d9; }
[data-ui] .s-alerts .info { background: #e7f3ff; }
[data-ui] .s-alerts .ok { background: #e8f6ec; }

/* ---------- cells: staggered fragment grid ---------- */
.cells { margin-top: var(--section); padding-inline: var(--margin); }
.cells .h-head { margin-bottom: 56px; }
.cell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cell { background: var(--surface); height: 440px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
/* checkerboard: row one text-top, fragment-top, text-top; row two the reverse */
.cell-grid .cell:nth-child(2), .cell-grid .cell:nth-child(4), .cell-grid .cell:nth-child(6) { flex-direction: column-reverse; }
.cell-text { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.cell-text h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.cell-text p { color: var(--muted); max-width: 36ch; }
[data-ui].cell-ui { font-size: 13px; line-height: 1.35; letter-spacing: 0; padding: 24px 0 24px 24px; }
.cell-grid .cell:nth-child(even) [data-ui].cell-ui { padding: 24px 24px 24px 0; }
[data-ui] .u-card { background: var(--surface-2); border: 1px solid #262e38; border-right: 0; border-radius: 10px 0 0 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cell-grid .cell:nth-child(even) [data-ui] .u-card { border-radius: 0 10px 10px 0; border-right: 1px solid #262e38; border-left: 0; }
[data-ui] .u-row, [data-ui] .u-health { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--surface-3); border-radius: 6px; font-weight: 600; }
[data-ui] .u-row em, [data-ui] .u-health em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
[data-ui] .u-accept { align-self: flex-start; margin-top: 4px; padding: 8px 12px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; transition: background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
[data-ui] .u-accept:active { scale: 0.96; }
[data-ui] .u-accept.done { background: var(--surface-3); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { [data-ui] .u-accept:not(.done):hover { background: var(--accent-strong); } }
[data-ui] .u-title { padding: 10px; background: var(--surface-3); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
[data-ui] .u-title span { font-size: 11px; color: var(--muted); font-weight: 600; }
[data-ui] .u-title em { font-style: normal; font-size: 11px; color: var(--accent); align-self: flex-end; font-variant-numeric: tabular-nums; }
[data-ui] .u-stock { padding: 10px; background: var(--surface-3); border-radius: 6px; display: grid; gap: 4px; }
[data-ui] .u-stock span { color: var(--muted); font-size: 12px; }
[data-ui] .u-stock i { display: block; height: 6px; border-radius: 3px; background: #2b333d; position: relative; overflow: hidden; }
[data-ui] .u-stock i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 3px; }
[data-ui] .u-stock:first-child i::after { background: var(--sp); }
[data-ui] .u-raw { padding: 8px 10px; background: #0b0e12; border-radius: 6px; color: #ff8a73; font-size: 12px; overflow-wrap: anywhere; }
[data-ui] .u-plain { font-size: 14px; color: var(--ink); }
[data-ui] .u-chat { display: flex; flex-direction: column; gap: 8px; padding-right: 24px; }
[data-ui] .u-chat p { padding: 10px 12px; border-radius: 12px; max-width: 86%; font-size: 14px; }
[data-ui] .u-chat .me { align-self: flex-end; background: var(--surface-3); border-bottom-right-radius: 4px; }
[data-ui] .u-chat .ai { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-bottom-left-radius: 4px; }

/* ---------- talk: call and response ---------- */
.talk { margin-top: var(--section); padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--margin); }
.talk > * { grid-column: 4 / span 6; min-width: 0; }
.talk .h-lead { font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 64px; }
.ex + .ex { margin-top: 88px; }
.ex-say { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
[data-ui].ex-call { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; background: var(--surface-2); border: 1px solid #262e38; border-radius: 10px; font-size: 15px; letter-spacing: 0; min-height: 62px; }
[data-ui] .prompt-mark { color: var(--accent); font-weight: 600; }
[data-ui] .typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--accent); animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
[data-ui].ex-resp { margin: 12px 0 0 56px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; letter-spacing: 0; }
[data-ui] .r-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border-radius: 8px; font-weight: 600; }
[data-ui] .r-line em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--muted); text-align: right; }
[data-ui] .r-warn em { color: var(--accent); font-weight: 600; }
[data-ui] .r-big { padding: 14px; background: var(--surface); border-radius: 8px; color: var(--muted); }
[data-ui] .r-big b { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
[data-ui].ex-wide { width: min(760px, calc(100vw - 2 * var(--margin))); background: var(--surface); border-radius: 10px; padding: 16px; }
[data-ui] .feed-head { display: flex; justify-content: space-between; font-size: 14px; }
[data-ui] .feed-head span { color: var(--accent); }
[data-ui] .feed-head span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
[data-ui] .feed { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
[data-ui] .feed li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 6px; animation: log-in 400ms var(--ease-out); }
[data-ui] .feed li em { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- plans: the large table ---------- */
.plans { margin-top: var(--section); padding-inline: var(--margin); }
.plan-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--step-body); line-height: 1.3; hyphens: auto; }
.plan-table th, .plan-table td { text-align: left; vertical-align: top; padding: 16px 16px; font-weight: 400; }
.plan-table thead th { padding-top: 28px; padding-bottom: 24px; vertical-align: bottom; }
.plan-table thead th.corner { width: 18%; }
.plan-table thead th.corner .h-lead { font-size: clamp(2rem, 1rem + 2.6vw, 4rem); letter-spacing: -0.03em; line-height: 1; hyphens: manual; }
.plan-table tbody th { color: var(--muted); }
.plan-table tbody tr:nth-child(odd) { background: var(--surface); }
.plan-table td { font-variant-numeric: tabular-nums; }
.plan-table .p-name { display: block; font-size: var(--step-body); font-weight: 600; }
.plan-table .p-price { display: block; font-size: clamp(1.75rem, 1rem + 1.9vw, 3.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-table .p-price small, .pc-price small { font-size: var(--step-small); font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.plan-table .rec .p-price small { display: block; margin-top: 8px; }
.plan-table .p-price.p-quote, .pc-price.p-quote { font-size: var(--step-lead); letter-spacing: -0.015em; white-space: normal; }
.p-rec { display: block; margin-top: 10px; font-size: var(--step-small); font-weight: 600; color: var(--accent); }
/* the recommended column: a 1px accent frame, no colour block */
.plan-table .rec { box-shadow: inset 1px 0 0 var(--accent-line), inset -1px 0 0 var(--accent-line); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.plan-table thead .rec { box-shadow: inset 1px 0 0 var(--accent-line), inset -1px 0 0 var(--accent-line), inset 0 1px 0 var(--accent-line); }
.plan-table .row-cta .rec { box-shadow: inset 1px 0 0 var(--accent-line), inset -1px 0 0 var(--accent-line), inset 0 -1px 0 var(--accent-line); }
.plan-table .row-cta { background: transparent !important; }
.plan-table .row-cta td { padding-top: 24px; padding-bottom: 24px; }
.plan-table .row-cta .button { width: 100%; padding: 0 0.75rem; font-size: var(--step-small); }
.plan-note { margin-top: 20px; color: var(--muted); max-width: 70ch; }

.plan-cards { display: none; }
.plan-pick { display: none; }
.pc { padding: 24px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.pc + .pc { margin-top: 6px; }
.pc[hidden] { display: none; }
.pc-rec { background: color-mix(in oklab, var(--accent) 5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pc-name { font-size: var(--step-lead); font-weight: 600; }
.pc-name .p-rec { display: inline; margin: 0 0 0 0.5em; vertical-align: 0.15em; }
.pc-price { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.pc dl { display: flex; flex-direction: column; gap: 10px; }
.pc dl div { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pc dt { color: var(--muted); }
.pc dd { text-align: right; font-variant-numeric: tabular-nums; }
.pc .button { align-self: stretch; margin-top: 6px; }
@media (max-width: 1100px) {
  .plans-wrap { display: none; }
  .plan-cards { display: block; }
  .plan-cards-title { margin-bottom: 1.5rem; }
  .js .plan-pick { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 8px; background: var(--surface); max-width: 640px; }
  .plan-pick button { min-width: 0; min-height: 44px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
  .plan-pick button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .js .pc + .pc { margin-top: 0; }
}

/* ---------- faq ---------- */
.faq { margin-top: var(--section); padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--margin); align-items: start; }
.faq-title { grid-column: 1 / 5; position: sticky; top: calc(var(--bar-h) + 32px); }
.faq-list { grid-column: 5 / 13; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 transparent; transition: background-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.faq summary { list-style: none; cursor: pointer; min-height: 72px; padding: 20px 64px 20px 24px; position: relative; display: flex; align-items: center; font-size: var(--step-body); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
/* open answer: a 2px accent bar and one tone step up, no colour block */
.faq details[open] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--accent); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 58ch; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: var(--surface-2); } }

/* ---------- start: first step, already open ---------- */
.start { margin-top: var(--section); min-height: 90svh; background: var(--accent); background-image: var(--brand-gradient); color: var(--accent-ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--margin); padding: 40px var(--margin); align-items: center; }
.start-copy { grid-column: 1 / 6; align-self: end; display: flex; flex-direction: column; gap: 1rem; }
.start-title { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.045em; }
.start-copy p { max-width: 42ch; }
[data-ui].dialog { grid-column: 7 / 12; justify-self: start; width: min(440px, 100%); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; letter-spacing: 0; box-shadow: 0 24px 60px rgba(7, 9, 12, 0.35); }
[data-ui] .d-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
[data-ui] .d-label { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* border #6b7682: at least 3:1 against the field and the form (WCAG 1.4.11); placeholder in --muted (4.5:1) */
[data-ui] .d-input { min-height: 46px; padding: 0 12px; border-radius: 8px; border: 1px solid #6b7682; background: var(--surface-2); font-size: 16px; transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
[data-ui] .d-input::placeholder { color: var(--muted); opacity: 1; }
[data-ui] .d-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-ui] .d-input[aria-invalid="true"] { border-color: #ff6b5e; }
[data-ui] .d-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in oklab, #ff6b5e 25%, transparent); }
[data-ui] .d-error { font-size: 13px; color: #ff8a7d; }
[data-ui] .d-error[hidden] { display: none; }
[data-ui] .d-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 8px; }
[data-ui] .d-seg label { position: relative; }
[data-ui] .d-seg input { position: absolute; opacity: 0; inset: 0; }
[data-ui] .d-seg span { display: block; text-align: center; padding: 10px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
[data-ui] .d-seg input:checked + span { background: var(--ink); color: var(--bg); }
[data-ui] .d-seg input:focus-visible + span { outline: 2px solid var(--accent); }
[data-ui] .d-submit { margin-top: 14px; min-height: 50px; border-radius: 8px; background: var(--accent); background-image: var(--brand-gradient); color: var(--accent-ink); font-weight: 600; font-size: 16px; transition: background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
[data-ui] .d-submit:active { scale: 0.98; }
[data-ui] .d-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
[data-ui] .d-note .link { color: var(--ink); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { [data-ui] .d-submit:hover { background: var(--accent-strong); background-image: none; } }

/* ---------- footer of tiles ---------- */
.footer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(220px, auto) 320px; gap: 8px; padding: 8px; }
.ft { background: var(--surface); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; min-width: 0; }
.ft-statement { grid-column: 1 / 5; }
.ft-statement p { font-size: var(--step-lead); line-height: 1.2; max-width: 26ch; }
.ft-statement small { font-size: var(--step-small); color: var(--muted); }
.ft-nav { grid-column: 5 / 8; justify-content: flex-start; gap: 6px; }
.ft-nav a { padding: 2px 0; }
.ft-legal { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--step-small); color: var(--muted); }
.ft-time { grid-column: 8 / 10; color: var(--muted); }
.ft-clock { font-size: var(--step-head); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ft-mail { grid-column: 10 / 13; color: var(--muted); justify-content: flex-start; gap: 6px; }
.ft-mail span { margin-bottom: auto; }
.ft-mail a { color: var(--ink); font-size: var(--step-lead); overflow-wrap: anywhere; }
.ft-mail .ft-mail-alt { font-size: var(--step-small); color: var(--muted); }
.ft-word { grid-column: 1 / 9; background: var(--surface-2); display: grid; place-items: center; font-size: var(--step-display); font-weight: 500; font-stretch: var(--wide); letter-spacing: -0.05em; line-height: 1; overflow: hidden; }
.ft-word span { background-image: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-go { grid-column: 9 / 13; background: var(--accent); background-image: var(--brand-gradient); color: var(--accent-ink); transition: background-color var(--t-hover) ease; }
.ft-go span { font-size: var(--step-lead); font-weight: 600; }
.ft-go svg { align-self: flex-end; transition: translate var(--t-ui) var(--ease-out); }
.ft-go:active { scale: 0.99; }
@media (hover: hover) and (pointer: fine) { .ft-go:hover { background: var(--accent-strong); background-image: none; } .ft-go:hover svg { translate: 6px -6px; } }

/* sticky "Testar grátis" on phones, shown by main.js between the hero and the form */
.dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .cell-grid { grid-template-columns: 1fr 1fr; }
  .cell-grid .cell:nth-child(n) { flex-direction: column; }
  .cell-grid .cell:nth-child(4n+2), .cell-grid .cell:nth-child(4n+3) { flex-direction: column-reverse; }
  .talk > * { grid-column: 2 / span 10; }
  .docs { grid-template-columns: 1fr; }
  .docs-index { padding-top: 0; }
  .start-copy { grid-column: 1 / 7; }
  [data-ui].dialog { grid-column: 7 / 13; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; padding: 12px 16px; }
}

@media (max-width: 860px) {
  .bar-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-copy { gap: 1.25rem; }
  .hero-title { font-size: clamp(1.875rem, 8.2vw, 3.5rem); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { flex-direction: column-reverse; align-items: stretch; gap: 4px; padding: 12px; }
  .hero-right { padding: 2rem 16px 7rem; }
  [data-ui].map { width: min(100%, 540px); min-width: 0; }
  .faq-title { grid-column: 1 / -1; position: static; margin-bottom: 1.5rem; }
  .faq-list { grid-column: 1 / -1; }
  .start { grid-template-columns: 1fr; min-height: 0; row-gap: 2rem; align-items: start; padding-top: 64px; padding-bottom: 64px; }
  .start-copy, [data-ui].dialog { grid-column: 1; align-self: start; }
  [data-ui].dialog { width: 100%; }
  .footer { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 6px; padding: 6px; }
  .ft { min-height: 150px; }
  .ft-word { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 18vw; }
  .ft-go { grid-column: 1 / -1; order: -1; }
  .ft-nav, .ft-mail, .ft-time, .ft-statement { grid-column: auto; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .bar { gap: 1rem; }
  .bar-actions { gap: 1rem; }
  .tl-long { display: none; }
  .tl-short { display: inline; }
  .hero-stats dd { font-size: 1.5rem; }
  .hero-stats dt { font-size: 12px; }
  [data-ui].map { width: 100%; font-size: 12px; }
  [data-ui] .map-log { font-size: 12px; }
  /* nodes keep their names on phones: badge over a short label */
  [data-ui] .node { flex-direction: column; gap: 3px; padding: 4px 5px; border-radius: 8px; text-align: center; white-space: normal; }
  [data-ui] .node .nt { font-size: 11px; line-height: 1.1; max-width: 6.2em; }
  [data-ui] .node small { display: none; }
  [data-ui] .node .nb { width: 22px; height: 22px; font-size: 9px; }
  [data-ui] .node .nb-az { width: 22px; height: 22px; font-size: 13px; }
  [data-ui] .hub-name { font-size: 15px; }
  [data-ui] .hub-ai { font-size: 11px; }
  [data-ui] .hub-rate { font-size: 11px; }
  .docs-index { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .doc-tab { font-size: var(--step-small); font-stretch: 100%; letter-spacing: 0; padding: 12px 14px; background: var(--surface); color: var(--muted); }
  .doc-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .doc-tab:active { translate: 0 0; scale: 0.97; }
  .docs-note { display: none; }
  .docs-stage { height: auto; min-height: 0; padding: 16px; }
  [data-ui].sheet, [data-ui].sheet-narrow { top: 16px; left: 16px; width: calc(100% - 32px); padding: 20px; }
  [data-ui].sheet:not([hidden]) { position: relative; top: auto; left: auto; width: 100%; }
  .cell-grid { grid-template-columns: 1fr; gap: 6px; }
  .cell, .cell-grid .cell:nth-child(n) { height: auto; flex-direction: column; }
  .talk > * { grid-column: 1 / -1; }
  [data-ui].ex-resp { margin-left: 0; }
  [data-ui] .r-line { flex-wrap: wrap; }
  [data-ui] .r-line em { margin-left: 36px; text-align: left; flex-basis: 100%; }
  [data-ui] .r-warn em { margin-left: 0; }
  .faq summary { min-height: 64px; padding: 16px 56px 16px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .start-title { font-size: 15vw; }
  .footer { grid-template-columns: 1fr; padding-bottom: 6px; }

  .js .dock { display: block; position: fixed; z-index: var(--z-dock); left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); translate: 0 calc(100% + 32px); visibility: hidden; transition: translate var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
  .js .dock.is-on { translate: 0 0; visibility: visible; transition-delay: 0s; }
  .dock .button { width: 100%; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.8); }
}

/* ---------- legal and error pages ---------- */
.page { min-height: calc(100svh - var(--bar-h)); padding: clamp(3rem, 10vh, 7rem) var(--margin) var(--section); max-width: 1100px; }
.page h1 { font-size: var(--step-head); }
.page-lead { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.35; color: var(--muted); max-width: 40ch; }
.notice { margin-top: 2.5rem; max-width: 62ch; padding: 20px 24px; background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.notice strong { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.notice p + p { margin-top: 10px; }
.notice .link { text-decoration-color: currentColor; }
.page h2 { margin-top: 2.5rem; font-size: var(--step-lead); }
.page h2 + p { margin-top: 1rem; max-width: 62ch; }
.page-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.page-actions .link { font-weight: 600; }
.lost { margin-top: 3rem; width: min(100%, 420px); }
.lost .edge { stroke: #2b333d; stroke-width: 1.5; }
.lost .edge-cut { stroke-dasharray: 3 6; }
.page-foot { padding: 20px var(--margin) 32px; display: grid; gap: 16px; font-size: var(--step-small); color: var(--muted); background: var(--surface); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink); }
.foot-company { display: grid; gap: 4px; }
.foot-company p { max-width: none; }
.foot-company .link, .ft-company .link { text-decoration-color: currentColor; overflow-wrap: anywhere; }
/* the legal block of the home footer: one full-width tile under the others */
.ft-company { grid-column: 1 / -1; min-height: 0; gap: 4px; justify-content: flex-start; font-size: var(--step-small); color: var(--muted); }
.ft-company p { max-width: none; }

/* ---------- cookie consent (consent.js) and the /cookies page ---------- */
.consent { position: fixed; z-index: var(--z-consent); left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 760px; margin-inline: auto; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; background: color-mix(in oklab, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); box-shadow: inset 0 2px 0 var(--accent), 0 28px 64px -24px rgba(0, 0, 0, 0.85); }
.consent[hidden] { display: none; }
.consent-inner { padding: 20px; display: grid; gap: 14px; }
.consent-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.consent-title { font-size: 1.25rem; letter-spacing: -0.015em; }
.consent-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px 0 0; color: var(--ink); border-radius: var(--radius-sm); transition: background-color var(--t-hover) ease; }
.consent-close[hidden] { display: none; }
html.consent-open body { padding-bottom: var(--consent-space, 0px); }
.consent-title:focus { outline: none; }
.consent-text, .consent-cat p { font-size: var(--step-small); color: var(--muted); max-width: none; }
.consent-text .link, .consent-cat .link { color: var(--ink); text-decoration-color: currentColor; }
.consent-cats { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.consent-cat { padding: 14px 16px; background: var(--surface-2); display: grid; gap: 6px; }
.consent-cat-head { display: flex; align-items: center; gap: 12px; }
.consent-cat-head label { font-weight: 600; margin-right: auto; cursor: pointer; }
.consent-always { font-size: var(--step-small); color: var(--accent); }
.consent-switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid #6b7682; cursor: pointer; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.consent-switch::before { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: translate var(--t-ui) var(--ease-out), background-color var(--t-hover) ease; }
.consent-switch:checked { background: var(--accent); border-color: var(--accent); }
.consent-switch:checked::before { translate: 20px 0; background: var(--accent-ink); }
.consent-switch:disabled { cursor: not-allowed; opacity: 0.75; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--step-small); flex: 1 1 auto; }
.consent-btn[hidden] { display: none; }
.consent-btn-alt { background: var(--ink); background-image: none; color: var(--bg); }
.consent-btn-ghost { background: transparent; background-image: none; color: var(--ink); box-shadow: inset 0 0 0 1px #6b7682; }
@media (hover: hover) and (pointer: fine) {
  .consent-close:hover { background: var(--surface-3); }
  .consent-btn-alt:hover { background: #ffffff; color: var(--bg); }
  .consent-btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
}
/* the phone "Testar grátis" dock steps aside while the banner is up */
.js.consent-open .dock, .js.consent-open .dock.is-on { visibility: hidden; }

.page h2 ~ p, .page h2 ~ ul { max-width: 62ch; }
.page h2 ~ p + p { margin-top: 0.75rem; }
.page-list { margin-top: 1rem; display: grid; gap: 0.5rem; padding-left: 1.1rem; list-style: disc; }
.page-list li::marker { color: var(--accent); }
.page-list .page-list { margin-top: 0.5rem; list-style: circle; }
.table-wrap { margin-top: 1.25rem; overflow-x: auto; max-width: 100%; border: 1px solid var(--line); }
.table-wrap:focus-visible { outline-offset: 2px; }
.cookie-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--step-small); }
.cookie-table caption { text-align: left; padding: 12px 14px; color: var(--muted); }
.cookie-table th, .cookie-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cookie-table thead th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.cookie-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); white-space: nowrap; }
.tbc { color: #ffd166; font-weight: 600; white-space: nowrap; }
.page p .link, .page-list .link { text-decoration-color: currentColor; }
.page p code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--accent); }
.page-list + p { margin-top: 1rem; }
.consent-always { white-space: nowrap; }
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .cookie-table { min-width: 0; }
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cookie-table tr { display: block; padding: 10px 14px; border-top: 1px solid var(--line); }
  .cookie-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
  .cookie-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .cookie-table code { white-space: normal; overflow-wrap: anywhere; }
}
.page-note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
/* legal pages: table of contents and sub-headings */
.toc { margin-top: 2.5rem; max-width: 62ch; padding: 20px 24px; background: var(--surface); }
.toc h2 { margin-top: 0; }
.toc .page-list { list-style: decimal; }
.page .page-h3 { margin-top: 1.75rem; font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; }
.page .table-wrap + p { margin-top: 1rem; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Reduced motion: no travel, no looping blink, instant state changes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-ui] .typing::after, [data-ui] .feed-head span::before { animation: none !important; }
}

/* Em breve (index.html while the product is closed): one centred block, the brand mark with a soft glow. */
.soon-body { min-height: 100svh; display: flex; flex-direction: column; }
.soon { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: clamp(3rem, 12vh, 8rem) var(--margin); overflow: hidden; isolation: isolate; }
.soon-glow { position: absolute; inset: 50% auto auto 50%; width: min(70vw, 720px); aspect-ratio: 1; translate: -50% -60%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, #3ec6ff 22%, transparent) 0%, color-mix(in oklab, #c8ff2e 10%, transparent) 38%, transparent 70%); filter: blur(20px); animation: soon-breathe 6s ease-in-out infinite alternate; }
.soon-mark { width: clamp(64px, 9vw, 96px); height: auto; filter: drop-shadow(0 8px 28px rgba(62, 198, 255, 0.25)); }
.soon-tag { margin-top: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: var(--step-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.soon-title { font-size: var(--step-head); font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.soon-lead { font-size: var(--step-lead); line-height: 1.35; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.soon-contact { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.soon-contact .link { color: var(--ink); text-decoration-color: var(--accent-line); }
@keyframes soon-breathe { from { opacity: 0.7; scale: 0.94; } to { opacity: 1; scale: 1.04; } }
.product-list { margin-top: 1rem; display: grid; gap: 0.5rem; padding-left: 1.25rem; max-width: 70ch; list-style: disc; }
.product-list li::marker { color: var(--accent); }
.product-list + p { margin-top: 1rem; }
