/* ==========================================================================
   WILLIAN SYSTEMS — páginas internas no sistema da home (v4.1, 27/09/2026)
   Carrega DEPOIS de v4.css. Tokens, fontes, base, header, rodapé, botões, painéis,
   rótulos, grade técnica e movimento vêm de lá: fonte única, a home não muda.
   Aqui só entram os blocos que a home não tem (topo das páginas, dores, entregas,
   sistema em cinco estágios, perguntas, cases, texto legal, 404), com os mesmos
   tokens, a mesma escala pela ALTURA da tela e âmbar só em detalhe.
   ========================================================================== */

/* ---------- MENU: página atual -------------------------------------------- */
.site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 56.24em) { .site-nav li a[aria-current="page"] { color: var(--amber-text); } }
@media (min-width: 56.25em) { .site-nav li a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); } }

/* ---------- SEÇÕES -------------------------------------------------------- */
/* o fio luminoso entre seções também sai do topo das páginas */
.page-hero + .sec::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 86vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 220, .22) 30%, rgba(255, 240, 220, .22) 70%, transparent);
}
/* seção de destaque: o mesmo brilho quente do hero da home, bem baixo */
.sec-ink { background: radial-gradient(70% 90% at 88% 10%, rgba(255, 238, 214, .045), transparent 70%); }

/* ---------- TOPO DAS PÁGINAS ---------------------------------------------- */
/* mesma régua do hero da home: texto à esquerda, apoio à direita; na tela baixa cabe inteiro */
.page-hero { position: relative; overflow: hidden; padding-block: 10px var(--section); }
.page-hero::before { /* o brilho acompanha o tamanho da seção: some antes das bordas, nunca corta */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 85% at 88% 45%, rgba(255, 238, 214, .065), rgba(255, 238, 214, .02) 55%, transparent 72%);
}
.page-hero-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 56.25em) {
  .page-hero { padding-block: clamp(6px, 2vh, 20px) clamp(24px, 7vh, 72px); }
  .page-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 4vw, 64px); }
}

.crumbs { font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--amber-line); }
.crumbs a { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 22.49em) { .crumbs { display: none; } }

.page-hero .label { margin-bottom: clamp(6px, 1.4vh, 10px); }
.page-hero h1 { font-size: clamp(1.75rem, 1.05rem + 3.4vw, 2.75rem); line-height: 1.06; max-width: 21ch; }
@media (min-width: 56.25em) {
  /* o título respeita a altura da tela, como o da home (≈ 43 px em 1366×768, ≈ 34 px em 1028×467) */
  .page-hero h1 { font-size: clamp(1.6rem, min(1rem + 2.1vw, 7.2vh), 2.75rem); }
}
.hero-q {
  margin-top: clamp(10px, 2.2vh, 16px); padding-left: 14px; border-left: 2px solid var(--amber-line);
  font: 600 clamp(1.0625rem, .98rem + .5vw, 1.3rem)/1.38 var(--display); letter-spacing: -.012em; color: var(--text); max-width: 44ch; text-wrap: balance;
}
@media (min-width: 56.25em) { .hero-q { font-size: clamp(1rem, min(.95rem + .45vw, 3.9vh), 1.3rem); } }
.hero-lead { margin-top: clamp(8px, 1.8vh, 14px); font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 56ch; }
.hero-lead strong { color: var(--text); }
/* o complemento do texto sai onde a tela é curta: celular e notebook baixo */
@media (max-width: 37.49em) { .lead-extra { display: none; } }
@media (min-width: 56.25em) and (max-height: 35.99em) { .lead-extra { display: none; } }
@media (max-width: 22.49em) { .page-hero .hero-lead { display: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 3.2vh, 24px); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
@media (min-width: 56.25em) { .page-hero .btn { min-height: clamp(44px, 9vh, 52px); padding-block: 10px; } }
@media (max-width: 37.49em) {
  .btn-row .btn { flex: 1 1 100%; padding-inline: 18px; }
  .btn-row .btn-hide-m { display: none; }
}

/* "O que entra" / "Nesta página": painel ao lado do título */
.page-hero-aside { padding: var(--pad); }
.page-hero-aside > p { margin-bottom: 4px; font: 600 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); }

/* lista com marcador: losango âmbar (✓ no que está incluído) */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); font-size: var(--fs-card); line-height: 1.45; color: var(--text); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: calc(7px + .55em); width: 7px; height: 7px; border: 1.5px solid var(--amber-text); transform: rotate(45deg); }
.page-hero-aside .ticks li::before { content: "✓"; top: 7px; width: auto; height: auto; border: 0; transform: none; font: 600 .875rem/1.45 var(--mono); color: var(--amber-text); }
/* item que é link (âncora na página): o próprio link dá a altura de toque (40 px) e leva a seta,
   alinhada à primeira linha; cresce se o texto quebrar */
.ticks li:has(> a) { padding: 0; }
.ticks li:has(> a)::before { display: none; }
.ticks a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding-block: 9px; font-weight: 600; color: var(--text); text-decoration: none; }
.ticks a::before { content: "↓"; flex: none; font: 600 .875rem/1 var(--mono); color: var(--amber-text); }
.ticks a:hover { text-decoration: underline; }
@media (min-width: 56.25em) and (max-height: 35.99em) { .page-hero-aside .ticks li:not(:has(> a)) { padding-block: 5px; } }

/* ---------- ONDE A VENDA ESCAPA: seis dores num painel -------------------- */
.pain-grid { list-style: none; margin: 0; padding: 4px clamp(14px, 1.8vw, 20px); display: grid; }
@media (min-width: 37.5em) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; } }
@media (min-width: 56.25em) { .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pain-grid li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: clamp(10px, 2.2vh, 16px) 0; border-top: 1px solid var(--line); }
.pain-grid li:first-child { border-top: 0; }
@media (min-width: 37.5em) { .pain-grid li:nth-child(2) { border-top: 0; } }
@media (min-width: 56.25em) { .pain-grid li:nth-child(3) { border-top: 0; } }
.pain-grid li > span { font: 600 var(--fs-mono)/1.75 var(--mono); letter-spacing: .04em; color: var(--amber-text); }
.pain-grid b { display: block; font: 600 var(--fs-h3)/1.3 var(--display); letter-spacing: -.012em; }
.pain-grid p { margin-top: 4px; font-size: var(--fs-card); line-height: 1.45; color: var(--text-2); }

/* ---------- O QUE A GENTE FAZ: cartões numerados -------------------------- */
.deliver { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: dl; }
@media (min-width: 37.5em) { .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56.25em) { .deliver { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deliver li { counter-increment: dl; padding: clamp(12px, 2.4vh, 18px) clamp(14px, 1.6vw, 20px); }
.deliver li::after { content: "0" counter(dl); position: absolute; top: clamp(13px, 2.6vh, 19px); right: clamp(14px, 1.6vw, 20px); font: 600 var(--fs-mono)/1 var(--mono); letter-spacing: .04em; color: var(--amber-text); }
.deliver h3 { padding-right: 30px; font-size: var(--fs-h3); }
.deliver p { margin-top: 4px; font-size: var(--fs-card); line-height: 1.45; color: var(--text-2); }

/* ---------- BLOCO PRÓPRIO DA PÁGINA: texto + compromisso ------------------- */
.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 56.25em) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); } }
.split h2 { font-size: var(--fs-h2); }
.prose { margin-top: clamp(10px, 2vh, 16px); display: grid; gap: 10px; }
.prose p { max-width: 60ch; font-size: var(--fs-card); line-height: 1.55; color: var(--text-2); }
.honest { padding: var(--pad); }
.honest h3 { margin-bottom: 4px; font: 600 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); }
.quote { margin-top: clamp(12px, 2.4vh, 20px); padding-left: 16px; border-left: 2px solid var(--amber); max-width: 56ch; font: 600 var(--fs-lead)/1.45 var(--display); letter-spacing: -.01em; color: var(--text); }
.quote cite { display: block; margin-top: 2px; font: 500 var(--fs-mono)/1.5 var(--mono); font-style: normal; letter-spacing: .03em; color: var(--muted); }
.quote cite a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); }
.quote cite a:hover { color: var(--text); }

/* funil do CRM (/automacao) */
.pipe { margin-top: clamp(12px, 2.4vh, 20px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 37.5em) { .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pipe div { padding: 8px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); }
.pipe b { display: block; min-height: 2.7em; margin-bottom: 4px; font: 500 var(--fs-mono)/1.35 var(--mono); letter-spacing: .02em; color: var(--text); }
.pipe i { display: block; height: 14px; margin-top: 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.pipe div:last-child i { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); }

/* o mesmo pedido, dois finais (/automacao) */
.clock { margin-top: clamp(16px, 3vh, 28px); }
.clock-grid { display: grid; gap: var(--gap); }
@media (min-width: 37.5em) { .clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clock-col { padding: var(--pad); border-radius: var(--radius); }
.clock-bad { border: 1px dashed var(--line-2); }
.clock-col h3 { margin-bottom: 4px; font: 600 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clock-good h3 { color: var(--amber-text); }
.clock ol { list-style: none; margin: 0; padding: 0; }
.clock li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: var(--fs-card); line-height: 1.45; color: var(--text-2); }
.clock li:first-child { border-top: 0; }
.clock time { font: 600 var(--fs-mono)/1.75 var(--mono); letter-spacing: .03em; color: var(--text); }
.clock-good time { color: var(--amber-text); }
.clock-bad li:last-child span { color: var(--text); font-weight: 600; }
.clock-good li:last-child span { color: var(--amber-hi); font-weight: 600; }
.clock-src { margin-top: 10px; max-width: 60ch; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.clock-src a { color: var(--text); font-weight: 600; }

/* ---------- NO SISTEMA: as quatro etapas da home (D6), num painel, ligadas por um fio */
.stages { list-style: none; margin: 0; padding: var(--pad); display: grid; }
.stage { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 14px 24px; }
.stage + .stage { padding-top: 14px; border-top: 1px solid var(--line); }
.stage::before { /* nó */
  content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--amber); box-shadow: 0 0 0 4px rgba(58, 141, 255, .12);
}
.stage + .stage::before { top: 18px; }
.stage.is-current::before { background: var(--amber); }
.stage-n { font: 600 var(--fs-mono)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage.is-current .stage-n { color: var(--amber-text); }
.stage h3 { font-size: var(--fs-h3); }
.stage .link-arrow { margin-top: auto; padding-block: 6px 0; min-height: 40px; }
@media (max-width: 56.24em) {
  .stages::after { content: ""; position: absolute; left: calc(var(--pad) + 5px); top: calc(var(--pad) + 10px); bottom: calc(var(--pad) + 40px); width: 1px; background: var(--amber-line); opacity: .5; }
}
@media (min-width: 56.25em) {
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stages::after { content: ""; position: absolute; left: calc(var(--pad) + 12px); right: calc(var(--pad) + 12px); top: calc(var(--pad) + 7px); height: 1px; background: linear-gradient(90deg, var(--amber-line), rgba(58, 141, 255, .25)); }
  .stage, .stage + .stage { padding: clamp(20px, 4.5vh, 28px) 16px 0 0; border-top: 0; }
  .stage + .stage { padding-left: 16px; border-left: 1px solid var(--line); }
  .stage::before, .stage + .stage::before { top: 2px; left: 0; }
  .stage + .stage::before { left: 16px; }
}

/* ---------- PERGUNTAS: título à esquerda, respostas num painel ------------- */
.faq-wrap { display: grid; gap: var(--head-gap); }
.faq-wrap .sec-head { margin-bottom: 0; }
@media (min-width: 56.25em) {
  .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .faq-wrap .sec-head { grid-template-columns: minmax(0, 1fr); }
}
.faq { padding: 2px clamp(14px, 1.8vw, 22px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 0;
  font: 600 var(--fs-h3)/1.3 var(--display); letter-spacing: -.012em; color: var(--text); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%;
  font: 400 1.125rem/1 var(--mono); color: var(--amber-text); transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.faq summary:hover::after { border-color: var(--amber-line); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 14px; max-width: 60ch; font-size: var(--fs-card); line-height: 1.55; color: var(--text-2); }
.faq .faq-a p + p { margin-top: 8px; }

/* ---------- CTA FINAL: mesma composição centrada da home ------------------ */
.cta-grid { display: grid; justify-items: center; }
.cta-final .btn-row { justify-content: center; margin-top: 0; }
.cta-note { max-width: 58ch; margin-top: clamp(14px, 3vh, 22px); padding-top: clamp(10px, 2vh, 14px); border-top: 1px solid var(--line); font-size: var(--fs-card); line-height: 1.5; color: var(--muted); }
.cta-note strong { display: block; margin-bottom: 4px; font: 600 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); }
.cta-note p + p { margin-top: 4px; }

/* ---------- TRABALHOS (/trabalhos) ---------------------------------------- */
.case-full { display: grid; gap: 16px clamp(24px, 4vw, 64px); padding-block: clamp(22px, 4.5vh, 44px); border-top: 1px solid var(--line); }
.case-full:first-child { border-top: 0; padding-top: 0; }
.case-full:last-child { padding-bottom: 0; }
@media (min-width: 56.25em) { .case-full { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } }
.case-fig { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.case-fig svg { width: 100%; height: 100%; }
/* captura real (D8, D15): navegador + celular, a mesma composição dos trabalhos da home */
.case-shot { position: relative; padding: clamp(14px, 2.2vw, 22px) clamp(14px, 2.2vw, 22px) 0; background: radial-gradient(110% 90% at 50% 0%, rgba(255, 238, 214, .07), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.case-shot .browser { width: 84%; }
.case-shot .phone { --w: clamp(64px, 20vw, 96px); position: absolute; right: 5%; bottom: -12%; }
@media (min-width: 56.25em) { .case-shot .phone { --w: clamp(80px, 8.5vw, 116px); } }
.case-caption { margin-top: 8px; font-size: var(--fs-mono); line-height: 1.5; color: var(--muted); }
.case-kind { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-kind .badge { position: static; }
.case-full h2 { margin-top: 8px; font-size: var(--fs-h2); }
.case-intro { margin-top: 8px; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.case-scope { margin: 14px 0 0; }
.case-scope div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.case-scope dt { font: 500 var(--fs-mono)/1.75 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.case-scope dd { margin: 0; max-width: 60ch; font-size: var(--fs-card); line-height: 1.5; color: var(--text); }
@media (max-width: 37.49em) { .case-scope div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- TEXTO LEGAL --------------------------------------------------- */
.doc { max-width: 60ch; }
.doc .meta { margin-bottom: clamp(16px, 3vh, 28px); font: 500 var(--fs-mono)/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.doc h2 { margin: clamp(24px, 4.5vh, 40px) 0 10px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.doc h3 { margin: 20px 0 8px; font-size: var(--fs-h3); }
.doc p, .doc li { line-height: 1.65; color: var(--text-2); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; padding-left: 1.2em; }
.doc li::marker { color: var(--amber-text); }
.doc a { color: var(--text); text-decoration-color: var(--amber-line); overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--amber); }
/* link sozinho no parágrafo ganha área de toque de 48 px sem empurrar as linhas vizinhas */
.doc p > a:only-child { display: inline-block; padding-block: 11px; margin-block: -11px; }
.doc code { padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .07); font: .875em var(--mono); color: var(--text); overflow-wrap: anywhere; }
.doc .voltar { margin-top: clamp(24px, 4vh, 40px); }

/* ---------- 404 ----------------------------------------------------------- */
.notfound { display: flex; align-items: center; min-height: calc(72svh - var(--header-h)); }
.notfound .btn-row + p { margin-top: 10px; }
