/* Micael Marques. CTO as a service.
   Sistema da AraraHQ (ararahq.com/design): Geist 640 apertada, tinta e teal,
   botão teal profundo, campos de lavagem, teal e plate. A energia vem do movimento
   com mola e do documento de diagnóstico que se preenche sozinho. */

:root {
  /* paleta Arara */
  --teal: #1C99A7;
  --teal-deep: #1C7682;
  --teal-hover: #14555E;
  --ink: #081212;
  --paper: #F4F8FA;
  --wash: #D4F9F9;
  --wash-soft: #E9FBFB;
  --mint: #77E7E9;
  --gray: #4F6467;
  --line: #CFE0E2;
  --gold: #F3B64B;
  --gold-wash: #FDF1DC;
  --gold-deep: #A8690F;
  --flag: #B4231F;
  --plate: #0F343D;
  --plate-2: #0B2830;
  --deep: #07363B;
  --white: #FFFFFF;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-2xl: 40px;
  --shadow-sm: 0 1px 2px -1px rgba(10,26,30,.12), 0 2px 6px -2px rgba(10,26,30,.1);
  --shadow-md: 0 2px 4px -2px rgba(10,26,30,.1), 0 8px 20px -8px rgba(10,26,30,.16);
  --shadow-lg: 0 4px 8px -4px rgba(10,26,30,.1), 0 20px 48px -16px rgba(10,26,30,.2);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: linear(0, .0206 1.9%, .0781 4%, .4055 12.2%, .6199 17.6%, .7522 21.7%, .8547 25.9%, .9276 30.2%, .9738 34.8%, .9974 40.1%, 1.0084 45.4%, 1.0092 52.5%, 1.0033 68.2%, 1);

  --page: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--wash); color: var(--ink); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--page) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: calc(820px + var(--pad) * 2); }
.center { text-align: center; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* Tipografia Arara: Geist 640, entrelinha curta, espaçamento apertado */
.hero__title, .h2, .plate__title, .turn__text { font-weight: 640; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
.hl { color: var(--teal); }
.h2 { font-size: clamp(36px, 4.6vw, 60px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--gray); max-width: 52ch; margin-top: 18px; text-wrap: pretty; }

/* Botão Arara: teal profundo, pílula, seta que anda */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal-deep); color: var(--white); border-radius: 999px;
  font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  padding: 11px 18px; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: background-color .25s, transform .5s var(--spring), box-shadow .3s;
}
.btn .ico { transition: transform .5s var(--spring); }
.btn:hover { background: var(--teal-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.96); }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--wash); }
.link { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: color .25s, background-size .4s var(--ease-out); }
.link:hover { color: var(--teal-deep); }
.link--mint { color: var(--mint); }
.link--mint:hover { color: var(--white); }

/* Nav flutuante em pílula, como na Arara */
.nav { position: fixed; z-index: 40; top: 14px; left: 0; right: 0; padding-inline: var(--pad); }
.nav__pill {
  max-width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.nav.is-stuck .nav__pill { box-shadow: var(--shadow-md); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; }
.mark { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 24px; font-size: 14px; color: var(--gray); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding-top: 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, var(--wash) 0%, rgba(212,249,249,0) 70%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 7vh, 88px) clamp(56px, 9vh, 104px); }
.hero__title { font-size: clamp(44px, 6.2vw, 84px); margin-bottom: 26px; }
.hero__sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--gray); max-width: 44ch; margin-bottom: 36px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 24px; }
.hero__note { font-size: 14px; color: var(--gray); }

/* O documento */
.hero__art { position: relative; }
.doc { position: relative; background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-lg); border: 1px solid rgba(10,26,30,.08); overflow: hidden; }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc__title { font-weight: 640; font-size: 19px; letter-spacing: -.035em; }
.doc__status { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-deep); white-space: nowrap; }
.doc__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.doc__status .s2 { display: none; }
.doc__h { margin: 18px 0 6px; font-size: 12px; font-weight: 600; color: var(--gray); }
.doc__rows li { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.sev { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 0; text-align: center; border-radius: 999px; width: 66px; }
.sev--1 { background: #FBE3E2; color: var(--flag); }
.sev--2 { background: var(--gold-wash); color: var(--gold-deep); }
.sev--3 { background: var(--wash); color: var(--teal-deep); }
.doc__plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc__plan div { position: relative; background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.doc__plan .ico { position: absolute; bottom: 10px; right: 10px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--teal); color: var(--white); }
.doc__plan b { display: block; font-weight: 640; font-size: 19px; letter-spacing: -.04em; }
.doc__plan span { font-size: 13px; color: var(--gray); }
.doc__sign { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc__sign img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.doc__sign p { display: grid; font-size: 14px; line-height: 1.3; }
.doc__sign b { font-weight: 600; }
.doc__sign span { color: var(--gray); font-size: 13px; }

/* Faixa de logos no campo de lavagem */
.logos { background: var(--wash); padding-block: 30px 34px; text-align: center; }
.logos__label { font-size: 14px; font-weight: 600; color: var(--deep); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; padding-inline: clamp(24px, 3.4vw, 48px); }
.marquee__track a { display: flex; align-items: center; height: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lg { width: auto; filter: brightness(0); opacity: .62; transition: opacity .25s; }
.marquee__track a:hover .lg { opacity: 1; }
.lg--pulse { height: 38px; }
.lg--pandora { height: 28px; }
.lg--flux { height: 32px; }
.lg--serasa { height: 42px; }
.lg--creditas { height: 26px; }
.lg--accountfy { height: 26px; }

/* Seções */
.section { padding-block: clamp(88px, 13vh, 144px); }

/* Sinais: cartões com a mesma etiqueta de gravidade do documento */
.signs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.signs li { grid-column: span 2; background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(10,26,30,.06); transition: transform .6s var(--spring), box-shadow .3s; }
.signs li:nth-child(4) { grid-column: 2 / span 2; }
.signs li:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.signs p { margin-top: 16px; font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.03em; line-height: 1.25; }

/* Virada: campo teal */
.turn { background: var(--teal); padding-block: clamp(80px, 12vh, 128px); overflow: hidden; }
.turn__text { font-size: clamp(34px, 4.8vw, 64px); max-width: 22ch; color: var(--deep); }
.turn__text span { color: var(--white); }

/* Como funciona: trilho que se desenha */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--teal); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
.steps.is-in::before { transform: scaleX(1); }
.steps li { position: relative; }
.steps__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--teal-deep); font-weight: 640; font-size: 22px; box-shadow: 0 0 0 6px var(--paper), var(--shadow-md); transition: background-color .4s, color .4s; }
.steps.is-in li:nth-child(1) .steps__n { background: var(--teal-deep); color: var(--white); transition-delay: .3s; }
.steps.is-in li:nth-child(2) .steps__n { background: var(--teal-deep); color: var(--white); transition-delay: .9s; }
.steps.is-in li:nth-child(3) .steps__n { background: var(--teal-deep); color: var(--white); transition-delay: 1.5s; }
.steps__when { margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--teal-deep); }
.steps h3 { margin-top: 6px; font-weight: 640; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.045em; line-height: 1.1; }
.steps li > p:last-child { margin-top: 10px; color: var(--gray); max-width: 34ch; }

/* Prova: campo de lavagem com rosto */
.proof { background: var(--wash-soft); }
.proof__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.proof__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.proof__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.proof__photo:hover img { transform: scale(1.04); }
.proof__photo figcaption { position: absolute; left: 14px; bottom: 14px; display: grid; padding: 10px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 14px; line-height: 1.3; }
.proof__photo figcaption span { color: var(--gray); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 4vw, 56px); margin-block: 36px; padding-block: 24px; border-block: 1px solid var(--line); }
.facts b { display: block; font-weight: 640; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.05em; line-height: 1; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--gray); max-width: 16ch; }
.proof__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Dúvidas */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(10,26,30,.06); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 18px; letter-spacing: -.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--wash); color: var(--teal-deep); transition: transform .5s var(--spring), background-color .25s; }
.faq summary:hover .ico { background: var(--mint); }
.faq details[open] summary .ico { transform: rotate(135deg); background: var(--teal-deep); color: var(--white); }
.faq details p { padding: 0 22px 22px; color: var(--gray); max-width: 62ch; }

/* Fechamento: plate */
.close { padding-block: clamp(24px, 4vh, 48px) 0; }
.plate { position: relative; overflow: hidden; background: var(--plate); color: var(--white); border-radius: var(--r-2xl); padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px); text-align: center; isolation: isolate; }
.plate::before, .plate::after { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(10px); }
.plate::before { left: -15%; top: -40%; background: radial-gradient(closest-side, rgba(28,153,167,.55), transparent); animation: drift 12s ease-in-out infinite alternate; }
.plate::after { right: -18%; bottom: -55%; background: radial-gradient(closest-side, rgba(119,231,233,.28), transparent); animation: drift 16s ease-in-out infinite alternate-reverse; }
.plate__title { font-size: clamp(40px, 5.6vw, 76px); max-width: 15ch; margin-inline: auto; }
.plate__title span { color: var(--mint); }
.plate__sub { color: rgba(255,255,255,.76); font-size: clamp(17px, 1.35vw, 20px); max-width: 44ch; margin: 20px auto 40px; }
.plate__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 36px 40px; color: var(--gray); font-size: 14px; }
.foot p { margin-right: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a:hover { color: var(--ink); }
.powered { display: inline-flex; align-items: center; gap: 10px; opacity: .85; transition: opacity .25s; }
.powered:hover { opacity: 1; }
.powered img { width: 84px; height: auto; }

/* ---------- Movimento ---------- */
/* hero entra pelo CSS */
[data-in] { animation: rise .9s var(--ease-out) both; }
.hero__sub[data-in] { animation-delay: .08s; }
.hero__cta[data-in] { animation-delay: .16s; }
.hero__note[data-in] { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* o documento: entra, a varredura passa, os achados aparecem, o plano fica pronto */
.doc--live { animation: docIn 1s var(--ease-out) .2s both, float 7s ease-in-out 3.6s infinite; }
@keyframes docIn { from { opacity: 0; transform: translateY(28px) rotate(2deg) scale(.97); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.doc__scan { position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(119,231,233,.35) 70%, rgba(28,153,167,.6) 100%); opacity: 0; animation: scan 1.8s var(--ease) .9s both; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-80px); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(460px); } }
.doc__rows li { animation: rowIn .6s var(--ease-out) both; }
.doc__rows li:nth-child(1) { animation-delay: 1.1s; }
.doc__rows li:nth-child(2) { animation-delay: 1.4s; }
.doc__rows li:nth-child(3) { animation-delay: 1.7s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } }
.doc__rows .sev { animation: pop .7s var(--spring) both; }
.doc__rows li:nth-child(1) .sev { animation-delay: 1.2s; }
.doc__rows li:nth-child(2) .sev { animation-delay: 1.5s; }
.doc__rows li:nth-child(3) .sev { animation-delay: 1.8s; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.doc__plan .ico { animation: pop .7s var(--spring) both; }
.doc__plan div:nth-child(1) .ico { animation-delay: 2.2s; }
.doc__plan div:nth-child(2) .ico { animation-delay: 2.45s; }
.doc__plan div:nth-child(3) .ico { animation-delay: 2.7s; }
.doc__status { animation: done 0s linear 3s both; }
.doc__status .s1 { animation: hide 0s linear 3s both; }
.doc__status .s2 { display: inline; animation: show 0s linear 3s both; }
.doc__status i { animation: blink 1s ease-in-out infinite; }
@keyframes done { to { background: var(--wash); color: var(--teal-deep); } }
@keyframes hide { to { display: none; } }
@keyframes show { from { display: none; } }
@keyframes blink { 50% { opacity: .25; } }

/* o resto aparece ao rolar */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .9s var(--spring); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal .signs li:nth-child(2) { transition-delay: .06s; }
.js-reveal .signs li:nth-child(3) { transition-delay: .12s; }
.js-reveal .signs li:nth-child(4) { transition-delay: .18s; }
.js-reveal .signs li:nth-child(5) { transition-delay: .24s; }
.js-reveal .signs li.is-in:hover { transform: translateY(-6px) rotate(-.6deg); transition-delay: 0s; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; }
  .signs { grid-template-columns: 1fr 1fr; }
  .signs li, .signs li:nth-child(4) { grid-column: auto; }
  .signs li:nth-child(5) { grid-column: 1 / -1; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__photo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 10px; }
  .nav__pill { padding-left: 14px; gap: 12px; }
  .nav .btn { padding: 9px 14px; font-size: 13px; }
  .nav .btn .ico { display: none; }
  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(38px, 11vw, 50px); }
  .hero__cta .btn { width: 100%; }
  .signs { grid-template-columns: 1fr; }
  .signs li:nth-child(5) { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; transform-origin: top; transform: scaleY(0); }
  .steps.is-in::before { transform: scaleY(1); }
  .steps li { padding-left: 76px; }
  .steps__n { position: absolute; left: 0; top: 0; }
  .steps__when { margin-top: 4px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .facts span { font-size: 13px; }
  .doc__plan b { font-size: 16px; }
  .doc__plan .ico { width: 16px; height: 16px; bottom: 8px; right: 8px; }
  .foot p { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .doc__status .s1 { display: none; }
  .doc__status { background: var(--wash); color: var(--teal-deep); }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .steps::before { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 16px; }
  .marquee__track li[aria-hidden] { display: none; }
}
