/* =========================================================
   KAUAN · Cupom do tempo
   Mundo: azul de caneta Bic, papel térmico com borda serrilhada,
   tinta preta de impressão, amarelo marca-texto para ação.
   Profundidade só por sobreposição de papel (sem sombras).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* superfícies */
  --blue: #1d33a3;          /* tinta de caneta: campo dominante */
  --blue-deep: #121f6e;     /* rodapé, estados pressionados */
  --blue-pen: #2140c9;      /* traço de caneta sobre o papel */
  --paper: #f2f3ef;         /* papel térmico (frio, nunca creme) */
  --paper-2: #e3e5df;       /* papel sob papel */
  --paper-hi: #ffffff;      /* campos de formulário */

  /* texto */
  --on-blue: #ffffff;
  --on-blue-2: #cdd5ff;     /* secundário sobre azul, 7:1 */
  --ink: #18191d;           /* impressão térmica */
  --ink-2: #44474f;         /* secundário sobre papel, 8:1 */
  --ink-3: #62656d;         /* metadado sobre papel, 5:1 */

  /* ação e sinais */
  --mark: #f6e340;          /* marca-texto: única cor de ação */
  --mark-hi: #fff07c;
  --mark-ink: #18191d;
  --roll: #e0507a;          /* listra de fim de bobina: aparece uma vez */
  --error: #b0123b;         /* erro sobre papel, 6:1 */

  /* linhas */
  --rule: rgba(24, 25, 29, .32);
  --rule-blue: rgba(255, 255, 255, .34);

  /* foco */
  --focus-blue: var(--mark);
  --focus-paper: var(--blue-pen);

  /* tipo */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-hero: clamp(2.45rem, 1.1rem + 3.95vw, 4.9rem);
  --t-lg: clamp(2.2rem, 1rem + 4.4vw, 5.25rem);
  --t-md: clamp(1.9rem, 1.15rem + 2.9vw, 3.6rem);
  --t-legend: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  --t-body: clamp(1.02rem, .97rem + .22vw, 1.14rem);
  --t-lede: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  --t-mono: .74rem;

  /* espaço (ritmo de 8) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(16px, 4vw, 48px);
  --z: 9px;                  /* altura do dente da serrilha */

  /* movimento */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --d-1: 150ms;              /* feedback */
  --d-2: 280ms;              /* mudança de estado */
  --d-3: 620ms;              /* entrada autoral */
  --stagger: 70ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--blue);
  color: var(--on-blue);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--blue-pen);
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }

::selection { background: var(--mark); color: var(--mark-ink); }

html { scrollbar-color: var(--on-blue-2) var(--blue-deep); scrollbar-width: thin; }

:focus-visible { outline: 3px solid var(--focus-blue); outline-offset: 3px; border-radius: 2px; }
.sheet :focus-visible, .receipt :focus-visible { outline-color: var(--focus-paper); }

.wrap { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: var(--gutter); }
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-stretch: 87.5%;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.sr-only {
  position: absolute !important; 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: var(--s-4); top: -100px; z-index: 100;
  background: var(--mark); color: var(--mark-ink); padding: .7em 1em; font-weight: 700;
}
.skip:focus { top: var(--s-4); }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 68%;
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.display--lg { font-size: var(--t-lg); }
.display--md { font-size: var(--t-md); line-height: .98; }
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 38em; color: var(--on-blue-2); }
.micro { font-size: .92rem; color: var(--on-blue-2); max-width: 34em; }
.caption { margin-top: var(--s-3); color: var(--on-blue-2); line-height: 1.6; }

/* ---------- Ícones e traço de caneta ---------- */
.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.pen { position: absolute; pointer-events: none; overflow: visible; max-width: none; }
.pen path, .i--check path, .done__mark path {
  fill: none; stroke: var(--blue-pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* ---------- Marca-texto ---------- */
.hl {
  color: var(--mark-ink);
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 55% / 100% 86%;
  padding: 0 .08em;
  margin: 0 -.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Papel: serrilha ---------- */
.torn {
  --tooth: calc(var(--z) * 2);
  -webkit-mask:
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / var(--tooth) var(--z) repeat-x,
    linear-gradient(#000 0 0) 0 var(--z) / 100% calc(100% - var(--z) * 2 + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--z) repeat-x;
          mask:
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / var(--tooth) var(--z) repeat-x,
    linear-gradient(#000 0 0) 0 var(--z) / 100% calc(100% - var(--z) * 2 + 1px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--z) repeat-x;
}

.receipt {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: calc(var(--z) + 1.25rem) clamp(1.1rem, 2.4vw, 1.6rem);
}
.receipt :where(p) { margin: 0; }
.r-store {
  text-align: center;
  font-family: var(--f-display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.02rem;
  line-height: 1.12;
  letter-spacing: .01em;
  padding: .2rem .5rem .8rem;
  text-wrap: balance;
}
.r-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--f-mono); font-size: var(--t-mono); font-stretch: 87.5%;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.r-rule { height: 0; border-top: 1.5px dashed var(--rule); margin: .8rem 0; }
.r-rule--label { position: relative; display: flex; justify-content: center; }
.r-rule--label span {
  position: relative; top: -.62em; background: var(--paper); padding: 0 .6em;
  font-family: var(--f-mono); font-size: .66rem; font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.r-list { font-family: var(--f-mono); font-size: .78rem; font-stretch: 87.5%; line-height: 1.95; }
.r-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.r-list .t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.r-list--pend li { grid-template-columns: auto 1fr auto; align-items: baseline; gap: .5rem; }
.r-list--pend li > span:last-child { color: var(--ink-3); text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }
.dots { border-bottom: 1.5px dotted var(--rule); transform: translateY(-.3em); }
.r-total {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.9;
}
.r-total span:last-child { font-variant-numeric: tabular-nums; }
.r-plain { font-size: .98rem; line-height: 1.5; }
.r-plain li { position: relative; padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px dashed var(--rule); }
.r-plain li:last-child { border-bottom: 0; }
.r-plain li::before {
  content: ""; position: absolute; left: 0; top: 1.02em; width: .55rem; height: 1.5px; background: currentColor;
}
.r-foot { margin-top: .8rem !important; font-size: .9rem; color: var(--ink-2); }

/* ---------- Botões ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .78em 1.3em;
  border: 1.5px solid var(--bd); border-radius: 2px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 750; font-stretch: 86%; font-size: 1.04rem; line-height: 1.15;
  letter-spacing: .005em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--d-1) var(--e-out), color var(--d-1) var(--e-out),
              border-color var(--d-1) var(--e-out), transform var(--d-1) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .i { transition: transform var(--d-2) var(--e-out); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: .9em 1.6em; font-size: 1.16rem; }
.btn--mark { --bg: var(--mark); --fg: var(--mark-ink); --bd: var(--mark); }
.btn--mark:hover { --bg: var(--mark-hi); --bd: var(--mark-hi); }
.btn--ghost { --fg: var(--on-blue); --bd: var(--rule-blue); }
.btn--ghost:hover { --bd: var(--on-blue); background: rgba(255, 255, 255, .08); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ink:hover { --bg: var(--blue); --bd: var(--blue); }
.btn--line { --fg: var(--ink); --bd: var(--ink); }
.btn--line:hover { background: var(--paper-2); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: .7; }
.btn.is-busy::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 var(--s-4); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2) var(--e-out);
}
.topbar.is-scrolled { border-bottom-color: var(--rule-blue); }
.topbar__in { display: flex; align-items: center; gap: var(--s-4); min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  font-family: var(--f-display); font-stretch: 64%; font-weight: 900; font-size: 1.7rem;
  letter-spacing: .005em; text-decoration: none; line-height: 1;
}
.brand__mark { width: 18px; height: 23px; }
.brand__mark path:first-child { fill: var(--paper); }
.brand__line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.nav { margin-left: auto; position: relative; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a {
  display: inline-block; padding: .6rem 0;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 100% / 0 2px;
  transition: background-size var(--d-2) var(--e-out);
}
.nav__links a:hover, .nav__links a:focus-visible { background-size: 100% 2px; }
.nav__toggle { display: none; }
.sm-hide { display: inline; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: 0 .7rem; background: none; border: 1.5px solid var(--rule-blue);
    border-radius: 2px; cursor: pointer; font-weight: 600; font-size: .95rem;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative;
    transition: transform var(--d-2) var(--e-out), background-color var(--d-1);
  }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -5px; }
  .nav__toggle-bars::after { top: 5px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .js .nav__links {
    position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; gap: 0; min-width: 240px;
    background: var(--paper); color: var(--ink);
    padding: calc(var(--z) + .4rem) 1.1rem;
    -webkit-mask: var(--torn-mask); mask: var(--torn-mask);
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path var(--d-2) var(--e-out), visibility 0s linear var(--d-2);
  }
  .js .nav__links.is-open {
    visibility: visible; clip-path: inset(0 0 0 0);
    transition: clip-path var(--d-3) var(--e-out), visibility 0s;
  }
  .js .nav__links li + li { border-top: 1px dashed var(--rule); }
  .js .nav__links a { display: block; padding: .85rem 0; font-size: 1.05rem; }
  .no-js-hide { display: none; }
}
@media (max-width: 860px) {
  :root {
    --torn-mask:
      conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / 18px 9px repeat-x,
      linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 17px) no-repeat,
      conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
  }
  html:not(.js) .nav__links { gap: 1rem; font-size: .9rem; }
}
@media (max-width: 420px) {
  .sm-hide { display: none; }
  .nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand { font-size: 1.5rem; }
  .topbar__in { gap: .6rem; }
}

/* ---------- Seções ---------- */
.field { position: relative; padding-block: var(--s-9); }
.sheet {
  position: relative;
  background: var(--paper); color: var(--ink);
  padding-block: calc(var(--s-9) + var(--z));
  --z: 11px;
}
.sheet .lede, .sheet .micro { color: var(--ink-2); }
.sheet .caption { color: var(--ink-3); }

/* ---------- HERO ---------- */
.hero { padding-block: clamp(1.75rem, .5rem + 3.4vw, 4.25rem) clamp(4rem, 2rem + 6vw, 8rem); }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: start;
}
.hero__title { font-size: var(--t-hero); margin-bottom: var(--s-5); }
.hero__line { display: block; }
.hero__line--b { color: var(--on-blue-2); margin-top: .12em; }
.hero__line--b .hl { color: var(--mark-ink); }
.hero__copy { padding-top: clamp(0rem, 1.4vw, 1.5rem); }
.hero .actions { margin-top: var(--s-5); }
.hero__copy .lede { max-width: 36em; }

.hero__receipt { margin: 0; position: relative; justify-self: end; width: min(100%, 380px); }
.receipt--hero { padding-bottom: calc(var(--z) + 1.4rem); }
.r-pend { position: relative; margin-top: .9rem; }
.r-pend .r-rule { margin-top: 0; }
.pen--loop { left: -12px; top: 12px; width: calc(100% + 24px); height: calc(100% - 4px); }
.r-list--pend { padding-inline: .2rem; }
.r-handoff {
  display: flex; align-items: center; gap: .5rem; margin-top: .9rem !important;
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .45rem .55rem;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%;
}
.r-handoff .i { width: 1.1em; height: 1.1em; stroke: var(--blue-pen); stroke-width: 2.8; }

/* coreografia de abertura: CSS puro, roda mesmo se o JS falhar */
@keyframes rise { from { opacity: 0; transform: translateY(.32em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { background-size: 0 100%; } }
@keyframes sweep-hl { from { background-size: 0 86%; color: var(--on-blue-2); } }

.motion-ok .hero__line { animation: rise var(--d-3) var(--e-out) both; }
.motion-ok .hero__line--b { animation-delay: 110ms; }
.motion-ok .hero__title .hl { animation: sweep-hl 520ms var(--e-io) 640ms both; }
.motion-ok .hero__copy .lede { animation: fade 700ms var(--e-out) 260ms both; }
.motion-ok .hero__copy .actions { animation: rise 600ms var(--e-out) 340ms both; }
.motion-ok .hero__copy .micro { animation: fade 700ms var(--e-out) 480ms both; }
.motion-ok .receipt--hero { animation: print 1500ms steps(20, end) 200ms both; }
.motion-ok .pen--loop path { animation: draw 680ms var(--e-io) 1800ms both; }
.motion-ok .r-handoff { animation: sweep 520ms var(--e-io) 2450ms both; }
.motion-ok .hero__receipt .caption { animation: fade 600ms var(--e-out) 1700ms both; }

/* ---------- PROBLEMA ---------- */
.problem {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
}
.problem__copy h2 { margin-bottom: var(--s-6); }
.problem__copy p { max-width: 36em; color: var(--ink-2); }
.problem__beat {
  font-family: var(--f-display); font-stretch: 78%; font-weight: 700;
  font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.25; color: var(--ink) !important;
  margin-block: var(--s-5) !important;
}
.problem__verdict { font-weight: 600; color: var(--ink) !important; }

.spindle {
  position: relative; background: var(--blue);
  padding: 3.2rem 1.5rem 2.6rem; display: grid; justify-items: center;
  min-height: 100%;
}
.spindle__rod {
  position: absolute; left: 50%; top: 1.4rem; bottom: 2.2rem; width: 3px; margin-left: -1.5px;
  background: linear-gradient(var(--on-blue-2), #8d99d8);
}
.spindle__base {
  position: absolute; left: 50%; bottom: 1.4rem; width: 120px; height: 12px; margin-left: -60px;
  background: var(--blue-deep); border-radius: 50%;
}
.slips { display: flex; flex-direction: column-reverse; align-items: center; width: 100%; position: relative; }
.slips li {
  position: relative;
  width: min(270px, 86%);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 1rem .8rem;
  margin-top: -.15rem;
  background: var(--paper); color: var(--ink);
  transform: rotate(var(--r));
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  -webkit-mask: var(--slip-mask); mask: var(--slip-mask);
}
.slips li::before {
  content: ""; position: absolute; left: 50%; top: .38rem; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--blue);
}
/* rotação e ordem de chegada de cada comanda (sem estilo inline, por causa da CSP) */
.slips li:nth-child(1) { --r: -2.5deg; --d: 0; }
.slips li:nth-child(2) { --r: 1.8deg;  --d: 1; }
.slips li:nth-child(3) { --r: -1.2deg; --d: 2; }
.slips li:nth-child(4) { --r: 2.6deg;  --d: 3; }
.slips li:nth-child(5) { --r: -3deg;   --d: 4; }
.slips li:nth-child(6) { --r: 1.4deg;  --d: 5; }
.slips li:nth-child(7) { --r: -2deg;   --d: 6; }
.slips li:nth-child(8) { --r: 3deg;    --d: 7; }
.slips b { font-weight: 700; }
.slips i { font-style: normal; color: var(--ink-3); }
.slips .is-later { background: transparent; color: var(--on-blue); outline: 1.5px dashed var(--on-blue-2); outline-offset: -6px; }
.slips .is-later i { color: var(--roll); font-weight: 700; }
.slips .is-later::before { background: var(--on-blue-2); }
:root {
  --slip-mask:
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 6px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 6px repeat-x;
}
.motion-ok.io .spindle .slips li {
  opacity: 0; transform: translateY(-46px) rotate(calc(var(--r) * 3));
  transition: opacity 360ms var(--e-out), transform var(--d-3) var(--e-out);
  transition-delay: calc(var(--d) * 90ms);
}
.motion-ok.io .spindle.is-in .slips li { opacity: 1; transform: rotate(var(--r)); }

/* ---------- BUSCA ---------- */
.search__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy demo" "truth truth";
}
.search__copy { grid-area: copy; }
.search__copy h2 { margin-bottom: var(--s-5); }
.search__copy > p { color: var(--on-blue-2); max-width: 34em; }
.list-title {
  margin: var(--s-6) 0 var(--s-3); color: var(--on-blue);
  font-family: var(--f-display); font-stretch: 80%; font-weight: 750; font-size: 1.2rem; line-height: 1.2;
}
.needs li {
  display: flex; gap: .8rem; align-items: center; padding: .62rem 0;
  border-top: 1px dashed var(--rule-blue); font-weight: 500;
}
.needs li:last-child { border-bottom: 1px dashed var(--rule-blue); }
.needs .i--check { width: 1.4rem; height: 1.4rem; padding: .18rem; background: var(--paper); border-radius: 2px; }
.needs .i--check path { stroke-dashoffset: 1; transition: stroke-dashoffset 420ms var(--e-io); }
.needs.is-on li:nth-child(1) .i--check path { transition-delay: 120ms; }
.needs.is-on li:nth-child(2) .i--check path { transition-delay: 200ms; }
.needs.is-on li:nth-child(3) .i--check path { transition-delay: 280ms; }
.needs.is-on li:nth-child(4) .i--check path { transition-delay: 360ms; }
.needs.is-on li:nth-child(5) .i--check path { transition-delay: 440ms; }
.needs.is-on li:nth-child(6) .i--check path { transition-delay: 520ms; }
.needs.is-on .i--check path { stroke-dashoffset: 0; }
html:not(.js) .needs .i--check path { stroke-dashoffset: 0; }

.demo { grid-area: demo; margin: 0; align-self: start; }
.demo__switch { display: inline-flex; border: 1.5px solid var(--rule-blue); border-radius: 2px; margin-bottom: var(--s-4); }
html:not(.js) .demo__switch { display: none; }
.demo__opt {
  min-height: 44px; padding: .5rem .95rem; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--on-blue-2);
  transition: background-color var(--d-1) var(--e-out), color var(--d-1) var(--e-out);
}
.demo__opt[aria-pressed="true"] { background: var(--mark); color: var(--mark-ink); }
.demo__opt:not([aria-pressed="true"]):hover { color: var(--on-blue); background: rgba(255, 255, 255, .08); }
.demo__card { padding-inline: clamp(1rem, 3vw, 1.6rem); }
.demo__query {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem; border: 1.5px solid var(--rule); border-radius: 999px;
  font-size: .95rem; color: var(--ink-2); margin-bottom: 1.2rem;
}
.demo__name {
  font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 1.6rem; line-height: 1.1;
}
.demo__meta { color: var(--ink-3); font-size: .95rem; margin: .2rem 0 .9rem !important; }
.demo__facts { margin: 0; border-top: 1.5px dashed var(--rule); }
.demo__facts div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .62rem 0;
  border-bottom: 1px dashed var(--rule); font-size: .95rem;
}
.demo__facts dt { font-family: var(--f-mono); font-stretch: 87.5%; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: .2em; }
.demo__facts dd { margin: 0; font-weight: 500; }
.miss { color: var(--error); }
.demo__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: .25rem .85rem;
  border: 1.5px solid var(--blue-pen); color: var(--blue-pen); border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.chip--off { border-style: dashed; border-color: var(--ink-3); color: var(--ink-3); }
[data-demo-card][data-state="incompleto"] [data-v="organizado"],
[data-demo-card][data-state="organizado"] [data-v="incompleto"] { display: none; }
.motion-ok [data-demo-card] [data-v] { animation: fade 420ms var(--e-out) both; }
.motion-ok [data-demo-card] .demo__facts div:nth-child(2) [data-v] { animation-delay: 60ms; }
.motion-ok [data-demo-card] .demo__facts div:nth-child(3) [data-v] { animation-delay: 120ms; }
.motion-ok [data-demo-card] .demo__facts div:nth-child(4) [data-v] { animation-delay: 180ms; }
.demo .caption { max-width: 36em; }

.truth {
  grid-area: truth;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: var(--s-6);
  border-top: 1.5px solid var(--on-blue); padding-top: var(--s-5);
}
.truth__title {
  font-family: var(--f-display); font-stretch: 72%; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1;
}
.truth p { color: var(--on-blue-2); margin: 0; }
.truth strong { color: var(--on-blue); font-weight: 700; }

/* ---------- PROPOSTA / CORTE ---------- */
.split { padding-top: calc(var(--s-9) * .6); }
.split__title { max-width: 14em; }
.split__b { display: block; color: var(--mark); }
.split__copy {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6);
  max-width: 62rem; margin: var(--s-6) 0 var(--s-8); color: var(--on-blue-2);
}
.split__copy p { margin: 0; }
.cut { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; max-width: 62rem; }
.cut__half .r-head { font-size: .8rem; }
.cut__half--b { background: var(--paper); }
.cut__half--b .r-head span:first-child { background: var(--mark); padding: 0 .3em; margin-left: -.3em; }
.cut__line { position: relative; display: flex; justify-content: center; }
.cut__line::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--on-blue-2);
}
.cut__scissors {
  position: relative; width: 30px; height: 30px; margin-top: -6px; transform: rotate(90deg);
  fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round;
  background: var(--blue); padding: 2px;
}
.motion-ok.io .cut .cut__half--a { transform: translateX(32px); }
.motion-ok.io .cut .cut__half--b { transform: translateX(-32px); }
.motion-ok.io .cut .cut__half { transition: transform 900ms var(--e-out) 420ms; }
.motion-ok.io .cut .cut__scissors { transition: transform 1100ms var(--e-io); }
.motion-ok.io .cut.is-in .cut__half { transform: none; }
.motion-ok.io .cut.is-in .cut__scissors { transform: translateY(var(--travel, 260px)) rotate(90deg); }
.motion-ok.io .cut .cut__line::before { transform-origin: top; transform: scaleY(0); transition: transform 1100ms var(--e-io); }
.motion-ok.io .cut.is-in .cut__line::before { transform: scaleY(1); }

/* ---------- SOLUÇÕES ---------- */
.sol__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6) clamp(2rem, 6vw, 6rem);
  align-items: end; margin-bottom: var(--s-7);
}
.sol__head p { color: var(--ink-2); margin: 0; max-width: 32em; }
.journey {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: var(--s-5);
  font-size: .72rem;
}
.journey li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .7rem;
  border: 1.5px solid var(--rule); border-radius: 2px; color: var(--ink-2);
  transition: background-color var(--d-2) var(--e-out), color var(--d-2) var(--e-out), border-color var(--d-2);
}
.journey li + li::before {
  content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: -.95rem; margin-right: .25rem; color: var(--ink-3);
}
.journey li.is-on { background: var(--mark); border-color: var(--mark); color: var(--ink); }

.items { border-top: 2px solid var(--ink); }
.item { border-bottom: 1.5px dashed var(--rule); transition: opacity var(--d-2) var(--e-out); }
.items.has-open .item:not(.is-open) { opacity: .62; }
.items.has-open .item:not(.is-open):hover { opacity: 1; }
.item__h { font: inherit; }
.item__btn {
  width: 100%; display: grid; align-items: baseline; text-align: left;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.15fr) 2.5rem;
  gap: .4rem 1.6rem; padding: 1.6rem 0; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.item__code { color: var(--ink-3); }
.item__name {
  font-family: var(--f-display); font-stretch: 72%; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.35rem); line-height: 1;
}
.item__lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.4; }
.item__plus { position: relative; width: 22px; height: 22px; justify-self: end; align-self: center; }
.item__plus::before, .item__plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: var(--ink);
  transition: transform var(--d-2) var(--e-out);
}
.item__plus::after { transform: rotate(90deg); }
.item__btn[aria-expanded="true"] .item__plus::after { transform: rotate(0deg); }
.item__btn:hover .item__name { text-decoration: underline; text-decoration-color: var(--blue-pen); text-decoration-thickness: 3px; text-underline-offset: .14em; }
.item__panel { padding: 0 0 2rem calc(7.5rem + 1.6rem); max-width: 62rem; }
.item__panel > p { max-width: 40em; color: var(--ink-2); }
.item__inc { color: var(--ink-3); margin: 1.2rem 0 .4rem !important; }
.r-plain--cols { columns: 2; column-gap: 2rem; margin-bottom: 1.2rem; }
.r-plain--cols li { break-inside: avoid; border-bottom: 1px dashed var(--rule) !important; }
.item__note {
  font-size: .95rem; color: var(--ink-2); padding-left: 1rem;
  border-left: 1.5px solid var(--blue-pen); margin: 1rem 0 1.4rem !important; max-width: 40em;
}
.motion-ok .item__panel:not([hidden]) { animation: rise 420ms var(--e-out) both; }

/* ---------- TEMPO ---------- */
.tempo__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7) clamp(2rem, 6vw, 6rem);
  grid-template-areas: "title copy" "tape tape"; align-items: start;
}
.tempo__title { grid-area: title; }
.tempo__copy { grid-area: copy; color: var(--on-blue-2); padding-top: .4rem; }
.tempo .hl { color: var(--mark-ink); }
.motion-ok.io .tempo .hl[data-hl] { background-size: 0 86%; color: var(--on-blue); transition: background-size 620ms var(--e-io) 200ms, color 200ms linear 420ms; }
.motion-ok.io .tempo .hl[data-hl].is-in { background-size: 100% 86%; color: var(--mark-ink); }
.boxed {
  position: relative; margin-top: var(--s-6) !important; padding: 1.3rem 1.4rem;
  color: var(--on-blue); font-weight: 600; font-size: 1.08rem; line-height: 1.45;
}
.pen--box { inset: 0; width: 100%; height: 100%; }
.pen--box path { stroke: var(--mark); stroke-width: 2.4; }
.motion-ok.io .boxed .pen path { stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--e-io) 150ms; }
.motion-ok.io .boxed.is-in .pen path { stroke-dashoffset: 0; }

.tape { grid-area: tape; margin: 0; }
.tape__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; margin-bottom: .6rem; }
.tape__lab { color: var(--on-blue-2); }
.tape__strip { display: flex; min-height: 52px; }
.tape__strip span {
  display: flex; align-items: center; padding: 0 1rem; font-family: var(--f-mono); font-stretch: 87.5%;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.tape__strip--you { background: var(--paper); color: var(--ink); }
.tape__strip--you span { flex: 1; border-right: 1.5px dashed var(--rule); }
.tape__strip--you span:last-child { border-right: 0; }
.tape__strip--k { width: max(34%, 15rem); background: var(--mark); color: var(--ink); }
.motion-ok.io .tape .tape__strip { clip-path: inset(0 100% 0 0); transition: clip-path 1000ms var(--e-io); }
.motion-ok.io .tape .tape__row + .tape__row .tape__strip { transition-delay: 450ms; }
.motion-ok.io .tape.is-in .tape__strip { clip-path: inset(0 0 0 0); }

/* ---------- PROCESSO ---------- */
.process__title { max-width: 13em; margin-bottom: var(--s-8); }
.process {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem);
  --p: 1;
}
.process::before, .process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 2.05rem; height: 0;
}
.process::before { border-top: 2px dashed var(--rule); }
.process::after { border-top: 2px solid var(--blue-pen); transform-origin: left; transform: scaleX(var(--p)); }
.ticket {
  position: relative; z-index: 1;
  background: var(--blue); color: var(--on-blue);
  padding: 1.3rem 1.3rem 1.5rem;
  -webkit-mask: var(--ticket-mask); mask: var(--ticket-mask);
}
:root {
  --ticket-mask:
    radial-gradient(circle 9px at 0 2.05rem, #0000 98%, #000) 0 0 / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% 2.05rem, #0000 98%, #000) 100% 0 / 51% 100% no-repeat;
}
.ticket__n {
  display: inline-block; padding: .2rem .45rem; margin-bottom: 1.4rem; border: 1.5px solid var(--rule-blue);
  transition: background-color var(--d-2) var(--e-out), color var(--d-2) var(--e-out), border-color var(--d-2);
}
.ticket.is-hit .ticket__n { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.ticket__h {
  font-family: var(--f-display); font-stretch: 70%; font-weight: 850; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1; margin-bottom: .7rem;
}
.ticket p { margin: 0; color: var(--on-blue-2); font-size: 1rem; }
.process__note { margin-top: var(--s-6) !important; color: var(--ink-3); font-size: .95rem; max-width: 40em; }

/* ---------- MAPEAMENTO ---------- */
.mapear__grid { display: grid; gap: var(--s-7); }
.mapear__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4) clamp(2rem, 6vw, 6rem); align-items: end; }
.mapear__intro h2 { grid-row: span 2; }
.mapear__intro p { color: var(--on-blue-2); margin: 0; max-width: 34em; }
.mapear__intro .micro { margin-top: .4rem; }
.comanda {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
}
.q { --z: 10px; padding: calc(var(--z) + 1.6rem) clamp(1.1rem, 3.4vw, 2.6rem) calc(var(--z) + 1.8rem); outline: none; }
.q__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.6rem; }
.q__count { color: var(--ink-3); }
.q__steps { display: flex; gap: 5px; }
.q__steps li { width: 30px; height: 6px; border: 1.5px dashed var(--ink-3); transition: background-color var(--d-2) var(--e-out), border-color var(--d-2); }
.q__steps li.is-done { background: var(--ink); border: 1.5px solid var(--ink); }
.q__steps li.is-current { background: var(--blue-pen); border: 1.5px solid var(--blue-pen); }
html:not(.js) .q__steps { display: none; }

.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q .f { margin-bottom: 1.25rem; }
.q__step + .q__step { margin-top: 2.5rem; }
.js .q__step { display: none; }
.js .q__step.is-current { display: block; margin-top: 0; }
.motion-ok .q__step.is-current { animation: step-in 420ms var(--e-out) both; }
.motion-ok .q__step.is-current.from-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } }
.q__legend {
  display: block; padding: 0; outline: none;
  font-family: var(--f-display); font-stretch: 74%; font-weight: 850; font-size: var(--t-legend); line-height: 1.04;
  text-wrap: balance; margin-bottom: .5rem;
}
.q__desc { color: var(--ink-2); margin-bottom: 1.4rem !important; }

.f { margin-bottom: 1.15rem; }
.f > label, .f--group > legend {
  display: block; font-weight: 650; font-size: .98rem; margin-bottom: .4rem;
}
.f--group > legend { padding: 0; }
.opt-tag { font-weight: 400; color: var(--ink-3); font-size: .88rem; margin-left: .25rem; }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f textarea, .f select {
  width: 100%; min-height: 50px; padding: .7rem .85rem;
  background: var(--paper-hi); color: var(--ink);
  border: 1.5px solid var(--ink-3); border-radius: 2px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--d-1) var(--e-out), box-shadow var(--d-1) var(--e-out);
}
.f textarea { resize: vertical; min-height: 96px; }
.f select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.f input::placeholder, .f textarea::placeholder { color: #767980; }
.f input:hover, .f textarea:hover, .f select:hover { border-color: var(--ink); }
.f input:focus-visible, .f textarea:focus-visible, .f select:focus-visible {
  outline: 3px solid var(--focus-paper); outline-offset: 1px; border-color: var(--blue-pen);
}
.f [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: inset 0 -2px 0 var(--error); }
.f__err { color: var(--error); font-size: .9rem; font-weight: 600; margin: .35rem 0 0 !important; min-height: 0; }
.f__err:empty { display: none; }
.f__err:not(:empty)::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; vertical-align: .1em;
  background: var(--error); transform: rotate(45deg);
}
.f__hint { color: var(--ink-3); margin: .35rem 0 0 !important; font-size: .66rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips--stack { flex-direction: column; flex-wrap: nowrap; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .6rem .95rem;
  border: 1.5px solid var(--ink-3); border-radius: 2px; background: var(--paper-hi);
  font-size: .98rem; line-height: 1.3;
  transition: background-color var(--d-1) var(--e-out), color var(--d-1) var(--e-out), border-color var(--d-1) var(--e-out), transform var(--d-1) var(--e-out);
}
.chips--stack .opt span::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 2px;
  background: no-repeat center / 12px 12px;
}
.chips--stack .opt input[type="radio"] + span::before { border-radius: 50%; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.chips--stack .opt input:checked + span::before {
  background-color: var(--mark); border-color: var(--mark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318191d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.opt input:focus-visible + span { outline: 3px solid var(--focus-paper); outline-offset: 2px; }
.opt input:active + span { transform: scale(.985); }
.f--group[aria-invalid="true"] .opt span, .f--group.is-invalid .opt span { border-color: var(--error); }

.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: .1rem 0 0;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-hi) no-repeat center / 14px 14px; cursor: pointer;
}
.check input:checked {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: 3px solid var(--focus-paper); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.q__nav { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1.5px dashed var(--rule); }
.q__nav [data-q-next], .q__nav [data-q-submit] { margin-left: auto; }
html:not(.js) [data-q-next], html:not(.js) [data-q-back] { display: none; }
.js .q__nav [data-q-submit] { display: none; }
.js .q.is-last [data-q-submit] { display: inline-flex; }
.js .q.is-last [data-q-next] { display: none; }

.q__done { text-align: left; }
.q__done:focus-visible { outline: none; }
.done__mark { width: 56px; height: 56px; margin-bottom: 1rem; display: none; }
.done__mark path { stroke-width: 4; }
.q__done[data-status="forwarded"] .done__mark--ok,
.q__done[data-status="whatsapp"] .done__mark--next,
.q__done[data-status="none"] .done__mark--wait { display: block; }
.done__mark--wait path { stroke: var(--error); }
.motion-ok .q__done:not([hidden]) .done__mark path { animation: draw 620ms var(--e-io) 120ms both; }
.q__done p { color: var(--ink-2); max-width: 36em; margin-bottom: .8rem; }
.q__nav--done [data-done-whats] { margin-left: 0; }

.tally { --z: 8px; position: sticky; top: 92px; }
.tally__list { margin: 0; font-family: var(--f-mono); font-stretch: 87.5%; font-size: .74rem; }
.tally__list div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .6rem; padding: .42rem 0; }
.tally__list dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.tally__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tally__list div.is-new dd { animation: ink-in 700ms var(--e-out) both; }
@keyframes ink-in { from { color: var(--ink-3); background: var(--mark); } }
.tally__foot { color: var(--ink-3); font-size: .64rem; line-height: 1.6; }
html:not(.js) .tally { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--s-6) clamp(2rem, 6vw, 6rem); align-items: start; }
.faq h2 { position: sticky; top: 100px; }
.faq__list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1.5px dashed var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 1rem; align-items: center;
  padding: 1.15rem 0; font-family: var(--f-display); font-stretch: 84%; font-weight: 750; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 22px; height: 22px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: transform var(--d-2) var(--e-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--blue-pen); }
.qa__a { padding: 0 2.5rem 1.3rem 0; color: var(--ink-2); max-width: 44em; }
.qa__a p { margin: 0; }
.motion-ok .qa[open] .qa__a { animation: rise 380ms var(--e-out) both; }

/* ---------- FINAL ---------- */
.final { padding-bottom: var(--s-7); }
.final__in { display: grid; justify-items: start; }
.final h2 { max-width: 15em; margin-bottom: var(--s-5); }
.final .lede { margin-bottom: var(--s-6); }
.roll-end {
  margin-top: var(--s-9); width: 100%;
  background: var(--paper); color: var(--ink);
  padding: .9rem 1rem 1rem; text-align: center; position: relative;
  background-image: linear-gradient(90deg, transparent 0 6%, var(--roll) 6% 94%, transparent 94%);
  background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 100%;
  -webkit-mask: var(--slip-top-mask); mask: var(--slip-top-mask);
}
.roll-end span { color: var(--ink-2); }
:root {
  --slip-top-mask:
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / 16px 8px repeat-x,
    linear-gradient(#000 0 0) 0 8px / 100% calc(100% - 8px) no-repeat;
}

.foot { background: var(--blue-deep); padding-block: var(--s-6) var(--s-7); }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3) var(--s-6); align-items: center; }
.foot__txt { margin: 0; color: var(--on-blue-2); font-size: .95rem; }
.foot .mono { font-size: .66rem; }
.brand--foot .brand__line { stroke: var(--blue-deep); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .item__btn { grid-template-columns: 6rem minmax(0, 1fr) 2rem; }
  .item__lead { grid-column: 2 / 3; }
  .item__plus { grid-column: 3; grid-row: 1 / span 2; }
  .item__panel { padding-left: calc(6rem + 1.6rem); }
  .truth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .truth__title { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__receipt { justify-self: start; width: min(100%, 400px); }
  .problem { grid-template-columns: minmax(0, 1fr); }
  .search__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "demo" "truth"; }
  .sol__head, .mapear__intro, .faq { grid-template-columns: minmax(0, 1fr); }
  .mapear__intro h2 { grid-row: auto; }
  .faq h2 { position: static; }
  .tempo__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "copy" "tape"; }
  .comanda { grid-template-columns: minmax(0, 1fr); }
  .tally { position: static; order: -1; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process::before, .process::after { display: none; }
}

@media (max-width: 680px) {
  :root { --z: 7px; }
  .sheet { --z: 8px; }
  .split__copy { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .cut { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 52px auto; }
  .cut__line::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 2px dashed var(--on-blue-2); }
  .cut__line { align-items: center; justify-content: flex-start; }
  .cut__scissors { margin: 0 0 0 -4px; transform: none; }
  .motion-ok.io .cut .cut__half--a { transform: translateY(26px); }
  .motion-ok.io .cut .cut__half--b { transform: translateY(-26px); }
  .motion-ok.io .cut.is-in .cut__scissors { transform: translateX(var(--travel, 240px)); }
  .motion-ok.io .cut .cut__line::before { transform-origin: left; transform: scaleX(0); }
  .motion-ok.io .cut.is-in .cut__line::before { transform: scaleX(1); }

  .item__btn { grid-template-columns: minmax(0, 1fr) 1.6rem; gap: .35rem 1rem; padding: 1.3rem 0; }
  .item__code, .item__name, .item__lead { grid-column: 1; }
  .item__plus { grid-column: 2; grid-row: 1 / span 3; }
  .item__panel { padding-left: 0; }
  .r-plain--cols { columns: 1; }
  .truth { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }

  .process { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .tape__row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .tape__strip--you { flex-wrap: wrap; }
  .tape__strip--you span { flex: 1 1 45%; min-height: 44px; border-right: 0; border-bottom: 1.5px dashed var(--rule); }
  .tape__strip--k { width: 100%; }

  .demo__facts div { grid-template-columns: 5.4rem 1fr; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
  .q__nav .btn { flex: 1 1 auto; }
  .q__nav [data-q-back] { flex: 0 0 auto; }
}

@media (max-width: 380px) {
  .chips:not(.chips--stack) .opt { flex: 1 1 100%; }
  .r-list li { gap: .6rem; }
}

/* =========================================================
   Movimento reduzido: estado final, sem deslocamento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
