:root {
  --ink: #f4eee3;
  --ink-soft: rgba(244, 238, 227, 0.72);
  --paper: #11161c;
  --paper-strong: #171e26;
  --canvas: #efe7da;
  --canvas-soft: #f5efe5;
  --line: rgba(244, 238, 227, 0.12);
  --line-soft: rgba(17, 22, 28, 0.08);
  --clay: #e36d3f;
  --clay-deep: #b84e26;
  --acid: #d3f45a;
  --acid-deep: #799010;
  --blue: #76a3ff;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", "Trebuchet MS", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #0f151c 0, #131b24 57rem, var(--canvas) 57rem, var(--canvas-soft) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0 0 auto 0;
  height: 44rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body::after {
  top: 3rem;
  right: 5vw;
  width: min(22rem, 32vw);
  height: min(22rem, 32vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 163, 255, 0.18), rgba(118, 163, 255, 0));
  filter: blur(10px);
}

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

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0 0.5rem;
}

.topbar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #f5efe5;
  color: #10151b;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong,
.button,
.topnav-link,
.suite-card h3,
.proof-card h3,
.portal-sheet h3,
.offer-grid strong,
.signal-note h2 {
  font-weight: 700;
}

.brand-copy strong {
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.4rem;
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease;
}

.lang-pill:hover,
.lang-pill:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.lang-pill.is-current {
  background: #f5efe5;
  color: #11161c;
  box-shadow: 0 10px 24px rgba(17, 22, 28, 0.18);
}

.topnav-link {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.topnav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 2px;
  border-radius: 999px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topnav-link:hover,
.topnav-link:focus-visible,
.topnav-link.is-active {
  color: var(--ink);
  transform: translateY(-1px);
}

.topnav-link:hover::after,
.topnav-link:focus-visible::after,
.topnav-link.is-active::after {
  transform: scaleX(1);
}

.button {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  overflow: hidden;
  padding: 0.92rem 1.22rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms ease,
    background-color 260ms ease;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button::before {
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.28), transparent 42%);
  opacity: 0;
}

.button::after {
  inset: auto -18% -60% -18%;
  height: 170%;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(85%) rotate(-8deg);
}

.button span {
  position: relative;
  z-index: 1;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateY(20%) rotate(-6deg);
}

.button:active,
.button.is-pressed {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  background: linear-gradient(135deg, var(--clay), var(--clay-deep));
  color: #fff8f2;
  box-shadow: 0 16px 32px rgba(184, 78, 38, 0.26);
}

.button-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-soft {
  background: rgba(211, 244, 90, 0.84);
  color: #1b2507;
  box-shadow: 0 16px 32px rgba(121, 144, 16, 0.14);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero,
.workflow-strip,
.suite,
.proof,
.portal-band,
.offer {
  margin-top: 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 2rem;
  align-items: center;
  min-height: 40rem;
  padding: 0.5rem 0 1rem;
}

.hero-copy {
  max-width: 36rem;
  margin-top: -4.5rem; /* English default */
}

.hero.is-pt-br {
  min-height: 70rem;
  padding-bottom: 30rem !important; /* Absolute safety buffer for PT-BR text length */
}

.hero.is-pt-br .hero-copy {
  margin-top: -8.5rem; /* Significant lift towards the header for balance */
  max-width: 38rem;    /* Slightly wider to accommodate smaller font elegantly */
}

.hero.is-pt-br .hero-copy h1 {
  font-size: 2.8rem !important; /* Force reduction in line-count */
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.eyebrow,
.mini-label,
.suite-badge,
.offer-grid span,
.workflow-strip span {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label,
.suite-badge {
  color: var(--clay);
}

.hero-copy h1,
.section-head h2,
.signal-note h2,
.portal-copy h2,
.offer-shell h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  margin-top: 0.8rem;
  max-width: 10.1ch;
  font-size: clamp(2.35rem, 4.35vw, 4rem);
}

.hero-note,
.suite-card p,
.proof-card p,
.portal-copy p,
.offer-note,
.price-card p {
  line-height: 1.56;
}

.hero-note {
  max-width: 31rem;
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.hero-actions,
.hero-points,
.offer-grid,
.card-actions {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding: 0.72rem 0.88rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-status strong,
.hero-status span:last-child {
  color: var(--ink);
}

.hero-status strong {
  font-size: 0.95rem;
}

.hero-status span:last-child {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-status-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 6px rgba(211, 244, 90, 0.12);
}

.hero-status.is-trialing .hero-status-dot,
.hero-status.is-sample .hero-status-dot {
  background: #f0c76b;
  box-shadow: 0 0 0 6px rgba(240, 199, 107, 0.14);
}

.hero-status.is-active .hero-status-dot {
  background: #6ee1a2;
  box-shadow: 0 0 0 6px rgba(110, 225, 162, 0.15);
}

.hero-status.is-paused .hero-status-dot {
  background: #ff9070;
  box-shadow: 0 0 0 6px rgba(255, 144, 112, 0.14);
}

.hero-points {
  gap: 0.72rem;
  padding: 0;
  margin: 0.4rem 0 0;
  list-style: none;
}

.hero-points li {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
}

.hero-stage {
  --main-x: 0px;
  --main-y: 0px;
  --side-x: 0px;
  --side-y: 0px;
  --note-x: 0px;
  --note-y: 0px;
  position: relative;
  min-height: 56rem;
}

.stage-flag,
.paper-sheet,
.signal-note {
  position: absolute;
}

.stage-flag {
  display: none !important;
}

.paper-sheet,
.signal-note,
.topbar,
.workflow-strip article,
.suite-card,
.proof-card,
.portal-sheet,
.offer-shell,
.price-card {
  box-shadow: var(--shadow-card);
}

.paper-sheet {
  padding: 0.82rem;
  background: #fffaf2;
}

.paper-sheet img {
  border-radius: 1rem;
}

.paper-sheet figcaption {
  margin-top: 0.58rem;
  color: #11161c;
  font-weight: 700;
}

.paper-main {
  top: 2.2rem;
  right: 0.2rem;
  z-index: 2;
  width: min(40rem, 90%);
  border-radius: 1.8rem;
  transform: translate3d(
    var(--main-x),
    calc(var(--main-y) + var(--scroll-y-main, 0px)),
    0
  ) rotate(-4deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: settle-main 920ms 120ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.paper-side {
  right: 0.4rem;
  bottom: 12.5rem;
  z-index: 3;
  width: min(20rem, 50%);
  border-radius: 1.45rem;
  transform: translate3d(
    var(--side-x),
    calc(var(--side-y) + var(--scroll-y-side, 0px)),
    0
  ) rotate(5deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: settle-side 980ms 260ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.paper-side-lg {
  width: min(38rem, 85%);
}

.signal-note {
  left: 0.2rem;
  bottom: 12.5rem; /* Default English lift */
  z-index: 4;
  width: min(24rem, 55%);
  border-radius: 1.4rem;
  box-shadow: 0 44px 88px rgba(17, 22, 28, 0.12);
  overflow: hidden;
  transform: translate3d(var(--note-x), var(--note-y), 0) rotate(-2deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: settle-note 920ms 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.signal-note img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.is-pt-br .signal-note {
  bottom: 4.5rem; /* Keep lower in PT-BR to clear the taller copy block */
}

/* Fix for PT-BR specific sample orientation issue */
.is-pt-br .paper-side-lg img {
  width: 100%;
  height: auto;
}


.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-top: -6.4rem;
}

.workflow-strip article {
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 250, 242, 0.96);
  color: #11161c;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease;
}

.workflow-strip article:hover,
.workflow-strip article:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(17, 22, 28, 0.12);
}

.workflow-strip span {
  color: var(--blue);
  font-size: 1rem;
}

.workflow-strip p {
  margin: 0.42rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
}

/* Sequential stagger for the workflow steps */
.workflow-strip article:nth-child(1) { transition-delay: 0ms; }
.workflow-strip article:nth-child(2) { transition-delay: 200ms; }
.workflow-strip article:nth-child(3) { transition-delay: 400ms; }

.suite,
.proof,
.offer {
  display: grid;
  gap: 1.2rem;
  padding: 1.8rem 1.25rem;
  border-radius: 2rem;
  color: #11161c;
}

.suite,
.offer {
  background: rgba(255, 250, 242, 0.86);
}

.proof {
  background: linear-gradient(180deg, #171e26, #1c2530);
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
}

.section-head h2,
.portal-copy h2,
.offer-shell h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.suite-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
}

.suite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.suite-card {
  padding: 1.2rem;
  border-radius: 1.65rem;
  background: rgba(255, 255, 255, 0.92);
}

.suite-card-main {
  grid-row: 1 / span 2;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.98), rgba(252, 236, 219, 0.94));
}

.suite-card-accent {
  background: linear-gradient(180deg, rgba(232, 239, 255, 0.98), rgba(220, 230, 255, 0.92));
}

.suite-card-note {
  background: linear-gradient(180deg, rgba(241, 248, 211, 0.98), rgba(233, 242, 188, 0.92));
}

.suite-top,
.card-actions {
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.suite-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  background: rgba(17, 22, 28, 0.08);
  color: #11161c;
}

.suite-number {
  color: rgba(17, 22, 28, 0.4);
  font-weight: 700;
}

.suite-card h3 {
  margin: 0.72rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.92rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.suite-card p {
  margin: 0.78rem 0 0;
  color: rgba(17, 22, 28, 0.74);
}

.suite-card ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
  margin: 0.9rem 0 1.05rem;
  color: rgba(17, 22, 28, 0.74);
  line-height: 1.52;
}

.card-actions {
  margin-top: auto;
}

.suite-actions .button,
.pricing-actions .button,
.pricing-link {
  min-height: 3.15rem;
}

.suite-actions .button-dark,
.pricing-actions .button-dark {
  background: linear-gradient(135deg, #212b36, #161d25);
  color: #f7f1e7;
  box-shadow:
    0 12px 26px rgba(17, 22, 28, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card {
  padding: 1.15rem;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.08);
}

.proof-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.proof-card p {
  margin: 0.55rem 0 0;
  color: rgba(244, 238, 227, 0.74);
}

.portal-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 1rem;
  align-items: center;
  padding: 1.7rem 1.25rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(17, 22, 28, 0.96), rgba(27, 36, 47, 0.96));
}

.portal-copy {
  display: grid;
  gap: 0.72rem;
  max-width: 34rem;
}

.portal-copy p {
  color: var(--ink-soft);
}

.portal-sheet {
  padding: 1.2rem;
  border-radius: 1.6rem;
  background: #fffaf2;
  color: #11161c;
  transform: rotate(-2deg);
}

.portal-sheet h3 {
  margin: 0.36rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
}

.portal-sheet ul {
  display: grid;
  gap: 0.38rem;
  padding-left: 1rem;
  margin: 0.78rem 0 0;
  color: rgba(17, 22, 28, 0.7);
}

.offer-shell {
  padding: 1.3rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.92);
}

.offer-note {
  margin-top: 0.7rem;
  color: rgba(17, 22, 28, 0.72);
}

.pricing-grid,
.pricing-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.pricing-focus {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.pricing-focus .pricing-card {
  width: min(100%, 34rem);
}

@media (max-width: 960px) {
  .pricing-grid,
  .pricing-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-grid,
  .pricing-grid-secondary {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.15rem;
  border-radius: 1.5rem;
  background: rgba(17, 22, 28, 0.04);
  align-content: start;
  grid-template-rows: auto auto auto auto 1fr auto auto;
}

.pricing-card-featured {
  background: linear-gradient(180deg, rgba(227, 109, 63, 0.12), rgba(227, 109, 63, 0.04));
  align-content: start;
}

.pricing-card-neutral {
  background: linear-gradient(180deg, rgba(118, 163, 255, 0.12), rgba(118, 163, 255, 0.04));
}

.pricing-note {
  margin: 0;
  color: rgba(17, 22, 28, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.pricing-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.02;
  color: #11161c;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.32rem;
}

.price-line strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #11161c;
}

.price-line span {
  color: rgba(17, 22, 28, 0.7);
  font-weight: 600;
}

.pricing-card p {
  margin: 0;
  color: rgba(17, 22, 28, 0.72);
}

.pricing-card ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(17, 22, 28, 0.76);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.pricing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: rgba(17, 22, 28, 0.06);
  box-shadow: inset 0 0 0 1px rgba(17, 22, 28, 0.08);
  color: #18212b;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.pricing-link:hover,
.pricing-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(17, 22, 28, 0.1);
}

.pricing-suboffer {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: rgba(211, 244, 90, 0.24);
  color: #273109;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
}

.has-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1.1rem;
  padding: 0.2rem 0 0;
  color: rgba(17, 22, 28, 0.72);
}

.site-footer p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.55;
}

.site-footer a {
  color: #18212b;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@keyframes settle-main {
  from {
    opacity: 0;
    transform: translate3d(36px, 28px, 0) rotate(-7deg);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--main-x), var(--main-y), 0) rotate(-4deg);
  }
}

@keyframes settle-side {
  from {
    opacity: 0;
    transform: translate3d(16px, 38px, 0) rotate(10deg);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--side-x), var(--side-y), 0) rotate(5deg);
  }
}

@keyframes settle-note {
  from {
    opacity: 0;
    transform: translate3d(-20px, 26px, 0) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--note-x), var(--note-y), 0) rotate(-2deg);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .hero-stage {
    min-height: 28rem;
  }

  .paper-main {
    width: min(26rem, 90%);
  }

  .paper-side {
    width: min(16rem, 58%);
  }

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

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(180deg, #0f151c 0, #131b24 58rem, var(--canvas) 58rem, var(--canvas-soft) 100%);
  }

  .topbar,
  .topbar-tools,
  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  .workflow-strip,
  .proof-grid,
  .pricing-grid,
  .suite-grid,
  .portal-band {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 26rem;
  }

  .paper-main {
    width: min(25rem, 86%);
  }

  .paper-side {
    width: min(15.5rem, 56%);
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding-bottom: 3rem;
  }

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

  .hero {
    gap: 1.4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 16vw, 4.4rem);
  }

  .hero-stage {
    min-height: 23rem;
  }

  .stage-flag {
    position: static;
    display: inline-flex;
    margin-bottom: 0.8rem;
  }

  .paper-main {
    top: 3.4rem;
    width: min(22rem, 96%);
  }

  .paper-side {
    right: 0.4rem;
    width: min(13.1rem, 63%);
  }

  .signal-note {
    left: 0;
    bottom: 3.2rem;
    width: 11.4rem;
  }
}

/* FINAL V4 PORTUGUESE PERFECTION OVERRIDES */
html body .hero.is-pt-br {
  min-height: 48rem !important;
  padding-bottom: 6rem !important; /* Deepest dark zone for absolute pill safety */
}

html body .hero.is-pt-br .hero-copy {
  margin-top: -6.4rem !important; /* Further height adjustment for balance */
  max-width: 38.5rem !important;
}

html body .hero.is-pt-br .hero-copy h1 {
  font-size: 2.75rem !important; /* Extremely tight for visual elegance (~4 lines) */
  line-height: 1.1 !important;
  max-width: none !important;    /* BREAK the inherited English 10.1ch constraint */
}

html body .is-pt-br .signal-note {
  bottom: 8.5rem !important; /* Higher anchor for Portuguese layout */
}
