@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f5f1ea;
  --ink: #1b1714;
  --night: #181410;
  --night-soft: #211c18;
  --line: #3a322c;
  --muted: #aaa096;
  --accent: #f06b43;
  --accent-deep: #c24324;
  --accent-pale: #e7c4ad;
  --surface: #321b13;
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  --max-width: 1440px;
}

.product-page--educa {
  --accent: #7ca1ff;
  --accent-deep: #2563eb;
  --accent-pale: #dfe8ff;
  --surface: #172544;
}

.product-page--beauty {
  --accent: #9fb9d7;
  --accent-deep: #526d8d;
  --accent-pale: #dce5ef;
  --surface: #1a2a38;
}

/* Mesma cor do planeta ClinicalFlow no mapa da raiz (styles.css, .product-clinical). */
.product-page--clinical {
  --accent: #67a9b7;
  --accent-deep: #2f7584;
  --accent-pale: #d5ebef;
  --surface: #15303a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--paper);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.product-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 1.6rem var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.suite-mark {
  display: inline-flex;
  width: 7.5rem;
}

.suite-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.product-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  color: #aaa096;
  font-size: 0.72rem;
  font-weight: 500;
}

.product-nav a {
  position: relative;
  transition: color 180ms ease;
}

.product-nav a:hover,
.product-nav a[aria-current="page"] {
  color: var(--paper);
}

.product-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.product-header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 1.4rem;
}

.product-header-blog,
.product-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #756a60;
  font-size: 0.72rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.product-header-blog:hover,
.product-header-blog[aria-current="page"],
.product-header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.8fr);
  gap: clamp(4rem, 9vw, 10rem);
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 700px;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  isolation: isolate;
}

.product-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 88%);
}

.product-hero::after {
  position: absolute;
  bottom: -7rem;
  left: -11rem;
  z-index: -1;
  width: 24rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.8rem;
  color: var(--accent-pale);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.product-wordmark {
  margin: 0 0 2.2rem;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

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

.product-logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin-bottom: 2.2rem;
}

.product-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.product-hero h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.product-lead {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #b9afa5;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.button-primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.system-visual {
  position: relative;
  display: grid;
  width: min(100%, 31rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.system-visual::before,
.system-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.system-visual::before {
  inset: 12%;
  border: 1px dashed #5a4f46;
}

.system-visual::after {
  inset: 28%;
  background:
    radial-gradient(
      circle at 34% 28%,
      color-mix(in srgb, var(--accent) 34%, transparent),
      transparent 30%
    ),
    radial-gradient(circle at 60% 65%, var(--surface), var(--night) 72%);
  box-shadow:
    0 0 0 1.1rem color-mix(in srgb, var(--accent) 6%, transparent),
    0 2rem 5rem rgba(0, 0, 0, 0.4);
}

.system-core {
  position: relative;
  z-index: 2;
  max-width: 8rem;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
}

.system-chip {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  background: var(--night-soft);
  color: var(--accent-pale);
  font-size: 0.58rem;
  font-weight: 500;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
  animation: float 5s ease-in-out infinite;
}

.system-chip:nth-of-type(1) {
  top: 6%;
  left: 34%;
}

.system-chip:nth-of-type(2) {
  top: 28%;
  right: -2%;
  animation-delay: -1.2s;
}

.system-chip:nth-of-type(3) {
  right: 12%;
  bottom: 6%;
  animation-delay: -2.4s;
}

.system-chip:nth-of-type(4) {
  bottom: 13%;
  left: 0;
  animation-delay: -3.6s;
}

.system-chip:nth-of-type(5) {
  top: 28%;
  left: -4%;
  animation-delay: -4.2s;
}

.product-details {
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  background: var(--paper);
  color: var(--ink);
}

.details-inner {
  /* Mesma linha de conteúdo do topo, hero, faixa final e rodapé: largura máxima menos a margem da página. */
  width: min(100%, calc(var(--max-width) - 2 * var(--page-pad)));
  margin: 0 auto;
}

.details-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.details-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--accent-deep);
}

.details-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.details-heading > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: #6c625a;
  font-size: 0.92rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d5ccc1;
  border-left: 1px solid #d5ccc1;
}

.feature {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid #d5ccc1;
  border-bottom: 1px solid #d5ccc1;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.feature:hover {
  background: var(--accent-deep);
  color: #fff;
}

.feature span {
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.feature:hover span,
.feature:hover p {
  color: rgba(255, 255, 255, 0.76);
}

.feature h3 {
  margin: 4.4rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.feature p {
  margin: 0;
  color: #756b62;
  font-size: 0.78rem;
  line-height: 1.65;
}

.product-band {
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  border-top: 1px solid var(--line);
}

.product-band .details-heading .eyebrow {
  color: var(--accent);
}

.product-band .details-heading > p:last-child {
  color: var(--muted);
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.trait {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.trait:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.trait h3 {
  margin: 0 0 0.7rem;
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.trait p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid #d5ccc1;
  background: #fbf8f3;
}

.plan h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.plan-scope,
.plan-annual {
  margin: 0;
  color: #6c625a;
  font-size: 0.78rem;
  line-height: 1.6;
}

.plan-price {
  margin: 2.4rem 0 1.2rem;
  color: var(--ink);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-price span,
.plan-price small {
  color: #6c625a;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-annual {
  padding-top: 1rem;
  border-top: 1px solid #e3dbd0;
}

.plan-notes {
  display: grid;
  gap: 0.55rem;
  margin: 2.2rem 0 0;
  padding: 0;
  color: #6c625a;
  font-size: 0.82rem;
  line-height: 1.6;
  list-style: none;
}

.plan-notes li::before {
  margin-right: 0.6rem;
  color: var(--accent-deep);
  content: "—";
}

.plan-cta {
  margin-top: 2.2rem;
}

.product-closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  /* Faixa de ponta a ponta; conteúdo alinhado ao topo e ao hero (largura máxima e margem da página). */
  padding: clamp(5rem, 9vw, 8rem) max(var(--page-pad), calc((100% - var(--max-width)) / 2 + var(--page-pad)));
  background: var(--accent-deep);
  color: #fff;
}

.product-closing p {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-closing h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.product-closing .button {
  flex: 0 0 auto;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.product-closing .button:hover {
  border-color: var(--night);
  background: var(--night);
  color: var(--paper);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem max(var(--page-pad), calc((100% - var(--max-width)) / 2 + var(--page-pad)));
  border-top: 1px solid var(--line);
  color: #8f847a;
  font-size: 0.68rem;
}

.product-footer a {
  color: #c4bbb2;
}

.product-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.product-footer-links a {
  transition: color 180ms ease;
}

.product-footer-links a:hover {
  color: var(--accent);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.blog-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(245, 241, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 234, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 92%);
}

.blog-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -14rem;
  z-index: -1;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem color-mix(in srgb, var(--accent) 3%, transparent);
  content: "";
}

.blog-hero-inner,
.blog-listing-inner,
.article-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.blog-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: var(--accent-pale);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-issue span:last-child {
  color: #756b62;
}

.blog-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.3rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.blog-hero h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.blog-hero-lead {
  max-width: 46rem;
  margin: 2rem 0 0;
  color: #b9afa5;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.blog-listing {
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  background: var(--paper);
  color: var(--ink);
}

.blog-listing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.blog-listing-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.blog-listing-heading p {
  max-width: 30rem;
  margin: 0;
  color: #756b62;
  font-size: 0.82rem;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.blog-card {
  min-height: 28rem;
  border: 1px solid #d5ccc1;
  background: #faf7f1;
}

.blog-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: clamp(1.8rem, 3.5vw, 3.2rem);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.blog-card-link:hover {
  transform: translateY(-0.35rem);
  background: var(--accent-deep);
  color: #fff;
}

.blog-card-category {
  align-self: flex-start;
  padding: 0.45rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-card-link:hover .blog-card-category,
.blog-card-link:hover .blog-card-summary,
.blog-card-link:hover .blog-card-meta {
  color: rgba(255, 255, 255, 0.76);
}

.blog-card h2 {
  max-width: 15ch;
  margin: auto 0 1.2rem;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.blog-card-summary {
  margin: 0;
  color: #6c625a;
  font-size: 0.84rem;
  line-height: 1.7;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid currentColor;
  color: #8f847a;
  font-size: 0.62rem;
}

.article-hero {
  padding: clamp(4.5rem, 8vw, 8rem) var(--page-pad) clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--accent-pale);
  font-size: 0.68rem;
  font-weight: 600;
}

.article-header {
  max-width: 70rem;
}

.article-header h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.9rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.article-summary {
  max-width: 48rem;
  margin: 2rem 0 0;
  color: #b9afa5;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  color: #887d73;
  font-size: 0.67rem;
}

.article-body-shell {
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
  background: var(--paper);
  color: var(--ink);
}

.article-body {
  width: min(100%, 760px);
  margin: 0 auto;
}

.article-body h2 {
  margin: 3.8rem 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: #514943;
  font-size: 0.98rem;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li + li {
  margin-top: 0.8rem;
}

.article-callout {
  padding: 2rem;
  margin: 3rem 0;
  border-left: 3px solid var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.article-callout p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
}

.scroll-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  width: 3.15rem;
  aspect-ratio: 1;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.7rem) scale(0.92);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  background: rgba(24, 20, 16, 0.88);
  color: var(--accent);
  font-size: 1.15rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.scroll-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--accent);
  background: var(--accent-deep);
  color: #fff;
}

/* WhatsApp fixo no canto inferior direito, igual ao da raiz (styles.css); o "voltar ao topo" sobe acima dele. */
.whatsapp-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 41;
  display: grid;
  width: 3.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 0 0 0.5rem rgba(37, 211, 102, 0.08),
    0 1rem 2.5rem rgba(0, 0, 0, 0.34);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: #20bd5a;
  box-shadow:
    0 0 0 0.65rem rgba(37, 211, 102, 0.11),
    0 1.2rem 3rem rgba(0, 0, 0, 0.4);
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.has-whatsapp .scroll-top {
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 4.8rem);
}

@media (max-width: 460px) {
  .whatsapp-fab {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3.35rem;
  }

  .has-whatsapp .scroll-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.5rem);
  }
}

.enter {
  animation: enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.enter-delay {
  animation-delay: 120ms;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .product-header {
    grid-template-columns: 1fr auto;
  }

  .product-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin-top: 1.35rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .system-visual {
    width: min(100%, 34rem);
    justify-self: center;
  }

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

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

@media (max-width: 620px) {
  .product-header-cta {
    font-size: 0.64rem;
  }

  .product-header-actions {
    gap: 0.8rem;
  }

  .product-header-blog {
    font-size: 0.64rem;
  }

  /* Cinco produtos: os links quebram em mais de uma linha em vez de passar da tela. */
  .product-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.1rem;
    width: 100%;
  }

  .product-hero {
    gap: 4rem;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .product-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .details-heading,
  .feature-grid,
  .trait-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .trait,
  .trait:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .details-heading {
    gap: 2rem;
  }

  .product-closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-issue,
  .blog-listing-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-card {
    min-height: 24rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
