/* ROOK v3 — landing page
   Sem framework. Fontes self-hosted. Paleta: cream / black / charcoal / warm gray / burnt orange. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* marca */
  --cream: #f2ede4;
  --black: #0c0c0c;
  --charcoal: #1f1e1b;
  --gray: #8a8580;
  --orange: #c8541f;

  /* derivados */
  --cream-2: #ece5d9;      /* faixas alternadas */
  --paper: #fbf9f5;        /* superfície de cards */
  --white: #ffffff;
  --text: #1f1e1b;
  --text-2: #57534d;       /* corpo de texto: contraste AA sobre cream */
  --text-3: #8a8580;       /* metadados */
  --line: #e3dbce;
  --line-2: #d6ccbc;
  --orange-ui: #bd4e1c;   /* laranja de botões: 4.8:1 com texto branco */
  --orange-text: #a9461a; /* laranja para texto pequeno sobre cream: 5:1 */
  --orange-d: #9e4118;
  --orange-soft: #f7e6da;
  --orange-tint: #fbefe6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 30, 27, .05);
  --shadow: 0 1px 2px rgba(31, 30, 27, .04), 0 8px 24px -12px rgba(31, 30, 27, .14);
  --shadow-lg: 0 2px 4px rgba(31, 30, 27, .04), 0 24px 60px -24px rgba(31, 30, 27, .28);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7.5vw, 96px);
  --header-h: 76px;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.ico { width: 18px; height: 18px; flex: none; }
/* ponto final dos títulos: quadrado laranja, como o da logo.
   O "." continua no HTML para leitores de tela e cópia de texto. */
.dot {
  display: inline-block; width: .17em; height: .17em; margin-left: .06em;
  background: var(--orange); vertical-align: baseline;
  overflow: hidden; text-indent: 1em; white-space: nowrap;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 14px;
}
.hero__title, .h2, .h3 { font-weight: 800; color: var(--black); letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.06; }
.h3 { font-size: clamp(27px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); line-height: 1.55; margin-top: 18px; max-width: 46ch; }
.body { color: var(--text-2); margin-top: 14px; max-width: 52ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange-ui); color: var(--white); box-shadow: 0 6px 18px -8px rgba(200, 84, 31, .7); }
.btn--primary:hover { background: var(--orange-d); }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { border-color: var(--orange); color: var(--black); background: transparent; }
.btn--outline:hover { background: var(--orange-tint); }
.btn--ghost {
  height: 44px; padding: 0 18px; font-size: 15px; color: var(--orange-text);
  border-color: rgba(200, 84, 31, .45); background: var(--paper); margin-top: 28px;
}
.btn--ghost:hover { border-color: var(--orange); background: var(--orange-tint); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 237, 228, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(242, 237, 228, .94); box-shadow: 0 6px 24px -18px rgba(31, 30, 27, .35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav a:not(.btn) { font-size: 15.5px; font-weight: 500; color: var(--charcoal); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--black); font-weight: 600; }
.nav__cta { display: none; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, 46vw, 700px);
  padding: clamp(40px, 5vw, 72px) 0;
}
.hero__grid { position: relative; z-index: 1; width: 100%; }
.hero__copy { max-width: 600px; }
.hero__title { font-size: clamp(38px, 4.6vw, 64px); }
.hero__lead { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--text-2); max-width: 44ch; margin-top: 24px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14.5px; color: var(--text-2); }
.hero__note .ico { width: 18px; height: 18px; color: var(--white); background: var(--orange); border-radius: 50%; padding: 2px; }

/* foto: ocupa a metade direita e se funde ao cream pela esquerda */
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 47%; margin: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* soluções */
.solutions__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 52px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin-top: 20px; color: var(--black); }
.card p { font-size: 15px; color: var(--text-2); line-height: 1.5; margin-top: 8px; }
.card__arrow { position: absolute; right: 22px; bottom: 20px; color: var(--orange); transition: transform .25s; }
.card__link:hover .card__arrow { transform: translateX(4px); }

.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orange-tint); color: var(--orange);
  border: 1px solid rgba(200, 84, 31, .12);
}
.icon-tile .ico { width: 24px; height: 24px; }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-tile--lg .ico { width: 30px; height: 30px; }

/* dores: o dono se reconhece antes de ver a solução */
.pains__head { max-width: 760px; }
.pains__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pain {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.pain__q { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--black); letter-spacing: -.01em; }
.pain__a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.pain__a span { grid-column: 1; font-size: 12.5px; color: var(--text-3); }
.pain__a b { grid-column: 1; font-size: 15px; font-weight: 700; color: var(--orange-text); }
.pain__a .ico { grid-column: 2; grid-row: 1 / span 2; color: var(--orange); transition: transform .2s; }
.pain__a:hover .ico { transform: translateX(4px); }
.pain__a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pains__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--charcoal); color: #ddd6cb;
}
.pains__cta p { font-size: 16.5px; }
.pains__cta b { color: var(--white); }

/* integrações: diagrama em largura total */
.wide__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.wide__head .body { margin-top: 30px; }
.wide__cta { display: flex; justify-content: center; }

/* diagrama "ROOK no centro": desenhado em código, linhas e fluxo animado via JS */
.flow {
  position: relative; display: grid; margin-top: 48px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "erp api crm" "email core sheets" "docs auto dash";
  gap: 56px 72px; align-items: center;
}
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow__lines .line { fill: none; stroke: #cdbcaa; stroke-width: 1.5; transition: stroke .25s, opacity .25s, stroke-width .25s; }
.flow__lines .end { fill: var(--orange); transition: opacity .25s; }
.flow__lines .pkt { fill: var(--orange); transition: opacity .25s; }
.flow.has-active .line { opacity: .28; }
.flow.has-active .end, .flow.has-active .pkt { opacity: .25; }
.flow.has-active .line.is-on { opacity: 1; stroke: var(--orange); stroke-width: 2; }
.flow.has-active .end.is-on, .flow.has-active .pkt.is-on { opacity: 1; }
.flow__label { display: none; }
.flow__caption { min-height: 1.6em; margin-top: 28px; text-align: center; font-size: 16px; color: var(--text-2); transition: color .2s; }
.flow__caption b { color: var(--orange-text); }

.node[data-node="erp"] { grid-area: erp; }
.node[data-node="api"] { grid-area: api; }
.node[data-node="crm"] { grid-area: crm; }
.node[data-node="email"] { grid-area: email; }
.node[data-node="sheets"] { grid-area: sheets; }
.node[data-node="docs"] { grid-area: docs; }
.node[data-node="auto"] { grid-area: auto; }
.node[data-node="dash"] { grid-area: dash; }
.core { grid-area: core; }

.node {
  position: relative; z-index: 1; outline: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px 8px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.node:hover, .node:focus-visible, .node.is-on { border-color: rgba(200, 84, 31, .45); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.node__head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.node__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--orange-tint); color: var(--orange); }
.node__ico .ico { width: 21px; height: 21px; }
.node__head b { flex: 1; font-size: 17px; font-weight: 700; color: var(--black); letter-spacing: -.01em; }
.node__chev { width: 16px; height: 16px; color: var(--text-3); }
.node__items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--charcoal); }
.node__items li + li { border-top: 1px solid #efe9df; }
.node__items .ico { width: 17px; height: 17px; color: var(--text-3); }
.node__desc { display: none; }
.st { margin-left: auto; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #1f8a4c; }
.st--warn { background: var(--orange); }
.st--off { background: #c9c2b8; }
.tg { position: relative; margin-left: auto; flex: none; width: 30px; height: 17px; border-radius: 999px; background: #d9d2c7; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tg.is-on { background: var(--orange-ui); }
.tg.is-on::after { left: 15px; }
.node__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 12px; }
.node__kpis div { display: grid; padding: 0 10px; }
.node__kpis div:first-child { padding-left: 0; }
.node__kpis div + div { border-left: 1px solid var(--line); }
.node__kpis b { font-size: 17px; font-weight: 700; color: var(--black); letter-spacing: -.02em; white-space: nowrap; }
.node__kpis span { font-size: 12px; color: var(--text-3); }
.node__kpis em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #1f8a4c; }
.node__spark { display: block; width: 100%; height: 48px; margin: 10px 0 6px; }

.core {
  position: relative; z-index: 1; justify-self: center; outline: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 176px; aspect-ratio: 1; border-radius: 28px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.core::before { content: ""; position: absolute; inset: -12px; border-radius: 36px; border: 1px dashed rgba(200, 84, 31, .4); }
.core__mark { width: 54px; }
.core__word { width: 108px; height: auto; }
.core__txt { display: none; }

/* blocos detalhados */
.section--alt { background: var(--cream-2); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 24px; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--charcoal); line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3L17 9' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* na prática: notebook + celular desenhados em código, mesmo sistema nas duas telas */
.control__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "visual head" "visual body";
  column-gap: clamp(40px, 5vw, 80px); align-items: center;
}
.control__head { grid-area: head; align-self: end; }
.control__visual { grid-area: visual; margin: 0; }
.control__body { grid-area: body; align-self: start; }

.benefits { display: grid; gap: 18px; margin-top: 32px; }
.benefits li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.benefit__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange-tint); color: var(--orange); border: 1px solid rgba(200, 84, 31, .12); }
.benefit__ico .ico { width: 20px; height: 20px; }
.benefits h3 { font-size: 17px; font-weight: 700; color: var(--black); letter-spacing: -.01em; line-height: 1.3; }
.benefits p { font-size: 15px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.control__cta { margin-top: 32px; }

.devices { position: relative; isolation: isolate; padding: 0 0 7% 0; container-type: inline-size; }
.devices::after { /* sombra no "chão" */
  content: ""; position: absolute; left: 4%; right: 10%; bottom: 3%; height: 8%;
  background: radial-gradient(closest-side, rgba(31, 30, 27, .22), transparent); z-index: -1;
}

/* notebook */
.laptop { width: 80%; }
.laptop__lid { background: #161615; border-radius: 16px 16px 6px 6px; padding: 2.4% 2.4% 3%; box-shadow: 0 30px 60px -30px rgba(31, 30, 27, .5); position: relative; }
.laptop__lid::before { content: ""; position: absolute; top: 1%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #2c2c2a; transform: translateX(-50%); }
.laptop__screen { aspect-ratio: 16 / 10; background: var(--white); border-radius: 4px; overflow: hidden; container-type: inline-size; }
.laptop__base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -6.5%;
  background: linear-gradient(180deg, #dcd8d2 0%, #bdb8b1 55%, #8f8a83 100%);
  border-radius: 2px 2px 18px 18px / 2px 2px 60% 60%;
}
.laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 40%; transform: translateX(-50%); background: #aaa59e; border-radius: 0 0 10px 10px; }

.lui { display: grid; grid-template-columns: 21% minmax(0, 1fr); height: 100%; font-size: 9px; font-size: 1.55cqw; color: var(--charcoal); }
.lui .ico { width: 1.25em; height: 1.25em; }
.lui__side { background: #faf8f4; border-right: 1px solid #efe9df; padding: 9% 7%; display: flex; flex-direction: column; gap: .35em; }
.lui__side img { width: 74%; height: auto; margin: 0 0 1.4em .5em; }
.lui__side span { display: flex; align-items: center; gap: .6em; padding: .55em .6em; border-radius: .5em; color: #77726b; font-weight: 500; }
.lui__side .is-active { background: var(--orange-tint); color: var(--orange); font-weight: 600; }
.lui__main { display: flex; flex-direction: column; gap: 1.1em; padding: 4.5% 5%; min-width: 0; }
.lui__top { display: flex; justify-content: space-between; align-items: center; }
.lui__top b { font-size: 1.8em; font-weight: 800; letter-spacing: -.02em; color: var(--black); }
.lui__top span { border: 1px solid #e8e2d8; border-radius: .45em; padding: .3em .7em; color: #8a8580; }
.lui__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; }
.lui__kpis div { border: 1px solid #efe9df; border-radius: .7em; padding: .9em 1em; display: grid; gap: .15em; }
.lui__kpis span { color: #8a8580; }
.lui__kpis b { font-size: 1.75em; font-weight: 700; letter-spacing: -.02em; color: var(--black); line-height: 1.2; white-space: nowrap; }
.lui__kpis em { font-style: normal; font-weight: 700; color: #1f8a4c; }
.lui__chart { flex: 1; min-height: 0; border: 1px solid #efe9df; border-radius: .7em; padding: .9em 1em .4em; display: flex; flex-direction: column; }
.lui__chart > span { font-weight: 600; }
.lui__chart svg { flex: 1; width: 100%; min-height: 0; margin-top: .4em; }

/* celular: proporções de iPhone (bisel fino, moldura metálica, ilha dinâmica) */
.mphone {
  --pw: 26cqw;
  position: absolute; right: 1cqw; bottom: 0; width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .175);
  background: #0b0b0b;
  box-shadow:
    0 0 0 calc(var(--pw) * .008) #3a3936,
    0 0 0 calc(var(--pw) * .016) #c9c4bc,
    0 0 0 calc(var(--pw) * .021) #8e8981,
    0 34px 60px -26px rgba(31, 30, 27, .55);
}
/* botão lateral (só o da direita, o esquerdo ficaria sobre o notebook) */
.mphone::before {
  content: ""; position: absolute; width: calc(var(--pw) * .016); border-radius: 2px; background: #a9a39b;
}
.mphone::before { right: calc(var(--pw) * -.034); top: 27%; height: 13%; }
.mphone__screen {
  position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; container-type: inline-size;
  background: #fbf9f5; border-radius: calc(var(--pw) * .145);
}
.mphone__island {
  position: absolute; z-index: 2; top: 2.6%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 3.6%; border-radius: 999px; background: #0b0b0b;
}
/* indicador de início */
.mphone__screen::after {
  content: ""; position: absolute; left: 50%; bottom: 1.3%; transform: translateX(-50%);
  width: 36%; height: .55%; border-radius: 999px; background: #1f1e1b;
}
.pui { display: flex; flex-direction: column; gap: 3.4cqw; height: 100%; padding: 5.2cqw 6cqw 7cqw; font-size: 9px; font-size: 5.4cqw; color: var(--charcoal); }
.pui .ico { width: 1.15em; height: 1.15em; }
.pui__status { display: flex; justify-content: space-between; align-items: center; padding: 0 3cqw; font-weight: 600; font-size: .9em; color: var(--black); }
.pui__sys { display: flex; align-items: center; gap: .35em; }
.pui__signal { display: flex; align-items: flex-end; gap: .12em; height: .7em; }
.pui__signal b { width: .17em; border-radius: .1em; background: currentColor; }
.pui__signal b:nth-child(1) { height: 35%; }
.pui__signal b:nth-child(2) { height: 55%; }
.pui__signal b:nth-child(3) { height: 78%; }
.pui__signal b:nth-child(4) { height: 100%; }
.pui__battery { position: relative; width: 1.55em; height: .72em; border-radius: .22em; border: .07em solid rgba(12, 12, 12, .45); }
.pui__battery::before { content: ""; position: absolute; inset: .1em; right: 30%; border-radius: .1em; background: currentColor; }
.pui__battery::after { content: ""; position: absolute; right: -.17em; top: 30%; width: .08em; height: 40%; border-radius: 0 .1em .1em 0; background: rgba(12, 12, 12, .45); }
.pui__head { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5cqw; }
.pui__head img { width: 42%; height: auto; }
.pui__avatar { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(135deg, #e9d9c6, #c9b49a); }
.pui__title { font-size: 1.9em; font-weight: 800; letter-spacing: -.02em; color: var(--black); margin-top: 1cqw; }
.pui__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.pui__kpis div { background: var(--white); border: .5px solid #e9e3d9; border-radius: .8em; padding: .7em .75em; display: grid; gap: .1em; }
.pui__kpis span { color: #8a8580; font-size: .82em; }
.pui__kpis b { font-size: 1.2em; font-weight: 700; color: var(--black); white-space: nowrap; }
.pui__card { position: relative; background: var(--white); border: .5px solid #e9e3d9; border-radius: .8em; padding: .8em .85em; display: grid; gap: .25em; }
.pui__card b { display: flex; align-items: center; gap: .4em; font-weight: 700; color: var(--black); }
.pui__card span { color: #6b665f; font-size: .85em; line-height: 1.35; }
.pui__card em { font-style: normal; font-weight: 700; color: var(--orange); font-size: .85em; }
.pui__card--alert { background: #fdf3ec; border-color: rgba(200, 84, 31, .25); }
.pui__card--alert b .ico { color: var(--orange); }
.pui__tabs { margin-top: auto; display: flex; justify-content: space-around; padding: .7em 0 0; border-top: .5px solid #e9e3d9; color: #a39d95; }
.pui__tabs i { display: grid; place-items: center; }
.pui__tabs .ico { width: 1.35em; height: 1.35em; }
.pui__tabs .is-active { color: var(--orange); }
.pui__btn { justify-self: start; margin-top: .3em; background: var(--orange-ui); color: var(--white) !important; padding: .45em 1.1em; border-radius: .55em; }


/* garantias, dentro de "Como trabalhamos" */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.promises li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.promises li + li { border-left: 1px solid var(--line); }
.promises__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); }
.promises__ico .ico { width: 20px; height: 20px; }
.promises p { display: grid; line-height: 1.3; }
.promises b { font-size: 15px; font-weight: 700; color: var(--black); }
.promises p span { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }

/* processo */
.steps__head { max-width: 760px; }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { display: inline-grid; place-items: center; height: 30px; min-width: 42px; padding: 0 10px; border-radius: 999px; background: var(--black); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.step:first-child .step__n { background: var(--orange-ui); color: var(--white); }
.step h3 { font-size: 18px; font-weight: 700; color: var(--black); margin-top: 18px; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -17px; width: 18px; height: 2px; background: var(--line-2); z-index: 1;
}

/* CTA final */
.cta { position: relative; overflow: hidden; }
.cta__mark { position: absolute; left: -84px; bottom: -36px; width: 190px; opacity: .09; pointer-events: none; }
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.cta__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 32px; }
.cta__facts li { display: grid; }
.cta__facts b { font-size: 22px; font-weight: 800; color: var(--black); letter-spacing: -.02em; }
.cta__facts span { font-size: 14px; color: var(--text-3); }
.cta__alt { margin-top: 32px; font-size: 15px; color: var(--text-2); }
.cta__alt a { color: var(--black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.cta__alt a:hover { color: var(--orange); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 36px); }
.form-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--black); }
.form-card__sub { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.field em { font-style: normal; font-weight: 400; color: var(--text-3); }
.field input, .field select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 10px;
  background: #fcfbf8; border: 1px solid var(--line-2); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%238a8580' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder { color: #b3ada4; }
.field input:hover, .field select:hover { border-color: #c4b9a7; }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgba(200, 84, 31, .12); }
.field__err { display: none; font-size: 12.5px; color: #b3261e; }
.field.is-invalid input { border-color: #b3261e; }
.field.is-invalid .field__err { display: block; }
.form-card__legal { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 12px; }
.form-card__legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { margin-top: 12px; font-size: 14px; padding: 10px 12px; border-radius: 8px; }
.form-msg--bad { background: #fbeae8; color: #8c1d18; }
.btn[disabled] { opacity: .7; cursor: progress; }
.form-done { text-align: center; padding: 32px 8px; outline: none; }
.form-done .icon-tile { margin-bottom: 18px; }
.form-done p { color: var(--text-2); margin-top: 8px; }

/* ---------- Página de privacidade ---------- */
.legal .header__inner { justify-content: space-between; }
.legal__back { height: 42px; padding: 0 16px; font-size: 14.5px; }
.doc { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc__lead { font-size: 18px; color: var(--text-2); margin-top: 18px; }
.doc h2 { font-size: 20px; font-weight: 700; color: var(--black); letter-spacing: -.01em; margin-top: 36px; }
.doc p, .doc li { color: var(--text-2); margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc a { color: var(--black); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.doc__date { margin-top: 40px !important; font-size: 14px; color: var(--text-3) !important; }
.legal .footer { padding: 0 0 28px; }
.legal .footer__bottom { margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #cfc8bd; padding: 56px 0 28px; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer__brand img { height: 28px; width: auto; }
.footer__brand p { margin-top: 14px; color: #a39d94; }
.footer__nav, .footer__contact { display: grid; gap: 8px; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #36342f; font-size: 13.5px; color: #8a8580; }

.mobile-cta { display: none; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2) { transition-delay: .07s; }
.js .cards .reveal:nth-child(3n) { transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flow::after { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { gap: 26px; }
  .solutions__grid { grid-template-columns: minmax(0, 1fr); }
  .solutions__intro { position: static; max-width: 640px; }
  .pains__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide__head { grid-template-columns: minmax(0, 1fr); }
  .wide__head .body { margin-top: 0; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .flow { gap: 44px 40px; }
  .node__items li { font-size: 13.5px; }
  .core { width: 150px; }
  .node__kpis div { padding: 0 6px; }
  .node__kpis b { font-size: 14.5px; }
  .node__kpis span { font-size: 11px; }
}

/* abaixo de 900px o diagrama vira um fluxo vertical: sistemas → ROOK → resultados */
@media (max-width: 900px) {
  .flow { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; padding-left: 30px; }
  .flow__lines, .flow__caption { display: none; }
  .flow::before {
    content: ""; position: absolute; left: 10px; top: 24px; bottom: 24px; width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(200, 84, 31, .55) 0 6px, transparent 6px 12px);
  }
  .flow::after { /* pacote de informação descendo pela linha */
    content: ""; position: absolute; left: 7px; top: 24px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange); box-shadow: 0 0 0 4px rgba(200, 84, 31, .15);
    animation: flowdown 7s linear infinite;
  }
  .flow__label { display: block; order: 1; text-align: left; margin: 4px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
  .node--in { order: 2; }
  .core { order: 3; }
  .flow__label--out { order: 4; margin-top: 10px; }
  .node--out { order: 5; }
  .node { padding: 14px 16px; }
  .node:hover, .node:focus-visible { transform: none; }
  .node::before, .core::after {
    content: ""; position: absolute; left: -25px; top: 30px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--cream-2); border: 2px solid var(--orange);
  }
  .node__head { border-bottom: 0; padding-bottom: 0; }
  .node__chev, .node__items, .node__spark { display: none; }
  .node__desc { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
  .node__kpis { padding-top: 14px; }
  .core {
    justify-self: stretch; width: auto; aspect-ratio: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start;
    gap: 6px 12px; padding: 16px; margin: 10px 0; border-radius: 16px; border-color: rgba(200, 84, 31, .35);
  }
  .core::before { display: none; }
  .core::after { top: 50%; margin-top: -5px; background: var(--orange); }
  .core__mark { width: 30px; }
  .core__word { width: 96px; }
  .core__txt { display: block; width: 100%; font-size: 14.5px; color: var(--text-2); }
}
@keyframes flowdown { from { top: 24px; } to { top: calc(100% - 32px); } }

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header__cta { margin-left: auto; height: 42px; padding: 0 16px; font-size: 14.5px; }
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: transparent; border: 1px solid var(--line-2); cursor: pointer; color: var(--black);
  }
  .menu-btn .ico { width: 22px; height: 22px; }
  .menu-btn .ico--close, .menu-btn[aria-expanded="true"] .ico--open { display: none; }
  .menu-btn[aria-expanded="true"] .ico--close { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 18px; height: 52px; }

  .hero { display: block; min-height: 0; padding-bottom: 36px; }
  .hero__media { position: relative; inset: auto; margin: 36px var(--gutter) 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 560px; }
  .hero__media img { -webkit-mask-image: none; mask-image: none; object-position: 60% 50%; }

  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .control__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "visual" "body"; }
  .control__head { max-width: 640px; }
  .control__visual { margin-top: 36px; max-width: 720px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises li:nth-child(odd) { border-left: 0; }
  .promises li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header__cta { display: none; }
  .menu-btn { margin-left: auto; }
  .logo img { height: 26px; }
  .eyebrow { font-size: 12px; letter-spacing: .14em; }

  /* hero */
  .hero { padding-top: 24px; }
  .hero__lead { margin-top: 18px; }
  .hero__actions { flex-direction: column; margin-top: 28px; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__note { font-size: 13.5px; align-items: flex-start; }
  .hero__note .ico { margin-top: 1px; }
  .hero__media { margin-top: 28px; border-radius: 16px; }


  /* soluções em lista: ícone à esquerda, leitura em uma coluna */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 16px; }
  .card .icon-tile { grid-row: span 2; width: 44px; height: 44px; align-self: start; }
  .card .icon-tile .ico { width: 22px; height: 22px; }
  .card h3 { grid-column: 2; font-size: 16.5px; margin: 0; }
  .card p { grid-column: 2; font-size: 14.5px; margin-top: 3px; }
  .card__arrow { position: static; grid-column: 3; grid-row: 1 / span 2; }

  /* dores */
  .pains__list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .pain { padding: 18px; gap: 14px; }
  .pain__q { font-size: 16.5px; }
  .pains__cta { padding: 18px; }
  .pains__cta .btn { width: 100%; height: 50px; }
  .pains__cta p { font-size: 15.5px; }

  .wide__cta { margin-top: 0; }

  /* na prática */
  .checks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .btn--ghost { width: 100%; height: 50px; }
  .control__visual { margin-top: 28px; }
  .laptop { width: 84%; }
  .devices { padding-bottom: 16%; }
  .mphone { --pw: 40cqw; }
  .benefits { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
  .control__cta { width: 100%; height: 50px; }


  /* processo */
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promises li { padding: 16px 18px; }
  .promises li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .step__n { grid-row: span 2; }
  .step h3 { margin-top: 2px; }

  /* contato */
  .fields { grid-template-columns: minmax(0, 1fr); }
  .cta__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cta__facts b { font-size: 18px; }
  .cta__facts span { font-size: 13px; line-height: 1.35; }
  .cta__mark { width: 160px; left: auto; right: -40px; top: -20px; bottom: auto; opacity: .07; }
  .form-card { padding: 22px 18px; border-radius: 16px; }

  .footer { padding-top: 44px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__nav, .footer__contact { gap: 2px; }
  .footer__nav a, .footer__contact a { padding: 6px 0; }

  /* CTA fixo: aparece depois do hero e some no formulário */
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(242, 237, 228, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform .3s;
  }
  .js .mobile-cta { transform: translateY(110%); }
  .js .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { height: 50px; }
  .mobile-cta__wa { width: 50px; flex: none; padding: 0; background: var(--paper); }
  .mobile-cta__wa .ico { width: 22px; height: 22px; color: var(--orange); }
}

