/* Aguiar Automóveis · retoma */
.rt-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.rt-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 96px); }
.rt-hero__copy { position: sticky; top: calc(var(--nav-h) + 40px); padding-top: 8px; }
.rt-hero .eyebrow { margin-bottom: 20px; }
.rt-hero .display { max-width: 12ch; text-wrap: balance; }
.rt-hero .lead { margin-top: clamp(20px, 2.6vw, 32px); max-width: 46ch; }
.rt-trust { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.rt-trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.rt-trust .icon { flex: none; }
.rt-hero__wa { margin-top: 28px; font-size: 15px; color: var(--ink-2); }

/* Formulário em passos */
.rt-wiz { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -40px rgba(5, 20, 31, .35); scroll-margin-top: calc(var(--nav-h) + 16px); }
.rt-wiz__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rt-wiz__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.rt-wiz__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-wiz__bar { height: 2px; background: var(--line); margin: 16px 0 26px; overflow: hidden; }
.rt-wiz__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.3333); transition: transform .45s var(--ease); }
.rt-wiz:not(.is-js) .rt-wiz__nav, .rt-wiz:not(.is-js) .rt-wiz__bar, .rt-wiz:not(.is-js) .rt-wiz__count { display: none; }
.rt-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: rt-in .35s var(--ease); }
.rt-step + .rt-step { margin-top: 0; }
.rt-step > :not(legend) + :not(legend) { margin-top: 22px; }
.rt-wiz [hidden] { display: none !important; }
.rt-wiz:not(.is-js) .rt-step[hidden] { display: block !important; }
@keyframes rt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.rt-chip { position: relative; cursor: pointer; }
.rt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rt-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease); }
.rt-chip:hover span { border-color: var(--ink); }
.rt-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rt-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.rt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.rt-card { position: relative; cursor: pointer; }
.rt-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rt-card > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.rt-card strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.rt-card small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.rt-card:hover > span { border-color: var(--ink); }
.rt-card input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.rt-card input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rt-note { margin-top: 10px; padding: 12px 14px; background: var(--soft); color: var(--ink-2); }

.rt-wiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.rt-wiz__nav [data-rt-next] { margin-left: auto; min-width: 160px; justify-content: center; }
.rt-err { margin-top: 14px; padding: 12px 14px; font-size: 14px; background: #fdecec; color: var(--danger); }
.rt-err[hidden] { display: none; }
.rt-done { text-align: left; display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.rt-done__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: #fff; }
.rt-done p:not(.rt-wiz__title) { color: var(--ink-2); max-width: 44ch; }

/* O que conta */
.rt-value__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.rt-value__grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
.rt-factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.rt-factors li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.rt-factors .icon { width: 24px; height: 24px; margin-top: 2px; }
.rt-factors h3 { font-size: 18px; letter-spacing: -0.01em; }
.rt-factors p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* Comparação */
.rt-table { border-top: 1px solid var(--ink); }
.rt-table__row { display: grid; grid-template-columns: minmax(120px, .8fr) 1.3fr 1.3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: start; }
.rt-table__row > [role=rowheader] { font-weight: 600; color: var(--ink); }
.rt-table__row > [role=cell] { color: var(--muted); }
.rt-table__row > .is-us { color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.rt-table__row > .is-us .icon { flex: none; margin-top: 3px; }
.rt-table__head { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 0; }
.rt-table__head > :nth-child(2) { color: var(--ink); }

/* Viaturas */
.rt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rt-rail::-webkit-scrollbar { display: none; }
.rt-rail__item { scroll-snap-align: start; min-width: 0; }
.rt-rail .car-card { height: 100%; }

/* Perguntas */
.rt-faq__list details { border-top: 1px solid var(--line); }
.rt-faq__list details:last-child { border-bottom: 1px solid var(--line); }
.rt-faq__list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; min-height: 56px; cursor: pointer; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.35; }
.rt-faq__list summary::-webkit-details-marker { display: none; }
.rt-faq__list summary .icon { flex: none; transition: transform .25s var(--ease); }
.rt-faq__list details[open] summary .icon { transform: rotate(180deg); }
.rt-faq__list details p { padding: 0 0 22px; max-width: 62ch; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 1080px) {
  .rt-rail { grid-auto-columns: calc((100% - 24px) / 2.3); }
}
@media (max-width: 900px) {
  .rt-hero__grid { grid-template-columns: 1fr; }
  .rt-hero__copy { position: static; }
  .rt-value__grid { grid-template-columns: 1fr; }
  .rt-value__grid > div:first-child { position: static; }
}
@media (max-width: 640px) {
  .rt-wiz { margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .rt-cards, .rt-factors { grid-template-columns: 1fr; }
  .rt-pair { grid-template-columns: 1fr; gap: 20px; }
  .rt-table__head { display: none; }
  .rt-table__row { grid-template-columns: 1fr; gap: 6px; }
  .rt-table__row > [role=cell]:last-child::before { content: 'A particular: '; font-weight: 500; }
  .rt-rail { grid-auto-columns: 82%; }
  .rt-trust { margin-top: 24px; }
}
