/* Antes de Encaminhar — sistema visual
   Ideia: a página usa o recorte como linguagem. Tudo é grafite e papel;
   o que "ficou de fora" (o contexto) é sempre âmbar. */

:root {
  --ink: #1c2226;
  --ink-2: #2a3238;
  --paper: #f1f3f4;
  --paper-2: #e6eaec;
  --white: #ffffff;
  --line: #cfd6da;
  --mute: #55616a;
  --amber: #ff9f1c;
  --amber-soft: #ffe2b3;
  --v-ok: #1f7a52;
  --v-ctx: #b86e00;
  --v-no: #b3402b;
  --v-unk: #5d6a73;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --step-hero: clamp(2.15rem, 1.2rem + 5.2vw, 4.6rem);

  --gutter: 1.25rem;
  --measure: 40rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  padding-bottom: 5.5rem; /* espaço da barra fixa no celular */
}

img, svg { max-width: 100%; display: block; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--amber); }

.wrap { width: min(100% - 2 * var(--gutter), 70rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 99; }

/* ---------- marcas de corte (o motivo do produto) ---------- */
.crop { position: relative; }
.crop::before {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  --c: var(--ink);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 16px no-repeat;
}
.dark .crop::before { --c: var(--amber); }

/* ---------- topo ---------- */
.top { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.brand { font-family: var(--font-display); font-weight: 900; font-stretch: 80%; font-size: 1.25rem; letter-spacing: -.01em; }
.edition { font-size: var(--step--1); color: var(--mute); }

/* ---------- botão ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: .9rem 1.6rem;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-stretch: 88%;
  font-size: 1.125rem; line-height: 1.15; text-align: center; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.dark .btn { border-color: var(--amber); box-shadow: 4px 4px 0 var(--amber); }
.dark .btn:hover { box-shadow: 2px 2px 0 var(--amber); }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: none; min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); transform: none; box-shadow: none; }

/* ---------- dobra ---------- */
.hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem); }
.hero-grid { display: grid; gap: 2.75rem; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; } }

.h1 { font-size: var(--step-hero); font-weight: 900; font-stretch: 76%; line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.h1 .set { display: block; }
.h1 .punch {
  display: inline; margin-top: .22em;
  background: var(--amber); color: var(--ink);
  padding: .02em .24em .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.h1 .punch-wrap { display: block; margin-top: .22em; }
.sig { font-family: var(--font-display); font-weight: 800; font-stretch: 84%; font-size: var(--step-1); margin: 1.4rem 0 .75rem; text-wrap: balance; }
.lead { font-size: var(--step-0); }

.buy { margin-top: 1.75rem; display: grid; gap: 1rem; max-width: 26rem; }
.buy-price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 900; font-stretch: 80%; font-size: 2.6rem; line-height: 1; }
.buy-price small { color: var(--mute); font-size: var(--step--1); }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: var(--step--1); color: var(--mute); }
.facts li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; background: var(--ink); transform: translateY(-1px); }

.hero .crop { width: fit-content; max-width: 100%; margin-inline: auto; }
.hero .crop::before { inset: -14px -22px -22px -14px; }

/* mockup do app (estrutura, sem alegações) */
.app { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 1.1rem; max-width: 22rem; margin-inline: auto; width: 100%; box-shadow: 8px 8px 0 var(--ink); }
.app-bar { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mute); margin-bottom: .9rem; }
.app-q { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.35rem; line-height: 1.1; margin-bottom: .75rem; }
.search { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--ink); border-radius: 10px; padding: .7rem .85rem; color: var(--mute); font-size: 1rem; background: var(--paper); }
.search svg { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: .25rem .7rem; font-size: .85rem; background: var(--white); }
.verdicts { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .45rem; font-size: .92rem; }
.verdicts li { display: flex; align-items: center; gap: .6rem; }
.dot { width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.d-ok { background: var(--v-ok); } .d-ctx { background: var(--amber); } .d-no { background: var(--v-no); } .d-unk { background: var(--v-unk); }

/* ---------- seções ---------- */
.sec { padding-block: var(--section-y); }
.sec h2 { font-size: var(--step-2); font-weight: 900; font-stretch: 80%; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1.25rem; text-wrap: balance; max-width: 22ch; }
.dark { background: var(--ink); color: var(--paper); }
.dark .mute { color: #aeb9bf; }
.mute { color: var(--mute); }

/* recortes */
.cuts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; max-width: var(--measure); }
.cuts li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: baseline; padding: .8rem 1rem; background: var(--white); border-left: 6px solid var(--ink); }
.cuts b { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.15rem; white-space: nowrap; }
.cuts span { color: var(--mute); }

/* demonstração do recorte (o momento memorável) */
.demo { margin: 2.5rem 0; max-width: 30rem; }
.demo-label { font-size: var(--step--1); color: var(--mute); margin-bottom: .9rem; max-width: 36ch; }
.msg { background: #dcf3e4; border-radius: 14px 14px 14px 2px; padding: .9rem 1.1rem; font-size: 1.08rem; position: relative; }
.msg + .msg { margin-top: .5rem; }
.hidden-ctx { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.hidden-ctx > div { overflow: hidden; }
.demo.open .hidden-ctx { grid-template-rows: 1fr; }
.ctx-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ctx-list li { background: var(--amber-soft); border-left: 6px solid var(--amber); padding: .65rem .9rem; font-size: 1rem; }
.demo .btn { margin-top: 1rem; }

/* filtro 3C: sequência real, então numerada */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; max-width: 54rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; border: 2px solid #46525a; padding: 1.1rem 1.1rem 1.25rem; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--amber); display: block; line-height: 1; margin-bottom: .5rem; }
.steps h3 { font-size: 1.35rem; font-weight: 900; font-stretch: 82%; margin-bottom: .4rem; }
.steps p { margin: 0; font-size: 1rem; color: #cdd5d9; }

.slot {
  border: 2px dashed var(--amber); padding: 1.25rem; margin: 2.25rem 0 2rem; max-width: 36rem;
  color: var(--amber-soft); font-size: 1rem;
}
.slot b { color: var(--amber); }

/* oferta */
.deliver { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: grid; gap: .6rem; max-width: var(--measure); }
.deliver li { padding-left: 1.6rem; position: relative; }
.deliver li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; border: 2px solid var(--ink); background: var(--amber); }
.offer { background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); max-width: 36rem; margin: 2.5rem 0; }
.offer .price { font-size: clamp(3rem, 2rem + 5vw, 4.6rem); }
.offer h3 { font-size: 1.5rem; font-weight: 900; font-stretch: 82%; margin-bottom: .5rem; }
.sub { font-family: var(--font-display); font-weight: 800; font-stretch: 84%; font-size: var(--step-1); margin: 2rem 0 .6rem; }
.bump { border: 2px dashed var(--ink); padding: 1rem 1.1rem; margin: 1.5rem 0; background: var(--paper); }
.bump b { font-family: var(--font-display); font-stretch: 85%; font-size: 1.1rem; }
.bump p { margin: .4rem 0 0; font-size: 1rem; }
.urg { border-left: 8px solid var(--amber); background: var(--white); padding: 1.1rem 1.25rem; margin: 2rem 0; max-width: 36rem; }
.urg p:last-child { margin-bottom: 0; }

/* faq */
details { border-top: 2px solid var(--ink); padding: 1rem 0; max-width: var(--measure); }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; }

.guarantee { display: grid; gap: .5rem; max-width: 36rem; padding: 1.25rem 1.4rem; border: 2px solid var(--ink); background: var(--white); margin-bottom: 3rem; }
.guarantee h3 { font-size: 1.4rem; font-weight: 900; font-stretch: 82%; }
.guarantee p { margin: 0; }

.final { margin-top: 3.5rem; }
.final h2 { max-width: 20ch; }
.foot { background: var(--ink); color: #aeb9bf; padding-block: 2.25rem; font-size: var(--step--1); }
.foot p { margin: 0 0 .5rem; max-width: 70ch; }

/* marcador de pendência: nunca deve chegar à produção */
.todo { background: var(--amber-soft); outline: 2px dashed var(--v-no); padding: .1em .35em; color: var(--ink); }

/* barra fixa no celular */
.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.on { transform: none; }
.sticky .price { font-size: 1.7rem; color: var(--amber); }
.sticky small { display: block; color: #aeb9bf; font-size: .8rem; line-height: 1.1; }
.sticky .btn { min-height: 3rem; padding: .6rem 1.1rem; font-size: 1rem; border-color: var(--amber); box-shadow: none; }
@media (min-width: 62rem) { .sticky { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hidden-ctx, .sticky, .btn { transition: none; }
}
