/* =====================================================================
   Página de vendas da barbearia (domínio base).

   Identidade da proposta aprovada (visual-moderno/propostas/barbearia-aprovada):
   Bricolage Grotesque nos títulos, Geist no texto, Geist Mono nos números,
   neutros quentes e o laranja-queimado da casa. Tamanhos na escala do
   Tailwind (12/14/16/18/20/24/30/36/48/60/72) e espaços na grade de 4/8 px.

   Movimento: só transform e opacity (a cor das palavras da frase é a exceção
   consciente), curva de mola, e `prefers-reduced-motion` desliga tudo
   mantendo o conteúdo. O estado do HTML é sempre o final: a classe `js` (posta
   no <head>) e o lp.js só ligam efeitos, nunca escondem conteúdo de quem não
   tem script.
   ===================================================================== */

@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
    --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
    --body: 'Geist', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --bg: #f6f4f1; --surface: #ffffff; --sunken: #efece7;
    --line: #e4dfd8; --line-strong: #d3ccc2;
    --fg: #1d1a17; --muted: #6c655d;
    --dim: #857d74; /* palavra "apagada" da frase: ainda 3,7:1, passa como texto grande */
    --brand: #b4531a; --brand-ink: #ffffff; --brand-text: #9a4413; --brand-soft: #f7e6da;
    --ok: #1f7a4d; --ok-soft: #dff1e7; --warn: #8f5200; --warn-soft: #fbecd2; --bad: #b42318; --bad-soft: #fbe3e0;

    --shadow-sm: 0 1px 2px rgb(40 30 20 / .06), 0 4px 12px -8px rgb(40 30 20 / .14);
    --shadow-md: 0 1px 2px rgb(40 30 20 / .06), 0 12px 32px -16px rgb(40 30 20 / .28);
    --shadow-lg: 0 2px 6px rgb(40 30 20 / .08), 0 32px 64px -24px rgb(40 30 20 / .38);

    --ease: cubic-bezier(.32, .72, 0, 1);
    --spring: cubic-bezier(.2, .9, .25, 1);

    color-scheme: light;
}
[data-theme="dark"] {
    --bg: #12100e; --surface: #1b1815; --sunken: #151310;
    --line: #2b2621; --line-strong: #3a332c;
    --fg: #f2eee9; --muted: #a59d93;
    --dim: #756d65;
    --brand: #b4531a; --brand-ink: #ffffff; --brand-text: #f0a274; --brand-soft: #33221a;
    --ok: #5cc792; --ok-soft: #173225; --warn: #e8a64a; --warn-soft: #33260f; --bad: #f08a80; --bad-soft: #3a1916;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 6px 16px -10px rgb(0 0 0 / .6);
    --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 16px 36px -18px rgb(0 0 0 / .8);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .5), 0 32px 64px -24px rgb(0 0 0 / .9);

    color-scheme: dark;
}

/* Cor de cada barbeiro, a mesma da agenda do painel. */
.b-rafa  { --c: #b4531a; }
.b-dinho { --c: #0f766e; }
.b-leo   { --c: #7c3aed; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/24px var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .3s var(--ease); }
.skip:focus { transform: translateY(80px); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px)  { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

/* ---------- tipografia ---------- */
.eyebrow { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.eyebrow-dark { color: #f0a274; }
.h2 {
    font: 700 30px/36px var(--display); letter-spacing: -.02em; text-wrap: balance;
}
.h3 { font: 700 24px/32px var(--display); letter-spacing: -.015em; text-wrap: balance; }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); text-wrap: pretty; max-width: 60ch; }
@media (min-width: 768px) {
    .h2 { font-size: 48px; line-height: 52px; }
    .h3 { font-size: 30px; line-height: 36px; }
}

/* ---------- logo e topo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
    width: 32px; height: 32px; flex: none; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--brand); color: var(--brand-ink);
    font: 700 16px/1 var(--display);
}
.logo-mark-sm { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.logo-name { font: 700 20px/28px var(--display); letter-spacing: -.01em; }

.nav { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: 16px; color: #fff; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.nav-links { display: none; gap: 4px; padding: 4px; border-radius: 9999px; background: rgb(18 16 14 / .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.nav-links a { padding: 8px 16px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: rgb(255 255 255 / .9); transition: background-color .4s var(--ease); }
.nav-links a:hover { background: rgb(255 255 255 / .14); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ---------- botão (o único da página) ---------- */
.cta { display: grid; justify-items: start; gap: 8px; }
.btn-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border: 0; border-radius: 12px;
    background: var(--brand); color: var(--brand-ink);
    font: 600 16px/24px var(--body); cursor: pointer;
    box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 12px 24px -12px rgb(180 83 26 / .7);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-cta-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(0 0 0 / .14), 0 20px 32px -14px rgb(180 83 26 / .8); }
.btn-cta:hover .btn-cta-ico { transform: translateX(4px); }
.btn-cta:active { transform: translateY(0) scale(.98); }
.btn-cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.hero .btn-cta:focus-visible, .fim .btn-cta:focus-visible { outline-color: #fff; }
/* O brilho que passa a cada ~6 s: uma faixa lisa inclinada, só transform. */
.btn-cta::after {
    content: ""; position: absolute; z-index: -1; top: -50%; bottom: -50%; left: 0; width: 40%;
    background: rgb(255 255 255 / .16);
    transform: translateX(-160%) skewX(-20deg);
    animation: sheen 6s var(--ease) 2s infinite;
}
@keyframes sheen { 0%, 78% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(380%) skewX(-20deg); } }
.cta-note { font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }

/* ---------- topo com vídeo ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1b1815; padding: 112px 0 112px; }
.hero-media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: rgb(18 16 14 / .64); }
.hero-in { position: relative; display: grid; gap: 24px; }
.hero-t { font: 700 36px/40px var(--display); letter-spacing: -.025em; max-width: 880px; text-wrap: balance; }
.hero-sub { font-size: 18px; line-height: 28px; color: rgb(255 255 255 / .86); max-width: 560px; text-wrap: pretty; }
.hero .cta-note { color: rgb(255 255 255 / .8); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: rgb(255 255 255 / .86); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: #f0a274; }
@media (min-width: 768px) {
    .hero { padding: 144px 0 224px; }
    .hero-t { font-size: 60px; line-height: 60px; }
}
@media (min-width: 1280px) {
    .hero-t { font-size: 72px; line-height: 72px; }
}

/* entrada do topo: uma vez, só CSS (não depende de script) */
.hero-in > * { animation: rise .9s var(--ease) backwards; }
.hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; }
.hero-in > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- fotos ---------- */
.foto { position: relative; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mockup da agenda (topo) ---------- */
.shot-wrap { position: relative; z-index: 2; margin-top: -48px; }
@media (min-width: 768px) { .shot-wrap { margin-top: -160px; } }
.shot { animation: rise 1s var(--ease) .2s backwards; }
.browser { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sunken); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.url { margin-left: 8px; flex: 0 1 320px; min-width: 0; padding: 2px 12px; border-radius: 6px; background: var(--surface); color: var(--muted); font: 500 12px/20px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ag { --q: 22px; position: relative; overflow: hidden; padding: 16px; display: grid; gap: 16px; }
.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ag-title { font: 700 20px/28px var(--display); }
.ag-sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.ag-grid { position: relative; display: grid; grid-template-columns: 40px repeat(2, minmax(0, 1fr)); gap: 8px; }
.ag-col:nth-of-type(4) { display: none; }
.ag-rail { padding-top: 40px; display: grid; grid-auto-rows: calc(var(--q) * 2); }
.ag-rail span { font: 500 12px/16px var(--mono); color: var(--muted); transform: translateY(-8px); }
.ag-col-head { height: 32px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.ag-body {
    position: relative; height: calc(var(--q) * 14);
    background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--q) * 2));
}
.av {
    width: 24px; height: 24px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--c, var(--muted)); color: #fff;
    font: 600 10px/1 var(--body); letter-spacing: .02em;
}
.av-n { background: var(--sunken); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

.blk {
    position: absolute; left: 0; right: 0;
    top: calc(var(--t) * var(--q) + 2px); height: calc(var(--d) * var(--q) - 4px);
    padding: 3px 8px 3px 14px; border-radius: 8px; overflow: hidden;
    background: color-mix(in srgb, var(--c) 11%, var(--surface));
    display: grid; align-content: start;
    transition: transform .5s var(--spring), visibility 0s;
    animation: drop .7s var(--ease) backwards;
    animation-delay: calc(var(--i) * 70ms + 350ms);
}
.blk::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--c); }
.blk b { font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
.blk small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk .pill { display: none; }
.blk-bloq {
    background: var(--sunken);
    background-image: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 8px);
    color: var(--muted); font-size: 12px; line-height: 16px; place-content: center; text-align: center; padding: 0 8px;
}
.blk-bloq::before, .blk-livre::before { display: none; }
.blk-livre {
    background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
    border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 16px;
    place-content: center; text-align: center; visibility: hidden; animation: none;
}
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.ag-now { position: absolute; left: 0; right: 0; top: calc(40px + var(--t) * var(--q)); height: 0; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: 40px; right: 0; top: 0; height: 2px; margin-top: -1px; background: var(--bad); }
.ag-now span { position: absolute; left: 0; top: -8px; padding: 0 2px; border-radius: 4px; background: var(--surface); color: var(--bad); font-size: 12px; line-height: 16px; font-weight: 600; }
.blk { z-index: 1; }

.pill {
    display: inline-flex; align-items: center; gap: 4px; justify-self: start;
    padding: 2px 8px; border-radius: 9999px; white-space: nowrap;
    font-size: 12px; line-height: 16px; font-weight: 600;
    transition: transform .4s var(--spring);
}
.pill-ok    { background: var(--ok-soft); color: var(--ok); }
.pill-mute  { background: var(--sunken); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pill-brand { background: var(--brand-soft); color: var(--brand-text); }
.pill-warn  { background: var(--warn-soft); color: var(--warn); }
.pill-bad   { background: var(--bad-soft); color: var(--bad); }
.pill-live  { background: var(--brand); color: var(--brand-ink); }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.toast-mock {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
    border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
    /* Escondido acima do recorte do .ag e entrando só por transform: o texto
       nunca fica meio transparente (o axe mede contraste no quadro em que pegar). */
    visibility: hidden; transform: translateY(calc(-100% - 40px));
    transition: transform .6s var(--spring), visibility 0s linear .6s;
}
.toast-mock > span:last-child { display: grid; }
.toast-mock b { font-size: 14px; line-height: 20px; }
.toast-mock small { font-size: 12px; line-height: 16px; color: var(--muted); }
.toast-ico { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }

@media (min-width: 640px) {
    .ag { --q: 26px; padding: 24px; }
    .ag-grid { grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 12px; }
    .ag-col:nth-of-type(4) { display: block; }
}
@media (min-width: 1024px) {
    .blk { padding: 4px 8px 4px 16px; }
    .blk .pill { display: inline-flex; position: absolute; top: 4px; right: 4px; }
    .blk .pill-a, .blk .pill-b { position: absolute; top: 4px; right: 4px; }
    .blk b { padding-right: 96px; }
}
.mini-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-height: 32px; padding: 4px 12px; border-radius: 8px;
    font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
}
.mini-btn-brand { background: var(--brand); color: var(--brand-ink); }
.tap { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgb(255 255 255 / .45); opacity: 0; transform: scale(0); pointer-events: none; }

/* ---------- faixa de serviços ---------- */
.marquee { overflow: hidden; padding: 24px 0; margin-top: 48px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
    display: inline-flex; align-items: center; gap: 24px; padding-right: 24px;
    font: 700 24px/32px var(--display); letter-spacing: -.01em; color: var(--muted); white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 768px) { .marquee { margin-top: 64px; } .marquee-list li { font-size: 30px; line-height: 36px; gap: 32px; padding-right: 32px; } }

/* ---------- seções ---------- */
.sec { padding: 64px 0; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
.sec-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 720px; }
.sec-head-center { margin-inline: auto; text-align: center; justify-items: center; }
@media (min-width: 768px) { .sec-head { margin-bottom: 64px; } }

/* antes e depois */
.antes { display: grid; gap: 32px; align-items: start; }
.antes-foto { border-radius: 24px; aspect-ratio: 4 / 5; max-height: 560px; }
.troca { display: grid; gap: 16px; counter-reset: troca; }
.troca-item {
    display: grid; gap: 8px; padding: 24px; border-radius: 16px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease);
}
.troca-item:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
.troca-de { font-size: 16px; line-height: 24px; color: var(--muted); }
.troca-de s { text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.troca-para { display: flex; gap: 12px; align-items: start; font: 600 18px/28px var(--body); text-wrap: pretty; }
.troca-ico { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
@media (min-width: 768px) {
    .antes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
    .antes-foto { position: sticky; top: 32px; }
}

/* tour */
.sec-tour { background: var(--surface); }
[data-theme="dark"] .sec-tour { background: #151310; }
.feat { display: grid; gap: 32px; align-items: center; }
.feat + .feat { margin-top: 80px; }
.feat-text { display: grid; gap: 16px; max-width: 520px; }
.feat-n { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feat-n span { padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); }
.feat-p { color: var(--muted); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.feat-list { display: grid; gap: 8px; margin-top: 8px; }
.feat-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; text-wrap: pretty; }
.feat-list .i { color: var(--ok); }
.feat-stage { position: relative; border-radius: 24px; min-height: 440px; display: grid; place-items: center; padding: 64px 16px 48px; overflow: hidden; isolation: isolate; }
.stage-foto { position: absolute; inset: 0; z-index: -1; }
.stage-foto img { transition: transform 1.2s var(--ease); }
.feat-stage:hover .stage-foto img { transform: scale(1.04); }
.stage-ui { position: relative; width: 100%; max-width: 360px; display: grid; gap: 16px; transition: transform .8s var(--ease); }
.feat-stage:hover .stage-ui { transform: translateY(-6px); }
.card-ui { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 16px; }
@media (min-width: 1024px) {
    .feat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
    .feat-rev .feat-text { order: 2; }
    .feat-stage { min-height: 520px; }
    .feat + .feat { margin-top: 96px; }
}

/* 01 confirmação */
.mail { display: grid; gap: 12px; }
.mail-from { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.mail-t { font: 700 20px/28px var(--display); }
.mail-when { display: grid; font-size: 14px; line-height: 20px; }
.mail-when span { color: var(--muted); }
.mail-btn { justify-self: start; min-height: 40px; padding: 8px 16px; }
.mail-ics { font-size: 12px; line-height: 16px; color: var(--brand-text); text-decoration: underline; }
.slot-ui { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-left: 24px; }
.slot-ui time { font: 500 14px/20px var(--mono); color: var(--muted); }
.slot-who { display: grid; min-width: 0; }
.slot-who b { font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-who small { font-size: 12px; line-height: 16px; color: var(--muted); }
.slot-ui .pill, .blk .pill-a, .blk .pill-b { grid-column: 3; grid-row: 1; }
.slot-ui::after { content: ""; position: absolute; inset: -2px; border-radius: 18px; box-shadow: 0 0 0 3px var(--ok); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.pill-a { visibility: hidden; transform: scale(.9); }
.pill-b { visibility: visible; }

/* 02 comanda */
.pos { position: relative; display: grid; gap: 12px; overflow: hidden; }
.pos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pos-head b { font: 700 18px/28px var(--display); }
.pos-head small { min-width: 0; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-items { display: grid; padding: 0 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pos-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 14px; line-height: 20px; transition: opacity .4s var(--ease), transform .5s var(--spring); }
.pos-item + .pos-item { box-shadow: 0 -1px 0 var(--line); }
.pos-item small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.pos-tip { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; }
.switch { position: relative; width: 40px; height: 24px; border-radius: 9999px; background: var(--brand); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transform: translateX(16px); transition: transform .4s var(--spring); }
.switch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--line-strong); opacity: 0; transition: opacity .3s var(--ease); }
.pos-tot { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--sunken); font-size: 14px; line-height: 20px; color: var(--muted); }
.pos-tot div { display: flex; justify-content: space-between; }
.pos-due { color: var(--fg); font-weight: 600; }
.pos-due .num { font-size: 18px; line-height: 28px; }
.pos-cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip-cash { display: grid; place-items: center; min-height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/20px var(--mono); transition: background-color .3s var(--ease), color .3s var(--ease); }
.chip-cash.is-on { background: var(--fg); color: var(--bg); box-shadow: none; }
.pos-change { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; transition: opacity .4s var(--ease), transform .5s var(--spring); }
.pos-change .num { font-size: 18px; line-height: 28px; }
.pos-close { min-height: 44px; border-radius: 12px; }
.pos-done {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center;
    background: var(--surface);
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .4s var(--ease), transform .6s var(--spring);
}
.pos-done b { font: 700 20px/28px var(--display); }
.pos-done small { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 24ch; }
.draw { width: 64px; height: 64px; }
.draw circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 3; }
.draw path { fill: none; stroke: var(--ok); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }

/* 03 comissão */
.com { display: grid; gap: 12px; }
.com-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.com-head b { font: 700 18px/28px var(--display); }
.com-head small { font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 479px) {
    .com-head small, .com-gor { display: none; }
    .slot-ui { margin-left: 0; grid-template-columns: 40px minmax(0, 1fr) auto; }
}
.com-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--sunken); }
.com-row .av { width: 32px; height: 32px; font-size: 12px; }
.com-who { display: grid; min-width: 0; }
.com-who b { font-size: 14px; line-height: 20px; }
.com-who small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-val { display: grid; justify-items: end; }
.com-val small { font-size: 12px; line-height: 16px; color: var(--muted); }
.com-val b { font-size: 16px; line-height: 24px; }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--brand)); transform-origin: left; transform: scaleX(var(--w)); transition: transform 1.2s var(--ease); }
.com-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 0; font-weight: 600; }
.com-foot b { font-size: 18px; line-height: 28px; }

/* faixa do meio */
.mid { margin-top: 80px; padding: 32px 24px; border-radius: 24px; background: var(--brand-soft); display: grid; gap: 24px; justify-items: start; }
.mid-t { font: 700 24px/32px var(--display); letter-spacing: -.02em; color: var(--fg); }
@media (min-width: 768px) {
    .mid { margin-top: 96px; padding: 48px; }
    .mid-t { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) { .mid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 640px)  { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tile {
    display: grid; grid-template-rows: auto auto 1fr; gap: 8px; padding: 16px 16px 24px; border-radius: 24px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg); }
.tile-ui { height: 152px; margin-bottom: 16px; padding: 16px; border-radius: 16px; background: var(--sunken); display: grid; align-content: center; gap: 8px; overflow: hidden; transition: transform .8s var(--ease); }
.tile:hover .tile-ui { transform: scale(1.02); }
.tile-t { font: 700 20px/28px var(--display); letter-spacing: -.01em; padding-inline: 8px; }
.tile-p { color: var(--muted); padding-inline: 8px; text-wrap: pretty; }
.cx-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; line-height: 20px; color: var(--muted); }
.cx-row b { color: var(--fg); font-size: 18px; line-height: 28px; }
.stamp { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 9999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; line-height: 20px; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.clube { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.clube b { font: 700 18px/28px var(--display); }
.clube small { font-size: 12px; line-height: 16px; color: var(--muted); }
.usos { display: flex; align-items: center; gap: 8px; }
.usos span { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); }
.usos span.on { background: var(--brand); box-shadow: none; }
.usos small { margin-left: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.cli { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); }
.cli .av { width: 32px; height: 32px; font-size: 12px; }
.cli > span:nth-child(2) { display: grid; min-width: 0; }
.cli b { font-size: 14px; line-height: 20px; }
.cli small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; }
.oc .bar { grid-column: auto; height: 8px; }
.oc b { text-align: right; font-size: 14px; }
.oc-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.oc-note b { color: var(--fg); }
.lock { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.apps { display: grid; grid-template-columns: repeat(4, 48px); gap: 16px; justify-content: center; }
.app-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--line); }
.app-n { position: relative; background: none; display: grid; justify-items: center; }
.app-n .logo-mark { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; box-shadow: var(--shadow-md); }
.app-n small { position: absolute; top: 52px; font-size: 12px; line-height: 16px; color: var(--fg); }

/* ---------- no celular ---------- */
.sec-cel { background: var(--surface); }
[data-theme="dark"] .sec-cel { background: #151310; }
.cel { display: grid; gap: 48px; }
.cel-text .sec-head { margin-bottom: 32px; }
.passos { display: grid; gap: 8px; }
.passo { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 16px; transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.passo-n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--mono); background: var(--sunken); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .5s var(--ease), color .5s var(--ease); }
.passo > span:last-child { display: grid; }
.passo b { font-weight: 600; }
.passo small { font-size: 14px; line-height: 20px; color: var(--muted); }
.passo.is-on { background: var(--brand-soft); }
.passo.is-on .passo-n { background: var(--brand); color: var(--brand-ink); box-shadow: none; }

.phones { position: relative; width: 100%; max-width: 440px; margin-inline: auto; padding-bottom: 32px; }
.phone { position: relative; border-radius: 40px; padding: 8px; background: #1a1714; box-shadow: var(--shadow-lg), inset 0 0 0 1px #3a332c; }
.phone-cli { width: 58%; aspect-ratio: 9 / 18.5; }
.phone-bar { position: absolute; right: 0; top: 14%; width: 46%; aspect-ratio: 9 / 18.5; transform: rotate(3deg); }
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); font-size: 12px; line-height: 16px; }
.notch { position: absolute; top: 8px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #1a1714; z-index: 5; }
.ph-top { display: flex; align-items: center; gap: 8px; padding: 40px 12px 8px; font-size: 14px; line-height: 20px; }
.ph-top-bar { justify-content: space-between; padding-bottom: 8px; }
.ph-top-bar b { font: 700 18px/28px var(--display); }
.ph-top-bar small { color: var(--muted); font-size: 12px; }
.scr {
    position: absolute; left: 0; right: 0; top: 76px; bottom: 0;
    padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(24px); pointer-events: none;
    transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.scr.is-on { opacity: 1; transform: none; }
.ph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ph-steps span { height: 4px; border-radius: 9999px; background: var(--line); }
.ph-steps span.on { background: var(--brand); }
.ph-t { font: 700 16px/24px var(--display); letter-spacing: -.01em; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.opt > span:first-child { display: grid; min-width: 0; }
.opt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt small { color: var(--muted); }
.opt .num { font-size: 12px; white-space: nowrap; }
.opt-av { display: flex !important; align-items: center; gap: 8px; }
[data-pick].opt, .times [data-pick] { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.times [data-pick] { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.days span { display: grid; justify-items: center; padding: 4px 0; border-radius: 10px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.days b { font: 600 14px/20px var(--mono); color: var(--fg); }
.days .on { background: var(--fg); color: var(--bg); box-shadow: none; }
.days .on b { color: var(--bg); }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.times span { display: grid; place-items: center; min-height: 32px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/16px var(--mono); transition: background-color .3s var(--ease), color .3s var(--ease); }
.times .off { color: var(--muted); text-decoration: line-through; opacity: .6; }
.fld { display: grid; gap: 4px; }
.fld small { color: var(--muted); }
.fld span { padding: 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; }
.ph-sum { display: flex; justify-content: space-between; color: var(--muted); margin-top: auto; }
.ph-sum b { color: var(--fg); }
.ph-btn { width: 100%; min-height: 40px; font-size: 12px; }
.scr-ok { justify-content: center; align-items: center; text-align: center; gap: 12px; padding-bottom: 48px; }
.ph-p { font-size: 12px; line-height: 16px; }
.ph-small { color: var(--muted); }
.notif {
    position: absolute; left: 8px; right: 8px; top: 36px; z-index: 4;
    display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px;
    background: var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
    transition: opacity .4s var(--ease), transform .6s var(--spring);
}
.notif > span:last-child { display: grid; min-width: 0; }
.notif b { font-size: 12px; line-height: 16px; }
.notif small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif .toast-ico { width: 28px; height: 28px; }
.phone-bar .ph-top { padding-top: 104px; }
.nw { white-space: nowrap; }
/* No celular estreito, dois telefones lado a lado ficariam ilegíveis: o do
   cliente cresce e, do barbeiro, fica só a notificação chegando. */
@media (max-width: 639px) {
    .phones { max-width: 360px; padding-bottom: 48px; }
    .phone-cli { width: 76%; }
    .phone-bar { top: auto; bottom: 0; width: 72%; aspect-ratio: auto; padding: 0; background: none; box-shadow: none; transform: none; }
    .phone-bar .screen { height: auto; overflow: visible; background: none; border-radius: 0; }
    .phone-bar .notch, .phone-bar .ph-top, .phone-bar .tabs, .phone-bar .lst { display: none; }
    .phone-bar .notif { position: relative; inset: auto; padding: 12px; }
    .phone-bar .notif b { font-size: 14px; line-height: 20px; }
    .phone-bar .notif small { font-size: 12px; }
}
.tabs { display: flex; gap: 4px; padding: 0 8px 8px; overflow: hidden; }
.tab { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease); }
.tab .av { width: 20px; height: 20px; font-size: 8px; }
.tab.is-on { background: var(--fg); color: var(--bg); box-shadow: none; }
.lst { position: absolute; left: 0; right: 0; top: 196px; padding: 0 8px; display: grid; gap: 8px; opacity: 0; transform: translateX(16px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.lst.is-on { opacity: 1; transform: none; }
.lst-row { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 11%, var(--surface)); transition: opacity .4s var(--ease), transform .5s var(--spring); }
.lst-row::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--c); }
.lst-row time { color: var(--muted); }
.lst-row > span { display: grid; min-width: 0; }
.lst-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-novo { box-shadow: 0 0 0 2px var(--brand); }

.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 32px; box-shadow: 0 -1px 0 var(--line); }
.nums div { display: grid; gap: 4px; align-content: start; }
.nums dt { font: 700 36px/40px var(--display); letter-spacing: -.02em; color: var(--brand-text); }
.nums dd { font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }
@media (min-width: 768px) { .nums dt { font-size: 48px; line-height: 48px; } }
@media (min-width: 1024px) {
    .cel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
    .nums { grid-column: 1 / -1; }
}

/* ---------- a frase ---------- */
.sec-frase { padding: 64px 0 0; }
.frase { max-width: 960px; font: 700 36px/40px var(--display); letter-spacing: -.025em; text-wrap: balance; }
.frase-l { display: block; text-wrap: balance; }
.frase .w { transition: color .7s var(--ease); }
.js .frase.is-armed .w { color: var(--dim); }
.js .frase.is-armed .w.is-lit { color: var(--fg); }
@media (min-width: 768px) { .sec-frase { padding: 128px 0 0; } .frase { font-size: 60px; line-height: 64px; } }
@media (min-width: 1280px) { .frase { font-size: 72px; line-height: 76px; } }

/* ---------- perguntas ---------- */
.faq-wrap { display: grid; gap: 0; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.faq { display: grid; gap: 8px; }
.qa { border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .5s var(--ease); }
.qa[open] { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; min-height: 56px; cursor: pointer; list-style: none; font: 600 18px/28px var(--body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-ico { transform: rotate(90deg); }
.qa-ico { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sunken); transition: transform .6s var(--ease); }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; border-radius: 1px; background: var(--fg); transition: transform .6s var(--ease); }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { transform: rotate(180deg); }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa p { padding: 0 24px 24px; color: var(--muted); max-width: 60ch; text-wrap: pretty; animation: rise .6s var(--ease); }

/* ---------- fim ---------- */
.fim { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 96px 0; }
.fim-foto { position: absolute; inset: 0; z-index: -1; }
/* A película escura mora dentro da figura. */
.fim-foto::after { content: ""; position: absolute; inset: 0; background: rgb(18 16 14 / .66); }
.fim-in { display: grid; gap: 24px; justify-items: start; }
.fim-t { font: 700 36px/40px var(--display); letter-spacing: -.025em; max-width: 880px; }
.linha { display: block; text-wrap: balance; }
.fim-p { font-size: 18px; line-height: 28px; color: rgb(255 255 255 / .86); max-width: 520px; text-wrap: pretty; }
.fim .cta-note { color: rgb(255 255 255 / .8); }
@media (min-width: 768px) { .fim { padding: 160px 0; } .fim-t { font-size: 60px; line-height: 60px; } }

/* ---------- aviso do formulário vencido e página de demonstração fechada ---------- */
.hero-aviso { max-width: 560px; padding: 12px 16px; border-radius: 12px; background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .24); font-size: 14px; line-height: 20px; }
.simples .nav { position: static; color: var(--fg); padding-block: 16px; }
.aviso { padding: 64px 0 96px; }
.aviso-in { display: grid; gap: 16px; justify-items: start; }
.aviso-in > * { max-width: 720px; }
.aviso-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.aviso-ico .i { width: 24px; height: 24px; }
.aviso-t { font: 700 36px/40px var(--display); letter-spacing: -.02em; text-wrap: balance; }
.aviso-p { font-size: 18px; line-height: 28px; color: var(--muted); text-wrap: pretty; max-width: 56ch; }
.aviso-link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .5s var(--ease); }
.aviso-link:hover { transform: translateY(-2px); }
@media (min-width: 768px) { .aviso { padding: 96px 0 160px; } .aviso-t { font-size: 48px; line-height: 52px; } }

/* ---------- rodapé ---------- */
.foot { padding: 48px 0 48px; }
.foot-in { display: grid; gap: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-name { font: 700 18px/28px var(--display); color: var(--fg); }
.foot-vendor a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) {
    .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .foot-vendor { grid-column: 2; grid-row: 1; }
}

/* ---------- planos ---------- */
.sec-planos { background: var(--sunken); }
.ciclo-wrap { display: grid; justify-items: center; gap: 12px; margin: -16px 0 40px; }
.ciclo {
    position: relative; isolation: isolate;
    display: inline-grid; grid-template-columns: 1fr 1fr;
    padding: 4px; border-radius: 9999px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
/* A pílula que desliza por baixo do escolhido: só transform. */
.ciclo::before {
    content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: 9999px; background: var(--fg);
    transition: transform .5s var(--spring);
}
.ciclo[data-on="anual"]::before { transform: translateX(100%); }
.ciclo-op {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 8px 16px; border-radius: 9999px;
    font: 600 15px/20px var(--body); text-decoration: none; white-space: nowrap;
    color: var(--muted); transition: color .4s var(--ease);
}
.ciclo-op[aria-checked="true"] { color: var(--bg); }
.ciclo-op:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.selo { font: 600 11px/16px var(--mono); letter-spacing: .02em; padding: 2px 8px; border-radius: 9999px; background: var(--ok-soft); color: var(--ok); }
.ciclo-op[aria-checked="true"] .selo { background: var(--brand); color: #fff; }
.ciclo-nota { font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
@media (min-width: 640px) { .ciclo-op { padding: 8px 24px; } }

.planos { display: grid; gap: 16px; }
.planos > :nth-child(2) { --i: 1; }
.planos > :nth-child(3) { --i: 2; }
.planos > :nth-child(n+4) { --i: 3; }
@media (min-width: 960px) { .planos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; } }
.plano {
    position: relative; display: flex; flex-direction: column; gap: 16px;
    padding: 24px; border-radius: 20px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.plano:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
.plano-destaque, .plano-destaque:hover { box-shadow: 0 0 0 2px var(--brand), var(--shadow-md); }
@media (min-width: 960px) { .plano { padding: 32px; } }
.plano-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plano-nome { font: 700 24px/32px var(--display); letter-spacing: -.015em; }
.plano-selo { font: 600 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; background: var(--brand-soft); color: var(--brand-text); }
.plano-desc { font-size: 15px; line-height: 22px; color: var(--muted); text-wrap: pretty; }
.plano-preco { display: grid; align-content: start; gap: 4px; min-height: 72px; }
.plano-preco [hidden] { display: none; }
.pv { display: flex; align-items: baseline; gap: 4px; }
.pv b { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; }
.pv span { font-size: 16px; color: var(--muted); }
.pe { font-size: 14px; line-height: 20px; color: var(--muted); }
.plano-preco .is-in { animation: precoIn .35s var(--ease) both; }
@keyframes precoIn { from { opacity: 0; transform: translateY(8px); } }
.plano-itens { display: grid; align-content: start; gap: 12px; flex: 1; font-size: 15px; line-height: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.plano-itens li { display: flex; align-items: flex-start; gap: 10px; }
.plano-itens .i { margin-top: 3px; color: var(--ok); }
.plano-itens .off { color: var(--muted); }
.plano-itens .off .i { color: var(--muted); }
.breve { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--sunken); color: var(--muted); font: 500 11px/16px var(--mono); white-space: nowrap; }
.btn-plano {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 20px; border-radius: 12px;
    background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
    transition: transform .5s var(--ease);
}
.btn-plano:hover { transform: translateY(-2px); }
.btn-plano:active { transform: scale(.98); }
.btn-plano:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.plano-destaque .btn-plano { background: var(--brand); color: var(--brand-ink); }
.planos-rodape { max-width: 640px; margin: 32px auto 0; text-align: center; font-size: 15px; line-height: 24px; color: var(--muted); text-wrap: pretty; }

/* ---------- botão fixo no celular ---------- */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -1px 0 var(--line), 0 -12px 32px -16px rgb(0 0 0 / .25);
    transition: transform .6s var(--ease);
}
.dock .cta { justify-items: stretch; }
.dock .btn-cta { justify-content: center; width: 100%; }
.js .dock:not(.is-on) { transform: translateY(calc(100% + 16px)); }
@media (max-width: 767px) { body { padding-bottom: 72px; } }
@media (min-width: 768px) { .dock { display: none; } }

/* =====================================================================
   Movimento ligado por script (classe `js` + lp.js)
   ===================================================================== */

/* Revelar ao rolar: só o que estava FORA da tela quando a página abriu ganha
   `is-pending` (lp.js). O que já está visível nunca some. */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-pending { opacity: 0; transform: translateY(32px); }

/* Cena "agenda" (topo): o livre do Rafa vira agendamento pelo site */
/* Troca por visibility + transform (sem meio-termo de opacidade no texto). */
.s-run .blk-livre { visibility: visible; }
.s-run .blk-novo { visibility: hidden; transform: translateY(-10px) scale(.96); }
.s-run.s-tap .blk-livre { animation: tapPulse .6s var(--ease); }
.s-run.s-novo .blk-livre { visibility: hidden; }
.s-run.s-novo .blk-novo { visibility: visible; transform: none; }
.s-run.s-novo .toast-mock { visibility: visible; transform: none; transition: transform .6s var(--spring), visibility 0s; }
.s-run [data-flip] .pill-a, .s-run .slot-ui .pill-a { visibility: visible; transform: none; }
.s-run [data-flip] .pill-b, .s-run .slot-ui .pill-b { visibility: hidden; transform: scale(.85); }
.s-run.s-conf [data-flip] .pill-a, .s-run.s-conf .slot-ui .pill-a { visibility: hidden; transform: scale(.85); }
.s-run.s-conf [data-flip] .pill-b, .s-run.s-conf .slot-ui .pill-b { visibility: visible; transform: none; }
@keyframes tapPulse { 50% { transform: scale(.97); } }

/* Toque num botão */
.s-tap .tap { animation: tap .7s var(--ease); }
@keyframes tap { 0% { opacity: .9; transform: scale(0); } 100% { opacity: 0; transform: scale(1); } }

/* Cena "confirma" */
.s-run.s-conf .slot-ui::after { opacity: 1; }

/* Cena "comanda" */
.s-run .pos-item { opacity: 0; transform: translateY(8px); }
.s-run.s-i1 .pos-item[data-k="1"], .s-run.s-i2 .pos-item[data-k="2"], .s-run.s-i3 .pos-item[data-k="3"] { opacity: 1; transform: none; }
.s-run .switch::after { transform: none; }
.s-run .switch::before { opacity: 1; }
.s-run.s-tip .switch::after { transform: translateX(16px); }
.s-run.s-tip .switch::before { opacity: 0; }
.s-run .chip-cash.is-on { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.s-run.s-cash .chip-cash.is-on { background: var(--fg); color: var(--bg); box-shadow: none; }
.s-run .pos-change { opacity: 0; transform: translateY(8px); }
.s-run.s-cash .pos-change { opacity: 1; transform: none; }
.s-run.s-done .pos-done { opacity: 1; transform: none; }
.s-run.s-done .draw { animation: pop .6s var(--spring) .1s backwards; }

/* Cenas com barras (comissão, ocupação) */
.s-run .bar > span { transform: scaleX(0); transition-duration: .2s; }
.s-run.s-go .bar > span { transform: scaleX(var(--w)); transition-duration: 1.4s; }

/* Cena "caixa" */
.s-run .stamp { opacity: 0; transform: scale(.7) rotate(-6deg); }
.s-run.s-stamp .stamp { opacity: 1; transform: none; }

/* Cena "celular" */
.s-run .scr:not(.is-picked) [data-pick].opt { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.s-run .scr:not(.is-picked) .times [data-pick] { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.s-run .notif { opacity: 0; transform: translateY(-24px) scale(.96); }
.s-run.s-notif .notif { opacity: 1; transform: none; }
.s-run .lst-novo { opacity: 0; transform: scale(.96); }
.s-run.s-notif .lst-novo { opacity: 1; transform: none; }
.scr-ok.is-on .draw { animation: pop .6s var(--spring) .15s backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }

/* Quem pediu menos movimento: tudo parado, tudo visível. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal].is-pending { opacity: 1; transform: none; }
    .marquee-track { transform: none; }
    .hero-video { display: none; }
}

/* Números que contam (comanda, comissão, caixa): caixa de largura fixa, alinhada
   à direita. O texto muda dentro dela e nada ao redor se mexe (CLS zero). */
.pos-tot .num, .com-val b, .cx-row b, .com-foot b { display: inline-block; min-width: 10ch; text-align: right; }
.nums [data-count] { display: inline-block; min-width: 2ch; }
