/* AMI TEC | site institucional: componentes específicos (somam ao styles.css) */

.brand-logo-tec { height: 54px; width: auto; margin: -6px 0; }
.nav-client > a { color: var(--wine) !important; font-weight: 700 !important; }
.menu-wide { min-width: 360px; }

/* Hero: hub de produtos */
.mini-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 32px; }
.mini-stats li { display: grid; }
.mini-stats b { font-size: 1.55rem; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "wdth" 106; }
.mini-stats span { color: var(--muted); font-size: .86rem; }
.hero .fineprint { margin-top: 12px; }

.hub { position: relative; justify-self: end; width: 100%; max-width: 560px; min-height: 640px; display: grid; place-items: center; }
.hub-orb { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 28% 22%, #C25A85, var(--wine) 42%, #2B2A6B 100%); }
.hub-pos { position: relative; z-index: 1; width: min(54%, 290px); transform: rotate(4deg); filter: drop-shadow(0 30px 34px rgba(5,10,48,.42)); }
.hub-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hub-chips .chip { text-decoration: none; pointer-events: auto; transition: transform .2s var(--ease), box-shadow .2s; }
.hub-chips .chip:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(5,10,48,.2); }
.hc-1 { left: -2%; top: 8%; }
.hc-2 { left: -7%; top: 40%; animation-delay: -1.2s; }
.hc-3 { left: 0; bottom: 8%; animation-delay: -2.4s; }
.hc-4 { right: -1%; top: 6%; animation-delay: -3.6s; }
.hc-5 { right: -7%; top: 38%; animation-delay: -4.8s; }
.hc-6 { right: 0; bottom: 10%; animation-delay: -6s; }

/* Simulador */
.simgrid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.sim { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 38px); box-shadow: 0 30px 60px rgba(0,0,0,.35); display: grid; gap: 8px; }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.sim-top b { color: var(--navy); }
.sim-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--wine-tint); color: var(--wine); padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.sim-badge .ic { width: 16px; height: 16px; }
.sim-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; gap: 12px; }
.sim-row label { font-weight: 650; color: var(--navy); font-size: .92rem; }
.sim-row output { font-weight: 800; font-size: 1.4rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--wine) var(--p, 50%), #e3e7f1 var(--p, 50%)); margin: 8px 0 2px; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--wine); box-shadow: var(--shadow-s); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--wine); box-shadow: var(--shadow-s); }
.range:focus-visible { outline: 3px solid var(--wine-2); outline-offset: 6px; }
.sim-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.sim-result { margin-top: 14px; border-radius: var(--r-m); background: linear-gradient(135deg, var(--wine), var(--navy-2)); color: #fff; padding: 20px 22px; display: grid; gap: 2px; }
.sim-result small { opacity: .82; font-size: .82rem; }
.sim-result b { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sim-result span { font-size: .8rem; opacity: .82; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.sim-grid > div { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.sim-grid small { color: var(--muted); font-size: .78rem; }
.sim-grid b { color: var(--navy); font-size: 1.1rem; }
.sim .fineprint { margin-top: 10px; }

/* Abas de produtos */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 650; font-size: .96rem; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.tab .ic { width: 20px; height: 20px; color: var(--wine); }
.tab:hover { border-color: var(--wine); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(5,10,48,.22); }
.tab[aria-selected="true"] .ic { color: #F3BDD2; }
.tabpanel { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 64px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow-s); animation: panelIn .45s var(--ease); }
.tabpanel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.15rem); margin-bottom: 14px; }
.panel-lead { color: var(--muted); font-size: 1.04rem; max-width: 56ch; }
.checks { display: grid; gap: 12px; margin: 24px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; color: var(--navy); }
.checks .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--wine-tint); color: var(--wine); stroke-width: 2.4; margin-top: 1px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.panel-vis { position: relative; background: var(--bg-soft); border-radius: var(--r-l); min-height: 430px; display: grid; place-items: center; padding: 26px; overflow: hidden; }

.vis-pay { display: flex; align-items: center; justify-content: center; gap: 22px; }
.vis-pos { width: 170px; transform: rotate(-3deg); filter: drop-shadow(0 22px 26px rgba(5,10,48,.32)); }
.paylink { width: 196px; background: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 9px; box-shadow: var(--shadow-m); border: 1px solid var(--line); }
.paylink small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.paylink b { font-size: 1.6rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.pl-row, .pl-btn { display: flex; align-items: center; gap: 8px; font-size: .76rem; border-radius: 12px; padding: 10px 12px; }
.pl-row { background: var(--bg-soft); color: var(--muted); }
.pl-btn { background: #128C4A; color: #fff; font-weight: 700; }
.pl-row .ic, .pl-btn .ic { width: 16px; height: 16px; }
.paylink em, .fipe em { font-style: normal; color: var(--muted); font-size: .68rem; }

.vis-cred { align-content: center; gap: 14px; }
.miniflow { display: grid; gap: 12px; width: 100%; max-width: 390px; }
.miniflow li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.miniflow li > span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.miniflow b { display: block; color: var(--navy); line-height: 1.2; }
.miniflow small { color: var(--muted); font-size: .82rem; }
.miniflow li.on { background: var(--wine); border-color: var(--wine); }
.miniflow li.on > span { background: #fff; color: var(--wine); }
.miniflow li.on b { color: #fff; } .miniflow li.on small { color: rgba(255,255,255,.85); }
.consorcio { display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 18px; width: 100%; max-width: 390px; }
.consorcio .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.12); flex: none; }
.consorcio b { display: block; line-height: 1.2; }
.consorcio small { color: var(--on-dark-muted); font-size: .84rem; }

.vis-auto .ap-card { width: 100%; max-width: 410px; box-shadow: var(--shadow-m); }
.vis-fipe .fipe { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-m); border: 1px solid var(--line); display: grid; gap: 12px; }
.fipe-search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: .9rem; }
.fipe-search .ic { width: 20px; height: 20px; color: var(--wine); }
.fipe-rows li { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; border-top: 1px solid #eef0f6; font-weight: 600; color: var(--navy); font-size: .93rem; }
.fipe-rows li:first-child { border-top: 0; }
.fipe-rows i { font-style: normal; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.fipe-rows .ok { background: #E4F4EE; color: var(--ok); }
.fipe-rows .info { background: var(--wine-tint); color: var(--wine); }
.vis-wl { padding: 20px; }

/* Por que AMI */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-l); padding: 32px 28px 30px; display: grid; gap: 12px; align-content: start; }
.why-metric { position: absolute; right: 24px; top: 18px; font-size: 1.9rem; font-weight: 780; letter-spacing: -.03em; color: rgba(255,255,255,.16); font-variation-settings: "wdth" 108; }
.why-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--wine); color: #fff; }
.why-ico .ic { width: 26px; height: 26px; }
.why-card p { color: var(--on-dark-muted); }
.badges-center { justify-content: center; margin-top: 34px; }
.center-text { text-align: center; }

/* Quem somos */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-card { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; box-shadow: var(--shadow-s); }
.about-card img { width: 260px; height: auto; }
.about-card p { font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.25; letter-spacing: -.01em; }
.about-line { display: block; height: 3px; width: 130px; background: var(--wine); border-radius: 3px; }
.about-card small { color: var(--muted); font-style: italic; }
.pillrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.pillrow li { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 999px; padding: 14px 20px; font-weight: 650; font-size: .95rem; }
.pillrow .ic { width: 20px; height: 20px; color: #F3BDD2; stroke-width: 2.4; }

/* Contato */
.contact-lines { display: grid; gap: 10px; margin-top: 24px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-weight: 550; color: var(--navy); }
.contact-lines .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--wine-tint); color: var(--wine); }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines + .contact-direct { margin-top: 22px; }

/* Responsivo */
@media (max-width: 1080px) {
  .why { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 960px) {
  .simgrid, .about { grid-template-columns: 1fr; }
  .tabpanel { grid-template-columns: 1fr; }
  .panel-vis { min-height: 380px; }
  .hub { justify-self: center; max-width: 520px; min-height: 600px; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 4px 2px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
}
@media (max-width: 640px) {
  .brand-logo-tec { height: 46px; }
  .hub { min-height: 0; padding-bottom: 8px; }
  .hub-pos { width: min(62%, 250px); margin: 22px 0 14px; }
  .hub-orb { top: 150px; width: 82%; }
  .rings { display: none; }
  .hub-chips { position: static; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; z-index: 2; }
  .hub-chips .chip { position: static; animation: none; padding: 9px 13px 9px 10px; gap: 9px; }
  .hub-chips .chip b { font-size: .78rem; }
  .hub-chips .chip-ico { width: 30px; height: 30px; }
  .hub { grid-template-columns: 1fr; place-items: center; }
  .pillrow { grid-template-columns: 1fr; }
  .vis-pay { flex-direction: column; gap: 18px; }
  .vis-pos { width: 140px; }
  .panel-actions .btn { width: 100%; }
  .sim-grid { grid-template-columns: 1fr; }
  .mini-stats { gap: 12px 26px; }
}
