:root {
  --ink: #061432;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --blue: #0b5cad;
  --cyan: #0e8cc2;
  --accent-start: #0e8cc2;
  --accent-pld: #0b5cad;
  --accent-rj: #094a8a;
  --accent-calculadora: #0e8cc2;
  --accent-minka: #5a4fcf;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(6, 20, 50, 0.04);
  --shadow-md: 0 10px 30px rgba(6, 20, 50, 0.06);
  --shadow-hover: 0 18px 55px rgba(6, 20, 50, 0.1);
  --shadow: var(--shadow-hover);

  --header-height: 72px;

  --social-whatsapp: #25d366;
  --social-facebook: #1877f2;
  --social-instagram: #e1306c;
  --social-tiktok: #000000;
  --social-icon-size: 48px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.01em;
  background-color: var(--soft);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.98) 100%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(11, 92, 173, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 140, 194, 0.06), transparent 60%),
    linear-gradient(rgba(11, 92, 173, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 173, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  background-position: center top;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1480px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  border-radius: var(--radius-sm);
  transition: opacity 180ms ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.brand-link img {
  width: min(220px, 52vw);
  height: auto;
}

/* Main layout */

.landing {
  display: grid;
  gap: var(--space-7);
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-7);
}

/* Hero */

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: var(--space-4) 0 var(--space-2);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.intro-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 600ms ease both;
}

.animate-in--delay-1 {
  animation-delay: 80ms;
}

.animate-in--delay-2 {
  animation-delay: 160ms;
}

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

  .animate-in,
  .animate-in--delay-1,
  .animate-in--delay-2 {
    animation: none;
  }

  .service-card,
  .service-cta,
  .service-cta__arrow,
  .site-header {
    transition: none;
  }
}

/* Service cards */

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  row-gap: var(--space-5);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-5);
  min-height: 456px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  --logo-width: min(100%, 220px);
  --logo-max-height: 112px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--blue));
  opacity: 0.85;
}

.service-card--start {
  --card-accent: var(--accent-start);
}

.service-card--pld {
  --card-accent: var(--accent-pld);
}

.service-card--rj {
  --card-accent: var(--accent-rj);
}

.service-card--calculadora {
  --card-accent: var(--accent-calculadora);
}

.service-card--minka {
  --card-accent: var(--accent-minka);
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc((100% - 3 * var(--space-4)) / 4));
}

.service-card--minka .service-logo img {
  width: var(--logo-width);
  max-height: var(--logo-max-height);
}

.service-card--pld,
.service-card--calculadora {
  --logo-max-height: 128px;
}

.service-card--calculadora {
  --logo-max-height: 134px;
}

.service-card--pld .service-logo img,
.service-card--calculadora .service-logo img {
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  max-height: var(--logo-max-height);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 92, 173, 0.28);
  box-shadow: var(--shadow-hover);
}

.service-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.service-card:hover .service-cta {
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(11, 92, 173, 0.28);
}

.service-card:hover .service-cta__arrow {
  transform: translateX(3px);
}

.service-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  max-width: calc(100% - var(--space-5));
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(11, 92, 173, 0.08);
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 168px;
  padding-top: var(--space-6);
  overflow: hidden;
  flex-shrink: 0;
}

.service-logo img {
  width: var(--logo-width);
  height: auto;
  max-height: var(--logo-max-height);
  object-fit: contain;
  object-position: center;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(11, 92, 173, 0.14);
  border-radius: var(--radius-md);
  color: var(--blue);
  background: linear-gradient(145deg, var(--soft) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.service-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  text-align: center;
}

.service-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-desc {
  margin: 0;
  min-height: 4.8em;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: center;
  margin-top: auto;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.service-cta__arrow {
  flex-shrink: 0;
  transition: transform 200ms ease;
}

/* Trust strip */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.trust-item {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--blue);
  background: rgba(11, 92, 173, 0.08);
}

.trust-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Legal teaser */

.legal-teaser {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.legal-teaser h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-teaser p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-teaser a:not(.legal-teaser__btn) {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-teaser__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.legal-teaser__btn:hover {
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(11, 92, 173, 0.28);
  transform: translateY(-1px);
}

.legal-teaser__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Legal page */

.legal-page {
  display: grid;
  gap: var(--space-6);
  width: min(1120px, calc(100% - 40px));
  max-width: 72ch;
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-7);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.legal-back:hover {
  background: rgba(11, 92, 173, 0.08);
  color: var(--ink);
}

.legal-back:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.legal-page__header {
  display: grid;
  gap: var(--space-3);
}

.legal-page__header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.legal-page__meta {
  margin: 0;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legal-page__intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-toc {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

.legal-toc h2 {
  margin: 0 0 var(--space-3);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-2);
}

.legal-toc a {
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 var(--space-4);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 var(--space-4);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: var(--space-2);
}

.legal-section a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-disclaimer {
  padding: var(--space-5);
  border: 1px solid rgba(11, 92, 173, 0.18);
  border-radius: var(--radius-md);
  background: rgba(11, 92, 173, 0.04);
}

.legal-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Footer */

.site-footer {
  display: grid;
  gap: var(--space-4);
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer p {
  margin: 0;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

.site-footer__legal {
  color: var(--blue);
  font-weight: 600;
  width: fit-content;
  transition: color 180ms ease;
}

.site-footer__legal:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.social-link {
  --social-bg: var(--blue);
  --social-shadow: rgba(11, 92, 173, 0.35);
  --social-focus: var(--blue);

  display: grid;
  place-items: center;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  border: none;
  border-radius: 50%;
  color: var(--white);
  background: var(--social-bg);
  box-shadow: 0 4px 14px var(--social-shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px var(--social-shadow);
  filter: brightness(1.05);
}

.social-link:focus-visible {
  outline: 2px solid var(--social-focus);
  outline-offset: 3px;
}

.social-link--whatsapp {
  --social-bg: var(--social-whatsapp);
  --social-shadow: rgba(37, 211, 102, 0.4);
  --social-focus: var(--social-whatsapp);
}

.social-link--instagram {
  --social-bg: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  --social-shadow: rgba(225, 48, 108, 0.45);
  --social-focus: var(--social-instagram);
}

.social-link--facebook {
  --social-bg: var(--social-facebook);
  --social-shadow: rgba(24, 119, 242, 0.4);
  --social-focus: var(--social-facebook);
}

.social-link--tiktok {
  --social-bg: var(--social-tiktok);
  --social-shadow: rgba(0, 0, 0, 0.35);
  --social-focus: var(--social-tiktok);
}

.social-link--tiktok:hover {
  box-shadow:
    0 0 0 1px #25f4ee,
    0 10px 28px rgba(254, 44, 85, 0.25);
}

/* Responsive */

@media (max-width: 1200px) {
  .landing,
  .site-header__inner,
  .site-footer {
    width: min(1120px, calc(100% - 40px));
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card--minka {
    width: min(100%, calc((100% - var(--space-4)) / 2));
  }
}

@media (max-width: 820px) {
  .landing {
    gap: var(--space-6);
    width: min(100% - 28px, 1120px);
    padding-top: var(--space-5);
  }

  .site-header__inner,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service-card--minka {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .service-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: var(--space-4) var(--space-5);
    min-height: 0;
    padding: var(--space-5);
  }

  .service-card::before {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: 3px;
    height: auto;
  }

  .service-badge {
    grid-column: 1 / -1;
    position: static;
    justify-self: start;
    order: -1;
  }

  .service-logo,
  .service-icon {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
  }

  .service-copy {
    grid-row: 2;
    grid-column: 2;
    margin-top: 0;
    height: auto;
    text-align: center;
    align-items: center;
  }

  .service-logo {
    height: auto;
    min-height: 0;
    max-height: 120px;
    padding-top: 0;
    overflow: hidden;
    width: 132px;
  }

  .service-card {
    --logo-width: min(100%, 140px);
    --logo-max-height: 72px;
  }

  .service-card--pld,
  .service-card--calculadora {
    --logo-max-height: 100px;
  }

  .service-card--calculadora {
    --logo-max-height: 104px;
  }

  .service-card--pld .service-logo,
  .service-card--calculadora .service-logo {
    width: 148px;
  }

  .service-logo img {
    width: var(--logo-width);
    max-height: var(--logo-max-height);
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .trust {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .legal-teaser {
    padding: var(--space-5);
  }

  .legal-page {
    width: min(100% - 28px, 1120px);
  }
}

@media (max-width: 460px) {
  .landing,
  .site-header__inner,
  .site-footer,
  .legal-page {
    width: min(100% - 24px, 1120px);
  }

  .brand-link img {
    width: min(180px, 58vw);
  }

  h1 {
    font-size: 1.875rem;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-logo,
  .service-icon,
  .service-copy {
    grid-row: auto;
    grid-column: 1;
  }

  .service-logo {
    height: 168px;
    min-height: 168px;
    padding-top: var(--space-4);
    overflow: hidden;
    width: auto;
  }

  .service-card {
    --logo-width: min(100%, 200px);
    --logo-max-height: 100px;
  }

  .service-card--pld,
  .service-card--calculadora {
    --logo-max-height: 118px;
  }

  .service-card--calculadora {
    --logo-max-height: 122px;
  }

  .service-logo img {
    width: var(--logo-width);
    max-height: var(--logo-max-height);
  }

  .service-cta {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }

  .site-footer__row {
    flex-direction: column;
    align-items: center;
  }

  .site-footer__social {
    justify-content: center;
  }
}
