/*
 * reprepro.com.br — the presentation site. Plain CSS, no build step: these files are uploaded as
 * they are to public_html on the shared hosting. No inline style attributes anywhere, so the
 * Content-Security-Policy in .htaccess can keep style-src to 'self' and Google Fonts.
 */

:root {
  --ink: #141b2d;
  --ink-2: #3b4559;
  --muted: #4a5468;
  --subtle: #5b6578;
  --line: #e6eaf2;
  --line-strong: #d5dbe7;
  --ground: #ffffff;
  --ground-2: #f5f7fb;
  --night: #0f1630;
  --night-text: #c3cbdd;
  --accent: #2b5fd9;
  --accent-ink: #1e46a8;
  --accent-soft: #e9effc;
  --accent-glow: rgba(43, 95, 217, 0.35);
  --amber: #f2b544;
  --ok: #178a45;
  --ok-soft: #e3f6ea;
  --whatsapp: #0f7f38;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-ink);
}

a:hover {
  color: #14306f;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  display: block;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand__name span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 10px 12px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--ground-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 17px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.btn--primary:hover {
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--ink);
}

.btn--dark {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}

.btn--dark:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .nav__link {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 85% 10%, #dfe8fb 0%, rgba(255, 255, 255, 0) 60%), var(--ground);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero__copy {
  flex: 1 1 480px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.6s ease-out infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.rotator {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--accent);
}

.rotator__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.rotator__word.is-active {
  opacity: 1;
  transform: none;
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--subtle);
}

.enter {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.enter--1 {
  animation-delay: 0.08s;
}

.enter--2 {
  animation-delay: 0.16s;
}

.enter--3 {
  animation-delay: 0.24s;
}

.enter--4 {
  animation-delay: 0.32s;
}

/* ---------- Phone ---------- */

.showcase {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.phone {
  width: 300px;
  max-width: 100%;
  height: 610px;
  border-radius: 46px;
  background: var(--ink);
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(20, 27, 45, 0.25),
    0 0 0 1px rgba(20, 27, 45, 0.08);
  animation: float 6s ease-in-out infinite;
}

.phone__screen {
  height: 100%;
  border-radius: 35px;
  background: var(--ground-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone__notch {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__notch span {
  width: 90px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.phone__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.phone__name span {
  color: var(--accent);
}

.phone__title {
  font-size: 12px;
  color: var(--subtle);
}

.screen {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.screen[hidden] {
  display: none;
}

.screen > * {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.screen > *:nth-child(2) {
  animation-delay: 0.1s;
}

.screen > *:nth-child(3) {
  animation-delay: 0.2s;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.card--center {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.card--list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.strong {
  font-weight: 600;
}

.small {
  font-size: 12px;
  color: var(--subtle);
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.line--muted {
  color: var(--subtle);
}

.rule {
  height: 1px;
  background: #eef1f6;
}

.total {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.total__label {
  font-size: 12px;
  color: #c9d0de;
}

.total__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.action--whatsapp {
  background: var(--whatsapp);
  animation:
    rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both,
    pulse-green 1.6s ease-out 0.6s infinite;
}

.action--accent {
  background: var(--accent);
}

.check {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--ok-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.ok {
  font-weight: 600;
  color: var(--ok);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--ink-2);
  font-size: 12px;
}

.tag--on {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.commission {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.commission__label {
  font-size: 12px;
  color: #c9d0de;
}

.commission__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.commission__delta {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  animation: grow 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 400px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer;
}

.step:hover {
  border-color: var(--ink-2);
}

.step[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.step[aria-pressed='true'] .step__bar.is-running {
  animation: fill var(--step-seconds, 3.4s) linear both;
}

/* ---------- Marquee ---------- */

.band {
  overflow: hidden;
  background: var(--ground-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__track {
  display: flex;
  width: max-content;
  padding: 18px 0;
  animation: marquee 38s linear infinite;
}

.band__group {
  display: flex;
  gap: 40px;
  padding-right: 40px;
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-2);
}

.band__group b {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 96px;
  padding-bottom: 40px;
}

.section--last {
  padding-bottom: 96px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section h2 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

.grid {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.tile {
  border-radius: 20px;
  padding: 26px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 27, 45, 0.1);
}

.tile--line {
  background: #fff;
  border: 1px solid var(--line);
}

.tile--soft {
  background: var(--ground-2);
  padding: 28px;
}

.tile h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.icon {
  color: var(--accent);
}

/* ---------- Control band ---------- */

.night {
  background: var(--night);
  color: #fff;
}

.night__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.night__intro {
  flex: 1 1 380px;
  min-width: 0;
}

.night .kicker {
  color: #9db6ff;
}

.night h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

.night__lead {
  margin: 20px 0 0;
  max-width: 440px;
  color: var(--night-text);
  font-size: 18px;
  line-height: 1.6;
}

.night__grid {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.promise {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.promise h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.promise p {
  margin: 0;
  color: var(--night-text);
  line-height: 1.55;
}

/* ---------- Contact ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(700px 300px at 90% 0%, #c7d6f7 0%, rgba(255, 255, 255, 0) 70%), #eef3fd;
}

.cta__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
}

.cta p {
  margin: 16px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.cta p.cta__mail {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
}

.cta__mail a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .cta {
    padding: 28px 22px;
  }
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--subtle);
  font-size: 14px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot__links {
  display: flex;
  gap: 18px;
}

.foot__links a {
  padding: 8px 0;
  color: var(--ink-2);
  text-decoration: none;
}

.foot__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Reveal on scroll (only when the script is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes grow {
  from {
    width: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 95, 217, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(43, 95, 217, 0);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 127, 56, 0.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(15, 127, 56, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
