/* produto — seção do financiamento de veículo (Análise Técnica Prévia) + documento técnico ilustrado (.doc vale para o site todo) */

/* ---------- cabeçalho da seção ---------- */
.produto__head { gap: 20px; }
.produto__head .lead { max-width: 58ch; }

/* ---------- documento técnico (papel) ---------- */
.doc {
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .085 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: relative; z-index: 2; width: min(100%, 372px);
  color: var(--text); border-radius: 4px; padding: 30px 28px 24px;
  background:
    var(--paper-tex),
    radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(172deg, #FFFEFA 0%, #FAF7EE 55%, #F2EDDF 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 0 0 1px rgba(60,48,20,.07),
    0 2px 3px rgba(0,0,0,.12),
    0 18px 36px -14px rgba(0,0,0,.45),
    0 50px 90px -40px rgba(0,0,0,.7);
  transform: rotate(-1.6deg);
  transition: transform .9s var(--ease-out);
}
/* filete metálico no topo do papel */
.doc::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--metal); transform: none; z-index: 0; box-shadow: none; }
.product:hover .doc { transform: rotate(-.6deg) translateY(-4px); }

.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(11,34,48,.12); }
.doc__head img { height: 19px; width: auto; }
.doc__head > span { font-family: var(--f-display); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.doc__ref { text-align: right; line-height: 1.2; }
.doc__ref b { display: block; font-family: var(--f-display); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-800); }
.doc__ref span { font-family: var(--f-serif); font-style: italic; font-size: 13px; color: var(--gold-deep); }
.doc__title { font-family: var(--f-serif); font-style: italic; font-size: 17px; font-weight: 600; line-height: 1.2; margin: 16px 0 6px; color: var(--ink-800); letter-spacing: 0; }

.doc__meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 4px; border: 1px solid rgba(11,34,48,.1); border-radius: 6px; background: rgba(255,255,255,.55); }
.doc__meta span { padding: 7px 10px; font-family: var(--f-display); font-size: 11px; font-weight: 500; color: var(--ink-800); line-height: 1.25; }
.doc__meta span + span { border-left: 1px solid rgba(11,34,48,.1); }
.doc__meta small { display: block; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: #8A949A; font-weight: 600; }
.doc__lbl { margin: 16px 0 4px; font-family: var(--f-display); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8A949A; display: flex; align-items: center; gap: 10px; }
.doc__lbl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(11,34,48,.14), transparent); }

.doc__q { display: grid; grid-template-columns: 20px 1fr; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgba(11,34,48,.07); font-size: 12.5px; line-height: 1.35; }
.doc__q:last-of-type { border-bottom: 0; }
.doc__q i { width: 20px; height: 20px; border-radius: 50%; font-style: normal; display: grid; place-items: center; font-family: var(--f-display); font-size: 10.5px; font-weight: 600; color: var(--gold-deep); border: 1px solid rgba(154,127,18,.45); background: radial-gradient(circle at 35% 30%, #FFF9E2, #F3E7BC); }
.doc__q b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--ink-900); }
.doc__q span { color: #6E7C85; font-size: 11.5px; }

/* barra antiga (página do veículo) e faixa de estimativa */
.doc__bar, .doc__range { position: relative; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(11,34,48,.1) 0 2px, transparent 2px 9px), #EEE9DC; margin-top: 8px; overflow: hidden; }
.doc__bar u, .doc__range u { position: absolute; top: 0; bottom: 0; left: 22%; width: 46%; border-radius: 3px; text-decoration: none; background: linear-gradient(90deg, var(--petrol), var(--gold)); }
.doc__bar u::after, .doc__range u::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: docShine 4.5s var(--ease) infinite; }
@keyframes docShine { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }

.doc__opts { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.doc__opts em { font-style: normal; font-family: var(--f-display); font-size: 10px; font-weight: 500; color: var(--ink-800); padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(11,34,48,.16); background: rgba(255,255,255,.6); }

/* assinatura */
.doc__sign { margin-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; }
.doc__sign svg { width: 120px; height: 38px; color: var(--ink-800); }
.doc__sign small { font-size: 9px; color: #8A949A; display: block; border-top: 1px solid rgba(11,34,48,.2); padding-top: 4px; }
.doc__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; padding-top: 4px; }
.doc__sig { flex: 1; max-width: 190px; }
.doc__sig-svg { display: block; width: 150px; height: 46px; color: #1B3F66; margin-bottom: -6px; }
.doc__sig small { display: block; border-top: 1px solid rgba(11,34,48,.22); padding-top: 6px; font-size: 9px; line-height: 1.35; color: #7E8A92; }
.doc__sig small b { display: block; font-family: var(--f-display); font-size: 11px; font-weight: 600; color: var(--ink-900); }

/* carimbo dourado */
.doc__stamp { position: relative; right: auto; bottom: auto; flex: none; width: 88px; height: 88px; margin: -18px -6px -6px 0; border-radius: 50%; display: grid; place-items: center; color: rgba(110,90,12,.9); background: radial-gradient(circle at 34% 28%, #FFF5CC 0%, #E8CF6A 30%, #C9A825 58%, #8C7310 100%); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -2px 6px rgba(110,90,12,.5) inset, 0 10px 22px -8px rgba(60,45,0,.55); transform: rotate(-10deg); }
.doc__stamp::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(110,90,12,.45); }
.doc__stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.doc__stamp-ring text { font-family: var(--f-display); font-size: 6.6px; font-weight: 700; letter-spacing: 1.2px; fill: #5E4C08; }
.doc__stamp img { position: relative; width: 30px; height: auto; opacity: .85; mix-blend-mode: multiply; }
/* carimbo legado (svg único, sem img) */
.doc__stamp > svg:not(.doc__stamp-ring) { width: 80px; height: 80px; }
.doc__stamp > svg:not(.doc__stamp-ring) text { font-family: var(--f-display); font-size: 8.4px; font-weight: 700; letter-spacing: 1.8px; fill: var(--ink-900); }

/* ---------- pilha de folhas + flutuação ---------- */
.docstack { position: relative; margin: 0; width: min(100%, 372px); animation: docFloat 9s ease-in-out infinite; }
.docstack .doc { width: 100%; }
.docstack__sheet { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(172deg, #F7F3E8, #E9E2D0); box-shadow: 0 0 0 1px rgba(60,48,20,.08), 0 24px 50px -24px rgba(0,0,0,.65); transition: transform .9s var(--ease-out); }
.docstack__sheet--a { z-index: 1; transform: rotate(2.4deg) translate(10px, 8px); }
.docstack__sheet--b { z-index: 0; transform: rotate(5.6deg) translate(22px, 18px); background: linear-gradient(172deg, #EDE7D6, #DCD3BC); }
.product:hover .docstack__sheet--a { transform: rotate(3.6deg) translate(16px, 10px); }
.product:hover .docstack__sheet--b { transform: rotate(8deg) translate(32px, 20px); }
@keyframes docFloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: .5deg; } }

/* selo flutuante de prazo */
.docstack__badge { position: absolute; z-index: 3; right: -34px; top: -44px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(7,31,44,.88); border: 1px solid rgba(208,176,42,.4); color: #fff; box-shadow: 0 18px 40px -14px rgba(0,0,0,.7); animation: docFloat 9s ease-in-out -4.5s infinite; }
.docstack__badge svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--metal); color: var(--ink-900); flex: none; }
.docstack__badge span { font-size: 11px; line-height: 1.3; color: var(--on-dark-mute); }
.docstack__badge b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 14px; color: var(--gold-light); }

.product__visual { padding: 56px 56px 56px 40px; }

/* revelação progressiva ligada à rolagem (só onde houver suporte) */
@supports (animation-timeline: view()) {
  .docstack .doc__q, .docstack .doc__meta, .docstack .doc__lbl { animation: docRow linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .docstack .doc__q:nth-of-type(4) { animation-range: entry 10% entry 65%; }
  .docstack .doc__q:nth-of-type(5) { animation-range: entry 20% entry 75%; }
  .docstack .doc__q:nth-of-type(6) { animation-range: entry 30% entry 85%; }
  .docstack .doc__sig-svg path { stroke-dasharray: 1; animation: docSign linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .docstack .doc__stamp { animation: docStamp linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
}
@keyframes docRow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes docSign { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes docStamp { 0% { opacity: 0; transform: rotate(-24deg) scale(1.5); } 70% { opacity: 1; transform: rotate(-8deg) scale(.96); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }

/* ---------- card: título do produto + situações do contrato ---------- */
.product__title { display: grid; gap: 8px; }
.product__title h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; color: #fff; }
.product__title p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.3; color: var(--gold-light); }
.product__fit { display: grid; gap: 10px; }
.product__fit small { font-size: 13px; color: var(--on-dark-mute); }
.product__fit span { display: flex; flex-wrap: wrap; gap: 8px; }
.product__fit em { font-style: normal; font-family: var(--f-display); font-size: 13.5px; font-weight: 500; color: #fff; padding: 6px 13px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); }

/* faixa final de ajuda */
.produto__help { margin: 36px auto 0; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--text-soft); font-size: 15.5px; }
.produto__help svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.produto__help a { color: var(--ink-900); font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 1px; transition: color .3s; }
.produto__help a:hover { color: var(--gold-deep); }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .product__visual { padding: 10px 40px 70px; }
  .docstack__badge { right: -18px; }
}
@media (max-width: 680px) {
  .doc { transform: rotate(-1deg); padding: 26px 20px 20px; }
  .product__visual { padding: 6px 26px 56px 22px; }
  .docstack__sheet--a { transform: rotate(2deg) translate(7px, 6px); }
  .docstack__sheet--b { transform: rotate(4deg) translate(14px, 12px); }
  .docstack__badge { right: -4px; top: -30px; padding: 8px 12px 8px 10px; }
  .doc__meta span { padding: 6px 7px; font-size: 10px; }
  .doc__stamp { width: 74px; height: 74px; }
  .doc__sig-svg { width: 120px; }
  .produto__help { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .docstack, .docstack__badge, .doc__stamp-ring, .doc__bar u::after, .doc__range u::after { animation: none !important; }
  .docstack .doc__q, .docstack .doc__meta, .docstack .doc__lbl, .docstack .doc__sig-svg path, .docstack .doc__stamp { animation: none !important; }
}
