/* OS Fácil XP — site público. Papel, tinta e carimbo: a estética da ordem de serviço de balcão. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f4f0e8; --paper-2: #ebe5d9; --card: #fffdf8; --ink: #16181d; --ink-2: #3b3f47; --muted: #6b6f78;
  --line: #ddd5c6; --blue: #1f5fe0; --blue-d: #1749b3; --yellow: #ffcd3c; --green: #13804a; --red: #c8371f;
  --r: 14px; --wrap: 1160px;
  --f-head: "Bricolage", "Avenir Next", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ── Botões ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 12px; font: 700 1rem/1 var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.btn-ink:hover { box-shadow: 0 4px 0 #000; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-d); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #c99a12; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ── Topo ───────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(244, 240, 232, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--f-head); letter-spacing: -.02em; }
.logo b { font-weight: 800; }
.logo span { white-space: nowrap; }
.logo svg { border-radius: 8px; }
.menu { display: none; gap: 26px; margin-left: 18px; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.menu-login { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-login { display: none; color: var(--ink); font-weight: 600; text-decoration: none; }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899px) {
  .menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 68px; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .menu.open a { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 1.05rem; }
  .menu.open .menu-login { display: block; border-bottom: 0; font-weight: 700; color: var(--blue); }
}
@media (min-width: 900px) { .menu { display: flex; } .burger { display: none; } .link-login { display: inline; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 36px 0 0; overflow: hidden; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding-top: 56px; } .hero-in { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.eyebrow { font: 600 .82rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 14px; }
.mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.assure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.assure li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 7px; }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 40px; }
.hero-note { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: .78rem; color: var(--muted); margin: 0; }

/* Celular */
.phone { margin: 0; width: min(300px, 78vw); aspect-ratio: 9 / 18.6; border-radius: 42px; background: #121418; padding: 11px;
  box-shadow: 0 1px 0 2px #2a2d33 inset, 0 30px 60px -22px rgba(22, 24, 29, .45), 0 12px 24px -14px rgba(22, 24, 29, .4); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 74px; height: 20px; margin-left: -37px; background: #121418; border-radius: 999px; z-index: 2; }
.phone-screen img { padding-top: 0; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #f5f6f8; container-type: size; }
.phone-screen img { width: 100%; height: auto; }
.phone-scroll .phone-screen img { animation: phonescroll 16s ease-in-out 1.2s infinite; }
@keyframes phonescroll { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(calc(-100% + 100cqh)); } 100% { transform: translateY(0); } }
.phone-tilt-l { transform: rotate(-2.2deg); }
.phone-tilt-r { transform: rotate(2.2deg); }

.toast { position: absolute; top: 46px; left: max(0px, calc(50% - 250px)); display: flex; gap: 12px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  animation: toast-in .6s cubic-bezier(.2,.9,.3,1.2) 2.2s both; z-index: 3; max-width: 290px; }
.toast strong { display: block; font-size: .92rem; }
.toast small { color: var(--muted); font-size: .8rem; }
.toast-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.stamp { position: absolute; right: max(0px, calc(50% - 230px)); bottom: 120px; font: 800 1.35rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); border: 4px solid var(--green); border-radius: 10px; padding: 8px 14px; transform: rotate(-12deg); background: rgba(244,240,232,.85);
  mix-blend-mode: multiply; animation: stamp 0.45s cubic-bezier(.3,1.6,.5,1) 2.9s both; z-index: 3; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.9); } to { opacity: .92; transform: rotate(-12deg) scale(1); } }
@media (max-width: 520px) { .toast { left: 0; top: 18px; } .stamp { right: 14px; bottom: 96px; font-size: .9rem; border-width: 3px; padding: 6px 10px; } }

.trades { margin-top: 30px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.trades-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px;
  font: 600 .86rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.trades-in span::before { content: "■"; color: var(--yellow); margin-right: 10px; font-size: .6em; vertical-align: middle; }

/* ── Seções ─────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-paper { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 44px; }
.sub { color: var(--ink-2); font-size: 1.1rem; margin-top: 16px; }
.sub-left { max-width: 720px; }

/* Canhoto de OS (como funciona) */
.ticket { list-style: none; margin: 0; padding: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  position: relative; box-shadow: 0 18px 40px -30px rgba(0,0,0,.35); counter-reset: step; max-width: 920px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background: radial-gradient(circle at 7px 12px, var(--paper) 5px, transparent 5.5px) 0 0 / 14px 24px repeat-y; }
.ticket::before { left: -7px; } .ticket::after { right: -7px; }
.ticket li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 22px 30px; border-bottom: 2px dashed var(--line); counter-increment: step; }
.ticket li:last-child { border-bottom: 0; }
.t-time { font: 700 1.05rem/1 var(--f-mono); color: var(--blue); padding-top: 4px; }
.t-time::after { content: "0" counter(step); display: block; margin-top: 10px; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.ticket h3 { margin-bottom: 6px; }
.ticket p { color: var(--ink-2); margin: 0; }
@media (max-width: 600px) { .ticket li { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; } .t-time::after { display: inline; margin: 0 0 0 10px; } }

/* Recursos */
.feature { display: grid; gap: 34px; align-items: center; padding: 34px 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.1fr .9fr; gap: 64px; padding: 48px 0; }
  .feature-rev .feature-copy { order: 2; } }
.kicker { font: 700 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.feature h3, .wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; margin-bottom: 14px; }
.feature-copy > p { color: var(--ink-2); font-size: 1.07rem; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone { width: min(270px, 74vw); }
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { padding: 9px 0 9px 32px; position: relative; border-top: 1px dashed var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.fine { font-size: .92rem; color: var(--muted); margin-top: 16px; }
.wide { margin-top: 30px; padding-top: 50px; border-top: 2px solid var(--ink); }
.wide-copy { max-width: 760px; margin-bottom: 34px; }
.wide-copy p { color: var(--ink-2); font-size: 1.07rem; }
.laptop { margin: 0 auto; max-width: 980px; }
.laptop-screen { border: 12px solid #121418; border-bottom-width: 16px; border-radius: 18px 18px 6px 6px; overflow: hidden; background: #121418; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.laptop-base { height: 16px; margin: 0 -5%; background: linear-gradient(#cfc8ba, #a9a294); border-radius: 0 0 16px 16px; }

/* Preços */
.plans { display: grid; gap: 18px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px 24px 24px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plan-tag { position: absolute; top: -14px; left: 20px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font: 700 .76rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.plan h3 { font-size: 1.45rem; }
.plan-desc { color: var(--muted); margin: 6px 0 18px; min-height: 2.6em; }
.price { font: 800 3.2rem/1 var(--f-head); letter-spacing: -.04em; margin: 0 0 6px; }
.price .cur { font-size: 1.1rem; vertical-align: top; margin-right: 4px; letter-spacing: 0; position: relative; top: 8px; }
.price .cents { font-size: 1.4rem; }
.price .per { font: 500 1rem var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-users { font-weight: 700; margin-bottom: 22px; flex: 1; }
.plans-note { text-align: center; color: var(--ink-2); margin: 26px auto 0; max-width: 640px; }

.table-wrap { overflow-x: auto; margin-top: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
.compare caption { text-align: left; padding: 18px 20px 4px; font: 700 1.2rem var(--f-head); }
.compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.compare thead th { font: 700 .82rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper); }
.compare tbody th, .compare thead th:first-child { text-align: left; font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 800; font-size: 1.1rem; }
.no { color: var(--muted); }
.compare-market { min-width: 900px; font-size: .9rem; }
.compare-market td { text-align: left; color: var(--ink-2); }
.compare-market .us { background: #fff6cf; color: var(--ink); font-weight: 600; }
.compare-market thead .us { background: var(--yellow); color: var(--ink); }

/* Comparativo */
.vs { display: grid; gap: 18px; }
@media (min-width: 800px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs-col { border-radius: var(--r); padding: 26px 26px 18px; }
.vs-col ul { list-style: none; margin: 14px 0 0; padding: 0; }
.vs-col li { padding: 10px 0 10px 30px; position: relative; border-top: 1px dashed rgba(0,0,0,.14); }
.vs-old { background: transparent; border: 2px dashed #b9b09f; color: var(--ink-2); }
.vs-old li::before { content: "×"; position: absolute; left: 4px; top: 6px; color: var(--red); font-weight: 800; font-size: 1.2rem; }
.vs-new { background: var(--card); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--blue); }
.vs-new li::before { content: "✓"; position: absolute; left: 4px; top: 9px; color: var(--green); font-weight: 800; }
.h-table { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; margin-top: 70px; }
.sources { font-size: .84rem; color: var(--muted); margin-top: 14px; }
.sources a { color: inherit; }
.honest { margin-top: 40px; border-left: 6px solid var(--yellow); background: var(--card); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px; max-width: 860px; }
.honest h3 { margin-bottom: 8px; }
.honest p { margin: 0; color: var(--ink-2); }

/* Dúvidas */
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 700 1.12rem/1.35 var(--f-head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.8rem/1 var(--f-body); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: -4px 0 22px; max-width: 46em; }

/* CTA final e rodapé */
.final { background: var(--blue); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,.04) 22px 44px); pointer-events: none; }
.final-in { display: grid; gap: 26px; align-items: center; position: relative; }
@media (min-width: 860px) { .final-in { grid-template-columns: 1fr auto; } }
.final h2 { color: #fff; }
.final p { color: #dce7ff; font-size: 1.12rem; margin: 12px 0 0; }
.foot { background: var(--ink); color: #c8cbd1; padding: 48px 0 24px; }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.logo-light { color: #fff; }
.foot-brand p { margin: 12px 0 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.copy { font-size: .82rem; color: #8b9099; margin-top: 30px; }

/* 404 */
.notfound { max-width: 640px; margin: 0 auto; padding: 120px 20px; }
.notfound p { color: var(--ink-2); }

/* Revelar ao rolar (só com JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.logo .xp { font-style: normal; font-weight: 800; font-size: .56em; letter-spacing: .05em; background: var(--yellow); color: var(--ink); border-radius: 5px; padding: 2px 5px 1px; vertical-align: .34em; margin-left: 1px; }
.foot .logo .xp { background: var(--yellow); color: var(--ink); }
