/* Dicas da Temporada — sistema visual
   Tese: "a etiqueta que diz a verdade" — precisão calma + um momento de revelação (o preço). */
:root {
  --petrol: #0E3B43;
  --petrol-900: #082A30;
  --petrol-700: #14505A;
  --cream: #FAF3E3;
  --paper: #FFFCF5;
  --gold: #F2B33D;
  --gold-700: #C98A12;
  --ink: #12262A;
  --ink-2: #47605F;
  --line: #E5DCC7;
  --loss: #C62F3A;
  --ok: #1E7A55;

  --f-display: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", "Bahnschrift", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.55rem, 1.7rem + 4vw, 4.9rem);

  --space-1: 0.5rem; --space-2: 0.75rem; --space-3: 1rem; --space-4: 1.5rem;
  --space-5: 2rem; --space-6: 3rem; --space-7: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 14px; --radius-lg: 22px;
  --wrap: 1120px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-swing: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms; --t-mid: 420ms; --t-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--step--1); color: var(--gold-700); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--gold); --fg: var(--petrol-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .9rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 var(--step-1)/1.1 var(--f-display); letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgba(201, 138, 18, .9);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(201, 138, 18, .95); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 2px rgba(250, 243, 227, .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { --bg: #D8CFBD; --fg: #5d6b6a; box-shadow: none; cursor: not-allowed; }
.link { font-weight: 600; color: var(--cream); text-underline-offset: 4px; }

/* ---------- Topo ---------- */
.topbar { position: absolute; inset: 0 0 auto; z-index: 5; padding: 1.1rem 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; font: 600 1.15rem/1 var(--f-display); letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; }
.topbar .link { font-size: var(--step--1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--petrol); color: var(--cream); overflow: hidden; padding: 7.5rem 0 var(--space-7); }
.hero::after { /* grade de "papel milimetrado" muito sutil = precisão */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(var(--cream) 1px, transparent 1px), linear-gradient(90deg, var(--cream) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero h1 { font-size: var(--step-4); font-weight: 700; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: var(--space-4); font-size: var(--step-1); line-height: 1.45; color: rgba(250, 243, 227, .86); max-width: 38ch; }
.hero .actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.hero .micro { margin-top: var(--space-3); font-size: var(--step--1); color: rgba(250, 243, 227, .7); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero .micro span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Etiqueta-assinatura do hero */
.hero-tag { justify-self: center; width: min(100%, 360px); transform-origin: 18% 12%; }
.hero-tag .tag-body { fill: var(--cream); }
.hero-tag .tag-hole { fill: var(--petrol); }
.hero-tag .tag-disc { fill: var(--gold); }
.hero-tag .tag-string { stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round; }
.hero-tag text { font-family: var(--f-display); fill: var(--petrol); }
.hero-tag .t-label { font-size: 15px; font-weight: 600; letter-spacing: .14em; fill: var(--ink-2); }
.hero-tag .t-price { font-size: 58px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-tag .t-sub { font-size: 14px; fill: var(--ink-2); }
.hero-tag .t-ok { fill: var(--ok); font-weight: 700; font-size: 15px; }

/* ---------- Faixa de nichos ---------- */
.niches { background: var(--petrol-900); color: var(--cream); overflow: hidden; border-block: 1px solid rgba(250, 243, 227, .08); }
.niches .label { padding: .9rem 0 0; text-align: center; font-size: var(--step--1); color: rgba(250, 243, 227, .6); }
.marquee { display: flex; gap: 2.5rem; padding: .7rem 0 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 600 var(--step-1)/1.2 var(--f-display); white-space: nowrap; }
.marquee span::after { content: "●"; color: var(--gold); margin-left: 2.5rem; font-size: .6em; vertical-align: middle; }
.niches:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: var(--space-7) 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--step-3); font-weight: 700; margin-top: var(--space-2); }
.section-head p { margin-top: var(--space-3); color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--space-5); align-items: start; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 1rem + 1vw, 2rem); box-shadow: 0 30px 60px -45px rgba(8, 42, 48, .55); }
.step { border: 0; margin: 0; padding: 0 0 var(--space-4); }
.step + .step { border-top: 1px dashed var(--line); padding-top: var(--space-4); }
.step legend { display: flex; align-items: center; gap: .7rem; font: 700 var(--step-1)/1.2 var(--f-display); color: var(--petrol); padding: 0; margin-bottom: var(--space-3); }
.step legend b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: var(--gold); font-size: .95rem; flex: none; }
.hint { font-size: var(--step--1); color: var(--ink-2); margin: -.4rem 0 var(--space-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: grid; gap: .3rem; }
.field label, .field .lbl { font-weight: 600; font-size: .95rem; color: var(--ink); }
.input { position: relative; display: flex; align-items: center; }
.input input {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: 500 1.08rem/1 var(--f-body); color: var(--ink);
  background: #FFF8E1; border: 1.5px solid #EAD9A6; border-radius: 12px; font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input input:focus { outline: none; border-color: var(--gold-700); box-shadow: 0 0 0 4px rgba(242, 179, 61, .28); background: #fff; }
.input .pre, .input .suf { position: absolute; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.input .pre { left: .9rem; } .input .suf { right: .9rem; }
.input.has-pre input { padding-left: 2.5rem; } .input.has-suf input { padding-right: 3.6rem; }
.mat-list { display: grid; gap: .55rem; }
.mat-row { display: grid; grid-template-columns: 1fr 9.5rem 44px; gap: .55rem; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 1.3rem; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.icon-btn:hover { background: #FBECEC; color: var(--loss); }
.add-btn { margin-top: .6rem; background: none; border: 1.5px dashed var(--line); border-radius: 12px; min-height: 44px; width: 100%; font: 600 .95rem var(--f-body); color: var(--petrol); cursor: pointer; }
.add-btn:hover { border-color: var(--petrol); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-3); }
.chip { min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .93rem var(--f-body); color: var(--ink); cursor: pointer; transition: all var(--t-fast); }
.chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--cream); }
.range { display: grid; gap: .4rem; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; }
.range output { font: 700 1.4rem var(--f-display); color: var(--petrol); }
input[type="range"] { width: 100%; accent-color: var(--gold-700); height: 32px; }

/* Resultado: cupom + etiqueta */
.calc-result { position: sticky; top: 1rem; display: grid; gap: var(--space-3); }
.receipt {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.4rem 1.4rem 1.6rem; font-variant-numeric: tabular-nums;
  --tooth: 10px;
  -webkit-mask: radial-gradient(circle var(--tooth) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--tooth)) 100% repeat-x;
          mask: radial-gradient(circle var(--tooth) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--tooth)) 100% repeat-x;
  padding-bottom: 2rem;
}
.receipt h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.receipt .prod { font: 700 var(--step-1) var(--f-display); color: var(--petrol); margin: .25rem 0 .8rem; overflow-wrap: anywhere; }
.r-line { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px dotted #D9CFB8; font-size: .98rem; }
.r-line span:first-child { color: var(--ink-2); }
.r-line.total { border-bottom: 0; padding-top: .7rem; font-weight: 700; font-size: 1.08rem; }
.r-line.total span:first-child { color: var(--ink); }
.print .r-line { opacity: 0; transform: translateY(-6px); animation: print .38s var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes print { to { opacity: 1; transform: none; } }

.price-tag {
  position: relative; background: var(--petrol); color: var(--cream); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.5rem;
  transform-origin: 50% -10px;
}
.price-tag.swing { animation: swing .9s var(--ease-swing); }
@keyframes swing { 0% { transform: rotate(-4deg) translateY(-6px); } 45% { transform: rotate(2deg); } 100% { transform: none; } }
.price-tag .lbl { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: rgba(250, 243, 227, .72); font-weight: 600; }
.price-tag .big { font: 700 clamp(2.6rem, 2rem + 3vw, 3.6rem)/1 var(--f-display); color: var(--gold); margin: .35rem 0 .2rem; font-variant-numeric: tabular-nums; }
.price-tag .subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250, 243, 227, .14); }
.price-tag .subgrid b { display: block; font: 700 1.35rem var(--f-display); font-variant-numeric: tabular-nums; }
.price-tag .subgrid small { color: rgba(250, 243, 227, .72); font-size: .85rem; }
.verdict { border-radius: var(--radius); padding: 1.1rem 1.2rem; font-size: 1rem; line-height: 1.45; border: 1.5px solid; }
.verdict b { font-family: var(--f-display); font-size: 1.2rem; display: block; margin-bottom: .15rem; }
.verdict.loss { background: #FBECEC; border-color: #EDB9BD; color: #7c1d25; }
.verdict.low { background: #FFF6DE; border-color: #F0D58E; color: #6b4a07; }
.verdict.ok { background: #E8F4EE; border-color: #A9D5BF; color: #13513a; }
.calc-error { background: #FBECEC; color: #7c1d25; border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.calc-note { font-size: .85rem; color: var(--ink-2); }

/* ---------- Custos invisíveis ---------- */
.leaks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--petrol); }
.leak { padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.leak + .leak { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.leak .n { font: 700 var(--step-3)/1 var(--f-display); color: var(--gold-700); }
.leak h3 { font-size: var(--step-1); margin: .6rem 0 .4rem; color: var(--petrol); }
.leak p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Oferta ---------- */
.offer { background: var(--petrol); color: var(--cream); }
.offer .section-head p { color: rgba(250, 243, 227, .82); }
.offer .eyebrow { color: var(--gold); }
.offer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: start; }
.offer-grid > *, .calc > *, .hero .wrap > * { min-width: 0; } /* impede tabela/inputs de esticar a coluna */
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.stack li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.stack .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(242, 179, 61, .14); display: grid; place-items: center; color: var(--gold); font: 700 1.1rem var(--f-display); }
.stack h3 { font-size: var(--step-1); color: var(--cream); }
.stack p { color: rgba(250, 243, 227, .78); font-size: .98rem; margin-top: .25rem; }

/* Mock da planilha (ilustração do produto) */
.sheet { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); font-size: .82rem; }
.sheet-bar { display: flex; gap: .35rem; align-items: center; padding: .55rem .8rem; background: #EEF1F0; border-bottom: 1px solid #DDE3E1; }
.sheet-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3DAD8; }
.sheet-bar span { margin-left: .5rem; font-weight: 600; color: var(--ink-2); font-size: .78rem; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid #E6EAE9; padding: .45rem .55rem; text-align: left; white-space: nowrap; }
.sheet th { background: var(--petrol); color: var(--cream); font-weight: 600; }
.sheet td.in { background: #FFF5CC; }
.sheet td.out { font-weight: 700; color: var(--ok); }
.sheet td.out.warn { color: var(--loss); }
.sheet-cap { font-size: .8rem; color: rgba(250, 243, 227, .6); margin-top: .7rem; }

.buybox { margin-top: var(--space-6); background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; }
.buybox h3 { font-size: var(--step-2); color: var(--petrol); }
.buybox .anchor { color: var(--ink-2); margin-top: .5rem; }
.buybox .price { text-align: right; }
.buybox .price .from { color: var(--ink-2); text-decoration: line-through; font-weight: 600; }
.buybox .price .now { font: 700 var(--step-4)/1 var(--f-display); color: var(--petrol); font-variant-numeric: tabular-nums; }
.buybox .price .now small { font-size: .38em; vertical-align: .9em; margin-right: .15em; }
.buybox .price .inst { color: var(--ink-2); font-size: .95rem; }
.buybox .btn { margin-top: var(--space-3); }
.guarantee { display: flex; gap: 1rem; align-items: center; margin-top: var(--space-4); font-size: .95rem; color: var(--ink-2); }
.guarantee .seal { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--petrol); display: grid; place-items: center; font: 700 1.05rem/1 var(--f-display); color: var(--petrol); text-align: center; }
.promo { margin-top: .6rem; font-weight: 600; color: var(--gold-700); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font: 600 var(--step-1)/1.3 var(--f-display); color: var(--petrol); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-700); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 44rem; }

/* ---------- Final + rodapé ---------- */
.final { background: var(--petrol); color: var(--cream); text-align: center; }
.final h2 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.final p { margin: var(--space-3) auto var(--space-5); max-width: 40ch; color: rgba(250, 243, 227, .82); font-size: var(--step-1); }
.footer { background: var(--petrol-900); color: rgba(250, 243, 227, .65); padding: var(--space-5) 0 6.5rem; font-size: .88rem; }
.footer .wrap { display: grid; gap: .8rem; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer a { color: var(--cream); }

/* ---------- CTA fixo no mobile ---------- */
.sticky-cta { position: fixed; inset: auto 0 0; z-index: 20; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(8, 42, 48, .96); backdrop-filter: blur(6px); display: none; align-items: center; gap: .8rem; transform: translateY(110%); transition: transform var(--t-mid) var(--ease-out); }
.sticky-cta.show { transform: none; }
.sticky-cta .txt { color: var(--cream); font-size: .9rem; line-height: 1.25; flex: 1; }
.sticky-cta .txt b { color: var(--gold); font-family: var(--f-display); font-size: 1.15rem; }
.sticky-cta .btn { min-height: 48px; font-size: 1.05rem; padding: .7rem 1.1rem; }

/* ---------- Revelação no scroll (um motivo só: corte de etiqueta) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 12% 0); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out), clip-path var(--t-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .hero-in { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero-tag.hang { animation: hang 1.6s var(--ease-swing) .35s both; }
@keyframes hang { 0% { opacity: 0; transform: rotate(-14deg) translateY(-30px); } 35% { opacity: 1; } 60% { transform: rotate(4deg); } 80% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero .wrap, .calc, .offer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  .hero-tag { width: min(78%, 300px); order: -1; justify-self: start; }
  .calc-result { position: static; }
  .leaks { grid-template-columns: 1fr 1fr; }
  .leak:nth-child(3) { padding-left: 0; border-left: 0; }
  .leak:nth-child(n+3) { border-top: 1px solid var(--line); }
  .buybox { grid-template-columns: 1fr; }
  .buybox .price { text-align: left; }
}
@media (max-width: 640px) {
  .sticky-cta { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .mat-row { grid-template-columns: 1fr 7.6rem 44px; }
  .leaks { grid-template-columns: 1fr; }
  .leak, .leak + .leak { padding-left: 0; border-left: 0; }
  .leak + .leak { border-top: 1px solid var(--line); }
  .hero .actions .btn, .buybox .btn, .final .btn { width: 100%; }
  .hero-tag { display: none; }
  .sheet { font-size: .74rem; }
  .sheet-scroll { overflow-x: auto; }
}
/* Animações obrigatórias por decisão do dono (2026-12-02): sem fallback de movimento reduzido. */
