/* =========================================================
   v5 — Site institucional em páginas (Início, Contabilidade, Tecnologia, Sobre)
   Pedido do cliente: base branca com azul, menos texto, mais imagem própria,
   "especializada em Sankhya" em todas as chamadas.
   Carregado depois de style.css.
   ========================================================= */
:root {
  --sky: #eef3ff;
  --sky-2: #dfe8ff;
}

/* ---------- Cabeçalho branco ---------- */
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--blue); }
.site-footer :focus-visible { outline-color: var(--cyan); }
.main-nav ul a { color: var(--ink); }
.main-nav ul a:hover { color: var(--blue); border-bottom-color: rgba(1, 48, 200, .35); }
.main-nav ul a[aria-current="page"] { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.brand-logo { width: 150px; }
.nav-cta { color: #fff; }
@media (max-width: 1180px) {
  .menu-toggle { color: var(--ink); border-color: var(--line); }
  .main-nav { background: #fff; border-bottom-color: var(--line); box-shadow: 0 16px 32px rgba(0, 8, 102, .12); }
  .main-nav ul a { border-bottom-color: var(--line); }
  .main-nav ul a:hover { border-bottom-color: var(--line); }
  .main-nav ul a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--blue); }
}

/* ---------- Abertura das páginas ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 5.5vw, 84px); }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(1, 48, 200, .12), rgba(1, 48, 200, 0) 68%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(36px, 3.4vw + 18px, 66px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; color: var(--ink); margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero .hero-lead { color: var(--muted); max-width: 32em; margin-bottom: 28px; }
.page-hero .hero-actions { margin-bottom: 0; }

.sankhya-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 20px;
  border-radius: 999px; background: #fff; border: 1px solid var(--sky-2); box-shadow: 0 6px 18px rgba(0, 8, 102, .06);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.sankhya-badge img { flex: none; box-sizing: content-box; width: 64px; height: auto; padding: 6px 10px; border-radius: 999px; background: var(--sky); }

.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 8, 102, .18); }
.hero-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 26px; background: var(--blue); opacity: .1; z-index: -1; }
.hero-photo-tag {
  position: absolute; left: -20px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 40px rgba(0, 8, 102, .16); max-width: 270px;
}
.hero-photo-tag strong { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1; color: var(--blue); }
.hero-photo-tag span { font-size: 13.5px; line-height: 1.35; color: var(--ink); font-weight: 500; }

/* Abertura da página inicial: marca em destaque (fotos da equipe ficam no "Sobre nós", mais abaixo) */
.hero-brand {
  position: relative; justify-self: end; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden;
  background: linear-gradient(150deg, #e9efff 0%, #fff 55%, #dfe8ff 100%); border: 1px solid var(--sky-2); box-shadow: 0 30px 60px rgba(1, 48, 200, .14);
}
.hero-brand::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-chevrons.png") repeat 0 0 / 75px 55px; opacity: .05; filter: invert(1); }
.hero-brand-mark { position: absolute; left: 50%; top: 47%; width: 58%; translate: -50% -50%; filter: drop-shadow(0 24px 40px rgba(1, 48, 200, .25)); }
.hero-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff;
  box-shadow: 0 16px 36px rgba(0, 8, 102, .16); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.hero-float strong { font-family: var(--font-head); font-size: 24px; color: var(--blue); line-height: 1; }
.hero-float-1 { left: 6%; top: 7%; }
.hero-float-2 { right: 6%; bottom: 8%; }
.hero-float-3 { right: 7%; top: 30%; padding: 10px 14px; }
.hero-float-3 img { width: 74px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-float { animation: floaty 6s var(--ease) infinite; }
  .hero-float-2 { animation-delay: -2s; }
  .hero-float-3 { animation-delay: -4s; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Números ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-list li { padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; }
.stats-list li + li { border-left: 1px solid var(--line); }
.stats-list strong { font-family: var(--font-head); font-size: clamp(28px, 1.6vw + 18px, 40px); line-height: 1; color: var(--blue); }
.stats-list span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ---------- Cabeçalhos de seção ---------- */
.section-head-center { max-width: 760px; margin: 0 auto clamp(28px, 3.5vw, 44px); text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after { display: none; }
.section-head-center .h2 { margin-bottom: 12px; }
.section-soft { background: var(--sky); }

/* ---------- Portas: Contabilidade (principal) e Tecnologia ---------- */
.doors { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.door {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.door-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
.door-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); flex: 1; }
.door-kicker { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0; }
.door h3 { font-size: clamp(22px, 1vw + 16px, 30px); }
.door p { margin: 0; flex: 1; }
.door-link { font-family: var(--font-head); font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.door-link span { transition: transform .3s var(--ease); }
.door-main { background: linear-gradient(160deg, var(--blue) 0%, #0a1f9e 100%); border-color: transparent; color: rgba(255, 255, 255, .9); }
.door-main h3 { color: #fff; }
.door-main .door-kicker { color: var(--cyan); }
.door-main .door-link { color: #fff; }
.door-main .door-img { aspect-ratio: 16 / 8; }
.door-main:focus-visible { outline-color: var(--blue); }
@media (hover: hover) {
  .door:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 8, 102, .16); border-color: rgba(1, 48, 200, .35); }
  .door:hover .door-link span { transform: translateX(5px); }
}
.door:focus-visible { outline-offset: 4px; }

/* ---------- Logos de clientes ---------- */
.logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 18px; width: max-content; animation: logos 70s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-track li { flex: none; width: 190px; height: 98px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logos-track img { width: 170px; height: auto; }
@keyframes logos { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) {
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logos-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case img { width: 160px; height: auto; margin-left: -10px; }
.case h3 { font-size: 17px; }
.case p { font-size: 15px; margin: 0; color: var(--text); }
.case-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--sky); padding: 4px 10px; border-radius: 999px; }
@media (hover: hover) { .case:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 8, 102, .1); } }

/* ---------- Sobre nós (foto da equipe mais abaixo na página) ---------- */
.about-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 8, 102, .16); }
.about-photo::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 42%; height: 42%; border-right: 4px solid var(--blue); border-bottom: 4px solid var(--blue); border-radius: 0 0 30px 0; pointer-events: none; }
.about-copy .h2 { margin-bottom: 14px; }
.about-copy blockquote, .quote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ---------- Faixa de contato ---------- */
.cta-band { padding: var(--section-y) 0; background: #fff; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.3fr auto; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: linear-gradient(135deg, var(--sky) 0%, #fff 100%); border: 1px solid var(--sky-2);
}
.cta-box::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 220px; height: 340px; background: url("../img/isotipo.png") no-repeat center / contain; opacity: .08; pointer-events: none; }
.cta-box .h2 { margin-bottom: 10px; }
.cta-box .lead { margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cta-contact { margin: 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.cta-contact a { color: var(--ink); font-weight: 600; }

/* ---------- Cartões de serviço com "Saiba mais" ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.svc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--card-pad); border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.svc-ico { width: 52px; height: 52px; padding: 12px; border-radius: 14px; color: var(--blue); background: var(--sky); flex: none; transition: background-color .25s, color .25s, transform .35s var(--ease); }
.svc h3 { font-size: 20px; }
.svc > p { margin: 0; font-size: 15.5px; }
@media (hover: hover) {
  .svc:hover { box-shadow: 0 18px 36px rgba(0, 8, 102, .1); border-color: rgba(1, 48, 200, .3); }
  .svc:hover .svc-ico { background: var(--blue); color: #fff; transform: rotate(-6deg); }
}
.more { border-top: 1px solid var(--line); margin-top: 6px; }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--blue);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more-body { padding-bottom: 8px; font-size: 15px; animation: faq-in .35s var(--ease); }
.more-body p { margin-bottom: 10px; }
.more-body h4 { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 14px 0 6px; }
.check-list li { position: relative; padding: 4px 0 4px 24px; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* ---------- Segmentos e módulos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--sky-2); font-size: 15px; font-weight: 500; color: var(--ink); }
.chips-center { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-img img { width: 100%; height: auto; }
.split .h2 { margin-bottom: 14px; }

.only-sankhya { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--sky-2); margin-top: 26px; }
.only-sankhya img { width: 96px; flex: none; }
.only-sankhya p { margin: 0; font-size: 15.5px; color: var(--ink); }
.only-sankhya strong { color: var(--blue); }

/* ---------- Produtos de tecnologia ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.prod-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px var(--card-pad); background: linear-gradient(140deg, var(--blue), #0a1f9e); color: #fff; overflow: hidden; }
.prod-head::after { content: ""; position: absolute; right: -20px; top: 50%; translate: 0 -50%; width: 90px; height: 150px; background: url("../img/chevron-branco.png") no-repeat center / contain; opacity: .12; }
.prod-head .svc-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.prod-head h3 { color: #fff; font-size: 21px; }
.prod-head .h-sub { color: rgba(255, 255, 255, .8); }
.prod-body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prod-body > p { margin: 0; font-size: 16px; }
.prod-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.flow-chips { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: fc; }
.flow-chips li { counter-increment: fc; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--sky); font-size: 14px; font-weight: 500; color: var(--ink); }
.flow-chips li::before { content: counter(fc); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: 11px; font-weight: 700; }
.prod .btn { align-self: flex-start; margin-top: auto; }
@media (hover: hover) { .prod:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 8, 102, .12); } }

/* ---------- Por que escolher ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why li { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.why li::before { content: ""; display: block; width: 10px; height: 16px; margin-bottom: 14px; background: var(--blue); clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); }
.why strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.why p { margin: 0; font-size: 15px; }

/* ---------- Nossa história ---------- */
.story { display: grid; gap: clamp(40px, 6vw, 80px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-row:nth-child(even) .story-img { order: 2; }
.story-img img { width: 100%; height: auto; }
.story-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.story-row .h3 { margin-bottom: 12px; }

.mission { text-align: center; max-width: 860px; margin: 0 auto; }
.mission p { font-size: clamp(18px, .5vw + 16px, 22px); color: var(--ink); }
.mission .eyebrow { font-size: 13px; color: var(--blue); }
.mission blockquote { margin: 28px 0 0; font-family: var(--font-head); font-size: clamp(26px, 1.8vw + 16px, 42px); font-weight: 700; color: var(--blue); line-height: 1.15; }

/* ---------- Diretores ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; align-items: start; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 20px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .35s var(--ease); }
.member img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; box-shadow: 0 0 0 5px var(--sky), 0 0 0 7px var(--blue); }
.member h3 { font-size: 19px; }
.member-role { font-size: 14.5px; color: var(--blue); font-weight: 600; margin: 0; line-height: 1.4; }
.member .more { width: 100%; margin-top: 12px; text-align: left; }
.member .more summary { justify-content: center; gap: 12px; }
@media (hover: hover) { .member:hover { box-shadow: 0 18px 36px rgba(0, 8, 102, .1); } }
.team-compact { grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; }

/* ---------- Pop-up do e-book (abre 3 s após a chegada, uma vez por visita) ---------- */
.ebook { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.ebook[hidden] { display: none; }
.ebook-backdrop { position: absolute; inset: 0; background: rgba(0, 5, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade-in .3s var(--ease); }
.ebook-card {
  position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; width: min(720px, 100%);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 34px 32px 28px; border-radius: 24px; background: #fff; box-shadow: 0 40px 80px rgba(0, 3, 50, .35);
  animation: pop-in .45s var(--ease);
}
.ebook-card:focus { outline: none; }
.ebook-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  background: linear-gradient(160deg, var(--blue), #0a1a8f); color: #fff; box-shadow: inset 6px 0 0 #0a1a8f, 0 18px 36px rgba(1, 48, 200, .35); overflow: hidden;
}
.ebook-cover::after { content: ""; position: absolute; right: -30px; bottom: -20px; width: 120px; height: 180px; background: url("../img/chevron-branco.png") no-repeat center / contain; opacity: .14; }
.ebook-cover small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.ebook-cover b { font-family: var(--font-head); font-size: 18px; line-height: 1.15; }
.ebook-cover img { width: 92px; }
.ebook-card .eyebrow::after { display: none; }
.ebook-card h2 { font-size: clamp(22px, 1vw + 17px, 28px); margin-bottom: 10px; }
.ebook-card p { color: var(--muted); font-size: 15.5px; }
.ebook-card .btn { margin-top: 6px; }
.ebook-close {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-soft); cursor: pointer;
  display: grid; place-items: center; color: var(--ink); font-size: 24px; line-height: 1;
}
.ebook-close:hover { background: var(--sky-2); }
.ebook-skip { display: block; margin-top: 8px; background: none; border: 0; padding: 10px 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .ebook-backdrop, .ebook-card { animation: none; } }
.ebook-open { overflow: hidden; }

/* ---------- Rodapé ---------- */
.footer-grid-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .cases { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page-hero-grid, .about-band, .split, .story-row, .cta-box { grid-template-columns: 1fr; }
  .hero-photo, .hero-brand { justify-self: start; }
  .hero-brand { max-width: 520px; aspect-ratio: 5 / 4; }
  .story-row:nth-child(even) .story-img { order: 0; }
  .story-img { max-width: 480px; }
  .doors { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: 1fr 1fr; }
  .stats-list li { padding: 20px 14px 20px 0; }
  .stats-list li + li { border-left: 0; }
  .stats-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-actions { align-items: flex-start; }
  .cta-contact { text-align: left; }
}
@media (max-width: 640px) {
  .hero-photo-tag { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero-photo-tag strong { font-size: 22px; }
  .hero-float { font-size: 12.5px; padding: 9px 12px; gap: 8px; }
  .hero-float strong { font-size: 19px; }
  .hero-float-3 img { width: 58px; }
  .cases, .why, .svc-grid { grid-template-columns: 1fr; }
  .logos-track li { width: 150px; height: 78px; }
  .logos-track img { width: 134px; }
  .about-photo::after { display: none; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid-4 { grid-template-columns: 1fr; }
  .only-sankhya { flex-direction: column; align-items: flex-start; }
  .ebook-card { grid-template-columns: 1fr; padding: 26px 20px 18px; gap: 16px; }
  .ebook-cover { width: 120px; padding: 12px; }
  .ebook-cover b { font-size: 13px; }
  .ebook-cover img { width: 56px; }
  .ebook-card .btn { width: 100%; }
  .prod .btn { align-self: stretch; }
}

/* ---------- Política de privacidade ---------- */
.policy h2 { font-size: 21px; margin: 32px 0 10px; }
.policy h3 { font-size: 16px; margin: 16px 0 6px; }
.policy p { color: var(--text); }
.footer-bottom > a[href="/politica-de-privacidade"] { color: var(--on-dark-85); font-size: 14px; }
