/* Páginas de tópico (guias) da SeuTax. Base: site.css. Gerado junto com _gerador/guias.py */
:root {
  --paper: #FFFFFF;
  --ice-2: #E2EAF6;
  --dots: #9FB0CC;
  --lime-ink: #2F3B00;
  --shadow: 0 1px 0 rgba(11,30,63,.06), 0 18px 40px -22px rgba(11,30,63,.45);
}
html, body { overflow-x: hidden; }

/* ---------- topo ---------- */
.top.guia {
  position: relative; isolation: isolate;
  background:
    radial-gradient(600px 340px at 90% 20%, rgba(200,240,81,.14), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(47,107,234,.25), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 32px),
    var(--navy);
}
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--mist); margin: 8px 0 0; }
.crumbs a { color: var(--mist); text-decoration: none; border-bottom: 1px dotted rgba(195,206,227,.5); }
.crumbs a:hover { color: var(--lime); }
.g-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; padding: 44px 0 80px; }
.g-hero .copy { min-width: 0; }
.g-hero .tag { font-family: var(--mono); font-size: 13px; color: var(--lime); margin: 0 0 18px; }
.g-hero h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(38px, 5.6vw, 68px); line-height: .98; letter-spacing: -0.045em; color: var(--white); }
.g-hero h1 em { font-style: normal; font-weight: 200; display: block; }
.g-hero h1 mark { background: none; color: var(--lime); }
.g-hero .lead { margin: 0 0 24px; font-size: 18px; color: var(--mist); max-width: 560px; }
.stamp { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); border: 1.5px dashed rgba(200,240,81,.55); border-radius: 8px; padding: 8px 12px; }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,240,81,.18); }

/* etiqueta grande do número principal */
.bigtag {
  --rot: 3deg; position: relative; justify-self: end; width: 100%; max-width: 330px;
  background: var(--lime); color: var(--navy); border-radius: 18px; padding: 34px 24px 22px;
  transform: rotate(var(--rot)); transform-origin: 50% -14px;
  box-shadow: 0 26px 44px -24px rgba(0,0,0,.65);
  opacity: 0; animation: drop .9s .2s cubic-bezier(.2,.9,.25,1.25) forwards;
}
.bigtag::before { content: ""; position: absolute; top: 12px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.bigtag::after { content: ""; position: absolute; top: -30px; left: 50%; width: 1.5px; height: 44px; margin-left: -.75px; background: linear-gradient(var(--mist), rgba(195,206,227,.2)); z-index: -1; }
.bigtag .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-ink); }
.bigtag .v { display: block; font-weight: 800; font-size: clamp(44px, 5vw, 60px); letter-spacing: -0.045em; line-height: 1; margin: 8px 0 6px; }
.bigtag .v small { font-weight: 200; font-size: .45em; letter-spacing: -0.01em; }
.bigtag .v small.pre { display: block; font-size: 15px; font-weight: 300; margin-bottom: 2px; }
.bigtag .s { display: block; font-size: 14px; color: var(--lime-ink); line-height: 1.35; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-40px) rotate(calc(var(--rot) * -3)); } 100% { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.g-hero .copy > * { opacity: 0; animation: rise .7s ease forwards; }
.g-hero .copy > *:nth-child(2) { animation-delay: .06s; }
.g-hero .copy > *:nth-child(3) { animation-delay: .12s; }
.g-hero .copy > *:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .bigtag, .g-hero .copy > * { animation: none; opacity: 1; } }

/* ---------- resposta curta ---------- */
.answer { position: relative; margin-top: -44px; z-index: 2; }
.answer-box { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 34px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; border: 1px solid var(--ice-2); }
.answer-box .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: var(--lime); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.answer-box p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--navy); }
.answer-box p strong { color: var(--navy); background: linear-gradient(transparent 62%, rgba(200,240,81,.75) 62%); }

/* ---------- blocos ---------- */
.gsec { padding: 80px 0; }
.gsec.alt { background: var(--ice); }
.gsec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.gsec-head { position: sticky; top: 28px; }
.gsec-head .big { display: block; font-weight: 800; font-size: clamp(64px, 9vw, 112px); line-height: .85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--navy); margin-bottom: 16px; }
.gsec.alt .gsec-head .big { -webkit-text-stroke-color: var(--blue); }
.gsec-head h2 { margin: 0 0 14px; }
.gsec-head p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.prose p { margin: 0 0 16px; font-size: 17px; color: var(--ink-soft); }
.prose p strong { color: var(--navy); }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding: 0 0 10px 26px; font-size: 17px; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 2px var(--navy); }
.prose a { color: var(--blue); }
.note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--lime); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--ink-soft); }
.gsec:not(.alt) .note { background: var(--ice); }

/* passo a passo */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 26px 64px; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--dots) 0 4px, transparent 4px 9px); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* recibo */
.receipt {
  position: relative; background: var(--paper); border-radius: 16px 16px 0 0; padding: 26px 28px 34px; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 14px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat;
          mask: radial-gradient(circle at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 14px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat;
}
.gsec:not(.alt) .receipt { background: var(--ice); }
.gsec:not(.alt) .items li { border-bottom-color: var(--ice-2); }
.receipt-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); padding-bottom: 14px; border-bottom: 2px dashed #CFDBEE; margin-bottom: 6px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 14px 0; border-bottom: 1px solid var(--ice); }
.items li:last-child { border-bottom: 0; }
.line { display: flex; align-items: baseline; gap: 10px; }
.line .s { font-weight: 500; font-size: 17px; line-height: 1.3; }
.line .d { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted var(--dots); transform: translateY(-4px); }
.line .v { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.line .v small { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--slate); letter-spacing: 0; }
.line .v.free { background: var(--lime); padding: 2px 10px; border-radius: 999px; font-size: 15px; }
.items .n { margin: 4px 0 0; font-size: 14px; color: var(--slate); line-height: 1.45; max-width: 92%; }
.receipt-foot { margin-top: 10px; padding-top: 14px; border-top: 2px dashed #CFDBEE; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.receipt-foot b { color: var(--navy); font-size: 14px; }
.more { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--navy); }

/* calendário de prazos */
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.date { background: var(--navy); color: var(--white); border-radius: 16px; padding: 20px 20px 18px; position: relative; overflow: hidden; }
.date::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; border: 12px solid rgba(200,240,81,.12); }
.date b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.date strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.date span { font-size: 14px; color: var(--mist); }

/* ---------- perguntas ---------- */
.faq2 { padding: 80px 0; }
.faq2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.faq2 details { border-bottom: 1px solid var(--ice-2); }
.faq2 details:first-child { border-top: 1px solid var(--ice-2); }
.faq2 summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ice); font-weight: 300; font-size: 24px; transition: transform .25s ease, background .25s ease; }
.faq2 details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq2 details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 640px; }
.faq2 details p strong { color: var(--navy); }
.legal { margin-top: 26px; font-size: 13px; color: var(--slate); }

/* ---------- outros guias ---------- */
.related { background: var(--navy); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.related::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; background: url(/assets/seutax-simbolo-lima.svg) center / contain no-repeat; opacity: .07; transform: rotate(-12deg); }
.related .eyebrow { color: var(--lime); }
.related h2 span { color: var(--mist); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; position: relative; z-index: 1; }
.rel { display: block; text-decoration: none; color: var(--white); border: 1.5px solid var(--navy-line); border-radius: 16px; padding: 20px; transition: border-color .2s ease, transform .2s ease; }
.rel:hover { border-color: var(--lime); transform: translateY(-3px); }
.rel b { display: block; font-family: var(--mono); font-size: 12px; color: var(--lime); margin-bottom: 8px; }
.rel strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.rel.hub { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.rel.hub b { color: var(--lime-ink); }

/* ---------- chamada final ---------- */
.cta-band { background: var(--lime); padding: 56px 0; }
.cta-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-in h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.cta-in h2 span { font-weight: 200; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .g-hero { grid-template-columns: minmax(0, 1fr); padding: 36px 0 76px; gap: 40px; }
  .bigtag { justify-self: start; max-width: 300px; }
  .gsec-grid, .faq2-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gsec-head { position: static; }
  .gsec-head .big { font-size: 64px; margin-bottom: 10px; }
}
@media (max-width: 600px) {
  .g-hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .g-hero .lead { font-size: 16px; }
  .bigtag { padding: 30px 18px 18px; }
  .answer { margin-top: -36px; }
  .answer-box { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 20px; }
  .answer-box .k { justify-self: start; }
  .answer-box p { font-size: 17px; }
  .gsec, .faq2, .related { padding: 56px 0; }
  .prose p, .prose ul li { font-size: 16px; }
  .steps li { padding-left: 56px; }
  .receipt { padding: 18px 16px 30px; }
  .line .s { font-size: 15px; }
  .line .v { font-size: 16px; }
  .items .n { max-width: 100%; font-size: 13px; }
  .faq2 summary { font-size: 17px; }
  /* celular: menos rolagem e nada apertado */
  .g-hero { padding: 28px 0 68px; gap: 34px; }
  .bigtag { --rot: 2deg; max-width: 250px; padding: 28px 18px 16px; border-radius: 14px; }
  .bigtag .v { font-size: 40px; }
  .bigtag .s { font-size: 13px; }
  .gsec-head .big { font-size: 46px; -webkit-text-stroke-width: 1.5px; margin-bottom: 8px; }
  .gsec-head h2 { font-size: 28px; }
  .gsec-grid, .faq2-grid { gap: 22px; }
  .line { flex-wrap: wrap; row-gap: 4px; }
  .line .s { flex: 1 1 60%; min-width: 0; }
  .line .d { display: none; }
  .line .v { margin-left: auto; }
  .items .n { margin-top: 2px; }
  .receipt-top { font-size: 10px; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; }
  .dates { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .date { padding: 16px 18px; }
  .date strong { font-size: 22px; }
  .related h2 { margin-bottom: 22px; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rel { padding: 14px; border-radius: 12px; }
  .rel b { font-size: 10px; margin-bottom: 4px; }
  .rel strong { font-size: 15px; }
  .rel.hub { grid-column: 1 / -1; }
  .cta-band { padding: 40px 0; }
  .cta-in .btn { width: 100%; text-align: center; }
}

/* ---------- tabela de comparação ---------- */
.ctable-wrap { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--ice-2); }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--ice); }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: var(--ice); }
.ctable thead th.us { background: var(--navy); color: var(--lime); }
.ctable tbody th { width: 30%; font-weight: 800; color: var(--navy); font-size: 15px; }
.ctable td { color: var(--ink-soft); }
.ctable td:nth-child(2) { background: rgba(200,240,81,.14); color: var(--navy); }
.gsec-grid.wide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.gsec-grid.wide .gsec-head { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: end; }
.gsec-grid.wide .gsec-head .big { grid-row: span 3; margin: 0; }
.gsec-grid.wide .gsec-head h2 { margin-bottom: 8px; }
.src { margin: 12px 0 0; font-size: 13px; color: var(--slate); }
@media (max-width: 760px) {
  .gsec-grid.wide .gsec-head { display: block; }
  .ctable-wrap { background: none; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: 100%; }
  .ctable tr { background: var(--paper); border: 1px solid var(--ice-2); border-radius: 14px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 10px 24px -20px rgba(11,30,63,.5); }
  .ctable tbody th { width: 100%; padding: 12px 14px 8px; border-bottom: 0; font-size: 15px; }
  .ctable td { padding: 8px 14px 10px; border-bottom: 0; font-size: 14px; }
  .ctable td::before { content: attr(data-k); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
  .ctable td:nth-child(2) { border-left: 4px solid var(--lime); }
  .ctable td:nth-child(3) { border-left: 4px solid var(--ice-2); }
}

/* sem zoom de toque duplo; a pinça continua (Felipe, 30/11) */
html,body,*{touch-action:manipulation}
@media (pointer:coarse),(max-width:900px){input,textarea,select{font-size:16px!important}}
