/* Comercial A S L — sistema visual "editorial quente".
   Tokens e decisões: empresa/entidades/briefings/design-system/comercial-asl/MASTER.md (fora da árvore publicada). */

:root {
  color-scheme: light;
  --cream: #F6EEE3;
  --paper: #FBF6EF;
  --sand: #EADBC6;
  --line: #DCC7AE;
  --terra: #B4532F;      /* traço, fundo, display grande */
  --terra-ink: #93391B;  /* terracota como texto */
  --cta: #9A3F1F;
  --cta-hover: #7E3217;
  --on-cta: #FFF8EF;
  --olive: #4E5A2B;
  --ink: #2E1B12;
  --muted: #5E4636;
  --on-dark: #F6EEE3;
  --on-dark-2: #D9C3AE;
  --on-dark-accent: #E8A27F;
  --r: 4px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --serif: 'DM Serif Display', 'Georgia', 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terra-ink); }
p { margin: 0 0 1em; }
a { color: var(--terra-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r);
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cta { background: var(--cta); color: var(--on-cta); }
.btn--cta:hover { background: var(--cta-hover); color: var(--on-cta); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--sand); color: var(--ink); }
.btn--light { border-color: var(--on-dark-2); color: var(--on-dark); background: transparent; }
.btn--light:hover { background: rgba(246, 238, 227, .12); color: var(--on-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 20; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.brand__name i { color: var(--terra-ink); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__links a:hover { color: var(--terra-ink); text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 10px 18px; }
@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 380px) { .brand__name { font-size: 1.2rem; } .nav .btn { padding: 10px 12px; font-size: .95rem; } .brand svg { width: 32px; height: 32px; } }
@media (max-width: 320px) { .nav .btn span { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); line-height: .98; margin-bottom: 28px; }
.hero__lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 34em; color: var(--ink); margin-bottom: 32px; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
.hero__note {
  margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--terra);
  font-size: 1rem; color: var(--muted); max-width: 22em;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; }
}

/* ---------- faixa de confiança ---------- */
.trust { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.3fr; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px 24px 0; font-size: 1.05rem; line-height: 1.4; }
.trust li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.trust svg { width: 28px; height: 28px; flex: none; color: var(--terra); margin-top: 2px; }
.trust strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.trust span { color: var(--muted); }
@media (max-width: 960px) { .trust ul { grid-template-columns: 1fr 1fr; } .trust li:nth-child(3) { padding-left: 0; border-left: 0; } .trust li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .trust ul { grid-template-columns: 1fr; } .trust li, .trust li + li { padding: 18px 0; border-left: 0; } .trust li + li { border-top: 1px solid var(--line); } }

/* ---------- seções ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec--paper { background: var(--paper); }
.sec--dense { padding: clamp(56px, 7vw, 80px) 0; }
.sec h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 24px; }
.sec__intro { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

/* ---------- o problema (editorial) ---------- */
.essay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.essay__head { position: sticky; top: 104px; align-self: start; }
.essay__body { columns: 2 280px; column-gap: 48px; }
.essay__body p { break-inside: avoid-column; }
.essay__body > p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 4.6em; line-height: .82; padding: 6px 10px 0 0; color: var(--terra);
}
.essay__body h3 { font-size: 1.5rem; margin: 0 0 10px; break-after: avoid; }
.pull {
  break-inside: avoid; margin: 8px 0 24px; padding: 18px 0 18px 20px; border-left: 3px solid var(--terra);
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; color: var(--terra-ink);
}
@media (max-width: 860px) { .essay { grid-template-columns: 1fr; } .essay__head { position: static; } }

/* ---------- índice da loja ---------- */
.shop__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.shop__note { font-size: 1rem; color: var(--muted); border-left: 2px solid var(--olive); padding-left: 16px; margin: 0; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index li { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.index svg { width: 48px; height: 48px; color: var(--terra); }
.index h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.index h3 small { display: block; font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-top: 8px; line-height: 1.4; letter-spacing: 0; }
.index p { margin: 0; }
.index .tip { display: block; margin-top: 10px; color: var(--olive); font-weight: 500; }
@media (max-width: 760px) {
  .shop__head { grid-template-columns: 1fr; gap: 20px; }
  .index li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .index li > div:last-child { grid-column: 1 / -1; }
  .index svg { width: 40px; height: 40px; }
}

/* ---------- como funciona ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); }
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--terra); }
.steps h3 { font-size: 1.5rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { grid-template-columns: 56px minmax(0, 1fr); } }

/* ---------- prova: o 2008 ---------- */
.year { background: var(--terra); color: #FFFFFF; overflow: hidden; position: relative; }
.year__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px; padding: clamp(48px, 7vw, 88px) 0; }
.year__num {
  font-family: var(--serif); font-size: clamp(7rem, 26vw, 22rem); line-height: .8; letter-spacing: -0.04em;
  margin-left: calc(-1 * clamp(8px, 3vw, 48px)); color: #F6EEE3; white-space: nowrap;
}
.year h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; color: #FFFFFF; }
.year p { color: #FFFFFF; font-size: 1.15rem; }
.year a { color: #FFFFFF; font-weight: 700; }
.year a:hover { color: var(--ink); }
@media (max-width: 860px) { .year__in { grid-template-columns: 1fr; } .year__num { margin-left: -6px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; color: var(--terra-ink); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 40em; color: var(--ink); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- onde fica ---------- */
.where { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.where dl { margin: 0 0 28px; display: grid; gap: 18px; }
.where dt { font-weight: 700; color: var(--olive); font-size: 1rem; }
.where dd { margin: 4px 0 0; font-size: 1.2rem; }
.where__sign svg { width: 100%; height: auto; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .where__sign { max-width: 460px; } }

/* ---------- CTA final ---------- */
.final { background: var(--ink); color: var(--on-dark); }
.final__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; padding: clamp(64px, 9vw, 112px) 0; }
.final h2 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--on-dark); margin-bottom: 20px; }
.final h2 em { color: var(--on-dark-accent); }
.final p { color: var(--on-dark-2); font-size: 1.2rem; max-width: 34em; margin-bottom: 32px; }
.final svg.bag { width: 100%; max-width: 260px; height: auto; justify-self: end; color: var(--on-dark-accent); }
@media (max-width: 760px) { .final__in { grid-template-columns: 1fr; } .final svg.bag { justify-self: start; max-width: 160px; } }

/* ---------- rodapé ---------- */
.foot { background: #24150E; color: var(--on-dark-2); font-size: 1rem; line-height: 1.55; }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; padding: 56px 0 40px; }
.foot h2 { font-size: 1.5rem; color: var(--on-dark); margin-bottom: 12px; }
.foot strong { color: var(--on-dark); font-weight: 700; }
.foot p { margin: 0 0 10px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--on-dark-accent); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__base { border-top: 1px solid #4A3326; padding: 20px 0 32px; font-size: .95rem; }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- páginas internas ---------- */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 16px; }
.page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; }
.page .lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.prose { max-width: 44em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.idcard { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--terra); border-radius: var(--r); padding: clamp(20px, 4vw, 36px); margin: 32px 0; }
.idcard dl, .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px 32px; margin: 0; }
.idcard dt, .facts dt { display: block; font-size: .95rem; color: var(--muted); font-weight: 500; }
.idcard dd, .facts dd { display: block; margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.cnaes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.cnaes li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.cnaes li.main { border-color: var(--terra); border-width: 2px; }
.cnaes code { display: block; font-family: var(--sans); font-weight: 800; color: var(--terra-ink); font-size: 1.05rem; margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; min-height: 48px; }

/* alvo de toque >= 44px para links soltos em linha */
.year a, .where dd a, .foot p a { display: inline-flex; align-items: center; min-height: 44px; }
