/* ==========================================================================
   Lupa: landing "contraste". Grade editorial de 12 colunas, escala compacta (corpo 14px),
   telas reais do painel (cenas de /app/showcase.html em iframe) e desenhos em SVG. Tokens são cópia exata de web/src/styles.css.
   Nenhuma requisição a terceiros: fontes em ./fonts.
   ========================================================================== */

/* ---------- fontes (latin + latin-ext, servidas por nós) ---------- */
@font-face { font-family: 'Fraunces Variable'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(fonts/fraunces-latin-ext-full-italic.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces Variable'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(fonts/fraunces-latin-full-italic.woff2) format('woff2-variations');
  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; }
@font-face { font-family: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-400-normal.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-500-normal.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/ibm-plex-mono-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/ibm-plex-mono-latin-600-normal.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; }

/* ---------- tokens: cópia do painel (web/src/styles.css) ---------- */
:root {
  color-scheme: light;
  --plane: #efeadf;
  --surface: #f9f6ef;
  --surface-2: #f0ebe0;
  --surface-3: #e5dfd1;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink: #1c1a16;
  --ink-2: #4b473e;
  --muted: #8a8475;
  --line: #e0d9ca;
  --line-strong: #c7bfad;
  --solid: #1c1a16;
  --solid-ink: #f9f6ef;
  --mark: #dcf45a;
  --mark-ink: #1c1a16;
  --pen: #2743c4;
  --data-rest: #b8b09e;
  --hatch: #d8d0bf;
  --good: #1d7a3e;
  --bad: #c2311d;
  --focus: #2743c4;
  --r-card: 3px;
  --r-ctl: 3px;
  --font: 'Schibsted Grotesk Variable', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --col: 1760px;
  --gut: clamp(20px, 4.2vw, 80px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --plane: #12110e;
    --surface: #1a1915;
    --surface-2: #22201b;
    --surface-3: #2c2a23;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.9 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --ink: #ede7d7;
    --ink-2: #bcb5a3;
    --muted: #878071;
    --line: #2c2a23;
    --line-strong: #3f3c33;
    --solid: #ede7d7;
    --solid-ink: #1a1915;
    --mark: #d6f04c;
    --mark-ink: #12110e;
    --pen: #8a9dff;
    --data-rest: #5b564a;
    --hatch: #34312a;
    --good: #67c98a;
    --bad: #ff8466;
    --focus: #8a9dff;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --plane: #12110e;
  --surface: #1a1915;
  --surface-2: #22201b;
  --surface-3: #2c2a23;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.9 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ink: #ede7d7;
  --ink-2: #bcb5a3;
  --muted: #878071;
  --line: #2c2a23;
  --line-strong: #3f3c33;
  --solid: #ede7d7;
  --solid-ink: #1a1915;
  --mark: #d6f04c;
  --mark-ink: #12110e;
  --pen: #8a9dff;
  --data-rest: #5b564a;
  --hatch: #34312a;
  --good: #67c98a;
  --bad: #ff8466;
  --focus: #8a9dff;
}



/* ---------- tokens extras (borda e sombra dura dos prints) ---------- */
:root { --edge: var(--ink); --drop: var(--ink); --cap: #6a655a; --gap: clamp(14px, 1.7vw, 26px); --sec: clamp(52px, 5.4vw, 92px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --edge: #6f6959; --drop: #2c2a23; --cap: #a39c8a; } }
:root[data-theme='dark'] { --edge: #6f6959; --drop: #2c2a23; --cap: #a39c8a; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; scroll-padding-top: 64px; } }
html, body { margin: 0; }
body { background: var(--grain), var(--plane); background-attachment: fixed; color: var(--ink);
  font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 1921px) { body { font-size: 15px; } }
html.trocando body, html.trocando body * { transition: color 0.12s, background-color 0.12s, border-color 0.12s !important; }
::selection { background: var(--mark); color: var(--mark-ink); }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--solid); color: var(--solid-ink); padding: 8px 12px; border-radius: var(--r-ctl); font-size: 13px; }
.skip:focus { top: 10px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
p { margin: 0 0 0.9em; max-width: 62ch; }
code, kbd, pre, .num { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--serif); font-style: italic; font-optical-sizing: auto; font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 560; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 22px + 2.8vw, 58px); line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: clamp(24px, 17px + 1.5vw, 38px); line-height: 1.1; letter-spacing: -0.026em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
h2 b, h1 b { font-weight: 700; }
.nb { white-space: nowrap; }
@media (max-width: 520px) { .nb { white-space: normal; } }

/* o marca-texto: no máximo um por tela */
.hl { background: linear-gradient(transparent 0.14em, var(--mark) 0.14em, var(--mark) 100%) no-repeat 0 0 / 100% 100%;
  color: var(--mark-ink); padding: 0 0.14em 0.1em; margin: 0 -0.06em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.7s cubic-bezier(.3,.7,.2,1); }
.hl.pre { background-size: 0 100%; }
.lead { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 12px 0 0; }

/* ---------- estrutura ---------- */
.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
main > section { padding: var(--sec) 0; overflow-x: clip; }
main > section + section { border-top: 1px solid var(--line); }

/* anatomia repetida: texto (4 colunas) + visual (8 colunas); .flip inverte */
.feat .copy, .start .copy, .priv .copy, .faq-s .copy, .final .copy { grid-column: 1 / span 4; align-self: start; }
.feat .vis, .start .vis, .priv .vis, .faq-s .vis { grid-column: 5 / span 8; min-width: 0; }
.flip .copy { grid-column: 8 / span 5; grid-row: 1; }
.flip .vis { grid-column: 1 / span 7; grid-row: 1; }
@media (min-width: 900px) { .copy { position: sticky; top: 76px; } }
.copy h2 { max-width: 14ch; }
.copy h2 .ln { display: block; }
@media (max-width: 899px) {
  .g > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .copy { margin-bottom: 26px; }
}

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--plane) 96%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); min-height: 52px; }
.logo-link { display: inline-flex; text-decoration: none; padding: 2px; flex: 0 0 auto; }
.logo-word { position: relative; z-index: 0; font-family: var(--serif); font-size: 24px; font-weight: 560; line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-style: italic; color: var(--mark-ink); padding: 0 0.14em 0 0.04em; }
.logo-word::before { content: ''; position: absolute; z-index: -1; left: -0.06em; right: -0.02em; top: 0.44em; bottom: 0.02em; background: var(--mark);
  transform: skewX(-12deg) rotate(-1.2deg); border-radius: 1px 3px 2px 4px; }
:root[data-theme='dark'] .logo-word::before { top: 0.14em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .logo-word::before { top: 0.14em; } }
.nav { display: flex; gap: clamp(14px, 1.8vw, 26px); font-size: 13px; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px; transition: background-size 0.2s; }
.nav a:hover { background-size: 100% 1px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.top-right > a:not(.btn) { text-decoration: none; }
.top-right > a:not(.btn):hover { text-decoration: underline; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r-ctl); padding: 2px; }
.seg button { border: 0; background: transparent; padding: 3px 9px; font-size: 12px; border-radius: 2px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--solid); color: var(--solid-ink); }
@media (max-width: 860px) { .nav .n-sec, .top-right > a:not(.btn) { display: none; } }
@media (max-width: 520px) { .top .wrap { gap: 10px; } .top-right { gap: 8px; } .seg button { padding: 3px 7px; font-size: 11px; } .top .btn { padding: 0 10px; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.btn.solid:hover { box-shadow: 3px 3px 0 var(--mark); transform: translate(-1px, -1px); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 14px; }
.top .btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- telas reais: moldura e sombra dura em volta do iframe da cena ---------- */
figure { margin: 0; }
.print { position: relative; }
.frame { position: relative; }
.crop { position: relative; overflow: hidden; border: 1px solid var(--edge); background: var(--surface); box-shadow: 5px 5px 0 var(--drop); }
/* a cena é imagem: sem clique, sem foco; a altura chega da própria cena (landing.js) e não sobra rolagem */
.cena { display: block; width: 100%; border: 0; pointer-events: none; background: var(--surface); }
.print figcaption { margin-top: 12px; font: 400 12px/1.4 var(--font); color: var(--ink-2); }

/* marcas de corte nos cantos, como em prova de gráfica */
.marks::before { content: ''; position: absolute; inset: -10px; pointer-events: none; z-index: 2;
  --t: linear-gradient(var(--muted), var(--muted));
  background:
    var(--t) 0 7px / 7px 1px no-repeat, var(--t) 7px 0 / 1px 7px no-repeat,
    var(--t) 100% 7px / 7px 1px no-repeat, var(--t) calc(100% - 7px) 0 / 1px 7px no-repeat,
    var(--t) 0 calc(100% - 7px) / 7px 1px no-repeat, var(--t) 7px 100% / 1px 7px no-repeat,
    var(--t) 100% calc(100% - 7px) / 7px 1px no-repeat, var(--t) calc(100% - 7px) 100% / 1px 7px no-repeat; }


/* ---------- 1. abertura: o que é, e o print real ---------- */
.hero { padding: clamp(30px, 3.6vw, 56px) 0 var(--sec) !important; }
.hero .g { align-items: center; row-gap: 30px; }
.hero-copy { grid-column: 1 / span 5; position: relative; z-index: 2; }
.hero-print { grid-column: 6 / span 7; width: 100%; }
.hero h1 { font-size: clamp(34px, 16px + 2.7vw, 60px); max-width: 15ch; }
@media (min-width: 1300px) { .hero h1 { max-width: none; } .hero h1 .ln { display: block; white-space: nowrap; } }
.hero .lead { margin-top: 18px; max-width: 40ch; }
.lupa-line { display: none; position: absolute; left: -118px; bottom: 34px; width: 112px; height: 112px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; pointer-events: none; }
.lupa-line .in { stroke-width: 0.8; stroke-dasharray: 2 3; }
.lupa-line .sh { stroke-width: 1.4; }
.lupa-line .hd, .lupa-line .hd2 { stroke-width: 1.6; }
@media (min-width: 1200px) { .lupa-line { display: block; } }
.free { margin: 14px 0 0; font-size: 12px; color: var(--ink-2); }
@media (max-width: 899px) { .hero-copy, .hero-print { grid-column: 1 / -1; } .hero h1 { max-width: 16ch; } }
@media (max-width: 520px) { .hero .actions .btn { flex: 1 1 0; padding: 0 12px; } }

/* hero: anel e bilhete em volta da linha "Busca orgânica". A cena manda onde a linha está (--ax, --ay, --aw, --ah, em px
   a partir do canto do iframe); até chegar, nada aparece. */
.over { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.2s; }
.mirado .over { opacity: 1; }
.ring { position: absolute; left: calc(var(--ax) - 14px); top: calc(var(--ay) - 16px); width: calc(var(--aw) + 38px); height: calc(var(--ah) + 34px);
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; filter: url(#rough); overflow: visible; }
.ring path { vector-effect: non-scaling-stroke; }
.hand { position: absolute; left: calc(var(--ax) + var(--aw) + 66px); top: max(10px, calc(var(--ay) - 150px)); width: 190px; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.25; color: var(--ink);
  background: var(--surface); padding: 4px 8px; border-radius: 2px; font-variation-settings: 'SOFT' 100, 'WONK' 1; transform: rotate(-1.5deg); }
.hand-arrow { position: absolute; left: calc(var(--ax) + var(--aw) - 10px); top: max(56px, calc(var(--ay) - 100px)); width: 68px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-4deg); }
.hand-q { display: none; }
/* fita adesiva segurando o print */
.tape::after { content: ''; position: absolute; z-index: 4; top: -11px; right: 12%; width: 84px; height: 22px; transform: rotate(3deg);
  background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--ink) 7%, transparent) 4px 5px), color-mix(in srgb, var(--surface-3) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent); clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 12%, 100% 24%, 96% 38%, 100% 52%, 96% 66%, 100% 80%, 96% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%, 3% 80%, 0 66%, 3% 52%, 0 38%, 3% 24%); }
@media (max-width: 700px) {
  /* no celular a cena se reorganiza em coluna: o bilhete sai de cima dela e vira legenda */
  .hero-print .over { display: none; }
  .hand-q { display: block; margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
  .tape::after { right: 8%; }
}

/* ---------- seções de recurso ---------- */
.feat .copy, .live .copy, .start .copy { align-self: center; position: static; }

/* origens: a lista de canais e o bilhete apontando para a linha da IA (a cena manda a altura dela em --ay) */
.s-orig { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; }
.s-orig .print { min-width: 0; }
.note-hand { position: relative; margin: calc(var(--ay, 200px) + var(--ah, 50px) / 2 - 14px) 0 0 40px; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--ink); max-width: 22ch;
  font-variation-settings: 'SOFT' 100, 'WONK' 1; transform: rotate(-1.5deg); }
.note-hand svg { position: absolute; left: -48px; top: 6px; width: 44px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .s-orig { grid-template-columns: minmax(0, 460px); row-gap: 18px; } .note-hand { order: -1; margin: 0 0 4px 4px; } .note-hand svg { display: none; } }

/* links: o formulário e o link pronto com o QR, na largura da coluna */
.s-links .p-links { width: 100%; max-width: 620px; }

/* formulário: o abandono campo a campo em primeiro plano, as metas logo abaixo, à direita */
.s-form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.p-fm { grid-column: 1 / -1; z-index: 2; }
/* bilhete ao lado do campo onde mais desistem (posição vinda da cena) */
.fun-note { position: absolute; z-index: 3; left: calc(var(--ax) + var(--aw) + 10px); top: calc(var(--ay) + var(--ah) / 2 - 12px); display: flex; align-items: center; gap: 6px;
  padding: 2px 6px; background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); font-variation-settings: 'SOFT' 100, 'WONK' 1;
  transform: rotate(-1.5deg); pointer-events: none; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.mirado .fun-note { opacity: 1; }
.fun-note svg { width: 34px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* tempo real: faixa invertida (quebra de ritmo), print dentro da margem */
main > section.live { background: var(--solid); color: var(--solid-ink); border-top: 0; }
.live .copy { grid-column: 1 / span 4; }
.live .vis { grid-column: 5 / -1; min-width: 0; margin: 0 calc(-1 * var(--gut) - max(0px, (100vw - var(--col) - 2 * var(--gut)) / 2)) 0 0; }
.live .lead { color: color-mix(in srgb, var(--solid-ink) 78%, transparent); }
.live .crop { border-color: var(--solid-ink); box-shadow: 6px 6px 0 var(--mark); }
.live figcaption { color: color-mix(in srgb, var(--solid-ink) 66%, transparent) !important; }
.live .beat { stroke: var(--solid-ink); }
.live .beat-dot { fill: var(--dot); }
.live { --dot: var(--mark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .live { --dot: #1d7a3e; } }
:root[data-theme='dark'] .live { --dot: #1d7a3e; }
.live .pulse::before { background: var(--dot); box-shadow: 0 0 0 0 color-mix(in srgb, var(--mark) 55%, transparent); }
@media (max-width: 899px) { .live .copy, .live .vis { grid-column: 1 / -1; } .live .vis { margin-right: 0; } }
.pulse { position: relative; }
.pulse::before { content: ''; display: inline-block; width: 0.28em; height: 0.28em; margin-right: 0.18em; border-radius: 50%; background: var(--good); vertical-align: 0.28em;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 50%, transparent); }
@media (prefers-reduced-motion: no-preference) { .pulse::before { animation: ping 2s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 0.3em transparent; } }

.beat { display: block; width: min(240px, 100%); margin-top: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.beat-dot { fill: var(--good); stroke: none; }
@media (prefers-reduced-motion: no-preference) { .beat-dot { animation: beat 2s ease-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.5); } 24% { transform: scale(1); } }

/* importação: o assistente do GA4, encostado no bloco de código */
.p-im { width: min(100%, 520px); margin: 22px 0 0 auto; position: relative; z-index: 1; }
@media (max-width: 700px) { .p-im { margin-top: 18px; } }

/* ---------- como começa ---------- */
.code { background: var(--solid); color: var(--solid-ink); border-radius: var(--r-card); box-shadow: 5px 5px 0 var(--drop); border: 1px solid var(--solid); max-width: 860px; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-bottom: 1px solid color-mix(in srgb, var(--solid-ink) 22%, transparent);
  font: 400 11px/1 var(--mono); opacity: 1; color: color-mix(in srgb, var(--solid-ink) 70%, transparent); }
.code-bar .btn { background: transparent; color: var(--solid-ink); border-color: color-mix(in srgb, var(--solid-ink) 40%, transparent); }
.code-bar .btn:hover { border-color: var(--solid-ink); }
.code pre { margin: 0; padding: 16px 14px 18px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.code-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); max-width: none; }
@media (max-width: 760px) { .code pre { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* ---------- privacidade ---------- */
.priv .copy h2 { font-size: clamp(28px, 18px + 1.8vw, 42px); }
.fine { font-size: 12px; color: var(--ink-2); max-width: 46ch; margin: 16px 0 0; }
.more { display: inline-block; margin-top: 16px; font-weight: 560; font-size: 13px; text-underline-offset: 4px; text-decoration-color: var(--pen); color: var(--pen); }
.more::after { content: ' →'; }
.priv .vis { grid-column: 7 / span 6; }
.console { background: var(--surface); border: 1px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); border-radius: var(--r-card); padding: 18px 20px 14px; font-family: var(--mono); max-width: 520px; }
.console { position: relative; }
.cookie { position: absolute; top: -34px; right: 20px; width: 76px; height: 76px; transform: rotate(10deg); fill: var(--surface-2); stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: url(#rough); }
.cookie .c-dots { fill: none; stroke-width: 2.6; }
.console p { margin: 0; max-width: none; }
.c-in { font-size: 12.5px; color: var(--ink); }
.prompt { color: var(--cap); margin-right: 6px; }
.c-out { font-size: 20px; font-weight: 500; margin-top: 8px !important; }
.c-note { font: italic 560 15px/1.3 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--ink); margin-top: 4px !important; }
.console hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 16px 0; }
.days { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.days li { display: grid; grid-template-columns: 52px 1fr; align-items: center; font-size: 12px; transition: opacity 0.2s; }
.days li span { color: var(--cap); }
.days code { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
/* linha ainda não mostrada: só a cor muda (opacity 0.35 deixava o texto em 1,9:1; --cap passa de 4,5:1 nos dois temas) */
.days li.off code { color: var(--cap); }
.c-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 400 12px/1.35 var(--font); color: var(--ink-2); }
@media (max-width: 899px) { .priv .vis { grid-column: 1 / -1; } }

/* ---------- preços ---------- */
.price-head { margin-bottom: 28px; }
.price-head h2 { max-width: 20ch; }
.range-wrap { margin: 0 0 34px; }
.range-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.range-label label { font-size: 12.5px; color: var(--ink-2); flex: 1 0 100%; }
.range-out { font: 400 13px/1.2 var(--mono); color: var(--ink-2); }
.range-out b { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.range-fit { font-family: var(--serif); font-style: italic; font-size: 18px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.range-fit::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--ink); margin-right: 12px; vertical-align: 0.3em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: grab; display: block; --th: 14px; }
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border: 1px solid var(--edge); border-radius: 2px;
  background: linear-gradient(to right, var(--mark) var(--fill, 51%), transparent var(--fill, 51%)), repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 6px), var(--surface); }
input[type=range]::-moz-range-track { height: 12px; border: 1px solid var(--edge); border-radius: 2px;
  background: linear-gradient(to right, var(--mark) var(--fill, 51%), transparent var(--fill, 51%)), repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 6px), var(--surface); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 28px; margin-top: -9px; border-radius: 2px; border: 1px solid var(--edge);
  background: linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--surface); box-shadow: 2px 2px 0 var(--drop); }
input[type=range]::-moz-range-thumb { width: 12px; height: 26px; border-radius: 2px; border: 1px solid var(--edge);
  background: linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--surface); box-shadow: 2px 2px 0 var(--drop); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.range-ticks { position: relative; height: 22px; margin-top: 6px; font: 400 11px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.range-ticks span { position: absolute; top: 0; left: calc(7px + (100% - 14px) * var(--p)); transform: translateX(-50%); padding-top: 7px; white-space: nowrap; }
.range-ticks span::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 5px; background: var(--line-strong); }
.range-ticks span:first-child { transform: translateX(-7px); } .range-ticks span:first-child::before { left: 7px; }
.range-ticks span:last-child { transform: translateX(calc(-100% + 7px)); } .range-ticks span:last-child::before { left: auto; right: 7px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--edge); background: var(--surface-2); }
.plan { padding: 20px 22px 22px; display: flex; flex-direction: column; position: relative; transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.plan + .plan { border-left: 1px solid var(--line-strong); }
.plan.on { background: var(--surface); z-index: 1; box-shadow: 5px 5px 0 var(--drop), inset 0 0 0 1px var(--edge), inset 0 3px 0 var(--ink); transform: translate(-3px, -3px); }
.plan.on h3::after { content: 'seu plano'; font: 400 10.5px/1 var(--mono); font-style: normal; letter-spacing: 0; margin-left: 10px; padding: 3px 6px; background: var(--solid); color: var(--solid-ink); border-radius: 2px; vertical-align: 3px; }
.plan h3 { font-size: 20px; }
.price-n { margin: 12px 0 0; font-size: 12px; max-width: none; }
.pn { display: inline-block; font: 500 28px/1.2 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pn small { font: 400 12px var(--font); letter-spacing: 0; margin-left: 3px; opacity: 0.75; }
.alt { margin: 2px 0 14px; font-size: 12px; color: var(--cap); }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.honest { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; font-variation-settings: 'SOFT' 100, 'WONK' 1; max-width: none; }
.range-over { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); display: none; }
.range-over.on { display: block; }
@media (max-width: 760px) { .plan.on { transform: none; box-shadow: inset 0 3px 0 var(--ink), inset 0 0 0 1px var(--edge); } .plans { grid-template-columns: 1fr; gap: 14px; border: 0; background: none; } .plan { border: 1px solid var(--line-strong); background: var(--surface-2); } .plan.on { background: var(--surface); border-color: var(--edge); } .plan + .plan { border-left: 1px solid var(--line-strong); } .range-fit { flex: 1 0 100%; } .range-fit::before { display: none; } }

/* ---------- perguntas ---------- */
.faq { margin: 0; max-width: 960px; }
.faq > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px var(--gap); padding: 16px 0; border-top: 1px solid var(--line-strong); }
.faq > div:last-child { border-bottom: 1px solid var(--line-strong); }
.faq dt { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.faq dd { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) { .faq > div { grid-template-columns: 1fr; } }

/* ---------- final: banda invertida, lupa de marca-texto sangrando pela borda ---------- */
main > section.final { background: var(--solid); color: var(--solid-ink); border-top: 0; padding: clamp(56px, 6vw, 96px) 0; position: relative; overflow: hidden; }
.final .copy { grid-column: 1 / span 6; position: relative; top: auto; z-index: 2; }
.final .copy h2 { max-width: 14ch; font-size: clamp(30px, 20px + 2.2vw, 48px); }
.final .lead { color: color-mix(in srgb, var(--solid-ink) 78%, transparent); }
.final .btn { margin-top: 22px; background: var(--solid-ink); color: var(--solid); border-color: var(--solid-ink); }
.final .btn:hover { box-shadow: 3px 3px 0 var(--mark); }
.final .btn:focus-visible { outline-color: var(--mark); }
.big-lupa { position: absolute; right: clamp(24px, 8vw, 150px); top: 50%; width: clamp(220px, 20vw, 320px); height: auto; overflow: visible; fill: none; stroke: var(--solid-ink); transform: translateY(-50%) rotate(-8deg); z-index: 1; }
.big-lupa .rough { filter: url(#rough); }
.big-lupa .lens-fill { fill: var(--mark); stroke: none; }
.big-lupa .lens-hatch { fill: url(#hach); stroke: none; }
.big-lupa pattern line { stroke: color-mix(in srgb, var(--mark-ink) 30%, transparent); stroke-width: 1.3; }
.big-lupa .lens-edge { stroke-width: 5; }
.big-lupa .shine { stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: 0.55; }
.big-lupa .handle { stroke-width: 26; stroke-linecap: round; stroke: var(--solid-ink); }
.big-lupa .handle-in { stroke-width: 8; stroke-linecap: round; stroke: var(--solid); }
@media (max-width: 899px) { .final .copy { grid-column: 1 / -1; } .big-lupa { width: 190px; right: -30px; top: auto; bottom: -50px; transform: rotate(-8deg); opacity: 0.9; } }
@media (prefers-reduced-motion: no-preference) { .big-lupa { transition: transform 0.6s cubic-bezier(.3,.7,.2,1); } .final:hover .big-lupa { transform: translateY(-50%) rotate(-1deg); } }

/* ---------- rodapé ---------- */
footer { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 12px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
footer .logo-word { font-size: 20px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer p { margin: 0 0 0 auto; max-width: none; color: var(--ink-2); }
footer p.dry { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
footer a { color: var(--ink); }
@media (max-width: 640px) { footer p { margin-left: 0; flex: 1 0 100%; } }

/* ---------- página "Como a Lupa conta" (mesma escala compacta) ---------- */
.doc { padding: clamp(32px, 4.4vw, 64px) 0 var(--sec); overflow-x: clip; }
.doc .wrap > * { max-width: 680px; }
.doc h1 { font-size: clamp(30px, 22px + 2vw, 46px); margin-bottom: 14px; }
.doc h2 { font-size: clamp(20px, 17px + 0.8vw, 26px); margin: clamp(32px, 3.6vw, 52px) 0 12px; }
.doc .lead { margin: 0 0 10px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc dl { margin: 0; }
.doc dt { font-weight: 640; margin-top: 16px; }
.doc dd { margin: 3px 0 0; color: var(--ink-2); }
.doc .aviso { border-left: 3px solid var(--ink); padding: 4px 0 4px 18px; margin-top: 40px; }
.doc .aviso h2 { margin-top: 0; font-size: clamp(18px, 16px + 0.6vw, 22px); }
/* termos e privacidade: aviso de versão no topo, subtítulos e o que falta preencher */
.doc .versao { display: block; width: fit-content; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--line-strong); background: var(--surface-2); font: 500 12px/1.4 var(--mono); color: var(--ink-2); }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc mark { background: var(--mark); color: var(--mark-ink); padding: 0 3px; }
.back { display: inline-block; margin-bottom: 22px; font-weight: 560; font-size: 13px; }

/* zonas dos planos sob a régua: um rótulo por faixa, centrado nela */
.range-zones { position: relative; height: 24px; margin-top: 2px; font: 400 11.5px/1 var(--mono); }
.range-zones > span { position: absolute; top: 0; left: calc(7px + (100% - 14px) * var(--a)); width: calc((100% - 14px) * (var(--b) - var(--a)) - 4px); padding-top: 8px; border-top: 2px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; text-align: center; transition: color 0.2s, border-color 0.2s; }
.range-zones > span.z0 { overflow: visible; text-align: left; width: calc((100% - 14px) * (var(--b) - var(--a))); }
.range-zones > span.on { border-top-color: var(--ink); color: var(--ink); font-weight: 500; }

.range-zones .sm { display: none; }
@media (max-width: 899px) { .range-zones .lg { display: none; } .range-zones .sm { display: inline; } }
@media (max-width: 640px) {
  .range-ticks span:nth-child(2), .range-ticks span:nth-child(4), .range-ticks span:nth-child(6) { display: none; }
  .range-zones > span { font-size: 11px; text-align: right; }
  .range-zones > span.z0 { text-align: left; }
}

/* ---------- página de preços (precos.html) ---------- */
.pp-top { padding-top: clamp(28px, 3.6vw, 52px) !important; }
.pp-crumb { font-family: var(--mono); font-size: 11.5px; color: var(--cap); margin-bottom: 18px; display: flex; gap: 8px; }
.pp-crumb a { color: inherit; }
.price-head h1 { font-size: clamp(30px, 20px + 2.4vw, 52px); max-width: 20ch; margin: 0 0 10px; }
.honest a { font-style: normal; font-family: var(--font); font-size: 14px; }
.pp-incl .copy { grid-column: 1 / span 4; align-self: start; }
.pp-list { list-style: none; margin: 0; padding: 0; grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.pp-list li { display: grid; gap: 4px; align-content: start; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.pp-list b { font-weight: 650; }
.pp-list span { color: var(--ink-2); font-size: 0.95em; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 899px) { .pp-incl .copy, .pp-list { grid-column: 1 / -1; } .pp-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- acessibilidade ---------- */
/* texto só para leitor de tela (título de seção que o visual não mostra) */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Alvos de toque de 44px no celular sem engordar o visual: botões ganham uma área clicável invisível (::after) e
   links de texto ganham padding com margem negativa do mesmo tamanho, então o layout não muda. */
@media (max-width: 860px) {
  .btn, .seg button { position: relative; }
  .btn::after, .seg button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .logo-link { min-height: 44px; min-width: 44px; align-items: center; padding: 2px 6px; margin: 0 -6px; }
  .nav a { display: inline-block; padding: 14px 4px; margin: -8px -4px; background-position: 4px calc(100% - 8px); }
  .seg button { min-width: 44px; }
  input[type=range] { height: 44px; margin: -7px 0; } /* a margem devolve o espaço: o trilho segue onde estava */
  footer nav { gap: 0 12px; }
  footer nav a, .back, .more, .pp-crumb a { display: inline-block; padding: 13px 8px; margin: -13px -8px; }
  .pp-crumb a { padding: 13px 10px; margin: -13px -10px; }
  .back { margin-bottom: 9px; }
  .more { margin-top: 3px; }
  footer .logo-link { margin-top: -8px; margin-bottom: -8px; }
}
