@font-face {
  font-family: "Baloo 2 Local";
  src: url("assets/Baloo2.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #142653;
  --navy-soft: #53627f;
  --purple: #6637e8;
  --purple-dark: #5230bf;
  --purple-soft: #f1ebff;
  --pink: #ff477c;
  --pink-soft: #fff0f5;
  --yellow: #ffc529;
  --orange: #ff9418;
  --green: #63bf2b;
  --green-soft: #eef9e6;
  --cream: #fffdf8;
  --surface: #ffffff;
  --line: #ece6f6;
  --shadow: 0 22px 58px rgba(63, 40, 117, 0.14);
  --shadow-soft: 0 12px 30px rgba(55, 40, 101, 0.1);
  --font-display: "Baloo 2 Local", "Trebuchet MS", sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --page-max: 1400px;
  --page-gutter: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 0;
  left: 0;
  pointer-events: none;
}

.nav-shell {
  width: min(1230px, calc(100% - 40px));
  min-height: 74px;
  margin: auto;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(45, 29, 85, 0.08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(45, 29, 85, 0.14);
}

.brand {
  width: 212px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--navy-soft);
  font-size: 0.94rem;
  font-weight: 800;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  transition: right 180ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #794df0 0%, #6231df 100%);
  box-shadow: 0 13px 28px rgba(99, 49, 223, 0.28);
}

.button-primary:hover {
  box-shadow: 0 17px 34px rgba(99, 49, 223, 0.35);
}

.button-small {
  min-height: 48px;
  padding-inline: 19px;
  font-size: 0.9rem;
}

.button-large {
  min-height: 62px;
  padding: 17px 28px;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  color: var(--purple);
  font-size: 4.65rem;
  font-weight: 900;
}

h2 {
  color: var(--navy);
  font-size: 4rem;
  font-weight: 900;
}

h3 {
  font-size: 1.5rem;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(222, 211, 255, 0.8);
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(244, 239, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 900;
}

.eyebrow img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.eyebrow-coral {
  color: #e54570;
  border-color: rgba(255, 196, 212, 0.85);
  background: var(--pink-soft);
}

.eyebrow-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-weight: 900;
}

.spark-symbol {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  min-height: 920px;
  padding: 132px 0 0;
  overflow: hidden;
  background: #fff;
}

.hero-bg,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-wash {
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255, 255, 255, 0.98) 30%,
    rgba(255, 255, 255, 0.75) 47%,
    rgba(255, 255, 255, 0.04) 74%
  );
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 788px;
  display: grid;
  grid-template-columns: minmax(580px, 610px) minmax(560px, 1fr);
  align-items: start;
  gap: 8px;
}

.hero-copy {
  padding-top: 40px;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 510px;
  margin: 26px 0 0;
  color: var(--navy-soft);
  font-size: 1.12rem;
  line-height: 1.62;
}

.hero-title {
  margin: 0;
  color: var(--navy);
  font-size: 4.75rem;
  line-height: 1.04;
}

.hero-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.hero-title em,
.hero-title strong,
.hero-title b {
  font-style: normal;
}

.hero-title em {
  color: var(--purple);
}

.hero-title strong {
  color: #5ebe28;
}

.hero-title b {
  color: transparent;
  background: linear-gradient(92deg, var(--orange) 0%, var(--pink) 72%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
}

.play-icon {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, color 180ms ease;
}

.watch-button:hover .play-icon {
  color: var(--pink);
  transform: scale(1.06);
}

.watch-button span:last-child {
  display: grid;
  gap: 2px;
}

.watch-button strong {
  font-size: 0.94rem;
}

.watch-button small {
  color: #73819d;
  font-size: 0.74rem;
}

.hero-visual {
  position: relative;
  min-height: 788px;
  margin: 0 -100px 0 0;
}

.hero-visual.reveal {
  transform: none;
  transition: opacity 700ms ease;
}

.hero-board {
  position: absolute;
  right: -18px;
  bottom: 24px;
  width: 880px;
  max-width: none;
  filter: drop-shadow(0 24px 18px rgba(67, 46, 110, 0.1));
}

.challenge-section {
  padding: 76px 0 76px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffef9 0%, #fffdf7 100%);
}

.challenge-grid {
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(560px, 0.92fr) minmax(660px, 1.08fr);
  align-items: center;
  gap: 28px;
}

.challenge-copy {
  max-width: 690px;
}

.challenge-copy h2 {
  margin-top: 20px;
  font-size: 2.9rem;
}

.decorated-title > span {
  display: block;
}

.decorated-title-accent {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--purple);
}

.decorated-title-underline {
  position: absolute;
  z-index: -1;
  left: 0.18em;
  bottom: -0.24em;
  width: min(92%, 410px);
  max-width: none;
}

.decorated-title-plim {
  position: absolute;
  right: -1em;
  bottom: 0.42em;
  width: 0.98em;
  max-width: none;
  transform-origin: 22% 50%;
  animation: plimTwinkle 2.4s ease-in-out infinite;
}

@keyframes plimTwinkle {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(0.94) rotate(-2deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
  }
}

.challenge-title .decorated-title-underline,
.differential-title .decorated-title-underline {
  bottom: -0.18em;
  width: min(94%, 470px);
}

.challenge-title .decorated-title-plim {
  right: 1.8em;
  bottom: 0.08em;
}

.differential-title .decorated-title-plim {
  right: -0.98em;
  bottom: 0.1em;
}

.challenge-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--navy-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.challenge-copy .challenge-emphasis {
  margin-top: 16px;
  color: var(--navy);
  font-weight: 900;
}

.challenge-art {
  position: relative;
  min-height: 500px;
  margin: 0;
}

.challenge-photo {
  position: absolute;
  top: -48px;
  right: -44px;
  width: 768px;
  max-width: none;
  filter: drop-shadow(0 28px 26px rgba(67, 46, 110, 0.08));
}

.challenge-dino {
  position: absolute;
  z-index: 2;
  width: 140px;
  left: 142px;
  bottom: 74px;
  filter: drop-shadow(0 18px 12px rgba(54, 42, 92, 0.14));
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.question-card {
  min-height: 142px;
  padding: 20px 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid rgba(236, 230, 246, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.question-icon {
  width: 46px;
  height: 46px;
  display: grid;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
}

.question-icon svg {
  width: 25px;
  height: 25px;
}

.icon-purple {
  color: var(--purple);
  background: #b999ff;
}

.icon-orange {
  color: #fff;
  background: var(--yellow);
}

.icon-green {
  color: #fff;
  background: #48c942;
}

.question-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.question-card p {
  margin: 8px 0 0;
  color: #667493;
  font-size: 0.86rem;
  line-height: 1.55;
}

.steps-section {
  position: relative;
  padding: 66px 0 76px;
  overflow: hidden;
  background: #fffef9;
}

.steps-sun,
.steps-clouds,
.steps-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.steps-sun {
  bottom: -42px;
  left: 0;
  width: 118px;
}

.steps-clouds {
  right: 0;
  bottom: 0;
  width: 360px;
}

.steps-shape {
  top: 0;
  right: 0;
  width: 530px;
}

.steps-container {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 96px));
  margin-inline: auto;
}

.steps-intro {
  position: relative;
  z-index: 4;
  max-width: 560px;
}

.steps-title {
  margin-top: 26px;
  font-size: 4.15rem;
  line-height: 0.95;
}

.steps-title-accent {
  color: var(--purple);
}

.steps-title-underline {
  left: 44px;
  bottom: -18px;
  width: 410px;
}

.steps-title-plim {
  right: -78px;
  bottom: 18px;
  width: 58px;
}

.steps-intro p {
  max-width: 440px;
  margin: 30px 0 0;
  color: var(--navy-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.steps-intro p span {
  display: block;
  margin-top: 4px;
}

.steps-intro strong {
  color: #9b73f6;
}

.steps-scene {
  position: relative;
  min-height: 660px;
  margin-top: -92px;
}

.steps-dash {
  position: absolute;
  z-index: 1;
  max-width: none;
  pointer-events: none;
}

.steps-dash-left {
  left: 88px;
  top: 390px;
  width: 300px;
}

.steps-dash-middle {
  left: 575px;
  top: 284px;
  width: 340px;
}

.steps-dash-right {
  right: 168px;
  top: 320px;
  width: 350px;
}

.step-item {
  position: absolute;
  z-index: 3;
  width: 275px;
}

.step-one {
  left: 20px;
  top: 250px;
}

.step-two {
  left: 30.5%;
  top: 150px;
  width: 330px;
}

.step-three {
  left: 57.8%;
  top: 122px;
  width: 280px;
}

.step-four {
  right: 0;
  top: 84px;
  width: 285px;
}

.step-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 20px rgba(82, 48, 191, 0.22);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
}

.step-two .step-number {
  background: var(--orange);
}

.step-three .step-number {
  background: #52bd28;
}

.step-four .step-number {
  background: var(--pink);
}

.step-copy {
  margin-top: 12px;
}

.step-copy h3 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.18;
}

.step-copy h3 span {
  color: var(--purple);
}

.step-two .step-copy h3 span {
  color: var(--orange);
}

.step-three .step-copy h3 span {
  color: #52bd28;
}

.step-four .step-copy h3 span {
  color: var(--pink);
}

.step-copy p {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.65;
}

.step-image {
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

.step-image img {
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 22px 18px rgba(60, 45, 102, 0.12));
}

.step-image-phone {
  width: 300px;
  margin-left: 6px;
}

.step-image-board {
  width: 410px;
  margin-top: 38px;
  margin-left: -92px;
}

.step-image-check {
  width: 300px;
  margin-top: 36px;
  margin-left: -28px;
}

.step-image-gift {
  width: 300px;
  margin-top: 32px;
  margin-left: 18px;
}

.steps-callout {
  position: relative;
  z-index: 5;
  width: min(540px, 100%);
  min-height: 80px;
  margin: -34px auto 0;
  padding: 15px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(236, 230, 246, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.steps-callout-heart {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7d4df0, #b28cff);
  font-size: 2.1rem;
  line-height: 1;
}

.steps-callout p {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.3;
}

.steps-callout strong {
  display: block;
  color: var(--purple);
}

.preview-section {
  position: relative;
  padding: 104px 0 112px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffef9 0%, #eef9ff 50%, #fff8fb 100%);
}

.preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, transparent 44%),
    radial-gradient(circle at 88% 8%, rgba(255, 197, 41, 0.22), transparent 28%);
  pointer-events: none;
}

.preview-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(560px, 1.08fr);
  align-items: center;
  gap: 58px;
}

.preview-copy {
  max-width: 580px;
}

.preview-eyebrow {
  color: #4aa815;
  border-color: rgba(160, 222, 128, 0.7);
  background: rgba(240, 251, 232, 0.92);
}

.preview-title {
  margin-top: 24px;
  font-size: 3.55rem;
  line-height: 1.02;
}

.preview-title .decorated-title-accent {
  color: #58c322;
}

.preview-title .decorated-title-underline {
  bottom: -0.22em;
  width: min(96%, 370px);
}

.preview-copy p {
  max-width: 510px;
  margin: 22px 0 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.preview-demo {
  min-width: 0;
}

.routine-preview-board {
  position: relative;
  width: min(100%, 760px);
  margin-left: auto;
  padding: 12px;
  border: 12px solid #fff;
  border-radius: 34px;
  background: #fff;
  box-shadow:
    0 30px 72px rgba(66, 41, 124, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  isolation: isolate;
}

.routine-preview-screen {
  position: relative;
  aspect-ratio: 1.52;
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px;
  background: #bde3f8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.routine-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.routine-preview-sun {
  position: absolute;
  z-index: 2;
  left: 2.4%;
  top: 2.2%;
  width: 13.2%;
  filter: drop-shadow(0 8px 8px rgba(78, 65, 118, 0.08));
  transform-origin: center;
  animation: previewSunFloat 5.6s ease-in-out infinite;
}

.routine-preview-title-img {
  position: absolute;
  z-index: 2;
  top: 4%;
  left: 50%;
  width: 34%;
  transform: translateX(-50%);
}

.routine-total {
  position: absolute;
  z-index: 4;
  top: 3.2%;
  right: 2.5%;
  width: 24%;
  transform-origin: center;
  animation: previewCloudFloat 6.4s ease-in-out infinite;
}

.routine-total-cloud {
  width: 100%;
  filter: drop-shadow(0 10px 8px rgba(70, 64, 107, 0.1));
}

.routine-total-content {
  position: absolute;
  inset: 12% 11% 16%;
  display: grid;
  place-items: center;
  align-content: center;
}

.routine-total strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c4dff;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.7vw, 2.35rem);
  font-weight: 900;
  line-height: 0.95;
}

.routine-total strong img {
  width: clamp(24px, 3.2vw, 42px);
  height: clamp(24px, 3.2vw, 42px);
  object-fit: contain;
}

.routine-total span {
  color: #7c4dff;
  font-family: var(--font-display);
  font-size: clamp(0.54rem, 1.1vw, 0.94rem);
  font-weight: 900;
  line-height: 0.9;
}

.routine-total.is-bumping {
  animation: previewCloudFloat 6.4s ease-in-out infinite;
}

.routine-total.is-bumping .routine-total-content {
  animation: previewTotalBump 550ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.routine-task-list {
  position: absolute;
  z-index: 3;
  left: 6%;
  top: 30%;
  width: 57%;
  display: grid;
  gap: 7px;
}

.routine-task {
  position: relative;
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px 39px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: #46406b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 18px rgba(70, 64, 107, 0.1);
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.routine-task:hover {
  box-shadow: 0 13px 24px rgba(70, 64, 107, 0.15);
  transform: translateY(-2px);
}

.routine-task:focus-visible {
  outline: 4px solid rgba(245, 166, 35, 0.45);
  outline-offset: 3px;
}

.routine-task-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9f5c8;
  color: #7cb342;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.routine-task:nth-child(2) .routine-task-number {
  color: #fb8c00;
  background: #fff1d6;
}

.routine-task:nth-child(3) .routine-task-number {
  color: #7c4dff;
  background: #eae4fa;
}

.routine-task:nth-child(4) .routine-task-number {
  color: #2196f3;
  background: #dceffb;
}

.routine-task:nth-child(5) .routine-task-number {
  color: #7cb342;
  background: #e9f5c8;
}

.routine-task-asset,
.routine-task-emoji {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  object-fit: contain;
  font-size: 1.68rem;
  line-height: 1;
}

.routine-task-copy {
  display: grid;
  min-width: 0;
}

.routine-task-copy strong {
  color: #46406b;
  font-family: var(--font-display);
  font-size: clamp(0.84rem, 1.38vw, 1.2rem);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.routine-task-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #f5a623;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 1.32vw, 1.16rem);
  font-weight: 900;
  line-height: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.routine-task-reward img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.routine-task-check {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(139, 133, 174, 0.4);
  border-radius: 50%;
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.routine-task-check img {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

.routine-task.completed {
  opacity: 0.85;
}

.routine-task.completed:hover {
  transform: none;
}

.routine-task.completed .routine-task-reward {
  opacity: 0.52;
  transform: scale(0.92);
}

.routine-task.completed .routine-task-check {
  border-color: transparent;
  background: transparent;
  transform: scale(1.03);
}

.routine-task.completed .routine-task-check img {
  opacity: 1;
  transform: scale(1);
}

.routine-preview-mascot {
  position: absolute;
  z-index: 2;
  right: 3.9%;
  bottom: -3.4%;
  width: 21.5%;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.routine-preview-mascot img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 12px 8px rgba(70, 64, 107, 0.12));
}

.routine-speech {
  max-width: 82%;
  margin-bottom: -2%;
  padding: 8px 13px;
  border-radius: 18px;
  color: #7c4dff;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 18px rgba(70, 64, 107, 0.1);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.2vw, 1.02rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.routine-preview-mascot span {
  position: relative;
  z-index: 3;
  margin-top: -9%;
  padding: 4px 16px;
  border: 3px solid #7c4dff;
  border-radius: 999px;
  color: #7c4dff;
  background: #fff;
  box-shadow: 0 8px 12px rgba(70, 64, 107, 0.1);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.32rem);
  font-weight: 900;
  transform: translateY(-10px);
}

.routine-preview-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.routine-spark-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: visible;
  pointer-events: none;
}

.routine-tutorial {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.routine-tutorial.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.routine-tutorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(18, 20, 52, 0.58);
  backdrop-filter: blur(0.5px) saturate(0.92);
}

.routine-tutorial-card {
  position: absolute;
  z-index: 3;
  left: 12.4%;
  top: 10.1%;
  width: min(330px, 48%);
  padding: 10px 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 205, 55, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(54, 42, 139, 0.98) 0%, rgba(114, 67, 225, 0.94) 100%);
  box-shadow:
    0 18px 34px rgba(24, 20, 70, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  font-family: var(--font-display);
  line-height: 1;
  transform: rotate(-1deg);
  animation: tutorialCardFloat 2.6s ease-in-out infinite;
}

.routine-tutorial-card::after {
  content: none;
}

.routine-tutorial-card strong {
  display: block;
}

.routine-tutorial-card strong {
  max-width: 100%;
  color: #fff;
  font-size: clamp(1rem, 1.58vw, 1.34rem);
  font-weight: 900;
  line-height: 1.04;
  text-shadow: 0 2px 0 rgba(35, 28, 97, 0.24);
}

.routine-tutorial-note {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.7rem, 1.04vw, 0.88rem);
  font-weight: 900;
  line-height: 1.12;
}

.routine-tutorial-task {
  position: absolute;
  z-index: 2;
  left: 6%;
  top: 30%;
  width: 57%;
  pointer-events: none;
  box-shadow:
    0 15px 30px rgba(22, 19, 60, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(255, 255, 255, 0.3);
  animation: tutorialTaskPulse 1.7s ease-in-out infinite;
}

.routine-tutorial .routine-tutorial-task .routine-task-number {
  color: #7cb342;
  background: #e9f5c8;
}

.routine-tutorial-task:hover {
  transform: none;
}

.preview-burst-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes previewSunFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(12px, 14px, 0) rotate(6deg);
  }
}

@keyframes previewCloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-14px, 12px, 0);
  }
}

@keyframes tutorialCardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(0.8deg);
  }
}

@keyframes tutorialTaskPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 15px 30px rgba(22, 19, 60, 0.28),
      0 0 0 5px rgba(255, 255, 255, 0.2),
      0 0 28px rgba(255, 255, 255, 0.3);
  }

  50% {
    transform: scale(1.018);
    box-shadow:
      0 18px 36px rgba(22, 19, 60, 0.34),
      0 0 0 8px rgba(255, 255, 255, 0.2),
      0 0 38px rgba(255, 214, 76, 0.28);
  }
}

@keyframes previewTotalBump {
  0%,
  100% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.16) rotate(-2deg);
  }
}

.messages-section {
  position: relative;
  padding: 98px 0 112px;
  overflow: hidden;
  /*background: linear-gradient(180deg, #fffef9 0%, #ffffff 48%, #fff8fb 100%);*/
  background: #fdf8f5;
}

.messages-container {
  position: relative;
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.messages-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 704px) minmax(360px, 1fr);
  align-items: start;
  gap: 44px;
}

.messages-copy {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: 560px;
  min-height: 0;
}

.messages-eyebrow {
  min-height: 48px;
  padding: 8px 20px 8px 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #9c78f4 0%, #7042e8 100%);
  box-shadow: 0 14px 28px rgba(107, 67, 228, 0.22);
  text-transform: uppercase;
}

.messages-eyebrow img {
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.messages-title {
  margin-top: 24px;
  color: #23306f;
  font-size: 4rem;
  line-height: 1.04;
}

.messages-title-accent {
  color: #8b66ed;
}

.messages-title-underline {
  left: 0.08em;
  bottom: -0.2em;
  width: min(98%, 310px);
}

.messages-title-plim {
  position: absolute;
  right: -0.78em;
  bottom: 0.1em;
  width: 0.78em;
  max-width: none;
}

.messages-copy p {
  /*max-width: 500px;*/
  margin: 24px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.6;
}

.messages-family {
  position: relative;
  left: auto;
  right: -18px;
  bottom: auto;
  width: 500px;
  margin: 18px 0 -92px auto;
  pointer-events: none;
}

.messages-family > img {
  width: 100%;
}

.messages-heart-bubble {
  position: absolute;
  right: -58px;
  top: 72px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 226, 248, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(74, 55, 114, 0.12);
}

.messages-heart-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 12px;
  width: 26px;
  height: 22px;
  border-radius: 0 0 0 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: -1px 1px 0 rgba(239, 226, 248, 0.8);
  transform: rotate(-28deg);
}

.messages-heart-bubble img {
  position: relative;
  z-index: 1;
  width: 58px;
}

.messages-flight-icon {
  --flight-x: clamp(560px, 48vw, 780px);
  --flight-y: -226px;

  position: absolute;
  z-index: 6;
  left: clamp(230px, 21vw, 320px);
  top: 500px;
  width: 58px;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(0.55) rotate(-10deg);
  transform-origin: center;
  animation: none;
}

.messages-board {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 704px);
  justify-self: start;
  margin: 0;
}

.messages-board-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.messages-preview-board {
  width: 100%;
  margin: 0;
  transform: none;
}

.messages-preview-screen {
  min-height: 0;
  background: #bde3f8;
}

.messages-board-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: rgba(18, 20, 52, 0.58);
  backdrop-filter: blur(0.4px) saturate(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

[data-message-stage].is-alert .messages-board-overlay,
[data-message-stage].is-viewing .messages-board-overlay {
  opacity: 1;
}

.message-marker {
  position: absolute;
  z-index: 6;
  top: 5.8%;
  right: 4.8%;
  width: 9.5%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #fff;
  box-shadow:
    0 12px 22px rgba(82, 184, 32, 0.24),
    0 0 0 4px #64c324;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
  animation: messageMarkerBob 1.1s ease-in-out infinite;
}

[data-message-stage].is-marker .message-marker {
  opacity: 1;
  pointer-events: auto;
}

.message-marker img {
  width: 46%;
  height: 46%;
  object-fit: contain;
}

.message-marker span {
  position: absolute;
  top: -8%;
  right: -8%;
  min-width: 32%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e04b4b;
  font-family: var(--font-display);
  font-size: clamp(0.42rem, 0.9vw, 0.8rem);
  font-weight: 900;
  line-height: 1;
}

.message-alert-perspective {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 47%;
  width: 52%;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 20px)) scale(0.9);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.86, 0.2, 1.14);
}

[data-message-stage].is-alert .message-alert-perspective {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.message-alert-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 20px 22px 21px;
  border: 5px solid #64c324;
  border-radius: 30px;
  color: #24245f;
  background: #fff;
  text-align: center;
  box-shadow:
    0 18px 34px rgba(82, 184, 32, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.message-alert-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  animation: messageAlertIconBob 0.9s ease-in-out infinite alternate;
}

.message-alert-card h3 {
  margin: 0;
  color: #58b624;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.62vw, 1.6rem);
  font-weight: 900;
  line-height: 1.04;
}

.message-alert-card p {
  margin: -2px 0 0;
  color: #24245f;
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 1.06vw, 1.04rem);
  font-weight: 900;
  line-height: 1.14;
}

.message-alert-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
}

.message-alert-child img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  animation: messageMarkerBob 1.1s ease-in-out infinite alternate;
}

.message-alert-child strong {
  color: #64c324;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.32vw, 1.32rem);
  font-weight: 900;
  line-height: 1;
}

.message-alert-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.message-alert-button {
  min-height: 46px;
  padding: 8px 10px;
  border: 3px solid #64c324;
  border-radius: 15px;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.08vw, 1.05rem);
  font-weight: 900;
  line-height: 1;
}

.message-alert-button.filled {
  color: #fff;
  background: linear-gradient(180deg, #72ce36 0%, #52b820 100%);
  box-shadow: 0 9px 16px rgba(82, 184, 32, 0.24);
}

.message-alert-button.ghost {
  color: #58b624;
  background: #fff;
}

.message-card-perspective {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 47%;
  width: 34%;
  margin: 0;
  opacity: 0;
  filter: none;
  transform-origin: center;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.92);
  pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.86, 0.2, 1.14);
}

[data-message-stage].is-viewing .message-card-perspective {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.message-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 142px;
  padding: 18px 18px 16px;
  border: 2px solid #64c324;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  box-shadow:
    0 16px 28px rgba(23, 46, 29, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.message-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 243, 0.92));
  pointer-events: none;
}

.message-card > * {
  position: relative;
  z-index: 1;
}

.message-card-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.message-card h3 {
  color: #58b624;
  font-size: 0.86rem;
  line-height: 1.12;
}

.message-card p {
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border-radius: 12px;
  color: #24245f;
  background: #eef7e8;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.message-card button {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #72ce36 0%, #52b820 100%);
  box-shadow: 0 8px 16px rgba(82, 184, 32, 0.24);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
}

.message-card button span {
  color: #fff6a2;
}

@keyframes messageMarkerBob {
  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes messageAlertIconBob {
  0% {
    transform: translateY(-4px) rotate(-5deg);
  }

  100% {
    transform: translateY(4px) rotate(5deg);
  }
}

.messages-safe-strip {
  position: relative;
  z-index: 5;
  width: min(940px, calc(100% - 260px));
  min-height: 66px;
  margin: -54px auto 0;
  padding: 16px 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 215, 255, 0.98);
  border-radius: 999px;
  color: #5c43ce;
  background: rgba(239, 231, 255, 0.96);
  box-shadow: 0 16px 34px rgba(94, 70, 190, 0.12);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.messages-benefits {
  position: relative;
  z-index: 2;
  padding-top: 34px;
}

.messages-benefits-title {
  margin: 0 0 26px;
  color: #8b66ed;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.messages-presence-badge {
  width: 172px;
  align-self: center;
  justify-self: center;
  filter: drop-shadow(0 18px 18px rgba(74, 50, 148, 0.18));
}

.messages-benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: auto;
}

.messages-benefit {
  display: grid;
  justify-items: center;
  text-align: center;
}

.messages-benefit img {
  width: 132px;
  margin-bottom: 14px;
}

.messages-benefit h4 {
  margin: 0;
  color: #082cc6;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.14;
}

.messages-benefit p {
  margin: 8px 0 0;
  color: #142653;
  font-size: 0.92rem;
  line-height: 1.5;
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.section-heading h2 {
  margin-top: 20px;
}

.differential-title {
  max-width: 760px;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--navy-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.differential-section {
  position: relative;
  padding: 112px 0 132px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf8ff 0%, #fff 58%, #fff8fb 100%);
}

.differential-star {
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -320px;
  width: 760px;
  max-width: none;
  opacity: 0.28;
  filter: saturate(1.08);
  pointer-events: none;
  user-select: none;
}

.differential-section .container {
  position: relative;
  z-index: 2;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 58px;
}

.device-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 500px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.muted-panel {
  color: #5e687a;
  border-color: rgba(223, 224, 232, 0.78);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.48) 42%, transparent 72%),
    linear-gradient(180deg, rgba(249, 249, 252, 0.96) 0%, rgba(239, 239, 245, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 20px 48px rgba(74, 74, 95, 0.08);
}

.good-panel {
  border-color: rgba(171, 143, 247, 0.62);
  background:
    radial-gradient(circle at 48% 26%, rgba(245, 255, 238, 0.95) 0%, rgba(245, 255, 238, 0.62) 43%, transparent 68%),
    linear-gradient(145deg, rgba(252, 255, 250, 0.98) 0%, rgba(255, 255, 255, 0.94) 54%, rgba(248, 244, 255, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(83, 49, 177, 0.14);
}

.device-image {
  min-height: 230px;
  display: grid;
  place-items: center;
}

.device-image img {
  width: min(100%, 390px);
  filter: drop-shadow(0 22px 18px rgba(58, 43, 95, 0.11));
}

.device-panel h3 {
  font-size: 2rem;
}

.good-panel h3 {
  color: var(--purple);
}

.device-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 800;
  list-style: none;
}

.device-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-icon {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.list-icon svg {
  width: 14px;
  height: 14px;
}

.list-icon.bad {
  background: #aeb4be;
}

.list-icon.good {
  background: var(--green);
}

.versus {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
}

.versus::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border: 8px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple), var(--pink));
  box-shadow: 0 15px 24px rgba(89, 49, 178, 0.24);
  z-index: -1;
}

.final-callout {
  min-height: 118px;
  margin-top: 46px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(218, 207, 247, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.final-callout img {
  width: 220px;
}

.final-callout div {
  display: grid;
  gap: 3px;
}

.final-callout span {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-callout strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.25;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.21, 0.75, 0.3, 1);
}

.reveal-delay-short {
  transition-delay: 100ms;
}

.reveal-delay {
  transition-delay: 180ms;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .hero {
    min-height: 830px;
  }

  .hero-layout {
    min-height: 698px;
    grid-template-columns: minmax(560px, 600px) minmax(520px, 1fr);
  }

  .hero-title {
    font-size: 4.55rem;
  }

  .hero-visual {
    min-height: 698px;
    margin-right: -96px;
  }

  .hero-board {
    right: -48px;
    bottom: 18px;
    width: 800px;
  }

  .messages-container {
    width: min(var(--page-max), calc(100% - var(--page-gutter)));
  }

  .messages-hero {
    grid-template-columns: minmax(0, 704px) minmax(340px, 1fr);
    gap: 36px;
  }

  .messages-title {
    font-size: 3.55rem;
  }

  .messages-copy p {
    max-width: 450px;
  }

  .messages-family {
    left: -34px;
    width: 438px;
  }

  .messages-board {
    width: min(100%, 704px);
    margin-right: 0;
  }

  .message-alert-card {
    padding: 16px 18px 17px;
    gap: 7px;
    border-width: 4px;
    border-radius: 25px;
  }

  .message-alert-icon {
    width: 44px;
    height: 44px;
  }

  .message-alert-child img {
    width: 38px;
    height: 38px;
  }

  .message-alert-button {
    min-height: 38px;
    border-width: 2px;
    border-radius: 12px;
  }

  .message-card {
    min-height: 128px;
    padding: 14px 14px 13px;
    gap: 6px;
    border-radius: 15px;
  }

  .message-card-icon {
    width: 26px;
    height: 26px;
  }

  .message-card h3 {
    font-size: 0.76rem;
  }

  .message-card p {
    padding: 9px 11px;
    font-size: 0.72rem;
  }

  .message-card button {
    min-height: 32px;
    font-size: 0.78rem;
  }

  .messages-safe-strip {
    width: min(900px, calc(100% - 220px));
  }

  .messages-benefit-grid {
    gap: 18px;
  }

  .messages-benefit img {
    width: 118px;
  }

  .messages-presence-badge {
    width: 158px;
  }

  .challenge-grid {
    grid-template-columns: minmax(520px, 0.95fr) minmax(600px, 1.05fr);
  }

  .challenge-photo {
    width: 710px;
  }

  .steps-container {
    width: min(var(--page-max), calc(100% - 64px));
  }

  .step-two {
    left: 29%;
  }

  .step-three {
    left: 57%;
  }

  .step-four {
    right: -18px;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout,
  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(820px, 100%);
    min-height: 650px;
    margin: -40px auto 0;
  }

  .hero-board {
    right: 50%;
    bottom: -18px;
    width: 760px;
    transform: translateX(50%);
  }

  .messages-section {
    padding: 84px 0 96px;
  }

  .messages-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .messages-copy {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    min-height: auto;
    text-align: center;
  }

  .messages-copy p,
  .messages-title-accent {
    margin-inline: auto;
  }

  .messages-family {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 340px);
    margin: 28px auto 0;
  }

  .messages-heart-bubble {
    right: -36px;
    top: 54px;
  }

  .messages-flight-icon {
    --flight-x: 0px;
    --flight-y: 330px;

    left: calc(50% - 28px);
    top: 560px;
    width: 54px;
  }

  .messages-board {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    width: min(940px, 100%);
    margin: -8px auto 0;
  }

  .messages-board-stage {
    width: 100%;
  }

  .message-alert-perspective {
    width: 50%;
  }

  .message-alert-card {
    padding: 18px 19px 18px;
  }

  .message-card {
    min-height: 150px;
    padding: 19px 18px 17px;
  }

  .messages-safe-strip {
    width: min(860px, 100%);
    margin-top: -26px;
  }

  .messages-presence-badge {
    grid-column: 2;
    width: 176px;
  }

  .messages-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .challenge-grid {
    width: min(100% - 48px, 900px);
    margin-inline: auto;
    padding-left: 0;
    gap: 44px;
  }

  .challenge-art {
    min-height: 620px;
  }

  .challenge-photo {
    right: 50%;
    width: 760px;
    transform: translateX(50%);
  }

  .challenge-dino {
    left: 160px;
  }

  .steps-scene {
    min-height: auto;
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }

  .steps-dash {
    display: none;
  }

  .step-item,
  .step-one,
  .step-two,
  .step-three,
  .step-four {
    position: relative;
    inset: auto;
    width: auto;
  }

  .step-image-phone,
  .step-image-board,
  .step-image-check,
  .step-image-gift {
    width: 100%;
    max-width: 340px;
    margin-left: 0;
  }

  .steps-callout {
    margin-top: 42px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: clip;
  }

  .container,
  .steps-container {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    top: 8px;
  }

  .nav-shell {
    width: min(100% - 24px, 680px);
    min-height: 64px;
    padding: 8px 9px 8px 12px;
  }

  .brand {
    width: 156px;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    margin-left: auto;
    place-items: center;
    border-radius: 8px;
    color: var(--purple);
    background: var(--purple-soft);
  }

  .menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  .menu-close {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-open {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-close {
    display: block;
  }

  .mobile-nav {
    width: min(100% - 24px, 680px);
    margin: 8px auto 0;
    padding: 12px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-nav > a:not(.button) {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 900;
  }

  .mobile-nav > a:not(.button):hover {
    background: var(--purple-soft);
  }

  h1 {
    font-size: 4.25rem;
  }

  .hero-title {
    font-size: 4.25rem;
  }

  h2,
  .challenge-copy h2,
  .steps-title {
    font-size: 3.2rem;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-bg {
    object-position: 64% bottom;
  }

  .hero-wash {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.18) 100%);
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 520px;
    margin-top: 8px;
  }

  .hero-board {
    width: 610px;
    bottom: 10px;
  }

  .challenge-section,
  .steps-section,
  .messages-section,
  .differential-section {
    padding: 78px 0;
  }

  .messages-container {
    width: min(100% - 32px, 680px);
  }

  .messages-title {
    font-size: 3.2rem;
  }

  .messages-copy p {
    font-size: 1.05rem;
  }

  .messages-family {
    width: min(430px, 88%);
    margin: 0 auto;
  }

  .messages-heart-bubble {
    right: -16px;
    width: 78px;
    height: 78px;
  }

  .messages-heart-bubble img {
    width: 48px;
  }

  .messages-flight-icon {
    --flight-y: 300px;

    top: 520px;
    width: 50px;
  }

  .messages-board {
    width: min(100%, 720px);
  }

  .message-alert-perspective {
    width: 52%;
  }

  .message-alert-card {
    padding: 14px 15px 15px;
    border-width: 3px;
    border-radius: 22px;
  }

  .message-alert-icon {
    width: 36px;
    height: 36px;
  }

  .message-alert-card h3 {
    font-size: 0.92rem;
  }

  .message-alert-card p {
    font-size: 0.68rem;
  }

  .message-alert-child {
    gap: 7px;
  }

  .message-alert-child img {
    width: 32px;
    height: 32px;
  }

  .message-alert-child strong {
    font-size: 0.82rem;
  }

  .message-alert-actions {
    gap: 7px;
  }

  .message-alert-button {
    min-height: 32px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .message-card-perspective {
    left: 50%;
    top: 47%;
    width: 34.5%;
  }

  .message-card {
    min-height: 126px;
    padding: 13px 13px 12px;
    gap: 7px;
    border-width: 1px;
    border-radius: 14px;
  }

  .message-card-icon {
    width: 26px;
    height: 26px;
  }

  .message-card h3 {
    font-size: 0.68rem;
  }

  .message-card p {
    padding: 9px 10px;
    font-size: 0.66rem;
    line-height: 1.28;
  }

  .message-card button {
    min-height: 30px;
    border-radius: 8px;
    font-size: 0.68rem;
  }

  .messages-safe-strip {
    min-height: 58px;
    margin-top: -12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.08rem;
  }

  .messages-benefits {
    padding-top: 0;
  }

  .messages-benefits-title {
    text-align: center;
    margin-inline: auto;
  }

  .messages-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .messages-presence-badge {
    grid-column: 1 / -1;
    width: min(220px, 70%);
  }

  .messages-benefit,
  .messages-benefit.reveal.visible {
    transform: none;
  }

  .messages-benefit img {
    width: 110px;
  }

  .challenge-art {
    min-height: 520px;
  }

  .challenge-photo {
    width: 650px;
    top: -20px;
  }

  .challenge-dino {
    width: 124px;
    left: 92px;
    bottom: 52px;
  }

  .question-grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 0;
  }

  .steps-shape {
    width: 420px;
    opacity: 0.78;
  }

  .steps-sun {
    width: 88px;
  }

  .steps-clouds {
    width: 300px;
  }

  .steps-title-underline {
    left: 30px;
    bottom: -14px;
    width: 330px;
  }

  .steps-title-plim {
    right: -56px;
    bottom: 10px;
    width: 46px;
  }

  .steps-scene {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .step-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: start;
    gap: 14px;
  }

  .step-number {
    width: 46px;
    height: 46px;
  }

  .step-copy {
    margin-top: 2px;
  }

  .step-image {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
  }

  .step-image-phone,
  .step-image-board,
  .step-image-check,
  .step-image-gift {
    width: min(100%, 350px);
    max-width: 350px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .device-panel {
    min-height: 0;
  }

  .versus {
    height: 16px;
  }

  .versus::before {
    width: 62px;
    height: 62px;
  }

  .final-callout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .container,
  .steps-container {
    width: min(100% - 24px, 480px);
  }

  .brand {
    width: 136px;
  }

  .hero {
    padding-top: 94px;
    padding-bottom: 0;
  }

  .hero-copy {
    padding-top: 12px;
  }

  .eyebrow {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-title {
    font-size: 2.55rem;
  }

  h2,
  .challenge-copy h2,
  .steps-title {
    font-size: 2.55rem;
  }

  .messages-title {
    font-size: 2.55rem;
  }

  .hero-lead,
  .section-heading p,
  .steps-intro p {
    font-size: 0.98rem;
  }

  .hero-lead {
    margin-top: 12px;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button-large {
    width: 100%;
  }

  .watch-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 180px;
    margin-inline: -12px;
  }

  .hero-board {
    bottom: 0;
    width: 430px;
  }

  .challenge-art {
    min-height: 360px;
    margin-inline: -12px;
  }

  .challenge-photo {
    width: 460px;
  }

  .challenge-dino {
    width: 86px;
    left: 70px;
    bottom: 38px;
  }

  .steps-sun {
    bottom: -20px;
    width: 64px;
  }

  .steps-clouds {
    width: 220px;
  }

  .steps-shape {
    width: 330px;
  }

  .steps-title-accent {
    width: auto;
  }

  .steps-title-underline {
    left: 18px;
    width: 280px;
  }

  .steps-title-plim {
    right: 8px;
    bottom: -48px;
  }

  .steps-scene {
    margin-top: 36px;
  }

  .step-item {
    grid-template-columns: 52px 1fr;
  }

  .step-copy h3 {
    font-size: 1.18rem;
  }

  .step-copy p {
    font-size: 0.92rem;
  }

  .step-image-phone,
  .step-image-board,
  .step-image-check,
  .step-image-gift {
    width: min(100%, 310px);
  }

  .steps-callout {
    align-items: flex-start;
    border-radius: 8px;
    padding: 18px;
  }

  .steps-callout-heart {
    width: 48px;
    height: 48px;
    font-size: 1.65rem;
  }

  .steps-callout p {
    font-size: 1.04rem;
  }

  .messages-container {
    width: min(100% - 24px, 480px);
  }

  .messages-eyebrow {
    min-height: 40px;
    padding: 6px 14px 6px 10px;
  }

  .messages-eyebrow img {
    width: 26px;
    height: 26px;
  }

  .messages-copy p {
    font-size: 0.96rem;
  }

  .messages-family {
    width: min(360px, 94%);
    margin: 24px auto 0;
  }

  .messages-heart-bubble {
    top: 42px;
    right: -4px;
    width: 64px;
    height: 64px;
  }

  .messages-heart-bubble img {
    width: 39px;
  }

  .messages-flight-icon {
    --flight-y: 248px;

    top: 500px;
    width: 44px;
  }

  .messages-board {
    width: 100%;
    margin-top: -6px;
  }

  .message-marker {
    box-shadow:
      0 8px 16px rgba(82, 184, 32, 0.22),
      0 0 0 2px #64c324;
  }

  .message-alert-perspective {
    top: 47%;
    width: 62%;
  }

  .message-alert-card {
    padding: 7px 8px 8px;
    gap: 3px;
    border-width: 2px;
    border-radius: 13px;
  }

  .message-alert-icon {
    width: 21px;
    height: 21px;
  }

  .message-alert-card h3 {
    font-size: 0.6rem;
  }

  .message-alert-card p {
    margin-top: 0;
    font-size: 0.45rem;
  }

  .message-alert-child {
    gap: 4px;
    margin-top: 0;
  }

  .message-alert-child img {
    width: 20px;
    height: 20px;
  }

  .message-alert-child strong {
    font-size: 0.56rem;
  }

  .message-alert-actions {
    gap: 4px;
    margin-top: 2px;
  }

  .message-alert-button {
    min-height: 20px;
    padding: 4px 5px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 0.47rem;
  }

  .message-card-perspective {
    left: 50%;
    top: 47%;
    width: 42%;
  }

  .message-card {
    min-height: 88px;
    padding: 8px 8px 7px;
    gap: 4px;
    border-radius: 9px;
  }

  .message-card-icon {
    width: 17px;
    height: 17px;
  }

  .message-card h3 {
    font-size: 0.5rem;
  }

  .message-card p {
    padding: 5px 6px;
    border-radius: 7px;
    font-size: 0.46rem;
    line-height: 1.24;
  }

  .message-card button {
    min-height: 20px;
    border-radius: 6px;
    font-size: 0.48rem;
  }

  .messages-safe-strip {
    margin-top: -4px;
    padding: 13px 16px;
    font-size: 0.94rem;
  }

  .messages-benefits-title {
    font-size: 0.98rem;
  }

  .messages-benefit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .messages-benefit,
  .messages-benefit.reveal.visible {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 0;
    text-align: left;
    transform: none;
  }

  .messages-benefit img {
    grid-row: 1 / span 2;
    width: 48px;
    margin: 0 8px 0 0;
    justify-self: center;
  }

  .messages-benefit h4,
  .messages-benefit p {
    grid-column: 2;
  }

  .messages-benefit p {
    margin-inline: 0;
  }

  .messages-presence-badge {
    grid-column: auto;
    width: min(220px, 72%);
    justify-self: center;
  }

  .device-panel {
    padding: 24px 20px;
  }

  .device-image {
    min-height: 180px;
  }

  .device-panel h3 {
    font-size: 1.7rem;
  }

  .device-list {
    font-size: 0.9rem;
  }

  .final-callout img {
    width: 200px;
  }

  .final-callout strong {
    font-size: 1.18rem;
  }
}

@media (max-width: 1180px) {
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .preview-copy {
    max-width: 690px;
  }

  .preview-copy p {
    max-width: 620px;
  }

  .routine-preview-board {
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .preview-section {
    padding: 78px 0;
  }

  .preview-title {
    font-size: 3.2rem;
  }

  .routine-preview-board {
    padding: 10px;
    border-width: 9px;
    border-radius: 28px;
  }

  .routine-preview-screen {
    min-height: 0;
    border-radius: 16px;
  }

  .routine-task-list {
    gap: 7px;
  }

  .routine-task {
    min-height: 52px;
    grid-template-columns: 35px 37px minmax(0, 1fr) auto 36px;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  .routine-task-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.18rem;
  }

  .routine-task-asset,
  .routine-task-emoji {
    width: 36px;
    height: 36px;
    font-size: 1.62rem;
  }

  .routine-task-check {
    width: 34px;
    height: 34px;
    border-width: 2px;
  }

  .routine-task-reward img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 540px) {
  .preview-title {
    font-size: 2.55rem;
  }

  .preview-copy p {
    font-size: 0.98rem;
  }

  .routine-preview-board {
    padding: 9px;
    border-width: 7px;
    border-radius: 22px;
  }

  .routine-preview-screen {
    aspect-ratio: 1.52;
    border-radius: 13px;
  }

  .routine-task-list {
    left: 6%;
    top: 30%;
    width: 57%;
    gap: clamp(2px, 0.75vw, 4px);
  }

  .routine-task {
    min-height: clamp(24px, 6.35vw, 32px);
    grid-template-columns:
      clamp(16px, 4.1vw, 22px)
      clamp(17px, 4.6vw, 25px)
      minmax(0, 1fr)
      auto
      clamp(17px, 4.6vw, 25px);
    gap: clamp(2px, 0.75vw, 4px);
    padding: clamp(3px, 0.8vw, 5px) clamp(4px, 1vw, 6px);
    border-radius: clamp(8px, 2vw, 11px);
  }

  .routine-task-number {
    width: clamp(16px, 4.1vw, 22px);
    height: clamp(16px, 4.1vw, 22px);
    border-radius: clamp(6px, 1.4vw, 8px);
    font-size: clamp(0.58rem, 2.1vw, 0.78rem);
  }

  .routine-task-asset,
  .routine-task-emoji {
    width: clamp(17px, 4.6vw, 25px);
    height: clamp(17px, 4.6vw, 25px);
    font-size: clamp(0.78rem, 3.15vw, 1.08rem);
  }

  .routine-task-copy strong {
    font-size: clamp(0.48rem, 1.95vw, 0.68rem);
  }

  .routine-task-reward {
    gap: 2px;
    font-size: clamp(0.52rem, 2vw, 0.72rem);
  }

  .routine-task-reward img {
    width: clamp(10px, 3vw, 14px);
    height: clamp(10px, 3vw, 14px);
  }

  .routine-task-check {
    width: clamp(17px, 4.6vw, 25px);
    height: clamp(17px, 4.6vw, 25px);
  }

  .routine-preview-title-img {
    top: 4%;
    width: 34%;
  }

  .routine-preview-sun {
    width: 13.2%;
  }

  .routine-total {
    top: 3.2%;
    right: 2.5%;
    width: 24%;
  }

  .routine-preview-mascot {
    right: 3.2%;
    bottom: -3%;
    width: 18%;
  }

  .routine-speech {
    display: none;
  }

  .routine-preview-mascot span {
    margin-top: -6%;
    padding: 3px 10px;
    border-width: 2px;
    transform: translateY(-7px);
  }

  .routine-tutorial-card {
    left: 10.5%;
    top: 8%;
    width: 54%;
    padding: clamp(5px, 1.45vw, 8px) clamp(7px, 1.8vw, 10px);
    border-radius: clamp(10px, 2.4vw, 14px);
  }

  .routine-tutorial-card strong {
    font-size: clamp(0.64rem, 2.45vw, 0.82rem);
    line-height: 1.02;
  }

  .routine-tutorial-note {
    margin-top: clamp(3px, 0.8vw, 5px);
    font-size: clamp(0.43rem, 1.65vw, 0.56rem);
    line-height: 1.05;
  }

  .routine-tutorial-task {
    left: 6%;
    top: 30%;
    width: 57%;
    box-shadow:
      0 10px 22px rgba(22, 19, 60, 0.28),
      0 0 0 4px rgba(255, 255, 255, 0.2),
      0 0 22px rgba(255, 255, 255, 0.3);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .preview-section .routine-preview-sun {
    animation-name: previewSunFloat !important;
    animation-duration: 5.6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
  }

  .preview-section .routine-total {
    animation-name: previewCloudFloat !important;
    animation-duration: 6.4s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
  }

  .preview-section .routine-total.is-bumping .routine-total-content {
    animation-name: previewTotalBump !important;
    animation-duration: 550ms !important;
    animation-timing-function: cubic-bezier(0.2, 0.86, 0.2, 1) !important;
    animation-iteration-count: 1 !important;
  }

}

/* =========================================================
   V2 CONCEPT — novas seções
   1. Cena "caos → calma" (desafio)
   2. Mascotes & voz
   3. Lojinha de recompensas
   4. Tela com propósito (diferencial refeito)
   5. Finale noturno (CTA)
   ========================================================= */

/* ---------- 1. Cena caos → calma ---------- */

.chaos-scene {
  position: relative;
  width: min(660px, 100%);
  margin: 0 auto;
  aspect-ratio: 1.18;
  overflow: hidden;
  border: 12px solid #fff;
  border-radius: 34px;
  background: #fde9d8;
  box-shadow:
    0 30px 72px rgba(66, 41, 124, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  isolation: isolate;
}

.chaos-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 210, 160, 0.9), transparent 52%),
    linear-gradient(180deg, #ffe3c4 0%, #ffd2c2 60%, #ffc9cf 100%);
  transition: opacity 900ms ease;
}

.chaos-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 244, 194, 0.9), transparent 44%),
    linear-gradient(180deg, #cdeafd 0%, #e3f4ff 56%, #f3fbff 100%);
  transition: opacity 900ms ease;
}

.chaos-scene.phase-calm .chaos-sky {
  opacity: 0;
}

.chaos-scene.phase-calm::after {
  opacity: 1;
}

.chaos-phase-chip {
  position: absolute;
  z-index: 6;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

.chaos-phase-chip span {
  grid-area: 1 / 1;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.86, 0.2, 1.2);
}

.chip-chaos {
  color: #d4386c;
  background: #fff;
  box-shadow: 0 10px 22px rgba(212, 56, 108, 0.18);
}

.chip-calm {
  color: #3f9714;
  background: #fff;
  box-shadow: 0 10px 22px rgba(82, 184, 32, 0.2);
}

.chaos-scene.phase-chaos .chip-chaos,
.chaos-scene.phase-calm .chip-calm {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chaos-clock {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  width: 176px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  transition: transform 720ms cubic-bezier(0.34, 1.2, 0.5, 1), opacity 620ms ease;
}

/* o tremor fica no wrapper interno, para nao brigar com a saida suave do container */
.chaos-clock-inner {
  position: relative;
  width: 100%;
  transform-origin: center;
}

.chaos-scene.phase-chaos .chaos-clock-inner {
  animation: chaosClockShake 620ms ease-in-out infinite;
}

/* saida: some subindo, encolhendo e girando de leve (nao "seca") */
.chaos-scene.phase-calm .chaos-clock {
  opacity: 0;
  transform: translate(-50%, -132%) scale(0.42) rotate(24deg);
}

.chaos-clock svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.clock-face {
  fill: #fff;
  stroke: none;
}

.clock-rim {
  fill: none;
  stroke: #ff6f9a;
  stroke-width: 7;
}

.clock-ticks line {
  stroke: #c9c2e6;
  stroke-width: 4;
}

.clock-hand {
  stroke: #46406b;
  stroke-width: 6;
  transform-origin: 60px 60px;
}

.chaos-scene.phase-chaos .clock-hand-min {
  animation: chaosHandSpin 2.6s linear infinite;
}

.clock-pin {
  fill: #ff6f9a;
  stroke: none;
}

.chaos-clock-bell {
  position: absolute;
  top: -7px;
  width: 34px;
  height: 22px;
  border-radius: 20px 20px 4px 4px;
  background: #ff6f9a;
}

.chaos-clock-bell-left {
  left: 14px;
  transform: rotate(-30deg);
}

.chaos-clock-bell-right {
  right: 14px;
  transform: rotate(30deg);
}

.chaos-bubble {
  position: absolute;
  z-index: 4;
  max-width: 240px;
  padding: 11px 17px;
  border-radius: 20px;
  background: #fff;
  color: #d4386c;
  box-shadow: 0 14px 26px rgba(120, 46, 84, 0.16);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.5vw, 1.18rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.4);
}

.chaos-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 26px;
  width: 18px;
  height: 16px;
  background: inherit;
  border-radius: 0 0 4px 18px;
  transform: rotate(18deg);
}

.chaos-scene.phase-chaos .chaos-bubble {
  animation:
    chaosBubbleIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1.3) forwards,
    chaosBubbleJitter 900ms ease-in-out infinite;
}

.chaos-scene.phase-calm .chaos-bubble {
  animation: chaosBubblePop 460ms cubic-bezier(0.5, -0.3, 0.8, 0.4) forwards;
}

.cb-1 { left: 5%;  top: 13%; color: #b04ae0; }
.cb-2 { right: 5%; top: 19%; color: #d4386c; transform-origin: 80% 100%; }
.cb-3 { left: 3%;  top: 39%; color: #e2701d; }
.cb-4 { right: 3%; top: 46%; color: #b04ae0; }
.cb-5 { left: 9%;  top: 66%; color: #d4386c; }
.cb-6 { right: 8%; top: 73%; color: #2f7fd3; }

/* delays com a mesma especificidade do shorthand acima, senao o shorthand os reseta */
.chaos-scene.phase-chaos .cb-1 { animation-delay: 200ms, 720ms; }
.chaos-scene.phase-chaos .cb-2 { animation-delay: 900ms, 1420ms; }
.chaos-scene.phase-chaos .cb-3 { animation-delay: 1650ms, 2170ms; }
.chaos-scene.phase-chaos .cb-4 { animation-delay: 2400ms, 2920ms; }
.chaos-scene.phase-chaos .cb-5 { animation-delay: 3150ms, 3670ms; }
.chaos-scene.phase-chaos .cb-6 { animation-delay: 3950ms, 4470ms; }

.chaos-scene.phase-calm .cb-1 { animation-delay: 0ms; }
.chaos-scene.phase-calm .cb-2 { animation-delay: 70ms; }
.chaos-scene.phase-calm .cb-3 { animation-delay: 140ms; }
.chaos-scene.phase-calm .cb-4 { animation-delay: 210ms; }
.chaos-scene.phase-calm .cb-5 { animation-delay: 280ms; }
.chaos-scene.phase-calm .cb-6 { animation-delay: 350ms; }

.cb-child::after {
  left: auto;
  right: 26px;
  border-radius: 0 0 18px 4px;
  transform: rotate(-18deg);
}

.calm-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.calm-card {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(348px, 74%);
  display: grid;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 44px rgba(52, 88, 128, 0.2);
  opacity: 0;
  transform: translate(-50%, -34%) scale(0.85);
  transition: opacity 480ms ease, transform 560ms cubic-bezier(0.2, 0.86, 0.2, 1.18);
  transition-delay: 0ms;
}

.chaos-scene.phase-calm .calm-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 480ms;
}

.calm-card-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #79c93e, #52b820);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calm-card-task {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
}

.calm-card-asset {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.calm-card-task strong {
  color: #46406b;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.05;
}

.calm-card-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f5a623;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
}

.calm-card-reward img {
  width: 20px;
  height: 20px;
}

.calm-card-check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

/* segundo item: circulo vazio, igual as tarefas nao concluidas do board */
.calm-card-check.empty {
  border: 3px solid rgba(139, 133, 174, 0.4);
  border-radius: 50%;
  background: #fff;
}

.calm-card-check img {
  width: 100%;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1.4);
}

.chaos-scene.phase-calm .calm-card-check img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1250ms;
}

.calm-card-next {
  display: block;
  margin-top: 10px;
  color: #7d88a8;
  font-size: 0.86rem;
  font-weight: 700;
}

.calm-dino {
  position: absolute;
  right: 7%;
  bottom: -4%;
  width: 27%;
  opacity: 0;
  transform: translateY(40px) scale(0.7);
  transition: opacity 480ms ease, transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1.3);
  filter: drop-shadow(0 14px 12px rgba(54, 42, 92, 0.16));
}

.chaos-scene.phase-calm .calm-dino {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 760ms;
}

.calm-sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff 0%, #ffd76a 55%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
}

.chaos-scene.phase-calm .calm-sparkle {
  animation: calmTwinkle 1.6s ease-in-out infinite;
}

.calm-sparkle-1 { left: 20%; top: 24%; animation-delay: 900ms; }
.calm-sparkle-2 { right: 18%; top: 30%; width: 10px; height: 10px; animation-delay: 1300ms; }
.calm-sparkle-3 { left: 30%; top: 70%; width: 11px; height: 11px; animation-delay: 1700ms; }

@keyframes chaosBubbleIn {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes chaosBubbleJitter {
  0%, 100% { translate: 0 0; rotate: -1deg; }
  25%      { translate: 1.5px -1.5px; rotate: 1.2deg; }
  50%      { translate: -1.5px 1px; rotate: -0.8deg; }
  75%      { translate: 1px 1.5px; rotate: 0.9deg; }
}

@keyframes chaosBubblePop {
  0%   { opacity: 1; transform: scale(1); }
  35%  { opacity: 1; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(0.2); }
}

@keyframes chaosClockShake {
  0%, 100% { transform: rotate(-6deg); }
  25%      { transform: rotate(5deg) translateY(-1px); }
  50%      { transform: rotate(6deg); }
  75%      { transform: rotate(-5deg) translateY(1px); }
}

@keyframes chaosHandSpin {
  to { transform: rotate(360deg); }
}

@keyframes calmTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* ---------- 2. Mascotes & voz ---------- */

.mascots-section {
  position: relative;
  padding: 104px 0 112px;
  overflow: hidden;
  background: linear-gradient(180deg, #fdf8f5 0%, #f4eeff 55%, #fbf7ff 100%);
}

.mascots-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(178, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at 8% 86%, rgba(255, 197, 41, 0.12), transparent 30%);
  pointer-events: none;
}

.mascots-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 56px;
}

.mascots-eyebrow {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #ff7ba1 0%, #ff477c 100%);
  box-shadow: 0 14px 28px rgba(255, 71, 124, 0.24);
  text-transform: uppercase;
}

.mascots-eyebrow-heart {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.mascots-eyebrow-heart svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: #fff;
}

.mascots-title {
  margin-top: 24px;
  font-size: 3.7rem;
  line-height: 1.02;
}

.mascots-title-accent {
  color: var(--pink);
}

.mascots-title-underline {
  bottom: -0.2em;
  width: min(96%, 400px);
}

.mascots-copy > p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.mascots-copy > p strong {
  color: var(--navy);
}

.mascots-note {
  font-size: 0.98rem;
}

.mascots-try {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(228, 215, 255, 0.98);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.mascots-name-label {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
}

.mascots-try-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.mascots-name-input {
  flex: 1 1 170px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 18px;
  border: 2px solid rgba(178, 140, 255, 0.5);
  border-radius: 999px;
  color: var(--purple-dark);
  background: #faf7ff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mascots-name-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 77, 240, 0.14);
}

.mascots-hear svg {
  fill: currentColor;
}

.mascots-hear:disabled {
  cursor: wait;
  opacity: 0.82;
}

.mascots-hear.is-loading svg {
  animation: mascotVoiceLoading 780ms linear infinite;
}

.mascots-voice-status {
  display: block;
  min-height: 1.25em;
  margin-top: 10px;
  color: var(--purple-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.mascots-disclaimer {
  display: block;
  margin-top: 12px;
  color: #8b8fae;
  font-size: 0.8rem;
  line-height: 1.45;
}

.mascots-stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px 18px 24px;
  isolation: isolate;
}

.mascots-speech {
  position: relative;
  z-index: 3;
  width: min(100%, 420px);
  min-height: 74px;
  max-width: 420px;
  display: grid;
  place-items: center;
  padding: 16px 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(94, 70, 190, 0.16);
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  left: var(--mascot-speech-shift-x, 0px);
  transition: left 300ms cubic-bezier(0.2, 0.86, 0.2, 1.2);
}

.mascots-speech::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: var(--mascot-speech-tail-x, 50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #fff;
  transform: translateX(-50%);
  transition: left 280ms cubic-bezier(0.2, 0.86, 0.2, 1.2);
}

.mascots-speech.is-talking {
  animation: speechBounce 640ms cubic-bezier(0.2, 0.86, 0.2, 1.3);
}

.mascots-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
  margin-top: 34px;
  width: 100%;
  max-width: 560px;
}

.mascot-pick {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px 16px;
  border: 3px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms cubic-bezier(0.2, 0.86, 0.2, 1.2), border-color 240ms ease, background 240ms ease;
}

.mascot-pick img {
  width: min(132px, 100%);
  height: 120px;
  object-fit: contain;
  filter: saturate(0.75) opacity(0.82);
  transition: filter 240ms ease, transform 240ms ease;
}

.mascot-pick span {
  padding: 3px 16px;
  border: 3px solid transparent;
  border-radius: 999px;
  color: #8b8fae;
  background: #f3f1fa;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  transition: all 240ms ease;
}

.mascot-pick:hover {
  transform: translateY(-6px);
}

.mascot-pick.is-active {
  border-color: rgba(124, 77, 255, 0.55);
  background: #fff;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 24px 48px rgba(94, 70, 190, 0.2);
}

.mascot-pick.is-active img {
  filter: none;
}

.mascot-pick.is-active span {
  border-color: #7c4dff;
  color: #7c4dff;
  background: #fff;
}

.mascot-pick.is-talking img {
  animation: mascotTalk 460ms cubic-bezier(0.2, 0.86, 0.2, 1.3) infinite alternate;
}

.mascots-stage-hint {
  margin: 26px 0 0;
  color: #8b8fae;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.mascots-spark-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: visible;
  pointer-events: none;
}

.mascot-fly-star {
  position: absolute;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

@keyframes speechBounce {
  0%   { transform: scale(0.8); }
  55%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes mascotTalk {
  from { transform: translateY(0) rotate(-2deg) scale(1); }
  to   { transform: translateY(-8px) rotate(2deg) scale(1.05, 0.97); }
}

@keyframes mascotVoiceLoading {
  to { transform: rotate(360deg); }
}

/* ---------- 3. Lojinha ---------- */

.shop-section {
  position: relative;
  padding: 104px 0 112px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf7ff 0%, #fff9ec 52%, #fffdf8 100%);
}

.shop-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 197, 41, 0.16), transparent 30%),
    radial-gradient(circle at 92% 78%, rgba(124, 77, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.shop-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(400px, 0.82fr) minmax(540px, 1.18fr);
  align-items: center;
  gap: 56px;
}

.shop-eyebrow {
  color: #b07800;
  border-color: rgba(255, 214, 110, 0.9);
  background: rgba(255, 247, 224, 0.95);
}

.shop-title {
  margin-top: 24px;
  font-size: 3.7rem;
  line-height: 1.02;
}

.shop-title-accent {
  color: #eda311;
}

.shop-title-underline {
  bottom: -0.2em;
  width: min(96%, 420px);
}

.shop-copy > p {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.shop-copy > p strong {
  color: var(--navy);
}

.shop-tip {
  margin-top: 26px;
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
}

.shop-demo {
  position: relative;
  padding: 74px 26px 30px;
  border: 12px solid #fff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 235, 170, 0.55), transparent 38%),
    linear-gradient(180deg, #f6f0ff 0%, #fdfaff 100%);
  box-shadow:
    0 30px 72px rgba(66, 41, 124, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  isolation: isolate;
}

.shop-balance {
  position: absolute;
  z-index: 4;
  top: -34px;
  right: 4%;
  width: 178px;
  animation: previewCloudFloat 6.4s ease-in-out infinite;
}

.shop-balance-cloud {
  width: 100%;
  filter: drop-shadow(0 10px 8px rgba(70, 64, 107, 0.1));
}

.shop-balance-content {
  position: absolute;
  inset: 12% 11% 16%;
  display: grid;
  place-items: center;
  align-content: center;
}

.shop-balance-content strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c4dff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 0.95;
}

.shop-balance-content strong img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.shop-balance-content span {
  color: #7c4dff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 0.9;
}

.shop-balance.is-bumping .shop-balance-content {
  animation: previewTotalBump 550ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 18px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(70, 64, 107, 0.12);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(70, 64, 107, 0.16);
}

.shop-item-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.shop-item h3 {
  color: #46406b;
  font-size: 1.06rem;
  line-height: 1.15;
}

.shop-item-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5a623;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
}

.shop-item-cost img {
  width: 20px;
  height: 20px;
}

.shop-item-button {
  min-width: 120px;
  min-height: 42px;
  margin-top: 2px;
  padding: 8px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ffca42 0%, #f5a623 100%);
  box-shadow: 0 9px 18px rgba(245, 166, 35, 0.32);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.shop-item-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(245, 166, 35, 0.4);
}

.shop-item-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.shop-item-state span {
  display: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.shop-state-pending {
  color: #7c4dff;
}

.shop-state-pending small {
  display: block;
  color: #8b8fae;
  font-size: 0.8rem;
}

.shop-state-approved {
  color: #52b820;
}

.shop-item.is-pending .shop-item-state,
.shop-item.is-approved .shop-item-state {
  opacity: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
}

.shop-item.is-pending .shop-state-pending {
  display: block;
  animation: shopPendingPulse 1.1s ease-in-out infinite;
}

.shop-item.is-approved .shop-state-approved {
  display: block;
  animation: shopApprovedIn 480ms cubic-bezier(0.2, 0.86, 0.2, 1.3);
}

.shop-item.is-approved {
  box-shadow:
    0 12px 26px rgba(82, 184, 32, 0.18),
    0 0 0 3px rgba(114, 206, 54, 0.55);
}

.shop-item.is-denied {
  animation: shopShake 420ms ease-in-out;
}

.shop-toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 64px;
  padding: 10px 22px;
  border-radius: 999px;
  color: #d4386c;
  background: #fff;
  box-shadow: 0 14px 30px rgba(212, 56, 108, 0.2);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.shop-toast.is-showing {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shop-reset {
  display: block;
  margin: 16px auto 0;
  padding: 6px 14px;
  border-radius: 999px;
  color: #8b8fae;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.shop-demo.has-activity .shop-reset {
  opacity: 1;
  pointer-events: auto;
}

.shop-spark-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: visible;
  pointer-events: none;
}

@keyframes shopPendingPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes shopApprovedIn {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes shopShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-7px) rotate(-1deg); }
  40%      { transform: translateX(7px) rotate(1deg); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

/* ---------- 4. Tela com propósito ---------- */

.purpose-section {
  position: relative;
  padding: 112px 0 122px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f3ff 60%, #fbf8ff 100%);
}

.purpose-layout {
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: 48px;
}

.purpose-title {
  margin-top: 20px;
  font-size: 3.55rem;
  line-height: 1.04;
}

.purpose-title-accent {
  color: var(--purple);
}

.purpose-title-underline {
  bottom: -0.2em;
  width: min(96%, 430px);
}

.purpose-copy > p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--navy-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.purpose-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.purpose-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(228, 215, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.purpose-list strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
}

.purpose-list li div span {
  color: var(--navy-soft);
  font-size: 0.9rem;
}

.purpose-stage {
  position: relative;
  min-height: 600px;
  padding-bottom: 118px; /* faixa reservada para o termometro (nao sobrepoe os chips) */
  display: grid;
  place-items: center;
}

.purpose-board-wrap {
  position: relative;
  width: min(430px, 84%);
}

.purpose-board {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 26px 22px rgba(58, 43, 95, 0.14));
  animation: purposeBoardFloat 6s ease-in-out infinite;
}

.purpose-halo {
  position: absolute;
  z-index: 1;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 140, 255, 0.3) 0%, rgba(178, 140, 255, 0.08) 46%, transparent 66%);
  animation: purposeHaloPulse 4s ease-in-out infinite;
}

.purpose-chip {
  position: absolute;
  z-index: 3;
  padding: 9px 16px;
  border-radius: 999px;
  color: #6b7590;
  background: #fff;
  box-shadow: 0 12px 24px rgba(74, 74, 95, 0.14);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
  animation: purposeChipFloat 4.4s ease-in-out infinite;
}

.purpose-chip.is-popping {
  animation: purposeChipPop 900ms cubic-bezier(0.4, -0.2, 0.7, 0.4) forwards;
}

.purpose-chip.is-hidden {
  opacity: 0;
  transform: scale(0.3);
  animation: none;
}

.purpose-chip.is-respawning {
  animation: purposeChipRespawn 700ms cubic-bezier(0.2, 0.9, 0.2, 1.3) forwards;
}

.pc-1 { left: 4%;  top: 15%;  animation-delay: 0ms; }
.pc-2 { right: 0;  top: 14%; animation-delay: 600ms; }
.pc-3 { left: 0;   top: 40%; animation-delay: 1100ms; }
.pc-4 { right: 3%; top: 50%; animation-delay: 300ms; }
.pc-5 { left: 12%; top: 62%; animation-delay: 900ms; }

.purpose-stage-caption {
  position: absolute;
  right: 6%;
  bottom: 0;
  margin: 0;
  color: #8b8fae;
  font-size: 0.88rem;
  font-weight: 700;
}

@keyframes purposeBoardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes purposeHaloPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.05); }
}

@keyframes purposeChipFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

@keyframes purposeChipPop {
  0%   { opacity: 1; transform: scale(1) rotate(0deg); }
  30%  { opacity: 1; transform: scale(1.18) rotate(-4deg); }
  100% { opacity: 0; transform: scale(0.1) rotate(14deg); }
}

@keyframes purposeChipRespawn {
  0%   { opacity: 0; transform: scale(0.2); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- 5. Finale noturno ---------- */

.finale-section {
  position: relative;
  padding: 122px 0 128px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #221a55 0%, #2e2372 48%, #443295 100%);
}

.finale-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.finale-moon {
  position: absolute;
  top: 64px;
  right: 12%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -22px -10px 0 4px #ffe9a8;
  filter: drop-shadow(0 0 26px rgba(255, 233, 168, 0.45));
  transform: rotate(-24deg);
}

.finale-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff 0%, #ffe9a8 55%, transparent 72%);
  border-radius: 50%;
  animation: finaleTwinkle 2.8s ease-in-out infinite;
}

.fs-1 { left: 8%;  top: 18%; }
.fs-2 { left: 22%; top: 40%; width: 7px; height: 7px; animation-delay: 400ms; }
.fs-3 { left: 34%; top: 12%; animation-delay: 900ms; }
.fs-4 { left: 55%; top: 26%; width: 6px; height: 6px; animation-delay: 1300ms; }
.fs-5 { left: 68%; top: 10%; animation-delay: 700ms; }
.fs-6 { left: 82%; top: 42%; width: 8px; height: 8px; animation-delay: 1700ms; }
.fs-7 { left: 14%; top: 68%; width: 7px; height: 7px; animation-delay: 1100ms; }
.fs-8 { left: 90%; top: 72%; animation-delay: 2000ms; }

.finale-cloud {
  position: absolute;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  animation: finaleCloudDrift 14s ease-in-out infinite alternate;
}

.fc-1 { left: -40px; top: 30%; width: 220px; }
.fc-2 { right: -60px; bottom: 18%; width: 280px; animation-delay: 4s; }

.finale-layout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.finale-dino {
  width: 132px;
  margin-bottom: 10px;
  filter: drop-shadow(0 16px 14px rgba(10, 8, 40, 0.4));
  animation: finaleDinoBob 3.4s ease-in-out infinite;
}

.finale-title {
  color: #fff;
  font-size: 3.9rem;
  line-height: 1.05;
}

.finale-title span {
  display: block;
}

.finale-title-accent {
  color: #ffd76a;
}

.finale-layout p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.65;
}

.finale-cta {
  margin-top: 32px;
  box-shadow: 0 18px 44px rgba(20, 12, 64, 0.5);
}

.finale-layout small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 700;
}

@keyframes finaleTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

@keyframes finaleCloudDrift {
  from { translate: 0 0; }
  to   { translate: 60px -8px; }
}

@keyframes finaleDinoBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* ---------- Responsivo (novas seções) ---------- */

@media (max-width: 1280px) {
  .mascots-layout,
  .shop-layout,
  .purpose-layout {
    gap: 40px;
  }

  .mascots-title,
  .shop-title {
    font-size: 3.3rem;
  }

  .purpose-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 1180px) {
  .mascots-layout,
  .shop-layout,
  .purpose-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mascots-copy,
  .shop-copy,
  .purpose-copy {
    max-width: 640px;
    text-align: center;
  }

  .mascots-copy > p,
  .shop-copy > p,
  .purpose-copy > p,
  .mascots-title-accent,
  .shop-title-accent,
  .purpose-title-accent {
    margin-inline: auto;
  }

  .mascots-try {
    text-align: left;
  }

  .mascots-stage,
  .shop-demo {
    width: min(680px, 100%);
  }

  .purpose-list li {
    text-align: left;
  }

  .purpose-stage {
    width: min(620px, 100%);
    min-height: 480px;
  }

  .chaos-scene {
    width: min(600px, 100%);
  }

  .challenge-art {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .mascots-section,
  .shop-section,
  .purpose-section {
    padding: 78px 0;
  }

  .mascots-title,
  .shop-title,
  .purpose-title {
    font-size: 2.7rem;
  }

  .finale-title {
    font-size: 2.9rem;
  }

  .mascots-podium {
    gap: 12px;
  }

  .mascot-pick img {
    height: 92px;
  }

  .shop-demo {
    padding: 64px 14px 24px;
  }

  .shop-grid {
    gap: 12px;
  }

  .shop-balance {
    width: 148px;
    top: -28px;
  }

  .shop-item h3 {
    font-size: 0.95rem;
  }

  .chaos-bubble {
    max-width: 200px;
    font-size: 0.85rem;
  }

  .chaos-clock {
    width: 132px;
  }

  .calm-card {
    width: min(300px, 82%);
  }

  .purpose-stage {
    min-height: 420px;
  }

  .purpose-board-wrap {
    width: min(340px, 78%);
  }

  .purpose-chip {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .finale-moon {
    right: 6%;
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 520px) {
  .mascots-title,
  .shop-title,
  .purpose-title {
    font-size: 2.2rem;
  }

  .finale-title {
    font-size: 2.3rem;
  }

  .chaos-scene {
    aspect-ratio: 0.92;
    border-width: 8px;
  }

  .cb-4 { display: none; }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .mascots-podium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mascot-pick {
    padding: 12px 6px 12px;
  }

  .mascot-pick img {
    height: 68px;
  }

  .mascot-pick span {
    font-size: 0.8rem;
    padding: 2px 10px;
  }

  .purpose-stage-caption {
    position: static;
    margin-top: 12px;
    text-align: center;
  }
}

/* A cena caos->calma nao entra aqui: ela so anima quando o JS adiciona
   phase-chaos/phase-calm, e com movimento reduzido o JS nao dispara sozinho
   (aparece o botao "Ver a cena" para tocar sob demanda). */
@media (prefers-reduced-motion: reduce) {
  .purpose-chip,
  .purpose-board,
  .purpose-halo,
  .finale-star,
  .finale-cloud,
  .finale-dino,
  .decorated-title-plim,
  .mascot-pick.is-talking img {
    animation: none !important;
  }
}

/* Botao para tocar a cena sob demanda (visivel quando o autoplay esta suspenso) */
.chaos-replay {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #794df0 0%, #6231df 100%);
  box-shadow: 0 14px 28px rgba(99, 49, 223, 0.34);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  transform: translateX(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chaos-scene.motion-paused .chaos-replay {
  display: inline-flex;
}

.chaos-replay:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 18px 34px rgba(99, 49, 223, 0.42);
}

.chaos-replay svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

/* Enquanto a cena estiver tocando (opt-in), esconde o botao para nao tampar */
.chaos-scene.is-playing .chaos-replay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

/* Poster estatico (movimento reduzido, antes de tocar): sem flash de baloes/brilhos */
.chaos-scene.is-poster .chaos-bubble,
.chaos-scene.is-poster .calm-sparkle {
  animation: none;
  opacity: 0;
}

/* =========================================================
   V3 CONCEPT — refinamentos
   - Caos: props caindo, vinheta de estresse, brilhos na calma
   - Proposito: distracoes interativas + termometro "tempo em familia"
   ========================================================= */

/* ---------- Caos: props tumbando ---------- */

.chaos-props {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.chaos-prop {
  position: absolute;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 8px 6px rgba(96, 52, 64, 0.16));
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: transform, opacity, scale;
}

/* pop de escala (igual as nuvens de palavras) + respiro leve; sem girar */
.chaos-scene.phase-chaos .chaos-prop {
  animation: chaosPropPop 540ms cubic-bezier(0.2, 0.9, 0.2, 1.35) forwards,
    chaosPropBreath 2s ease-in-out infinite;
}

.cp-1 { left: 7%;  top: 32%; }
.cp-2 { left: 15%; top: 80%; }
.cp-3 { right: 11%; top: 40%; }
.cp-4 { right: 7%;  top: 76%; }
.cp-5 { left: 46%; top: 86%; }
.cp-6 { right: 32%; top: 12%; }

/* delays com mesma especificidade do shorthand acima (senao ele os zera) */
.chaos-scene.phase-chaos .cp-1 { animation-delay: 300ms; }
.chaos-scene.phase-chaos .cp-2 { animation-delay: 1400ms; }
.chaos-scene.phase-chaos .cp-3 { animation-delay: 800ms; }
.chaos-scene.phase-chaos .cp-4 { animation-delay: 2000ms; }
.chaos-scene.phase-chaos .cp-5 { animation-delay: 2500ms; }
.chaos-scene.phase-chaos .cp-6 { animation-delay: 600ms; }

@keyframes chaosPropPop {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.14); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes chaosPropBreath {
  0%, 100% { scale: 1; }
  50%      { scale: 1.1; }
}

/* ---------- Caos: vinheta de estresse ---------- */

.chaos-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 42%, rgba(214, 64, 90, 0.18) 100%);
  transition: opacity 700ms ease;
}

.chaos-scene.phase-chaos .chaos-vignette {
  animation: chaosVignettePulse 1.9s ease-in-out infinite;
}

@keyframes chaosVignettePulse {
  0%, 100% { opacity: 0.62; }
  50%      { opacity: 1; }
}

/* ---------- Calma: brilhos subindo ---------- */

.calm-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.calm-float {
  position: absolute;
  font-size: clamp(17px, 2.6vw, 27px);
  line-height: 1;
  opacity: 0;
}

.chaos-scene.phase-calm .calm-float {
  animation: calmFloatRise 3.4s ease-in-out infinite;
}

.cf-1 { left: 27%; bottom: 26%; }
.cf-2 { left: 50%; bottom: 20%; }
.cf-3 { left: 67%; bottom: 30%; }

.chaos-scene.phase-calm .cf-1 { animation-delay: 500ms; }
.chaos-scene.phase-calm .cf-2 { animation-delay: 1300ms; }
.chaos-scene.phase-calm .cf-3 { animation-delay: 2100ms; }

@keyframes calmFloatRise {
  0%   { opacity: 0; transform: translateY(8px) scale(0.5) rotate(-6deg); }
  22%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px) scale(1.08) rotate(8deg); }
}

/* ---------- Proposito: distracoes clicaveis ---------- */

.purpose-chip {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.purpose-chip:hover {
  transform: scale(1.07);
  color: #d4386c;
  box-shadow: 0 16px 30px rgba(212, 56, 108, 0.22);
}

.purpose-chip:active {
  transform: scale(0.95);
}

.purpose-chip:focus-visible {
  outline: 3px solid rgba(124, 77, 255, 0.5);
  outline-offset: 3px;
}

/* dica de "toque aqui" */
.purpose-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #6b4bd6;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(94, 70, 190, 0.16);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 320ms ease, transform 320ms ease;
  animation: purposeHintPulse 2s ease-in-out infinite;
}

.purpose-hint-finger {
  display: inline-block;
  font-size: 1.2rem;
  animation: purposeFingerBob 1.1s ease-in-out infinite;
}

.purpose-stage.started .purpose-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
  animation: none;
}

@keyframes purposeHintPulse {
  0%, 100% { box-shadow: 0 12px 26px rgba(94, 70, 190, 0.16); }
  50%      { box-shadow: 0 12px 30px rgba(124, 77, 255, 0.32); }
}

@keyframes purposeFingerBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-10deg); }
}

/* termometro "tempo em familia" */
.purpose-meter {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: min(370px, 90%);
  padding: 15px 20px 14px;
  border: 1px solid rgba(228, 215, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(94, 70, 190, 0.16);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.purpose-stage.started .purpose-meter {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.purpose-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.purpose-meter-label {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}

.purpose-meter-value {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.purpose-meter-track {
  position: relative;
  height: 15px;
  border-radius: 999px;
  background: #ece6f6;
}

.purpose-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b28cff, #7c4dff);
  transition: width 640ms cubic-bezier(0.2, 0.86, 0.2, 1), background 400ms ease;
}

.purpose-meter-heart {
  position: absolute;
  top: 50%;
  left: 0%;
  font-size: 1.4rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: left 640ms cubic-bezier(0.2, 0.86, 0.2, 1);
  filter: drop-shadow(0 3px 3px rgba(94, 70, 190, 0.24));
}

.purpose-meter-caption {
  margin: 11px 0 0;
  color: var(--navy-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.3em;
}

.purpose-meter-reset {
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #8b8fae;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.purpose-stage.all-cleared .purpose-meter-reset {
  opacity: 1;
  pointer-events: auto;
}

.purpose-stage.all-cleared .purpose-meter-value {
  color: #eda311;
}

.purpose-stage.all-cleared .purpose-meter-fill {
  background: linear-gradient(90deg, #ffca42, #ff9418);
}

/* tie-in: cada distracao que some da um "pulso" no halo do board;
   com tudo limpo, o halo fica dourado e mais forte */
.purpose-board-wrap.halo-bump .purpose-halo {
  animation: purposeHaloBump 620ms ease;
}

.purpose-stage.all-cleared .purpose-halo {
  background: radial-gradient(circle, rgba(255, 201, 66, 0.42) 0%, rgba(178, 140, 255, 0.16) 46%, transparent 66%);
}

.purpose-stage.all-cleared .purpose-board {
  animation: purposeBoardCleared 700ms cubic-bezier(0.2, 0.86, 0.2, 1.3);
}

@keyframes purposeHaloBump {
  0%   { transform: scale(1); opacity: 0.85; }
  40%  { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

@keyframes purposeBoardCleared {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-14px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* Movimento reduzido: mantem tudo estatico, mas as distracoes continuam
   clicaveis e o termometro continua reagindo (transicoes leves so). */
@media (prefers-reduced-motion: reduce) {
  .chaos-prop,
  .chaos-vignette,
  .calm-float,
  .purpose-hint,
  .purpose-hint-finger {
    animation: none !important;
  }
}

@media (max-width: 820px) {
  .purpose-meter {
    width: min(340px, 94%);
    padding: 12px 16px 12px;
  }

  .purpose-hint {
    font-size: 0.86rem;
    padding: 8px 14px;
  }

  .chaos-prop {
    font-size: clamp(20px, 5vw, 30px);
  }
}

/* =========================================================
   V4 CONCEPT — termometro de estresse (caos) + tutorial (proposito)
   ========================================================= */

/* ---------- Caos: termometro de estresse da crianca ---------- */

.chaos-stress {
  position: absolute;
  z-index: 5;
  left: 6%;
  bottom: 5%;
  width: min(48%, 262px);
  padding: 8px 12px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 20px rgba(60, 40, 70, 0.14);
  backdrop-filter: blur(2px);
}

.chaos-stress-label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.chaos-stress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chaos-stress-track {
  position: relative;
  flex: 1;
  height: 11px;
  border-radius: 999px;
  background: rgba(20, 18, 40, 0.1);
  overflow: hidden;
}

.chaos-stress-fill {
  width: 16%;
  height: 100%;
  border-radius: 999px;
  background: #63bf2b;
}

.chaos-scene.phase-chaos .chaos-stress-fill {
  animation: chaosStressRise 6.2s cubic-bezier(0.5, 0, 0.9, 0.55) forwards;
}

.chaos-scene.phase-calm .chaos-stress-fill {
  animation: chaosStressCalm 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.chaos-scene.is-poster .chaos-stress-fill {
  animation: none;
  width: 16%;
  background: #63bf2b;
}

.chaos-stress-face {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  font-size: 22px;
  line-height: 1;
}

.chaos-stress-face span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 500ms ease;
}

.face-stressed { opacity: 0; }
.face-calm { opacity: 1; }

.chaos-scene.phase-chaos .face-stressed { opacity: 1; }
.chaos-scene.phase-chaos .face-calm { opacity: 0; }

@keyframes chaosStressRise {
  0%   { width: 16%; background: #63bf2b; }
  35%  { background: #ffc529; }
  65%  { background: #ff9418; }
  100% { width: 95%; background: #ff3b3b; }
}

@keyframes chaosStressCalm {
  0%   { width: 95%; background: #ff3b3b; }
  100% { width: 16%; background: #63bf2b; }
}

/* ---------- Proposito: aviso apontando a primeira distracao ---------- */

.purpose-poke {
  position: absolute;
  z-index: 5;
  left: 3%;
  top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7b4df0 0%, #6231df 100%);
  box-shadow: 0 12px 24px rgba(99, 49, 223, 0.3);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  animation: purposePokeBob 1.4s ease-in-out infinite;
  transition: opacity 300ms ease, transform 300ms ease;
}

/* tail apontando para baixo (para a nuvenzinha) */
.purpose-poke::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -8px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #6231df;
}

.purpose-poke-finger {
  font-size: 1.15rem;
  line-height: 1;
}

.purpose-stage.started .purpose-poke {
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  pointer-events: none;
  animation: none;
}

@keyframes purposePokeBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* a primeira distracao pulsa com brilho suave (sem escurecer o fundo) */
.purpose-stage:not(.started) .pc-1 {
  color: #6b4bd6;
  box-shadow:
    0 0 0 4px rgba(124, 77, 255, 0.18),
    0 0 22px rgba(124, 77, 255, 0.42),
    0 12px 24px rgba(74, 74, 95, 0.14);
  animation: purposeChipFloat 4.4s ease-in-out infinite,
    purposeChipSpotlight 1.5s ease-in-out infinite;
}

@keyframes purposeChipSpotlight {
  0%, 100% { scale: 1; }
  50%      { scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  .purpose-poke,
  .purpose-stage:not(.started) .pc-1 {
    animation: none !important;
  }
}

/* ============================================================
   NORMALIZACAO MOBILE (v5) — padroniza margens, larguras e empilhamento
   Anexado ao final de proposito para vencer na cascata.
   Gutter padrao: 32px (>=821px de largura de tela nao conta),
   16px por lado ate 820, 12px por lado ate 540.
   ============================================================ */

@media (max-width: 1180px) {
  /* grids que colapsam para 1 coluna: a coluna precisa poder encolher ate 0,
     senao o min-content dos filhos largos (board, cena, demos) estoura a tela */
  .hero-layout,
  .challenge-grid,
  .messages-hero,
  .mascots-layout,
  .shop-layout,
  .purpose-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy, .hero-visual,
  .challenge-copy, .challenge-art,
  .messages-copy, .messages-board,
  .mascots-copy, .mascots-stage,
  .shop-copy, .shop-demo,
  .purpose-copy, .purpose-stage {
    min-width: 0;
    max-width: 100%;
  }

  /* a cena do caos acompanha a coluna (era da foto antiga a min-height fixa) */
  .challenge-art {
    width: 100%; /* item de grid com filho aspect-ratio colapsa sem largura explicita */
    min-height: 0;
    margin-inline: auto;
  }

  .chaos-scene {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  /* MESMO gutter para todos os wrappers de secao (16px cada lado) */
  .container,
  .steps-container,
  .messages-container,
  .challenge-grid,
  .mascots-layout,
  .shop-layout,
  .purpose-layout {
    width: min(100% - 32px, 680px);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }

  /* board do hero flui no lugar de vazar posicionado (sem clip nem chute de altura) */
  .hero-visual {
    min-height: 0;
    margin: 8px auto 0;
  }

  .hero-board {
    position: static;
    width: min(460px, 100%);
    margin: 0 auto;
    transform: none;
    inset: auto;
  }
}

@media (max-width: 540px) {
  .container,
  .steps-container,
  .messages-container,
  .challenge-grid,
  .mascots-layout,
  .shop-layout,
  .purpose-layout {
    width: min(100% - 24px, 480px); /* 12px cada lado */
  }

  .hero-board {
    width: min(380px, 100%);
  }

  /* recompensas da lojinha empilham em 1 coluna no celular */
  .shop-grid {
    grid-template-columns: 1fr;
  }

  /* card de recompensa mais compacto */
  .shop-demo {
    padding: 60px 12px 22px;
  }
}

/* --- ajustes finos mobile (v5.1): separacao hero-board e termometro de proposito --- */
@media (max-width: 820px) {
  .hero-visual {
    margin-top: 24px;
  }

  /* mais altura + faixa reservada, e distracoes agrupadas no topo (sobre o board),
     para o termometro nao encostar em "internet aberta" */
  .purpose-stage {
    min-height: 500px;
    padding-bottom: 150px;
  }

  .pc-1 { left: 2%; top: 7%; }
  .pc-2 { right: 0; top: 5%; }
  .pc-3 { left: 0; top: 28%; }
  .pc-4 { right: 0; top: 32%; }
  .pc-5 { left: 8%; top: 46%; }
}

/* ============================================================
   CHECKOUT — modal de compra do board
   ============================================================ */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal.is-open {
  display: flex;
}

.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 64, 0.55);
  backdrop-filter: blur(3px);
  animation: checkoutFade 200ms ease;
}

.checkout-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 30px 26px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(24, 20, 70, 0.4);
  animation: checkoutPop 260ms cubic-bezier(0.2, 0.86, 0.2, 1.14);
}

.checkout-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-soft);
  background: var(--purple-soft);
  transition: background 160ms ease, color 160ms ease;
}

.checkout-x:hover {
  color: #fff;
  background: var(--purple);
}

.checkout-x svg {
  width: 18px;
  height: 18px;
}

.checkout-head {
  text-align: center;
  margin-bottom: 20px;
}

.checkout-logo {
  width: 150px;
  margin: 0 auto 12px;
}

.checkout-dialog h3 {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.1;
}

.checkout-sub {
  margin: 8px 0 0;
  color: var(--navy-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkout-sub strong {
  color: var(--purple);
}

.checkout-field {
  display: block;
  margin-bottom: 14px;
}

.checkout-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
}

.checkout-field > span small {
  color: var(--navy-soft);
  font-weight: 700;
}

.checkout-field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #faf8ff;
  font-family: var(--font-body);
  font-size: 1.02rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 77, 240, 0.14);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--purple-soft);
}

.checkout-total > span {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 900;
}

.checkout-total-values {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checkout-total-values s {
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.checkout-total-values strong {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.checkout-submit {
  width: 100%;
  position: relative;
}

.checkout-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkoutSpin 700ms linear infinite;
}

.checkout-submit.is-loading .checkout-submit-label {
  visibility: hidden;
}

.checkout-submit.is-loading .checkout-spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.checkout-error {
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  color: var(--navy-soft);
  font-size: 0.82rem;
}

.checkout-secure svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* passo do Pix */
.checkout-qr {
  width: 220px;
  margin: 4px auto 16px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.checkout-qr img {
  width: 100%;
  display: block;
}

.checkout-copy {
  display: flex;
  gap: 8px;
}

.checkout-copy input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #faf8ff;
  color: var(--navy-soft);
  font-size: 0.82rem;
}

.checkout-copy .button {
  min-height: 46px;
  padding-inline: 18px;
  white-space: nowrap;
}

.checkout-amount {
  margin: 16px 0 0;
  text-align: center;
  color: var(--navy);
  font-size: 1.05rem;
}

.checkout-amount strong {
  color: var(--purple);
  font-family: var(--font-display);
}

.checkout-status {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.checkout-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  animation: checkoutPulse 1.2s ease-in-out infinite;
}

.checkout-status.is-paid {
  color: var(--green);
}

.checkout-status.is-paid::before {
  background: var(--green);
  animation: none;
}

@keyframes checkoutFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkoutPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checkoutSpin {
  to { transform: rotate(360deg); }
}

@keyframes checkoutPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 540px) {
  .checkout-dialog {
    padding: 26px 20px 22px;
    border-radius: 20px;
  }

  .checkout-dialog h3 {
    font-size: 1.4rem;
  }

  .checkout-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-overlay,
  .checkout-dialog,
  .checkout-status::before {
    animation: none !important;
  }
}

/* ---------- Checkout: layout 2 colunas + painel de confiança ---------- */
.checkout-dialog {
  width: min(860px, 100%);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}

.checkout-info {
  align-self: start;
  padding: 22px 22px 20px;
  border: 1px solid rgba(228, 215, 255, 0.9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(178, 140, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #f6f1ff 0%, #fbf8ff 100%);
}

.checkout-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-info-logo {
  width: 140px;
}

.checkout-badge {
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff7ba1, #ff477c);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.checkout-info-lead {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.5;
}

.checkout-info-lead strong {
  color: var(--purple);
}

.checkout-info-block {
  margin-bottom: 16px;
}

.checkout-info-block h4 {
  margin: 0 0 9px;
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.checkout-list li {
  position: relative;
  padding-left: 26px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkout-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 0.66rem;
  font-weight: 900;
}

.checkout-list strong {
  font-weight: 900;
}

.checkout-list-plain li::before {
  content: "";
  top: 7px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: var(--purple);
}

.checkout-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.checkout-features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
}

.checkout-features span {
  font-size: 1.05rem;
  line-height: 1.2;
}

.checkout-specs {
  margin: 0;
  padding-left: 18px;
  color: var(--navy-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 215, 255, 0.9);
}

.checkout-trust span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .checkout-dialog {
    width: min(460px, 100%);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* no celular a ação (form) vem primeiro; os detalhes logo abaixo */
  .checkout-main { order: 1; }
  .checkout-info { order: 2; }
}

/* ---------- Checkout v8: modal compacto, compra à esquerda, detalhes roláveis ---------- */

.checkout-dialog {
  width: min(800px, 100%);
  max-height: min(620px, calc(100vh - 48px));
  padding: 24px;
  overflow: hidden; /* a rolagem passa a ser por coluna */
}

.checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* compra (form/Pix) na ESQUERDA, complemento na DIREITA */
.checkout-main {
  order: 1;
  min-width: 0;
  max-height: min(572px, calc(100vh - 96px));
  overflow-y: auto;
  padding-right: 2px;
}

.checkout-info {
  order: 2;
  align-self: stretch;
  min-width: 0;
  max-height: min(572px, calc(100vh - 96px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 77, 255, 0.4) transparent;
}

.checkout-info::-webkit-scrollbar {
  width: 8px;
}

.checkout-info::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-info::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.35);
}

.checkout-info::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 77, 255, 0.55);
}

/* preview do board no topo da coluna de detalhes */
.checkout-info-board {
  position: relative;
  margin: 0 0 16px;
  padding: 12px 12px 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.checkout-info-board img {
  width: 100%;
  display: block;
}

.checkout-info-board .checkout-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 8px 18px rgba(255, 71, 124, 0.3);
}

.checkout-info-board figcaption {
  padding: 4px 0 2px;
  color: #8b8fae;
  font-size: 0.72rem;
  text-align: center;
}

.checkout-logo {
  width: 128px;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  /* no celular volta a uma coluna com rolagem única do modal */
  .checkout-dialog {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .checkout-main,
  .checkout-info {
    max-height: none;
    overflow: visible;
  }
}

/* compactação do form para caber sem rolagem na coluna esquerda */
.checkout-main .checkout-head {
  margin-bottom: 12px;
}

.checkout-main .checkout-logo {
  width: 104px;
  margin: 0 auto 6px;
}

.checkout-main .checkout-dialog h3,
.checkout-main h3 {
  font-size: 1.45rem;
}

.checkout-main .checkout-sub {
  margin-top: 5px;
  font-size: 0.88rem;
}

.checkout-main .checkout-field {
  margin-bottom: 10px;
}

.checkout-main .checkout-field > span {
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.checkout-main .checkout-field input {
  min-height: 45px;
  padding: 8px 14px;
  font-size: 0.98rem;
}

.checkout-main .checkout-total {
  margin: 4px 0 12px;
  padding: 10px 16px;
}

.checkout-main .checkout-total-values strong {
  font-size: 1.3rem;
}

.checkout-main .checkout-submit {
  min-height: 54px;
}

.checkout-main .checkout-error {
  margin-top: 8px;
  min-height: 1em;
}

.checkout-main .checkout-secure {
  margin-top: 8px;
  font-size: 0.78rem;
}

/* fix: a regra base de 2 colunas (v8) vinha depois do media query do v7 e vencia no mobile */
@media (max-width: 720px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Rodapé do site ---------- */
.site-footer {
  padding: 56px 0 34px;
  background: #211a55;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer-brand {
  max-width: 360px;
}

.site-footer-brand img {
  width: 200px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer-nav {
  display: grid;
  gap: 10px;
}

.site-footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.site-footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-legal a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ---- checkout v2: seções, endereço, pagamento e sucesso ---- */
.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
}

.checkout-section-title:first-child {
  margin-top: 0;
}

.checkout-free-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft, #e3f6e8);
  color: var(--green, #2e9e5b);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-row-city {
  grid-template-columns: 1fr 84px;
}

.checkout-field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #faf8ff;
  font-family: var(--font-body);
  font-size: 1.02rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 77, 240, 0.14);
}

.checkout-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #faf8ff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-pay-option input {
  margin-top: 3px;
  accent-color: var(--purple);
}

.checkout-pay-option.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 77, 240, 0.14);
}

.checkout-pay-body {
  display: block;
}

.checkout-pay-body strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
}

.checkout-pay-body small {
  display: block;
  margin-top: 2px;
  color: var(--navy-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.checkout-card-fields {
  margin: 2px 0 14px;
  padding: 16px 16px 4px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: #fcfbff;
}

.checkout-plan-hint {
  margin: -10px 0 16px;
  color: var(--navy-soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
}

.checkout-success {
  text-align: center;
  padding-top: 12px;
}

.checkout-success-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
}

.checkout-success h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 900;
}

.checkout-success .checkout-sub {
  margin: 0 auto 22px;
  max-width: 400px;
}

@media (max-width: 540px) {
  .checkout-pay {
    grid-template-columns: 1fr;
  }

  .checkout-row-city {
    grid-template-columns: 1fr 84px;
    gap: 12px;
  }
}

/* ---------- Checkout v10: modal largo, respiro, chips e divisórias ---------- */

.checkout-dialog {
  width: min(1020px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 40px));
  padding: 30px 32px 28px;
}

.checkout-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
}

.checkout-main,
.checkout-info {
  max-height: min(722px, calc(100vh - 100px));
}

.checkout-main {
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 77, 255, 0.4) transparent;
}

.checkout-main::-webkit-scrollbar {
  width: 8px;
}

.checkout-main::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.35);
}

/* desfaz a compactação v8: campos com mais respiro */
.checkout-main .checkout-head {
  margin-bottom: 20px;
}

.checkout-main .checkout-field {
  margin-bottom: 14px;
}

.checkout-main .checkout-field > span {
  margin-bottom: 6px;
  font-size: 0.87rem;
}

.checkout-main .checkout-field input {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 1rem;
}

.checkout-main .checkout-field select {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 1rem;
}

/* títulos de seção numerados, com linha divisória correndo à direita */
.checkout-section-title {
  margin: 28px 0 16px;
  gap: 10px;
}

.checkout-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.checkout-step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* chips reutilizáveis (frete grátis, desconto à vista, cupom…) */
.checkout-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}

.chip-green {
  background: var(--green-soft, #eef9e6);
  color: var(--green, #63bf2b);
}

.chip-purple {
  background: var(--purple-soft, #efeafd);
  color: var(--purple);
}

.chip-amber {
  background: #fdf3dc;
  color: #b9820e;
}

.checkout-pay-body strong .checkout-chip {
  margin-left: 6px;
}

/* pagamento: opções e cartão com mais ar */
.checkout-pay {
  gap: 12px;
  margin: 2px 0 16px;
}

.checkout-pay-option {
  padding: 15px 16px;
  border-radius: 16px;
}

.checkout-pay-body small {
  margin-top: 4px;
}

.checkout-card-fields {
  margin: 0 0 16px;
  padding: 18px 18px 8px;
}

/* total, economia e botão */
.checkout-main .checkout-total {
  margin: 20px 0 10px;
  padding: 14px 18px;
  border-radius: 16px;
}

.checkout-main .checkout-total-values strong {
  font-size: 1.45rem;
}

.checkout-savings {
  margin: 0 0 4px;
  color: var(--green, #4ca32a);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
}

.checkout-plan-hint {
  margin: 0 0 18px;
}

.checkout-main .checkout-submit {
  min-height: 56px;
}

.checkout-main .checkout-error {
  margin-top: 10px;
}

.checkout-main .checkout-secure {
  margin-top: 10px;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .checkout-dialog {
    padding: 26px 20px 22px;
  }

  .checkout-main {
    padding-right: 0;
  }

  .checkout-section-title {
    flex-wrap: wrap;
  }
}

/* fix v10: a base de 2 colunas acima vence o media query antigo — reafirma 1 coluna no celular */
@media (max-width: 720px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-main,
  .checkout-info {
    max-height: none;
  }
}

/* ---------- Checkout v11: modal mais largo + coluna direita em cards ---------- */

.checkout-dialog {
  width: min(80vw, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 36px));
}

.checkout-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 36px;
}

.checkout-main,
.checkout-info {
  max-height: min(762px, calc(100vh - 96px));
}

.checkout-info {
  padding: 24px;
}

.checkout-info-board {
  margin-bottom: 14px;
}

/* card de preço em destaque, logo abaixo da foto do board */
.checkout-price-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-soft);
}

.checkout-price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-price-label {
  color: var(--navy-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.checkout-price-main strong {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.checkout-price-alt {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--navy);
  font-size: 0.88rem;
  text-align: right;
}

.checkout-price-alt strong {
  font-weight: 900;
}

.checkout-price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.checkout-info-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

/* blocos de detalhes viram cards brancos sobre o fundo lilás */
.checkout-info-block {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.checkout-info-block h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

/* com a coluna mais larga, features e ficha técnica em 2 colunas */
.checkout-features {
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.checkout-features li {
  font-size: 0.85rem;
}

.checkout-specs {
  columns: 2;
  column-gap: 20px;
}

.checkout-specs li {
  break-inside: avoid;
}

/* selos de confiança em grade 2x2 */
.checkout-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
}

.checkout-trust span {
  text-align: center;
  padding: 9px 10px;
}

@media (max-width: 980px) {
  /* entre 720 e 980 o modal ainda tem 2 colunas: volta as listas pra 1 coluna */
  .checkout-features {
    grid-template-columns: 1fr;
  }

  .checkout-specs {
    columns: 1;
  }
}

/* fix v11: reafirma o layout de celular depois das novas regras base */
@media (max-width: 720px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-main,
  .checkout-info {
    max-height: none;
  }

  .checkout-features {
    grid-template-columns: 1fr;
  }

  .checkout-specs {
    columns: 1;
  }

  .checkout-price-main strong {
    font-size: 1.6rem;
  }
}

/* ---------- Checkout v12: FAQ em acordeão ---------- */

.checkout-faq details {
  border-top: 1px solid var(--line);
}

.checkout-faq details:first-child {
  border-top: 0;
}

.checkout-faq summary {
  position: relative;
  padding: 10px 26px 10px 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.checkout-faq summary::-webkit-details-marker {
  display: none;
}

.checkout-faq summary::after {
  content: "＋";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.checkout-faq details[open] summary::after {
  content: "－";
}

.checkout-faq summary:hover {
  color: var(--purple);
}

.checkout-faq details p {
  margin: 0 0 12px;
  color: var(--navy-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Modelo 17/07: aviso obrigatório da assinatura ---------- */

/* Perto do preço, no carrinho e antes do pagamento — comunicação exigida
   pelo modelo comercial. Visível, mas sem gritar com o cliente. */
.checkout-required-notice {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #f0c24b;
  background: #fdf3dc;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkout-required-notice strong {
  color: #a06a00;
}

.checkout-required-notice-form {
  margin: 14px 0 12px;
}

.checkout-price-sub {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(160, 106, 0, 0.35);
  color: var(--navy);
  font-size: 0.85rem;
}

.checkout-price-sub strong {
  color: #a06a00;
}
