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

:root {
  --primary-color: #CC00CA;
  --primary-strong: #A800A6;
  --primary-glow: rgba(40, 6, 44, 0.35);
  --secondary-color: #5CD8E6;
  --background-color: #FFFAFF;
  --surface-tint: #FFF1FF;
  --ink: #1C1220;
  --ink-soft: #4F4256;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  background-color: var(--background-color);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background-color: var(--primary-color);
  color: white;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

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

.btn--primary:hover {
  background-color: var(--primary-strong);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 2px solid var(--primary-color);
  color: var(--primary-strong);
}

.btn--ghost:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.8125rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(28, 18, 32, 0.06), 0 8px 24px -16px rgba(28, 18, 32, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  width: 150px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__list a:not(.btn) {
  text-decoration: none;
}

.nav__list a:not(.btn):hover {
  color: var(--primary-color);
}

.nav__hide-sm {
  display: none;
}

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

.crumbs {
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article__meta {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.lede {
  margin-top: 20px;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.tldr {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background-color: var(--surface-tint);
}

.tldr__title {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.tldr ul {
  padding-left: 20px;
}

.tldr li + li {
  margin-top: 6px;
}

.article__body h2,
.faq h2,
.related h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.article__body h3 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.article__body p,
.article__body ul,
.article__body ol {
  margin-top: 16px;
  text-wrap: pretty;
}

.article__body ul,
.article__body ol {
  padding-left: 22px;
}

.article__body li + li {
  margin-top: 8px;
}

.article__body a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 1px solid var(--primary-color);
  font-size: 1.1875rem;
  font-weight: 500;
}

.article__body figure {
  margin: 32px 0;
}

.article__body figure img {
  width: min(100%, 420px);
  margin: 0 auto;
}

.article__body figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--ink-soft);
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(28, 18, 32, 0.12);
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 700;
}

td.num,
th.num {
  text-align: right;
}

/* Comparison tables with words in the cells wrap instead of scrolling */
.table-wrap--text th,
.table-wrap--text td {
  white-space: normal;
  vertical-align: top;
}

.table-wrap--text td:first-child {
  font-weight: 600;
}

/* Calculator */
.calc {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background-color: white;
  box-shadow: inset 0 0 0 1px rgba(204, 0, 202, 0.2), 0 12px 32px -24px rgba(40, 6, 44, 0.5);
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.calc label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.calc input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 18, 32, 0.2);
  border-radius: 12px;
  font: inherit;
  font-variant-numeric: tabular-nums;
  accent-color: var(--primary-color);
}

.calc input:focus-visible {
  outline-offset: 0;
}

.calc__result {
  margin-top: 20px;
  font-size: 1.125rem;
}

.calc__result strong {
  color: var(--primary-strong);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

/* CTA */
.cta {
  margin-top: 56px;
  padding: 28px;
  border-radius: 20px;
  background-color: #1C1220;
  color: white;
}

.cta__title {
  margin-bottom: 8px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.cta__title {
  color: white;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta .btn--ghost {
  color: white;
}

.cta .btn--primary {
  box-shadow: none;
}

/* FAQ */
.faq__item {
  border-bottom: 1px solid rgba(28, 18, 32, 0.12);
}

.faq__item summary {
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
}

.faq__item summary:hover {
  color: var(--primary-strong);
}

.faq__item p {
  padding-bottom: 16px;
  color: var(--ink-soft);
}

/* Lists of posts */
.list,
.related ul {
  list-style: none;
}

.list {
  margin-top: 40px;
}

.list__item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(28, 18, 32, 0.12);
  text-decoration: none;
}

.list__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s var(--ease-out);
}

.list__item a:hover .list__title {
  color: var(--primary-strong);
}

.list__desc {
  color: var(--ink-soft);
}

.list__meta {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.related li {
  border-bottom: 1px solid rgba(28, 18, 32, 0.12);
}

.related a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  text-decoration: none;
}

.related a:hover {
  color: var(--primary-strong);
}

/* Footer */
.footer {
  padding: 48px var(--gutter);
  background-color: #140A18;
  color: rgba(255, 255, 255, 0.82);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.footer__tag {
  margin-top: 6px;
}

.footer__nap {
  margin-top: 20px;
  font-size: 0.9375rem;
  font-style: normal;
}

.footer__legal {
  margin-top: 16px;
  font-size: 0.875rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.82);
  text-underline-offset: 4px;
}

.footer__nap a {
  color: white;
  text-underline-offset: 4px;
}

/* Advertorials: WhatsApp-first CTAs */
.btn--wa {
  gap: 10px;
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 10px 24px -10px var(--primary-glow);
}

.btn--wa:hover {
  background-color: var(--primary-strong);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

.wa-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.article__body .cta-inline {
  margin: 36px 0;
  padding: 24px;
  border-radius: 16px;
  background-color: var(--surface-tint);
  box-shadow: inset 0 0 0 1px rgba(204, 0, 202, 0.16);
}

.cta-inline__title {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article__body .cta-inline p + p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.cta-inline .cta__actions {
  align-items: center;
  gap: 12px 20px;
}

.article__body .cta-inline .btn {
  color: white;
  text-decoration: none;
}

.article__body .cta-inline__phone {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.wa-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background-color: rgba(255, 250, 255, 0.96);
  box-shadow: 0 -1px 0 rgba(28, 18, 32, 0.08), 0 -8px 24px -16px rgba(28, 18, 32, 0.3);
}

.wa-bar .btn {
  width: 100%;
}

.is-adv .footer {
  padding-bottom: 120px;
}

.calc__result--split {
  display: grid;
  gap: 12px;
}

.calc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 18, 32, 0.1);
}

.calc__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.calc__row span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.calc__row--gap strong {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.calc__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.calc .btn {
  margin-top: 20px;
  color: white;
  text-decoration: none;
}

@media (min-width: 700px) {
  .wa-bar {
    display: none;
  }

  .is-adv .footer {
    padding-bottom: 48px;
  }

  .article__body .cta-inline {
    padding: 28px 32px;
  }
}

@media (min-width: 700px) {
  .nav__inner {
    min-height: 76px;
  }

  .nav__logo {
    width: 190px;
  }

  .nav__hide-sm {
    display: list-item;
  }

  .nav__list {
    gap: 32px;
  }

  .article {
    padding-top: 64px;
  }

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

  .cta {
    padding: 36px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
