/* =========================================================
   PolyPixl · site institucional
   Linguagem visual herdada do Configurador de Sofá Modular
   ========================================================= */

:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --accent: #ff7e26;
  --accent-2: #ffbc50;
  --accent-rgb: 255, 126, 38;

  --paper: #efece7;
  --paper-2: #e9e6e1;
  --paper-3: #fbfaf8;
  --ink: #1d1c1a;
  --ink-dim: rgba(29, 28, 26, 0.64);
  --ink-faint: rgba(29, 28, 26, 0.42);
  --line: rgba(29, 28, 26, 0.09);
  --glass: rgba(252, 251, 249, 0.66);
  --glass-strong: rgba(252, 251, 249, 0.88);
  --shadow: 0 30px 80px -30px rgba(40, 30, 20, .28), 0 2px 10px rgba(40, 30, 20, .05);
  --shadow-sm: 0 14px 30px -14px rgba(40, 30, 20, .32);

  --night: #121110;
  --night-2: #1d1c1a;

  --radius: 20px;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* grão sutil, como no configurador */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 18px;
}
.eyebrow .n { font-family: var(--font-display); font-style: italic; letter-spacing: 0; font-size: 15px; text-transform: none; color: var(--accent); margin-right: 10px; }
.display {
  font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(40px, 5.6vw, 76px);
}
.h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -0.005em; }
.h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; font-size: clamp(28px, 2.8vw, 38px); }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--ink-dim); max-width: 34em; }
.small { font-size: 13px; color: var(--ink-faint); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 14px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), background .3s, box-shadow .3s, color .3s;
}
.btn:active { transform: scale(.96); }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.btn-primary:hover { background: #000; box-shadow: 0 16px 30px -12px rgba(var(--accent-rgb), .6); }
.btn-ghost { background: rgba(29,28,26,.06); }
.btn-ghost:hover { background: rgba(29,28,26,.1); }
.btn-accent { color: #1d1c1a; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 14px 30px -14px rgba(var(--accent-rgb), .8); }
.btn-accent:hover { box-shadow: 0 18px 36px -12px rgba(var(--accent-rgb), .9); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }
.link svg { width: 14px; height: 14px; transition: transform .35s var(--spring); }
.link:hover svg { transform: translate(2px, -2px); }

/* ---------- topo ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 0; transition: padding .4s var(--ease); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; }
.topbar-inner {
  display: flex; align-items: center; gap: 28px; width: 100%;
  padding: 10px 10px 10px 22px; border-radius: 18px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.topbar.scrolled { padding: 10px 0; }
.topbar.scrolled .topbar-inner {
  background: var(--glass-strong); border-color: rgba(255,255,255,.8); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 28px; width: auto; }
.brand-sub { display: none; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-dim); padding: 0 0 4px 14px; border-left: 1px solid rgba(0,0,0,.15); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--ink-dim); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: color .3s, background .3s; }
.nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.05); }
.lang a { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-dim); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.18); }
.topbar .btn { height: 42px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; background: rgba(0,0,0,.05); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }


/* ---------- seções ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
/* o subtítulo alinha só com o título grande: a linha pequena de cima fica numa linha própria da grade */
.section-head > div { display: contents; }
.section-head .eyebrow { grid-column: 1; grid-row: 1; justify-self: start; }
.section-head .h2 { grid-column: 1; grid-row: 2; }
.section-head .lead { grid-column: 2; grid-row: 2; justify-self: end; }

/* clientes */
.clients { padding: 40px 0 10px; }
.clients .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.clients p { font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); flex: none; }
.clients ul { list-style: none; display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; flex: 1; justify-content: space-between; }
.clients img { height: 34px; width: auto; filter: grayscale(1) contrast(.9); opacity: .62; mix-blend-mode: multiply; transition: opacity .4s, filter .4s; }
.clients li.immense img { height: 30px; }
.clients li.newline img { height: 44px; opacity: .8; }
.clients a:hover img { opacity: 1; filter: none; }

/* ---------- cases ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.case + .case { margin-top: clamp(90px, 11vw, 160px); }
.case.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.case.flip .case-media { order: 2; }
.case-media { position: sticky; top: 110px; }
.frame {
  position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 100px -40px rgba(40, 30, 20, .45), 0 0 0 1px rgba(0,0,0,.06);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f6f4f1; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,.12); }
.frame-bar span { margin-left: 14px; font-size: 11px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.frame-2 { position: absolute; width: 46%; right: -6%; bottom: -12%; }
.frame-2 img { aspect-ratio: 16 / 10; }
.case-logo { height: 34px; width: auto; margin-bottom: 26px; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; }
.case .h3 { margin-bottom: 18px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; list-style: none; }
.case-meta li { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--ink-dim); }
.case p { color: var(--ink-dim); }
.case p + p { margin-top: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 32px 0; border-top: 1px solid var(--line); }
.metric { padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.metric:nth-child(odd) { padding-right: 18px; }
.metric:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.metric .stat-val { font-size: clamp(34px, 3.4vw, 46px); }
.metric .stat-val sup { font-size: .45em; vertical-align: .9em; margin-left: 2px; color: var(--accent); font-weight: 500; }
.metric p { font-size: 13px; line-height: 1.5; margin-top: 6px; color: var(--ink-dim); }
.quote {
  position: relative; padding: 24px 24px 22px; border-radius: 18px; margin-bottom: 28px;
  background: var(--glass); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--shadow-sm);
}
.quote blockquote { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ink); }
.quote blockquote::before { content: "“"; font-size: 54px; line-height: 0; vertical-align: -.36em; margin-right: 4px; color: var(--accent); }
.quote figcaption { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.quote figcaption .ph { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #e3ded6, #cfc8bd); flex: none; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--ink-faint); }

/* ---------- demos autorais ---------- */
.dark { background: var(--night); color: #f4f1ec; }
.dark .eyebrow { color: rgba(244,241,236,.6); }
.dark .h2 { color: #fff; }
.dark .lead, .dark p { color: rgba(244,241,236,.66); }
.dark .small { color: rgba(244,241,236,.45); }
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none;
  background: #1b1a18; border: 1px solid rgba(255,255,255,.07);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.demo:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 40px 80px -40px rgba(var(--accent-rgb), .45); }
.demo-shot { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; }
.demo-shot > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.demo-shot > img.alt { position: absolute; inset: 0; opacity: 0; }
.demo:hover .demo-shot > img { transform: scale(1.04); }
.demo:hover .demo-shot > img.alt { opacity: 1; }
.demo-phone {
  position: absolute; right: 16px; bottom: -40px; width: 21%; border-radius: 12px; overflow: hidden;
  border: 3px solid #0d0c0b; box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
  transition: transform .8s var(--ease);
}
.demo:hover .demo-phone { transform: translateY(-26px); }
.demo-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-body .h3 { font-size: 34px; color: #fff; }
.demo-body p { font-size: 14px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; list-style: none; }
.demo-tags li { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(244,241,236,.75); }
.demo-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.demo-go svg { width: 14px; height: 14px; transition: transform .35s var(--spring); }
.demo:hover .demo-go svg { transform: translate(3px, -3px); }

/* ---------- capacidades ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cap { padding: 34px 30px 38px 0; border-bottom: 1px solid var(--line); }
.cap:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.cap .n { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--accent); }
.cap h3 { font-size: 17px; font-weight: 600; margin: 14px 0 8px; letter-spacing: -0.005em; }
.cap p { font-size: 14px; color: var(--ink-dim); }

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; list-style: none; }
.step {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.05);
  transition: background .3s, transform .45s var(--spring), box-shadow .35s var(--ease);
}
.step:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step .n { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent); }
.step .n small { font-family: var(--font-ui); font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.step h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 16.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.05); flex: none; transition: background .3s, transform .4s var(--spring); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--accent); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-dim); font-size: 15px; }

/* ---------- contato ---------- */
.contact { padding: 0 0 clamp(60px, 8vw, 100px); }
.contact-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 84px);
  background: radial-gradient(ellipse 80% 120% at 85% 0%, #2a2724 0%, #151413 60%); color: #f4f1ec;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 50px; align-items: end;
}
.contact-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 65%); pointer-events: none; }
.contact-card .h2 { color: #fff; }
.contact-card .lead { color: rgba(244,241,236,.68); margin-top: 20px; }
.contact-list { list-style: none; display: grid; gap: 10px; position: relative; z-index: 1; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .3s, border-color .3s, transform .4s var(--spring);
}
.contact-list a:hover { background: rgba(255,255,255,.1); border-color: rgba(var(--accent-rgb), .5); transform: translateX(4px); }
.contact-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--accent-2); flex: none; }
.contact-list b { display: block; font-size: 14px; font-weight: 600; }
.contact-list span { font-size: 12.5px; color: rgba(244,241,236,.55); }

/* ---------- rodapé ---------- */
.footer { padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 22px; width: auto; opacity: .85; }
.footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- revelação ao rolar ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.hero .rv { transition-delay: calc(200ms + var(--d, 0) * 120ms); }

/* ---------- página de texto (política) ---------- */
.doc { padding: 150px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { margin-bottom: 30px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-dim); margin-bottom: 10px; }
.doc ul { padding-left: 20px; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; }
  .topbar-inner { gap: 16px; }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .nav, .topbar .btn-top { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  body.menu-open .nav {
    display: flex; flex-direction: column; position: fixed; left: 12px; right: 12px; top: 76px; padding: 12px;
    background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8);
  }
  body.menu-open .nav a { font-size: 16px; padding: 12px 14px; }
  .topbar-inner { padding-left: 16px; gap: 14px; }
}
@media (max-width: 900px) {


  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 28px; }
  .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .case-media { position: relative; top: 0; margin-bottom: 26px; }
  .frame-2 { width: 42%; right: -2%; bottom: -10%; }
  .caps { grid-template-columns: 1fr 1fr; }
  .cap:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .cap:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { height: 24px; }
  .lang a { padding: 5px 8px; }
  .demos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .cap:nth-child(even) { padding-left: 0; border-left: 0; }
  .cap { padding-right: 0; }
  .metric .stat-val { font-size: 32px; }
  .faq details p { padding-right: 0; }
  .clients .wrap { gap: 22px; }
  .clients ul { justify-content: flex-start; gap: 28px 36px; }
  .clients img { height: 28px; }
  .clients li.newline img { height: 36px; }
  .quote blockquote { font-size: 19px; }
  .btn { height: 48px; }
  .hero-cta .btn { flex: 1; }
}


@media (max-width: 900px) {
  .clients .wrap { flex-direction: column; align-items: flex-start; }
  .clients ul { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 20px; }
}
@media (max-width: 640px) {
  .clients img { height: 24px; }
  .clients li.newline img { height: 32px; }
  .clients li.immense img { height: 22px; }
}


/* =========================================================
   HERO · mini-configurador
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 55% 70% at 70% 46%, #fbfaf8 0%, #efece7 52%, #dcd8d1 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; z-index: 2; }
.hero-stage { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.ready .hero-stage { opacity: 1; }
.hero-stage canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: pan-y; }
.hero-stage.grab canvas { cursor: grab; }
.hero-stage.grabbing canvas { cursor: grabbing; }

.hero-grid {
  position: relative; z-index: 3; pointer-events: none;
  min-height: 100svh; padding-top: 128px; padding-bottom: 72px;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "copy space" "proof dock";
  grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); row-gap: 36px;
}
.hero-copy { grid-area: copy; align-self: center; max-width: 560px; pointer-events: auto; }
.hero-copy .display { margin-bottom: 26px; }
.hero-copy .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-space { grid-area: space; position: relative; min-height: 420px; }
.hero-poster {
  position: absolute; left: 50%; top: 52%; width: 74%; transform: translate(-50%, -50%);
  transition: opacity 1.2s var(--ease); pointer-events: none;
}
.hero.ready .hero-poster { opacity: 0; }
.hero-label {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -8px rgba(40,30,20,.3);
  opacity: 0; transition: opacity 1s .3s var(--ease);
}
.hero.ready .hero-label { opacity: 1; }
.hero-label em { font-family: var(--font-display); font-size: 19px; font-style: italic; color: var(--accent); }
.hero-label span { font-size: 11.5px; font-weight: 600; color: var(--ink-dim); letter-spacing: .02em; }
.hero-hint { position: absolute; right: 0; bottom: 0; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-faint); }

.hero-proof { grid-area: proof; align-self: center; display: flex; gap: 34px; flex-wrap: wrap; pointer-events: auto; }
.stat-label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.stat-val { display: block; margin-top: 4px; font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat-val small { font-size: 12px; color: var(--ink-dim); margin-left: 2px; letter-spacing: 0; }

/* barra de controle: mesma linguagem da barra de vistas do configurador */
.hero-dock {
  grid-area: dock; justify-self: center; align-self: center; pointer-events: auto;
  position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 18px;
  background: var(--glass); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  opacity: 0; transform: translateY(12px); transition: opacity 1s .2s var(--ease), transform 1s .2s var(--ease);
}
.hero.ready .hero-dock { opacity: 1; transform: none; }
.dock-group { display: flex; align-items: center; gap: 4px; }
.dock-sep { width: 1px; height: 26px; background: rgba(0,0,0,.1); margin: 0 6px; }
.comp {
  width: 44px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-dim);
  transition: background .3s, color .3s, transform .35s var(--spring), opacity .4s;
}
.comp svg { width: auto; height: 18px; max-width: 32px; fill: currentColor; stroke: none; }
.comp svg rect.p { opacity: .45; }
.comp:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.comp:active { transform: scale(.92); }
.comp[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hero-dock:not(.modules-ready) .comp.needs-mod { opacity: .35; pointer-events: none; }
.mat-sw {
  width: 32px; height: 32px; margin: 0 2px; border-radius: 10px; background-size: 220%; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px -3px rgba(0,0,0,.25);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.mat-sw:hover { transform: translateY(-2px); }
.mat-sw[aria-pressed="true"] { transform: scale(1.04) rotate(-4deg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.dock-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-dim); transition: background .3s, color .3s; }
.dock-play:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.dock-play .off { display: none; }
.dock-play[aria-pressed="false"] .on { display: none; }
.dock-play[aria-pressed="false"] .off { display: block; }
.dock-bar { position: absolute; left: 18px; right: 18px; bottom: 3px; height: 2px; border-radius: 2px; overflow: hidden; }
.dock-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* cotas (posicionadas pelo hero3d.js) */
.dim-label {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); box-shadow: 0 4px 16px -6px rgba(40,30,20,.25);
  white-space: nowrap; opacity: 0; transition: opacity .8s var(--ease); will-change: transform;
}
.hero.ready .dim-label:not(:empty) { opacity: 1; }
.hero.no3d .hero-poster { opacity: 1; }
.hero.no3d .hero-dock, .hero.no3d .hero-hint, .hero.no3d .hero-label { display: none; }

@media (max-width: 1100px) {
  .hero-proof { gap: 22px; }
  .hero-proof > div:nth-child(3) { display: none; }
  .comp { width: 38px; }
  .mat-sw { width: 28px; height: 28px; }
}
@media (max-width: 900px) {
  .hero-grid {
    min-height: auto; padding-top: 110px; padding-bottom: 56px; row-gap: 22px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto;
    grid-template-areas: "copy" "space" "dock" "proof";
  }
  .hero-copy { max-width: none; }
  .hero-space { min-height: 0; height: min(84vw, 480px); }
  .hero-poster { width: 88%; }
  .hero-hint { display: none; }
  .hero-dock { justify-self: stretch; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 8px; }
  .hero-dock .dock-sep:first-of-type { display: none; }
  .hero-dock .dock-group:first-child { width: 100%; justify-content: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .comp { width: 44px; }
  .mat-sw { width: 34px; height: 34px; }
  .hero-proof { justify-content: space-between; }
  .hero-proof > div:nth-child(3) { display: block; }
  .stat-val { font-size: 23px; }
}
@media (max-width: 380px) { .comp { width: 38px; } .mat-sw { width: 30px; height: 30px; } .hero-proof > div:nth-child(3) { display: none; } }
@media (max-width: 900px) {
  .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-proof .stat-label { letter-spacing: .14em; min-height: 2.6em; }
}
@media (max-width: 380px) { .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- blog ---------- */
.blog-top { padding-top: clamp(140px, 16vw, 190px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-3); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .4); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.12; }
.post-card-body p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.post-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.post-go svg { width: 14px; height: 14px; transition: transform .35s var(--spring); }
.post-card:hover .post-go svg { transform: translate(3px, -3px); }
.post-card.feat { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.post-card.feat .post-thumb { aspect-ratio: auto; min-height: 340px; }
.post-card.feat .post-card-body { padding: clamp(28px, 4vw, 52px); justify-content: center; gap: 16px; }
.post-card.feat .post-card-title { font-size: clamp(30px, 3.2vw, 44px); }
.post-card.feat p { -webkit-line-clamp: 4; font-size: 15.5px; }

/* artigo */
.post { padding-top: clamp(120px, 14vw, 170px); }
.post-head, .prose { max-width: 800px; }
.post-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-dim); text-decoration: none; margin-bottom: 26px; }
.post-back svg { width: 16px; height: 16px; }
.post-back:hover { color: var(--accent); }
.post-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 22px; text-wrap: balance; }
.post-cover { max-width: 1040px; margin: clamp(34px, 5vw, 56px) auto; }
.post-cover img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.75; color: rgba(29, 28, 26, .82); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; color: var(--ink); margin-top: 1.9em; }
.prose h3 { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; font-family: var(--font-display); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-end { padding-bottom: clamp(60px, 8vw, 100px); }
.post-cta {
  max-width: 1040px; margin: clamp(56px, 7vw, 90px) auto 0; position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(32px, 5vw, 60px); color: #f4f1ec; background: radial-gradient(ellipse 80% 120% at 85% 0%, #2a2724 0%, #151413 60%);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end;
}
.post-cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 65%); pointer-events: none; }
.post-cta .h3 { color: #fff; margin-bottom: 14px; }
.post-cta p { color: rgba(244, 241, 236, .68); font-size: 15px; line-height: 1.65; }
.post-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: relative; z-index: 1; }
.post-more { margin-top: clamp(64px, 8vw, 100px); }
.post-more .post-card-title { font-size: 23px; }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.feat { grid-template-columns: 1fr; }
  .post-card.feat .post-thumb { aspect-ratio: 16 / 10; min-height: 0; }
  .post-more .post-grid > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-more .post-grid > :nth-child(3) { display: flex; }
  .post-cta { grid-template-columns: 1fr; gap: 24px; }
  .prose { font-size: 16.5px; }
  .post-cover img { border-radius: 16px; }
}
