/* AMI TEC | site em várias páginas: componentes das páginas internas */

/* Navegação: página atual e menu de produtos em colunas */
.nav-list > li > a[aria-current="page"], .menu-btn[data-current="true"] { background: var(--bg-soft); color: var(--navy); }
.menu-cols.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; min-width: 660px; }
.menu-cols a[aria-current="page"] { background: var(--wine-tint); }
.menu-cols .menu-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 6px; padding: 14px 12px 8px; }
.menu-cols .menu-all b { color: var(--wine); }
.menu-cols .menu-all .ic { width: 20px; height: 20px; padding: 0; background: none; color: var(--wine); }

/* Migalhas */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin: 0 9px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--navy); font-weight: 600; }

/* Cabeçalho das páginas internas */
.page-hero { padding: clamp(30px, 5vw, 60px) 0 clamp(48px, 6vw, 84px); background: radial-gradient(800px 420px at 92% 0%, rgba(143,53,88,.10), transparent 60%), linear-gradient(180deg, #F7F8FD 0%, #FFFFFF 100%); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 18ch; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.ph-copy .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); }
.ph-copy .hero-actions { margin-top: 30px; }
.ph-copy .fineprint { margin-top: 18px; }
.ph-visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; }
.ph-note { text-align: center; margin-top: 12px; }
.page-hero-center { text-align: center; }
.page-hero-center h1 { margin-inline: auto; max-width: 20ch; }
.page-hero-center .lead { margin-inline: auto; }
.page-hero-center .crumbs ol { justify-content: center; }
.page-hero-dark { background: radial-gradient(900px 480px at 85% 0%, rgba(143,53,88,.38), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lead { color: var(--on-dark-muted); }
.page-hero-dark .eyebrow { color: #E9A9C1; }
.page-hero-dark .crumbs ol, .page-hero-dark .crumbs li[aria-current] { color: var(--on-dark-muted); }
.page-hero-dark .crumbs li[aria-current] { color: #fff; }
.page-hero-dark .crumbs a:hover { color: #fff; }

/* Home: hero escuro e cartão da transação */
.hero-dark { padding: clamp(40px, 6vw, 84px) 0 clamp(110px, 12vw, 160px); background: radial-gradient(900px 520px at 88% 4%, rgba(143,53,88,.42), transparent 60%), radial-gradient(700px 480px at -6% 100%, rgba(43,42,107,.5), transparent 60%), linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); }
.hero-dark h1 { color: #fff; max-width: 15ch; }
.hero-dark h1 em { color: #F3BDD2; }
.hero-dark .lead { color: var(--on-dark-muted); }
.pill-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.pill-dark .pill-dot { background: #F3BDD2; box-shadow: 0 0 0 4px rgba(243,189,210,.2); }
.badges-hero { margin-top: 30px; }
.badges-center { justify-content: center; }
.hero-dark + .stats-wrap { padding: 0; margin-top: -64px; position: relative; z-index: 2; }
.hero-dark + .stats-wrap .stats-note { margin-bottom: 0; }
.hero-side { display: grid; place-items: center; }
.txn { width: 100%; max-width: 440px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-l); padding: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.4); display: grid; gap: 20px; color: #fff; }
.txn-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.txn-head em { font-style: normal; font-size: .72rem; font-weight: 500; color: var(--on-dark-muted); }
.txn-amount small { color: var(--on-dark-muted); font-size: .82rem; }
.txn-amount b { display: block; font-size: 2.3rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.txn-checks { display: grid; gap: 12px; }
.txn-checks li { display: flex; align-items: center; gap: 12px; font-size: .96rem; animation: txnstep 9s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
.txn-checks .ic, .txn-ok { width: 24px; height: 24px; padding: 5px; border-radius: 50%; stroke-width: 2.6; flex: none; background: #2f9e5e; color: #fff; }
.txn-checks .ic { animation: txnic 9s ease-in-out infinite; animation-delay: calc(var(--i) * .8s); }
.txn-final { display: flex; align-items: center; gap: 14px; background: rgba(47,158,94,.18); border: 1px solid rgba(47,158,94,.5); border-radius: var(--r-m); padding: 16px 18px; animation: txnstep 9s ease-in-out infinite; animation-delay: 4.2s; }
.txn-ok { width: 38px; height: 38px; padding: 9px; }
.txn-final b { display: block; line-height: 1.2; }
.txn-final small { color: var(--on-dark-muted); font-size: .8rem; }
@keyframes txnstep { 0%, 8% { opacity: .35; } 18%, 72% { opacity: 1; } 84%, 100% { opacity: .35; } }
@keyframes txnic { 0%, 8% { background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); } 18%, 72% { background: #2f9e5e; color: #fff; } 84%, 100% { background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); } }

/* Home: segurança em destaque */
.sec-metrics { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 30px; }
.sec-metrics b { display: block; font-size: 2.2rem; line-height: 1.1; color: #fff; letter-spacing: -.02em; font-variation-settings: "wdth" 106; }
.sec-metrics span { color: var(--on-dark-muted); font-size: .9rem; }
.sec-list li b { font-weight: 650; }

/* Produtos: cartões */
.prod-grid { display: grid; gap: 18px; }
.prod-grid-3 { grid-template-columns: repeat(3, 1fr); }
.prod-grid-4 { grid-template-columns: repeat(4, 1fr); }
.prod-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.prod-grid-1 { grid-template-columns: 1fr; max-width: 380px; }
.prod-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--wine); }
.prod-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); margin-bottom: 6px; }
.prod-ico .ic { width: 26px; height: 26px; }
.prod-card small { color: var(--wine); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.prod-card h3 { font-size: 1.18rem; }
.prod-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.prod-more { display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-weight: 650; font-size: .92rem; margin-top: 8px; }
.prod-more .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.prod-card:hover .prod-more .ic { transform: translateX(4px); }
.prod-grid-4 .prod-card:nth-child(7) { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.prod-grid-4 .prod-card:nth-child(7) h3 { color: #fff; }
.prod-grid-4 .prod-card:nth-child(7) p { color: var(--on-dark-muted); }
.prod-grid-4 .prod-card:nth-child(7) small { color: #E9A9C1; }
.prod-grid-4 .prod-card:nth-child(7) .prod-ico { background: rgba(255,255,255,.12); color: #fff; }
.prod-grid-4 .prod-card:nth-child(7) .prod-more { color: #F3BDD2; }
.grupo { margin-bottom: 44px; }
.grupo:last-child { margin-bottom: 0; }
.grupo-t { font-size: 1.3rem; margin-bottom: 18px; }
.guia { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; }
.guia a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.guia a:hover { border-color: var(--wine); transform: translateY(-2px); }
.guia span { font-weight: 650; color: var(--navy); }
.guia .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--wine); }
.guia b { color: var(--wine); font-size: .86rem; }

/* Blocos de página de produto */
.ph-stage { position: relative; width: 100%; max-width: 480px; min-height: 540px; display: grid; place-items: center; }
.ph-stage .hub-orb { width: 76%; }
.ph-stage .hub-pos { width: min(52%, 270px); }
.stage-chip { position: absolute; z-index: 2; background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 650; font-size: .86rem; color: var(--navy); box-shadow: var(--shadow-m); animation: bob 6s ease-in-out infinite; }
.stage-chip-1 { left: 0; top: 20%; }
.stage-chip-2 { right: 0; bottom: 18%; animation-delay: -3s; }
.photo-frame { position: relative; width: 100%; max-width: 540px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); border: 6px solid #fff; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; display: block; }
.frame-chip { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--navy); box-shadow: var(--shadow-m); }
.fipe-big { max-width: 400px !important; }
.fipe em { display: block; text-align: center; }

.phones { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.phone { width: 158px; min-height: 280px; background: #fff; border: 5px solid #11142a; border-radius: 28px; padding: 12px 12px 16px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-m); }
.phone-mid { transform: translateY(-20px); }
.phone-bar { width: 42px; height: 5px; border-radius: 5px; background: #11142a; margin: 0 auto 4px; }
.phone small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.phone b { color: var(--navy); font-size: 1.35rem; line-height: 1.1; }
.phone .pl-row, .phone .pl-btn { font-size: .7rem; padding: 9px 10px; }
.pl-wine { background: var(--wine) !important; color: #fff; justify-content: center; font-weight: 700; }
.bubble { overflow-wrap: anywhere; background: var(--bg-soft); border-radius: 14px 14px 14px 4px; padding: 9px 11px; font-size: .72rem; color: var(--ink); }
.bubble-link { background: #E4F4EE; color: var(--ok); display: flex; gap: 6px; align-items: center; font-weight: 700; }
.bubble-link .ic { width: 15px; height: 15px; }
.okbadge { width: 46px; height: 46px; border-radius: 50%; background: #E4F4EE; color: var(--ok); display: grid; place-items: center; margin: 4px auto 0; }
.okbadge .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.phone .okbadge + b { text-align: center; font-size: 1.05rem; }

.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5 .step h3 { font-size: 1.05rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-media { margin: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); }
.split-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; display: block; }
.split-copy .checks { margin: 24px 0 28px; }

.trust-strip { background: var(--navy); color: var(--on-dark); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; padding: 24px 0; }
.trust-inner p { color: var(--on-dark-muted); max-width: 70ch; }
.trust-inner b { color: #fff; }
.link-arrow-dark { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--wine); text-decoration: none; }
.trust-strip .link-arrow-dark { color: #F3BDD2; }
.link-arrow-dark:hover { text-decoration: underline; }
.link-arrow-dark .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow-dark:hover .ic { transform: translateX(4px); }
.more-faq { margin-top: 26px; }
.center-text { text-align: center; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 0 auto; }
.vs-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px 32px; }
.vs-card small { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; color: var(--muted); }
.vs-card li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.vs-card ul { margin-top: 10px; }
.vs-card li:first-child { border-top: 0; }
.vs-win { background: var(--wine); border-color: var(--wine); }
.vs-win small { color: rgba(255,255,255,.82); }
.vs-win li { color: #fff; border-color: rgba(255,255,255,.25); }
.why-win { background: var(--wine); border-color: var(--wine); }
.why-win .why-ico { background: #fff; color: var(--wine); }
.why-win p { color: rgba(255,255,255,.9); }
.wl-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.tags-wl { margin: 0; }

/* Segmentos */
.seg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.seg-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 650; color: var(--navy); transition: border-color .2s, transform .2s var(--ease); }
.seg-chips a:hover { border-color: var(--wine); transform: translateY(-2px); }
.seg-chips .ic { color: var(--wine); }
.seg-chips-left { justify-content: flex-start; margin: 8px 0 26px; }
.seg-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.section[id] .split { scroll-margin-top: 90px; }

/* Quem somos e segurança */
.pillars-4 { grid-template-columns: repeat(4, 1fr); }
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.layer { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px 26px; }
.layer h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.layer h3 span { width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.layer ul { display: grid; gap: 18px; }
.layer li { display: flex; gap: 12px; align-items: flex-start; }
.layer li > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--wine-tint); color: var(--wine); flex: none; }
.layer li b { display: block; color: var(--navy); }
.layer li p { color: var(--muted); font-size: .9rem; }
.sec-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px 0 20px; }
.sec-numbers li { text-align: center; }
.sec-numbers b { display: block; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); font-weight: 780; letter-spacing: -.02em; color: #fff; font-variation-settings: "wdth" 106; line-height: 1.1; }
.sec-numbers span { color: var(--on-dark-muted); font-size: .92rem; }
.faq-group { margin-bottom: 40px; }
.faq-group:last-child { margin-bottom: 0; }
.legal { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 8px; }
.legal h2 { margin-top: 28px; font-size: 1.4rem; }

/* Responsivo */
@media (max-width: 1080px) {
  .prod-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .prod-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
  .pillars-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-cols.is-open { min-width: 560px; }
}
@media (max-width: 960px) {
  .page-hero-grid, .split, .wl-split { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-media { order: 0; }
  .page-hero h1 { max-width: none; }
  .layers, .vs { grid-template-columns: 1fr; }
  .layers { max-width: 620px; margin-inline: auto; }
  .guia { grid-template-columns: 1fr; }
  .sec-numbers { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: 1fr; }
  .menu-cols.is-open { grid-template-columns: 1fr; min-width: 0; }
  .ph-stage { min-height: 470px; }
  .hero-dark h1 { max-width: none; }
  .hero-dark + .stats-wrap { margin-top: -48px; }
}
@media (max-width: 640px) {
  .prod-grid-4, .prod-grid-3, .prod-grid-2, .pillars-4, .steps-5 { grid-template-columns: 1fr; }
  .prod-grid-4 .prod-card:nth-child(7) { grid-column: auto; }
  .phone { width: 31%; min-width: 0; overflow: hidden; min-height: 230px; padding: 10px 8px 12px; border-width: 4px; border-radius: 22px; }
  .phone b { font-size: 1rem; }
  .phones { gap: 8px; }
  .txn { padding: 20px; }
  .txn-amount b { font-size: 1.9rem; }
  .sec-numbers { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .txn-checks li, .txn-final, .stage-chip { animation: none; opacity: 1; }
  .txn-checks .ic { animation: none; background: #2f9e5e; color: #fff; }
}
