:root {
  --blue: #2784f9;
  --blue-edge: #3275ca;
  --navy: #1d4e89;
  --navy-deep: #0f2b48;
  --sky: #38bdf8;
  --sky-deep: #0284c7;
  --gold: #fbbf24;
  --gold-edge: #d99a05;
  --green: #4ade80;
  --green-deep: #16a34a;
  --orange: #f97316;
  --violet: #7c3aed;
  --ink: #172033;
  --ink-soft: #42526a;
  --muted: #64748b;
  --line: #dbe7f3;
  --mist: #f4f9ff;
  --paper: #fffdfa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(27, 74, 122, 0.14);
  --shadow-soft: 0 14px 38px rgba(29, 78, 137, 0.1);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: min(1180px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
a,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

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

h1,
h2,
h3,
.download-button,
.kicker,
.eyebrow {
  font-family: "Nunito", system-ui, sans-serif;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  color: var(--blue);
  font-style: normal;
}

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

:focus-visible {
  outline: 4px solid rgba(251, 191, 36, 0.9);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 128px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 12px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.scroll-meter {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--gold));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.site-header {
  position: fixed;
  z-index: 900;
  top: 4px;
  left: 0;
  width: 100%;
  padding: 14px 0;
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(29, 78, 137, 0.09);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--container);
  min-height: 62px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-link img {
  width: 104px;
  height: auto;
}

.footer-brand img {
  width: 148px;
  height: auto;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: #39516d;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #eaf4ff;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  border-radius: 99px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.download-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 13px 22px 12px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--blue-edge), 0 12px 24px rgba(39, 132, 249, 0.2);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.download-button:hover {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--blue-edge), 0 16px 30px rgba(39, 132, 249, 0.25);
}

.download-button:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--blue-edge), 0 6px 16px rgba(39, 132, 249, 0.2);
}

.download-button span {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.download-button strong {
  grid-column: 1;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.025em;
}

.download-button svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button--nav {
  min-width: 174px;
  padding: 10px 18px 9px;
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--blue-edge), 0 10px 20px rgba(39, 132, 249, 0.18);
}

.download-button--nav span {
  font-size: 0.53rem;
}

.download-button--nav strong {
  font-size: 0.78rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 760px;
  padding: 138px 0 110px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 36%, rgba(56, 189, 248, 0.18), transparent 27%),
    linear-gradient(180deg, #f9fdff 0%, #ecf8ff 64%, #ddf3ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 115px;
  left: -150px;
  width: 420px;
  height: 420px;
  border: 80px solid rgba(39, 132, 249, 0.035);
  border-radius: 50%;
}

.hero-sky,
.final-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-cloud {
  position: absolute;
  opacity: 0.62;
  filter: drop-shadow(0 10px 18px rgba(29, 78, 137, 0.08));
}

.hero-cloud--one {
  top: 126px;
  left: -54px;
  width: 190px;
  animation: drift 10s ease-in-out infinite alternate;
}

.hero-cloud--two {
  top: 192px;
  right: -38px;
  width: 148px;
  animation: drift 12s ease-in-out -2s infinite alternate-reverse;
}

.hero-cloud--three {
  top: 612px;
  left: 42%;
  width: 92px;
  opacity: 0.37;
  animation: drift 9s ease-in-out -4s infinite alternate;
}

.hero-star,
.final-star {
  position: absolute;
  color: var(--gold);
  line-height: 1;
  animation: twinkle 2.8s ease-in-out infinite;
}

.hero-star--one { top: 174px; left: 48%; font-size: 24px; }
.hero-star--two { top: 430px; right: 8%; font-size: 18px; animation-delay: -0.9s; }
.hero-star--three { top: 670px; left: 8%; color: var(--sky); font-size: 30px; animation-delay: -1.6s; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 620px;
  padding-bottom: 0;
}

.eyebrow,
.kicker,
.mini-kicker {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.eyebrow span {
  padding: 5px 9px 4px;
  color: #775400;
  background: #fff0a8;
  border: 1px solid #f8d74b;
  border-radius: 8px;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.hero h1 {
  max-width: 610px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 4.7vw, 4.45rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.hero h1 em {
  display: inline;
  background: linear-gradient(100deg, var(--blue) 0%, var(--sky-deep) 52%, var(--violet) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 28px;
}

.download-button--hero {
  min-width: 238px;
  padding: 16px 24px 15px;
  border-radius: 18px;
}

.download-button--hero strong {
  font-size: 1.08rem;
}

.text-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  border-bottom: 2px solid #afcbe7;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.inline-link:hover {
  gap: 14px;
  border-color: var(--blue);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof i {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--green-deep);
  background: #dffbe8;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.7rem;
}

.hero-stage {
  position: relative;
  width: min(500px, 41vw);
  aspect-ratio: 1 / 1;
  justify-self: end;
  margin-right: 0;
}

.hero-glow {
  position: absolute;
  inset: 16% 10% 7%;
  background: radial-gradient(circle, rgba(255,255,255,0.96) 0 34%, rgba(255,255,255,0.28) 63%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}

.orbit {
  position: absolute;
  border: 2px dashed rgba(39, 132, 249, 0.13);
  border-radius: 50%;
  animation: orbit 38s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  background: #f7fcff;
  border-radius: 50%;
}

.orbit--outer {
  inset: 3%;
}

.orbit--outer::before { top: 13%; right: 4%; padding: 4px; font-size: 18px; }
.orbit--outer::after { bottom: 10%; left: 7%; padding: 4px; font-size: 12px; }

.orbit--inner {
  inset: 15%;
  animation-direction: reverse;
  animation-duration: 27s;
}

.orbit--inner::before { top: -5px; left: 42%; color: var(--sky); }
.orbit--inner::after { bottom: 4%; right: 7%; color: var(--violet); }

.hero-angels {
  position: absolute;
  z-index: 2;
  inset: 2% 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(29, 78, 137, 0.18));
  animation: heroFloat 5.2s ease-in-out infinite;
  will-change: transform;
}

.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(29, 78, 137, 0.16);
  backdrop-filter: blur(12px);
  animation: floatCard 4.4s ease-in-out infinite;
}

.float-card strong,
.float-card small {
  display: block;
  line-height: 1.15;
}

.float-card strong {
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.float-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.float-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #fff1e4;
  border-radius: 12px;
  font-size: 1.35rem;
}

.float-card--streak {
  top: 18%;
  left: -3%;
  transform: rotate(-4deg);
}

.float-card--xp {
  right: -1%;
  bottom: 20%;
  animation-delay: -2.1s;
}

.float-card--xp img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.speech-cloud {
  position: absolute;
  z-index: 6;
  top: 8%;
  right: 0;
  padding: 11px 15px;
  color: var(--navy);
  background: #fffceb;
  border: 2px solid #f8dc68;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 12px 26px rgba(74, 59, 10, 0.09);
  font-family: "Nunito", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  animation: floatCard 4.8s -1.2s ease-in-out infinite;
}

.hero-meadow {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
}

.hero-meadow::before {
  content: "";
  position: absolute;
  inset: 32px 0 0;
  background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.08));
}

.hero-meadow img {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
}

/* Scrolling benefit rail */

.benefit-rail {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 18px 0;
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 5px solid #143b6a;
}

.benefit-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: marquee 42s linear infinite;
}

.benefit-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Nunito", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.benefit-track b {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Generic headings */

.section-heading {
  max-width: 670px;
  margin-bottom: 62px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center > p:last-child {
  margin-inline: auto;
}

.difference .section-heading {
  max-width: 1080px;
}

.rhythm .section-heading {
  max-width: 980px;
}

.heading-no-break {
  white-space: nowrap;
}

.kicker {
  margin-bottom: 16px;
}

.kicker--light {
  color: #8bd8ff;
}

.section-heading h2,
.demo-copy h2,
.journey-copy h2,
.everywhere-copy h2,
.sage-copy h2,
.final-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  font-weight: 900;
}

.section-heading > p:last-child,
.demo-copy > p,
.journey-copy > p,
.everywhere-copy > p,
.sage-copy > p,
.final-copy > p {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* Feature mosaic */

.difference {
  overflow: hidden;
  background:
    radial-gradient(circle at 93% 8%, rgba(251, 191, 36, 0.08), transparent 18%),
    var(--white);
}

.feature-mosaic {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
}

.feature-card--offline,
.feature-card--sages {
  grid-column: 1 / -1;
}

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 38px;
  background: var(--mist);
  border: 1px solid #e2edf8;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 0 #dce8f4;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: #c7dff5;
  box-shadow: var(--shadow-soft);
}

.feature-number {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  border: 1px solid #dcebf8;
  border-radius: 13px;
  box-shadow: 0 4px 0 #dce8f4;
  font-family: "Nunito", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
}

.mini-kicker {
  margin-bottom: 12px;
  font-size: 0.67rem;
}

.feature-card h3,
.rhythm-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 900;
}

.feature-card p,
.rhythm-card p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.feature-card--guardian,
.feature-card--sages {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  align-items: center;
  gap: 20px;
}

.feature-card--guardian {
  color: var(--white);
  background: var(--navy);
  border-color: #173f6f;
}

.feature-card--guardian h3,
.feature-card--guardian p,
.feature-card--guardian .mini-kicker {
  color: var(--white);
}

.feature-card--guardian p {
  color: rgba(255,255,255,0.78);
}

.feature-card--guardian .feature-number {
  color: var(--gold);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.13);
  box-shadow: 0 4px 0 rgba(6, 22, 41, 0.35);
}

.topic-pills,
.sage-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.topic-pills span {
  padding: 7px 11px;
  color: #bce8ff;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(139, 216, 255, 0.17);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

.feature-visual {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.feature-visual--verse {
  position: relative;
}

.feature-visual--verse::before,
.feature-visual--verse::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 20px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.feature-visual--verse::before { top: 8%; right: 4%; }
.feature-visual--verse::after { bottom: 12%; left: 2%; color: var(--sky); animation-delay: -1.2s; }

.mini-phone-card {
  width: min(310px, 100%);
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border-radius: 25px;
  box-shadow: 0 18px 0 #0e335d, 0 28px 50px rgba(6, 28, 52, 0.38);
  transform: rotate(3deg);
  animation: cardRock 5s ease-in-out infinite;
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 21px;
  color: var(--muted);
  font-family: "Nunito", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mini-card-top b {
  padding: 5px 8px;
  color: #a84c0b;
  background: #fff0df;
  border-radius: 8px;
  letter-spacing: 0;
}

.mini-phone-card blockquote {
  margin-bottom: 9px;
  font-family: "Lora", serif;
  font-size: 1.21rem;
  font-weight: 600;
  line-height: 1.5;
}

.mini-phone-card > p {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  color: var(--ink-soft);
  border-top: 1px solid #e6edf5;
  font-size: 0.68rem;
  line-height: 1.4;
}

.mini-insight span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.feature-card--streak {
  background: #fff9e8;
  border-color: #f9e4a2;
}

.streak-orbit {
  position: absolute;
  top: 28px;
  right: 30px;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  background: var(--white);
  border: 9px solid #ffe8a2;
  border-radius: 50%;
  box-shadow: 0 7px 0 #f1d274, 0 15px 24px rgba(177, 124, 16, 0.13);
  animation: floatCard 4.6s ease-in-out infinite;
}

.streak-orbit span { position: absolute; top: -17px; right: 6px; font-size: 2.2rem; }
.streak-orbit strong { margin-top: -7px; color: var(--orange); font-family: "Nunito", sans-serif; font-size: 2.45rem; font-weight: 900; line-height: 1; }
.streak-orbit small { position: absolute; bottom: 21px; color: #9a6b16; font-size: 0.5rem; font-weight: 900; letter-spacing: 0.08em; }

.feature-card--streak .mini-kicker {
  margin-top: 92px;
  color: #a86a07;
}

.progress-mini {
  width: 100%;
  height: 13px;
  margin: 29px 0 10px;
  overflow: hidden;
  background: #eadfbc;
  border-radius: 999px;
}

.progress-mini span,
.path-progress span {
  position: relative;
  display: block;
  width: 64%;
  height: 100%;
  overflow: hidden;
  background: var(--orange);
  border-radius: inherit;
}

.progress-mini span::after,
.path-progress span::after,
.demo-progress__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.38) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
}

.progress-caption {
  color: #8b671d;
  font-weight: 800;
}

.feature-card--offline {
  background: #ecfbf2;
  border-color: #c8efd8;
}

.feature-card--offline .mini-kicker { color: var(--green-deep); }

.translation-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 12px;
  height: auto;
  margin-top: 38px;
}

.translation-stack button {
  --translation-bg: var(--green-deep);
  --translation-edge: #107f3a;
  display: flex;
  min-width: 0;
  height: 72px;
  padding: 10px 8px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  place-items: center;
  color: var(--white);
  background: var(--translation-bg);
  border: 3px solid var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--translation-edge), 0 13px 22px rgba(30, 67, 96, 0.14);
  font-family: "Nunito", sans-serif;
  text-align: center;
  transform: none;
  cursor: pointer;
  appearance: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.translation-stack b {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.translation-stack small {
  overflow: hidden;
  max-width: 100%;
  color: rgba(255,255,255,.82);
  font-size: .48rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translation-stack button:nth-child(2),
.translation-stack button:nth-child(7) { --translation-bg: var(--blue); --translation-edge: var(--blue-edge); }
.translation-stack button:nth-child(3),
.translation-stack button:nth-child(8) { --translation-bg: var(--violet); --translation-edge: #5924b0; }
.translation-stack button:nth-child(4),
.translation-stack button:nth-child(9) { --translation-bg: #e46b22; --translation-edge: #b64c11; }
.translation-stack button:nth-child(5),
.translation-stack button:nth-child(10) { --translation-bg: var(--navy); --translation-edge: #102f53; }

@media (hover: hover) {
  .translation-stack button:hover {
    filter: brightness(1.04) saturate(1.05);
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--translation-edge), 0 7px 14px rgba(30, 67, 96, 0.14);
  }
}

.translation-stack button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--translation-edge), 0 4px 9px rgba(30, 67, 96, 0.12);
}

.translation-stack button:focus-visible {
  outline: 4px solid rgba(39, 132, 249, 0.28);
  outline-offset: 4px;
}

.translation-note {
  display: block;
  margin-top: 22px;
  color: var(--green-deep);
  font-size: .68rem;
  font-weight: 700;
}

.feature-card--sages {
  background: #f6f0ff;
  border-color: #e3d4fb;
}

.feature-card--sages .mini-kicker { color: var(--violet); }

.inline-link {
  margin-top: 12px;
  color: var(--violet);
  border-color: #ccb6ee;
}

.sage-stack {
  position: relative;
  width: 265px;
  height: 280px;
  justify-self: end;
}

.sage-stack img,
.sage-stack > span {
  position: absolute;
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(53, 27, 95, 0.18);
  animation: floatCard 5s ease-in-out infinite;
}

.sage-stack img:nth-child(1) { top: 4px; left: 16px; transform: rotate(-8deg); }
.sage-stack img:nth-child(2) { top: 30px; right: 12px; transform: rotate(7deg); animation-delay: -1.2s; }
.sage-stack img:nth-child(3) { bottom: 8px; left: 5px; transform: rotate(5deg); animation-delay: -2.2s; }
.sage-stack img:nth-child(4) { right: 29px; bottom: 0; transform: rotate(-5deg); animation-delay: -3.2s; }

.sage-stack > span {
  z-index: 5;
  top: 98px;
  left: 91px;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--white);
  background: var(--violet);
  border-width: 4px;
  border-radius: 50%;
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
}

/* Interactive app demo */

.demo-section {
  margin: 0 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 38%, rgba(56,189,248,0.24), transparent 24%),
    radial-gradient(circle at 7% 80%, rgba(124,58,237,0.13), transparent 25%),
    var(--navy-deep);
  border-radius: 68px;
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 30px 70px rgba(15,43,72,0.18);
}

.demo-section::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 65px solid rgba(255,255,255,0.025);
  border-radius: 50%;
}

.demo-clouds img {
  position: absolute;
  opacity: 0.08;
  filter: brightness(2);
  pointer-events: none;
}

.demo-clouds img:first-child { top: 90px; left: -40px; width: 190px; animation: drift 10s ease-in-out infinite alternate; }
.demo-clouds img:last-child { right: -45px; bottom: 120px; width: 170px; animation: drift 12s -2s ease-in-out infinite alternate-reverse; }

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 60px;
}

.demo-copy {
  position: relative;
  z-index: 4;
}

.demo-copy h2,
.demo-copy h2 em,
.sage-copy h2,
.sage-copy h2 em,
.final-copy h2,
.final-copy h2 em {
  color: var(--white);
}

.demo-copy > p,
.sage-copy > p,
.final-copy > p {
  color: rgba(255,255,255,0.72);
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.demo-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  min-height: 64px;
  padding: 10px 13px;
  color: rgba(255,255,255,0.7);
  text-align: left;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 17px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.demo-tabs button:last-child {
  grid-column: 1 / -1;
}

.demo-tabs button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.demo-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--blue);
  border-color: #5da2fb;
  box-shadow: 0 5px 0 var(--blue-edge);
}

.demo-tabs button > span {
  grid-row: 1 / 3;
  font-size: 1.3rem;
  text-align: center;
}

.demo-tabs b,
.demo-tabs small {
  line-height: 1.2;
}

.demo-tabs b {
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.demo-tabs small {
  margin-top: 2px;
  color: inherit;
  font-size: 0.62rem;
  opacity: 0.7;
}

.demo-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: #9edcff !important;
  font-size: 0.73rem !important;
  font-weight: 700;
}

.demo-hint span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(56,189,248,0.13);
  border-radius: 50%;
}

.phone-showcase {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 800px;
}

.phone-shell {
  position: relative;
  width: 390px;
  height: 792px;
  overflow: hidden;
  color: var(--ink);
  background: #fafdff;
  border: 10px solid #162033;
  border-radius: 49px;
  box-shadow:
    0 0 0 2px #3d4b60,
    0 34px 70px rgba(0,0,0,0.45),
    0 0 90px rgba(56,189,248,0.12);
}

.phone-hardware {
  position: absolute;
  z-index: 20;
  top: 7px;
  left: 50%;
  width: 126px;
  height: 27px;
  background: #111827;
  border-radius: 20px;
  transform: translateX(-50%);
}

.phone-hardware span {
  position: absolute;
  top: 9px;
  right: 20px;
  width: 7px;
  height: 7px;
  background: #233a5d;
  border-radius: 50%;
  box-shadow: inset 0 0 2px #5f7faa;
}

.phone-status {
  position: absolute;
  z-index: 18;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #172033;
  font-size: 0.7rem;
  pointer-events: none;
}

.phone-status strong { font-weight: 800; }
.phone-status span { letter-spacing: 1px; }

.demo-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f9fcff;
}

.phone-home-indicator {
  position: absolute;
  z-index: 20;
  bottom: 8px;
  left: 50%;
  width: 130px;
  height: 5px;
  background: #18202e;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-spark {
  position: absolute;
  z-index: 4;
  color: var(--gold);
  font-size: 2rem;
  animation: twinkle 2.6s ease-in-out infinite;
}

.phone-spark--one { top: 16%; left: 3%; }
.phone-spark--two { right: 3%; bottom: 18%; color: var(--sky); animation-delay: -1.1s; }

.try-it-badge {
  position: absolute;
  z-index: 6;
  top: 18%;
  right: -2%;
  color: var(--gold);
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  transform: rotate(8deg);
}

.try-it-badge svg {
  width: 70px;
  height: 55px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-loading {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.demo-loading span {
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  animation: dotBounce 1.1s ease-in-out infinite;
}

.demo-loading span:nth-child(2) { animation-delay: 0.13s; }
.demo-loading span:nth-child(3) { animation-delay: 0.26s; }

/* Dynamic demo screens */

.demo-screen {
  min-height: 100%;
  padding: 51px 18px 78px;
  overflow-y: auto;
  scrollbar-width: none;
  animation: screenIn 0.42s cubic-bezier(.22,.8,.24,1) both;
}

.demo-screen::-webkit-scrollbar { display: none; }

.demo-screen--home {
  background: linear-gradient(180deg, #edf8ff 0 25%, #fff 44%);
}

.demo-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.demo-app-header__greeting small,
.demo-app-header__greeting strong {
  display: block;
}

.demo-app-header__greeting small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
}

.demo-app-header__greeting strong {
  color: var(--navy);
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
}

.demo-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #dff4ff;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 0 #c6d7e8;
}

.demo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.2);
}

.demo-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid #e3edf7;
  border-radius: 13px;
  box-shadow: 0 3px 0 #dce7f1;
}

.demo-stat > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: #fff0df;
  border-radius: 10px;
  font-size: 1rem;
}

.demo-stat--xp > span { background: #e8f4ff; }
.demo-stat b,
.demo-stat small { display: block; line-height: 1.1; }
.demo-stat b { font-family: "Nunito", sans-serif; font-size: 0.73rem; font-weight: 900; }
.demo-stat small { margin-top: 3px; color: var(--muted); font-size: 0.49rem; font-weight: 700; }

.demo-verse-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 22px;
  box-shadow: 0 6px 0 #12365f, 0 14px 25px rgba(29,78,137,0.23);
}

.demo-verse-card::before {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 17px;
  color: rgba(255,255,255,0.24);
  font-size: 1.8rem;
}

.demo-verse-label {
  display: inline-flex;
  padding: 4px 7px;
  color: #bce9ff;
  background: rgba(56,189,248,0.13);
  border-radius: 7px;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.demo-verse-card blockquote {
  margin: 15px 0 10px;
  font-family: "Lora", serif;
  font-size: 1.05rem;
  line-height: 1.52;
}

.demo-verse-card cite {
  color: #8bd8ff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.demo-angel-insight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 12px;
  padding: 11px;
  background: #eef8ff;
  border: 1px solid #d6eafb;
  border-radius: 16px;
}

.demo-angel-insight img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(29,78,137,0.15));
}

.demo-angel-insight b,
.demo-angel-insight p { margin: 0; }
.demo-angel-insight b { display: block; color: var(--blue); font-family: "Nunito", sans-serif; font-size: 0.66rem; font-weight: 900; }
.demo-angel-insight p { color: var(--ink-soft); font-size: 0.59rem; line-height: 1.4; }

.demo-reply {
  display: none;
  margin: 8px 0 12px 45px;
  padding: 10px 12px;
  color: #31506f;
  background: #fff8d9;
  border: 1px solid #f3df7e;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.58rem;
  line-height: 1.45;
}

.demo-reply.is-visible {
  display: block;
  animation: bubbleIn 0.35s ease both;
}

.demo-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-primary,
.demo-secondary,
.demo-task,
.meditation-start {
  padding: 10px 9px 9px;
  border-radius: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-primary {
  color: var(--white);
  background: var(--blue);
  border: 0;
  box-shadow: 0 4px 0 var(--blue-edge);
}

.demo-secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d8e6f3;
  box-shadow: 0 4px 0 #d8e2ec;
}

.demo-primary:active,
.demo-secondary:active,
.demo-task:active,
.meditation-start:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--blue-edge);
}

.demo-bottom-nav {
  position: absolute;
  z-index: 9;
  right: 10px;
  bottom: 18px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 7px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e4edf5;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(34,65,100,0.13);
  backdrop-filter: blur(12px);
}

.demo-bottom-nav span {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.demo-bottom-nav span small { font-size: 0.42rem; font-weight: 800; }
.demo-bottom-nav span.is-active { color: var(--blue); }

.demo-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.demo-section-title div small,
.demo-section-title div strong {
  display: block;
}

.demo-section-title div small { color: var(--muted); font-size: 0.55rem; font-weight: 700; }
.demo-section-title div strong { font-family: "Nunito", sans-serif; font-size: 1.08rem; font-weight: 900; }
.demo-section-title span { padding: 5px 8px; color: var(--blue); background: #eaf4ff; border-radius: 8px; font-size: 0.52rem; font-weight: 900; }

.demo-screen--bible {
  color: #2c3748;
  background: #fffefa;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid #ece7de;
  border-radius: 13px;
}

.reader-toolbar button,
.reader-toolbar select {
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 0.62rem;
  font-weight: 800;
}

.reader-toolbar button { cursor: pointer; }

.reader-heading {
  margin-bottom: 17px;
  text-align: center;
}

.reader-heading h3 {
  margin-bottom: 3px;
  font-family: "Lora", serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.reader-heading small { color: var(--muted); font-size: 0.53rem; }

.reader-text {
  padding: 19px 16px;
  background: var(--white);
  border: 1px solid #eee8dd;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(75,63,39,0.05);
}

.reader-verse {
  display: block;
  margin: 0 -4px 8px;
  padding: 4px;
  border-radius: 5px;
  font-family: "Lora", serif;
  font-size: 0.73rem;
  line-height: 1.72;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reader-verse sup {
  margin-right: 4px;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 0.48rem;
  font-weight: 800;
}

.reader-verse:hover { background: #f4f8fc; }
.reader-verse.is-highlighted { background: #fff0a8; box-shadow: inset 3px 0 #eebf28; }

.highlight-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  background: #f6f8fb;
  border-radius: 13px;
}

.highlight-tools small { margin-right: auto; color: var(--muted); font-size: 0.49rem; font-weight: 700; }
.highlight-tools button { width: 21px; height: 21px; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px #d5dee8; cursor: pointer; }
.highlight-tools button:nth-of-type(1) { background: #ffe481; }
.highlight-tools button:nth-of-type(2) { background: #d8c7ff; }
.highlight-tools button:nth-of-type(3) { background: #b8efcb; }
.highlight-tools button:nth-of-type(4) { background: #bde7ff; }

.reader-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--green-deep);
  text-align: center;
  font-size: 0.53rem;
  font-weight: 800;
}

.demo-screen--journey {
  background: linear-gradient(180deg, #eaf8ff, #f3fbf1 70%);
}

.demo-progress-card {
  padding: 12px;
  background: var(--white);
  border: 1px solid #dce9f4;
  border-radius: 16px;
  box-shadow: 0 4px 0 #d7e5ef;
}

.demo-progress-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.58rem;
  font-weight: 800;
}

.demo-progress-card__top b { color: var(--orange); }

.demo-progress {
  height: 9px;
  overflow: hidden;
  background: #e9eef3;
  border-radius: 99px;
}

.demo-progress__fill {
  position: relative;
  display: block;
  width: 60%;
  height: 100%;
  overflow: hidden;
  background: var(--orange);
  border-radius: inherit;
  transition: width 0.45s ease;
}

.journey-demo-map {
  position: relative;
  height: 258px;
  margin: 13px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(74,222,128,0.25), transparent 24%),
    linear-gradient(180deg, #dff5ff, #e8f8e8);
  border: 1px solid #d2e8dc;
  border-radius: 20px;
}

.journey-demo-map::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 47%;
  width: 72px;
  height: 320px;
  background: #f1d199;
  border: 5px solid #e4bd7d;
  border-top: 0;
  border-bottom: 0;
  transform: rotate(18deg);
}

.demo-stage {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: var(--white);
  border: 4px solid #c8d6e4;
  border-radius: 50%;
  box-shadow: 0 5px 0 #aebdcc;
  font-size: 1.25rem;
}

.demo-stage small {
  position: absolute;
  top: 54px;
  color: var(--ink-soft);
  font-size: 0.43rem;
  font-weight: 900;
  white-space: nowrap;
}

.demo-stage--one { left: 38px; bottom: 42px; border-color: var(--green); box-shadow: 0 5px 0 var(--green-deep); }
.demo-stage--two { left: 130px; top: 104px; border-color: var(--blue); box-shadow: 0 5px 0 var(--blue-edge); animation: stagePulse 2.2s ease-in-out infinite; }
.demo-stage--three { top: 33px; right: 56px; }
.demo-you { position: absolute; z-index: 4; top: 79px; left: 141px; padding: 3px 7px; color: var(--white); background: var(--blue); border-radius: 6px; font-size: 0.43rem; font-weight: 900; }

.demo-quests {
  display: grid;
  gap: 7px;
}

.demo-task {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid #dce8f1;
  box-shadow: 0 3px 0 #d8e3eb;
}

.demo-task > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--blue);
  background: #eaf4ff;
  border-radius: 8px;
}

.demo-task b { font-size: 0.57rem; }
.demo-task strong { color: var(--orange); font-size: 0.52rem; }
.demo-task.is-complete { color: #5f6c79; background: #f1fbf4; border-color: #c6ecd2; }
.demo-task.is-complete > span { color: var(--white); background: var(--green-deep); }
.demo-task.is-complete b { text-decoration: line-through; }

.demo-screen--sages {
  background: #faf8ff;
}

.sage-demo-list {
  display: grid;
  gap: 8px;
}

.sage-demo-row {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: var(--white);
  border: 1px solid #e7e0f3;
  border-radius: 15px;
  box-shadow: 0 3px 0 #e4deec;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.sage-demo-row:hover { transform: translateY(-2px); }
.sage-demo-row.is-active { border-color: #b89be8; box-shadow: 0 3px 0 #bda7df; }

.sage-demo-row img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  border-radius: 13px;
}

.sage-demo-row b,
.sage-demo-row small { display: block; line-height: 1.2; }
.sage-demo-row b { font-family: "Nunito", sans-serif; font-size: 0.68rem; font-weight: 900; }
.sage-demo-row small { margin-top: 4px; color: var(--muted); font-size: 0.49rem; }
.sage-demo-row > span { color: #8b5ed0; font-size: 0.8rem; }

.chat-sheet {
  margin-top: 13px;
  padding: 13px;
  background: var(--white);
  border: 1px solid #e6deef;
  border-radius: 18px;
}

.chat-sheet__sage {
  max-width: 89%;
  margin-bottom: 9px;
  padding: 10px 12px;
  color: #4d3a67;
  background: #f1eaff;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.56rem;
  line-height: 1.5;
}

.chat-sheet__prompt {
  margin-left: auto;
  max-width: 80%;
  padding: 9px 11px;
  color: var(--white);
  background: var(--blue);
  border-radius: 14px 14px 4px;
  font-size: 0.54rem;
}

.chat-typing {
  display: inline-flex;
  gap: 3px;
  margin-top: 7px;
  padding: 7px 9px;
  background: #f1eaff;
  border-radius: 10px;
}

.chat-typing i {
  width: 4px;
  height: 4px;
  background: #8b6ab7;
  border-radius: 50%;
  animation: dotBounce 1s ease-in-out infinite;
}

.chat-typing i:nth-child(2) { animation-delay: .14s; }
.chat-typing i:nth-child(3) { animation-delay: .28s; }

.demo-screen--meditate {
  color: var(--white);
  background:
    radial-gradient(circle at 50% 43%, rgba(251,191,36,0.2), transparent 20%),
    linear-gradient(180deg, #0f2b48, #1d4e89 62%, #16628a);
}

.meditation-demo {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.meditation-demo .demo-section-title {
  width: 100%;
  color: var(--white);
  text-align: left;
}

.meditation-demo .demo-section-title div small { color: #a8dfff; }
.meditation-demo .demo-section-title div strong { color: var(--white); }

.breathing-rings {
  position: relative;
  width: 235px;
  height: 235px;
  margin: 37px auto 15px;
}

.breathing-rings::before,
.breathing-rings::after,
.breathing-rings span {
  position: absolute;
  inset: 12%;
  content: "";
  border: 2px solid rgba(139,216,255,0.36);
  border-radius: 50%;
  animation: breatheRing 6s ease-in-out infinite;
}

.breathing-rings::after { inset: 1%; opacity: .5; animation-delay: -.9s; }
.breathing-rings span { inset: 23%; background: radial-gradient(circle, rgba(255,243,175,0.42), rgba(56,189,248,0.13)); border-color: rgba(255,240,158,0.4); animation-delay: -.4s; }

.breathing-rings img {
  position: absolute;
  z-index: 3;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 13px 22px rgba(0,0,0,0.22));
  animation: heroFloat 5.5s ease-in-out infinite;
}

.meditation-word {
  margin-bottom: 4px;
  color: #d4f1ff;
  font-family: "Nunito", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meditation-time {
  margin-bottom: 13px;
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.meditation-verse {
  max-width: 290px;
  margin-bottom: 19px;
  color: rgba(255,255,255,0.84);
  font-family: "Lora", serif;
  font-size: 0.71rem;
  line-height: 1.6;
}

.meditation-start {
  min-width: 170px;
  color: var(--navy-deep);
  background: var(--gold);
  border: 0;
  box-shadow: 0 5px 0 var(--gold-edge);
}

/* Companions */

.companions {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(56,189,248,0.09), transparent 23%),
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.companions .section-heading {
  max-width: 900px;
}

.companion-picker {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
}

.companion-buttons {
  display: grid;
  align-content: start;
  gap: 11px;
}

.companion-buttons button {
  display: grid;
  grid-template-columns: 55px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 12px;
  min-height: 74px;
  padding: 8px 13px 8px 8px;
  color: var(--ink-soft);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 4px 0 #dce6ef;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.companion-buttons button:hover { transform: translateX(4px); }
.companion-buttons button[aria-selected="true"] { color: var(--navy); border-color: #8bc2ff; box-shadow: 0 5px 0 var(--blue-edge), 0 12px 24px rgba(39,132,249,0.12); }

.companion-buttons button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 55px;
  height: 55px;
  overflow: hidden;
  place-items: center;
  background: #eaf6ff;
  border-radius: 15px;
}

.companion-buttons button:nth-child(2) > span { background: #fff0e5; }
.companion-buttons button:nth-child(3) > span { background: #e8f9ef; }
.companion-buttons button:nth-child(4) > span { background: #f1eafe; }

.companion-buttons img { width: 68px; height: 68px; object-fit: contain; transform: translateY(7px); }
.companion-buttons b { align-self: end; font-family: "Nunito", sans-serif; font-size: 0.82rem; font-weight: 900; }
.companion-buttons small { align-self: start; color: var(--muted); font-size: 0.6rem; font-weight: 700; }

.companion-stage {
  --companion-accent: #0284c7;
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(330px, 1.1fr);
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f8ff, #ffffff 62%);
  border: 1px solid #d8ebf8;
  border-radius: 46px;
  box-shadow: var(--shadow-soft);
}

.companion-stage.is-changing .companion-image-wrap,
.companion-stage.is-changing .companion-copy {
  animation: companionChange 0.48s ease both;
}

.companion-aura {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, color-mix(in srgb, var(--companion-accent) 19%, transparent), transparent 66%);
  border: 2px dashed color-mix(in srgb, var(--companion-accent) 28%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 32s linear infinite;
}

.companion-image-wrap {
  position: relative;
  z-index: 2;
  align-self: end;
  height: 530px;
}

.companion-image-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 28px;
  left: 50%;
  width: 70%;
  height: 30px;
  background: rgba(29,78,137,0.16);
  border-radius: 50%;
  filter: blur(14px);
  transform: translateX(-50%);
}

.companion-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 24px rgba(29,78,137,0.16));
  animation: heroFloat 5.4s ease-in-out infinite;
}

.companion-copy {
  position: relative;
  z-index: 3;
  padding: 52px 56px 52px 20px;
}

.companion-badge {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 7px 11px;
  color: var(--companion-accent);
  background: color-mix(in srgb, var(--companion-accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--companion-accent) 25%, white);
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.companion-copy h3 {
  margin-bottom: 18px;
  color: var(--companion-accent);
  font-size: clamp(2.7rem, 4vw, 4.2rem);
  font-weight: 900;
}

.companion-copy h3 small {
  color: var(--ink-soft);
  font-size: 0.44em;
}

.companion-copy blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Lora", serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

.companion-copy > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.companion-copy ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.companion-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.companion-copy li::before {
  content: "✓";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--white);
  background: var(--companion-accent);
  border-radius: 50%;
  font-size: 0.62rem;
}

/* Journey */

.journey {
  overflow: hidden;
  background: #f4fbf4;
}

.journey::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -120px;
  width: 310px;
  height: 310px;
  border: 60px solid rgba(74,222,128,0.1);
  border-radius: 50%;
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: 82px;
}

.quest-list {
  display: grid;
  gap: 10px;
  margin-top: 33px;
}

.quest-list > div {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #d5ead9;
  border-radius: 16px;
  box-shadow: 0 4px 0 #d2e5d5;
}

.quest-list > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--green-deep);
  border-radius: 11px;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
}

.quest-list > div:nth-child(3) > span {
  color: var(--blue);
  background: #e7f3ff;
}

.quest-list p,
.quest-list b,
.quest-list small { margin: 0; }
.quest-list b,
.quest-list small { display: block; }
.quest-list b { color: var(--ink); font-size: 0.76rem; }
.quest-list small { margin-top: 3px; color: var(--muted); font-size: 0.59rem; }
.quest-list strong { color: var(--orange); font-size: 0.7rem; }

.path-card {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #dff3d9;
  border: 10px solid var(--white);
  border-radius: 48px;
  box-shadow: var(--shadow), 0 8px 0 #c8ddc3;
}

.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240,251,255,0.08), transparent 55%, rgba(29,78,137,0.08));
  pointer-events: none;
}

.path-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(1.03);
}

.path-day-pill {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 9px 13px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(31,74,52,0.15);
  backdrop-filter: blur(10px);
}

.path-day-pill > span { grid-row: 1 / 3; font-size: 1.3rem; }
.path-day-pill b { color: var(--orange); font-family: "Nunito", sans-serif; font-size: 0.77rem; font-weight: 900; line-height: 1.1; }
.path-day-pill small { color: var(--muted); font-size: 0.52rem; }

.milestone {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.94);
  border: 6px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 8px 0 #9ca9b8, 0 14px 24px rgba(39,74,53,0.18);
}

.milestone img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.milestone > span {
  position: absolute;
  top: 94px;
  left: 50%;
  padding: 4px 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(30,69,48,0.1);
  font-family: "Nunito", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
}

.milestone small {
  position: absolute;
  bottom: 94px;
  left: 50%;
  padding: 4px 7px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
  font-size: 0.47rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.milestone.is-complete { border-color: var(--green); box-shadow: 0 8px 0 var(--green-deep), 0 14px 24px rgba(22,163,74,0.2); }
.milestone.is-current { width: 105px; height: 105px; border-color: var(--blue); box-shadow: 0 9px 0 var(--blue-edge), 0 0 0 11px rgba(39,132,249,0.13), 0 20px 30px rgba(39,132,249,0.2); animation: stagePulse 2.5s ease-in-out infinite; }
.milestone.is-current img { width: 63px; height: 63px; }
.milestone.is-current > span { top: 111px; }

.milestone--one { left: 18%; bottom: 60px; }
.milestone--two { right: 17%; bottom: 197px; }
.milestone--three { top: 272px; left: 17%; }
.milestone--four { top: 124px; right: 19%; }
.milestone--five { top: 24px; left: 37%; transform: scale(.8); }

.path-progress {
  position: absolute;
  z-index: 5;
  right: 26px;
  bottom: 25px;
  left: 26px;
  height: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 99px;
}

.path-progress span { background: var(--blue); }

.path-caption {
  position: absolute;
  z-index: 5;
  right: 31px;
  bottom: 43px;
  margin: 0;
  padding: 4px 8px;
  color: var(--navy);
  background: rgba(255,255,255,0.88);
  border-radius: 7px;
  font-size: 0.56rem;
  font-weight: 800;
}

/* Offline section */

.everywhere {
  overflow: hidden;
  background: var(--white);
}

.everywhere-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 90px;
}

.everywhere-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
  background: #edf9f1;
  border: 1px solid #d3ebda;
  border-radius: 48px;
  box-shadow: var(--shadow-soft);
}

.offline-halo {
  position: absolute;
  width: 370px;
  height: 370px;
  border: 2px dashed rgba(22,163,74,0.18);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}

.offline-halo::before,
.offline-halo::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 1.5rem;
}

.offline-halo::before { top: 14%; right: 4%; }
.offline-halo::after { bottom: 12%; left: 5%; color: var(--sky); }

.book-stack {
  position: relative;
  z-index: 3;
  width: 330px;
  height: 285px;
}

.book-stack > div {
  position: absolute;
  left: 50%;
  display: flex;
  width: 270px;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  color: var(--white);
  background: var(--navy);
  border: 4px solid rgba(255,255,255,0.55);
  border-radius: 12px 19px 19px 12px;
  box-shadow: 0 10px 0 #123b6c, 0 18px 28px rgba(29,78,137,0.22);
  transform: translateX(-50%);
}

.book-stack > div:nth-child(1) { bottom: 0; transform: translateX(-50%) rotate(-4deg); }
.book-stack > div:nth-child(2) { bottom: 92px; background: var(--blue); box-shadow: 0 10px 0 var(--blue-edge), 0 18px 28px rgba(39,132,249,0.22); transform: translateX(-50%) rotate(3deg); }
.book-stack > div:nth-child(3) { bottom: 184px; background: var(--violet); box-shadow: 0 10px 0 #5924b0, 0 18px 28px rgba(89,36,176,0.2); transform: translateX(-50%) rotate(-2deg); }
.book-stack span { font-family: "Nunito", sans-serif; font-size: 1.35rem; font-weight: 900; }
.book-stack small { max-width: 120px; color: rgba(255,255,255,0.72); font-size: 0.57rem; text-align: right; }

.offline-badge {
  position: absolute;
  z-index: 5;
  right: 37px;
  bottom: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #126b32;
  background: var(--white);
  border: 1px solid #bde4c9;
  border-radius: 12px;
  box-shadow: 0 6px 0 #c4e2cc;
  font-family: "Nunito", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
}

.offline-badge b {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--white);
  background: var(--green-deep);
  border-radius: 50%;
}

.signal-mark {
  position: absolute;
  top: 54px;
  left: 57px;
  color: rgba(22,163,74,0.25);
  font-family: "Nunito", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  transform: rotate(-15deg);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.check-list span {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--white);
  background: var(--green-deep);
  border-radius: 50%;
  font-size: 0.65rem;
}

/* Sage feature */

.sage-section {
  margin: 0 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 20%, rgba(124,58,237,0.22), transparent 24%),
    #18233e;
  border-radius: 68px;
}

.sage-section::before {
  content: "✦";
  position: absolute;
  top: 15%;
  right: 6%;
  color: rgba(251,191,36,0.45);
  font-size: 2.2rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.sage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  align-items: center;
  gap: 76px;
}

.sage-topic-cloud span {
  padding: 8px 11px;
  color: #ddccff;
  background: rgba(124,58,237,0.13);
  border: 1px solid rgba(190,158,255,0.16);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
}

.sage-conversation {
  padding: 24px;
  color: var(--ink);
  background: #fbfaff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  box-shadow: 0 15px 0 #0f172a, 0 30px 60px rgba(0,0,0,0.32);
  transform: rotate(1deg);
}

.conversation-top {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e3ef;
}

.conversation-top img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 3px solid var(--white);
  border-radius: 17px;
  box-shadow: 0 4px 0 #d8cdea;
}

.conversation-top strong,
.conversation-top span { display: block; }
.conversation-top strong { font-family: "Nunito", sans-serif; font-size: 1rem; font-weight: 900; }
.conversation-top span { margin-top: 3px; color: var(--green-deep); font-size: 0.6rem; font-weight: 700; }
.conversation-top i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: var(--green); border-radius: 50%; }
.conversation-top button { color: var(--muted); background: transparent; border: 0; font-weight: 900; cursor: pointer; }

.chat-bubble {
  max-width: 82%;
  padding: 13px 15px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.chat-bubble--user {
  margin: 21px 0 13px auto;
  color: var(--white);
  background: var(--blue);
  border-radius: 17px 17px 4px 17px;
}

.chat-bubble--sage {
  color: #4e3b64;
  background: #f0e8fd;
  border: 1px solid #e1d2f4;
  border-radius: 17px 17px 17px 4px;
}

.conversation-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0;
}

.conversation-suggestions span {
  padding: 7px 9px;
  color: var(--violet);
  background: #f4edff;
  border: 1px solid #e5d7f7;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
}

.conversation-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px 10px 14px;
  color: #98a2b1;
  background: var(--white);
  border: 1px solid #e2e7ee;
  border-radius: 15px;
  font-size: 0.68rem;
}

.conversation-input b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 10px;
  font-size: 1rem;
}

/* Daily rhythm cards */

.rhythm {
  background: var(--white);
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rhythm-card {
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid #e0ebf6;
  border-radius: 32px;
  box-shadow: 0 5px 0 #dde8f3;
  transform-style: preserve-3d;
}

.rhythm-card:nth-child(2) { background: #fffaf0; border-color: #f2e4bc; box-shadow: 0 5px 0 #ebddb6; }
.rhythm-card:nth-child(3) { background: #eefbf3; border-color: #d3eedc; box-shadow: 0 5px 0 #cee8d6; }

.rhythm-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 27px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--blue-edge);
  font-family: "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.rhythm-icon--gold { color: #694700; background: var(--gold); box-shadow: 0 5px 0 var(--gold-edge); }
.rhythm-icon--green { background: var(--green-deep); box-shadow: 0 5px 0 #0f7f38; }

.breath-preview {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 28px auto 0;
  display: grid;
  place-items: center;
}

.breath-preview::before,
.breath-preview span {
  position: absolute;
  content: "";
  border: 2px solid rgba(39,132,249,0.24);
  border-radius: 50%;
  animation: breatheRing 6s ease-in-out infinite;
}

.breath-preview::before { inset: 0; }
.breath-preview span { inset: 20%; background: rgba(56,189,248,0.09); animation-delay: -.7s; }
.breath-preview b { position: relative; z-index: 2; color: var(--blue); font-family: "Nunito", sans-serif; font-size: 0.68rem; font-weight: 900; }

.journal-preview {
  position: relative;
  min-height: 155px;
  margin-top: 28px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid #eee1c3;
  border-radius: 15px;
  box-shadow: 0 7px 0 #eadfbf;
  transform: rotate(-2deg);
}

.journal-preview i { display: block; width: 100%; height: 7px; margin-bottom: 10px; background: #e8edf3; border-radius: 99px; }
.journal-preview i:nth-child(2) { width: 84%; }
.journal-preview i:nth-child(3) { width: 64%; }
.journal-preview span { display: inline-flex; margin-top: 10px; padding: 5px 8px; color: #9a6700; background: #fff2bb; border-radius: 8px; font-size: 0.55rem; font-weight: 800; }

.audio-preview {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 43px;
  padding: 15px;
  background: var(--white);
  border: 1px solid #d8eadf;
  border-radius: 18px;
  box-shadow: 0 5px 0 #d3e5d8;
}

.audio-preview b { display: grid; width: 44px; height: 44px; place-items: center; color: var(--white); background: var(--green-deep); border-radius: 50%; }
.audio-preview > span { height: 8px; overflow: hidden; background: #dbe7df; border-radius: 99px; }
.audio-preview > span i { display: block; width: 46%; height: 100%; background: var(--green); border-radius: inherit; animation: audioProgress 6s linear infinite; }
.audio-preview small { color: var(--green-deep); font-weight: 900; }

/* Final CTA and footer */

.final-cta {
  position: relative;
  min-height: 690px;
  padding: 110px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, #246bad 100%);
}

.final-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(15,43,72,0.38));
}

.final-sky img {
  position: absolute;
  opacity: 0.14;
  filter: brightness(2);
}

.final-sky img:first-of-type { top: 52px; left: -30px; width: 170px; animation: drift 11s ease-in-out infinite alternate; }
.final-sky img:last-of-type { top: 170px; right: -40px; width: 160px; animation: drift 12s -2s ease-in-out infinite alternate-reverse; }
.final-star--one { top: 18%; left: 47%; font-size: 1.8rem; }
.final-star--two { right: 8%; bottom: 22%; color: #8bd8ff; font-size: 2rem; animation-delay: -.8s; }
.final-star--three { bottom: 17%; left: 6%; font-size: 1rem; animation-delay: -1.5s; }

.final-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(470px, 1.15fr);
  align-items: center;
  gap: 40px;
}

.final-copy {
  padding-bottom: 80px;
}

.final-copy h2 em {
  font-style: italic;
  font-weight: 900;
}

.download-button--gold {
  min-width: 244px;
  margin-top: 12px;
  color: #382900;
  background: var(--gold);
  box-shadow: 0 7px 0 var(--gold-edge), 0 15px 28px rgba(0,0,0,0.18);
}

.download-button--gold span { color: rgba(56,41,0,0.7); }
.download-button--gold:hover { box-shadow: 0 9px 0 var(--gold-edge), 0 19px 35px rgba(0,0,0,0.2); }
.download-button--gold:active { box-shadow: 0 1px 0 var(--gold-edge); }

.cta-note {
  display: block;
  margin-top: 22px;
  color: rgba(255,255,255,0.57);
  font-size: 0.68rem;
}

.final-angels {
  position: relative;
  align-self: end;
  height: 570px;
}

.final-halo {
  position: absolute;
  inset: 8% 3% 1%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 67%);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: orbit 36s linear infinite;
}

.final-angels img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 25px 25px rgba(7,25,45,0.35));
  animation: heroFloat 5.5s ease-in-out infinite;
}

.site-footer {
  padding: 38px 0;
  background: #f7fbff;
  border-top: 1px solid #e2ebf4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 20px 35px;
}

.footer-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

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

.footer-grid > small {
  grid-column: 1 / -1;
  padding-top: 18px;
  color: #8b9aab;
  border-top: 1px solid #e2eaf2;
  font-size: 0.64rem;
}

/* Download dialog */

.download-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 42px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 32px;
  box-shadow: 0 35px 100px rgba(5,23,45,0.42);
  text-align: center;
}

.download-dialog[open] {
  animation: dialogIn 0.35s cubic-bezier(.2,.8,.2,1) both;
}

.download-dialog::backdrop {
  background: rgba(10,29,50,0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease both;
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  background: #eef4f9;
  border: 0;
  border-radius: 12px;
  font-size: 1.4rem;
  cursor: pointer;
}

.dialog-icon {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  place-items: center;
  background: #eef7ff;
  border: 1px solid #d7eaff;
  border-radius: 26px;
  box-shadow: 0 7px 0 #d9e6f3;
  overflow: hidden;
}

.dialog-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.download-dialog .kicker { margin-bottom: 9px; }
.download-dialog h2 { margin-bottom: 16px; font-size: 1.9rem; font-weight: 900; line-height: 1.08; }
.download-dialog > p:not(.kicker) { color: var(--ink-soft); font-size: 0.87rem; line-height: 1.65; }
.download-button--dialog { width: 100%; margin: 18px 0 14px; text-align: left; }

.download-button--dialog:disabled,
.download-button--dialog:disabled:hover,
.download-button--dialog:disabled:active {
  filter: grayscale(0.35) saturate(0.55);
  opacity: 0.55;
  cursor: not-allowed;
  transform: translateY(3px);
  box-shadow: 0 3px 0 #8aa3bd, 0 7px 15px rgba(30, 67, 96, 0.13);
}

.beta-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 13px;
  color: var(--muted);
  background: #f5f9fd;
  border: 1px solid #dfeaf4;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}

.beta-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.beta-consent__check {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--white);
  border: 2px solid #9db3c9;
  border-radius: 7px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.beta-consent input:checked + .beta-consent__check {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.04);
}

.beta-consent input:checked + .beta-consent__check::after {
  content: "✓";
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 900;
}

.beta-consent input:focus-visible + .beta-consent__check {
  outline: 4px solid rgba(39, 132, 249, 0.25);
  outline-offset: 3px;
}

.beta-consent small {
  display: block;
  font-size: 0.63rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 1100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 16px;
  color: var(--white);
  background: #15395f;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(7,29,53,0.3);
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.confetti {
  position: fixed;
  z-index: 1200;
  width: 9px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall 1.15s cubic-bezier(.2,.75,.3,1) forwards;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.75,.22,1);
}

.reveal--delay {
  transition-delay: 0.14s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Motion */

@keyframes drift {
  from { transform: translate3d(-7px, -5px, 0); }
  to { transform: translate3d(22px, 10px, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.75) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

@keyframes orbit {
  to { rotate: 360deg; }
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.4deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.5deg); }
}

@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes cardRock {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-8px); }
}

@keyframes shine {
  0%, 30% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(160%); }
}

@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes screenIn {
  from { opacity: 0; transform: translateX(15px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stagePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes breatheRing {
  0%, 100% { transform: scale(.78); opacity: .35; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes companionChange {
  0% { opacity: 0; transform: translateY(13px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes audioProgress {
  from { width: 12%; }
  to { width: 92%; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  100% { opacity: 0; transform: translate3d(var(--confetti-x), 130px, 0) rotate(var(--confetti-r)); }
}

/* Responsive */

@media (max-width: 1120px) {
  :root { --container: min(100% - 40px, 1040px); }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .78rem; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(380px,.92fr); gap: 38px; }
  .hero-stage { width: min(440px, 42vw); }
  .float-card--streak { left: 1%; }
  .feature-card--guardian,
  .feature-card--sages { grid-template-columns: 1fr; }
  .feature-visual { min-height: 250px; }
  .sage-stack { justify-self: center; }
  .demo-grid { gap: 32px; }
  .try-it-badge { right: -1%; }
  .journey-grid { gap: 45px; }
  .everywhere-grid { gap: 50px; }
}

@media (max-width: 960px) {
  .site-header { padding: 10px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 5px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 2px;
    padding: 13px;
    background: rgba(255,255,255,.98);
    border: 1px solid #dfe9f3;
    border-radius: 19px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-9px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 11px 12px; border-radius: 10px; }
  .nav-links a:hover { background: #eef6ff; }
  .download-button--nav { margin-left: 0; }
  .hero { min-height: auto; padding: 124px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 720px; margin: 0 auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions,
  .hero-proof { justify-content: center; }
  .hero-stage { width: min(480px, 70vw); justify-self: center; margin: 8px auto 0; }
  .hero-cloud--three { display: none; }
  .feature-mosaic { grid-template-columns: 1fr; }
  .feature-card--guardian,
  .feature-card--sages { grid-column: 1 / -1; grid-template-columns: 1.05fr .95fr; }
  .demo-section,
  .sage-section { margin-inline: 14px; border-radius: 48px; }
  .demo-grid,
  .sage-grid { grid-template-columns: 1fr; }
  .demo-copy { max-width: 690px; margin-inline: auto; text-align: center; }
  .demo-copy > p { margin-inline: auto; }
  .demo-tabs { grid-template-columns: repeat(5,1fr); }
  .demo-tabs button,
  .demo-tabs button:last-child { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; text-align: center; }
  .demo-tabs button > span { grid-row: auto; }
  .demo-hint { justify-content: center; }
  .phone-showcase { min-height: 820px; }
  .companion-picker { grid-template-columns: 1fr; }
  .companion-buttons { grid-template-columns: repeat(4,1fr); }
  .companion-buttons button { grid-template-columns: 1fr; grid-template-rows: 66px auto auto; justify-items: center; padding: 9px; text-align: center; }
  .companion-buttons button > span { grid-row: auto; }
  .companion-buttons button:hover { transform: translateY(-3px); }
  .journey-grid,
  .everywhere-grid { grid-template-columns: 1fr; }
  .journey-copy,
  .everywhere-copy { max-width: 680px; }
  .path-card { width: min(600px,100%); justify-self: center; }
  .everywhere-visual { order: 2; width: min(650px,100%); justify-self: center; }
  .sage-copy { max-width: 660px; }
  .sage-conversation { width: min(620px,100%); justify-self: center; }
  .rhythm-grid { grid-template-columns: 1fr 1fr; }
  .rhythm-card:last-child { grid-column: 1 / -1; min-height: 330px; }
  .final-grid { grid-template-columns: 1fr; text-align: center; }
  .final-copy { max-width: 710px; margin-inline: auto; padding-bottom: 0; }
  .final-copy > p { margin-inline: auto; }
  .final-angels { width: min(640px,90vw); justify-self: center; }
}

@media (max-width: 720px) {
  :root { --container: calc(100vw - 32px); }
  .section { padding: 92px 0; }
  .brand-link img { width: 96px; }
  .download-button--nav { display: none; }
  .hero { padding: 118px 0 96px; }
  .hero h1 { font-size: clamp(2.55rem, 10.5vw, 3.45rem); }
  .hero-lede { font-size: .94rem; }
  .hero-stage { width: min(440px, 84vw); margin-top: 12px; }
  .float-card { padding: 9px 11px; }
  .float-card strong { font-size: .7rem; }
  .float-card small { font-size: .52rem; }
  .float-card__icon { width: 32px; height: 32px; font-size: 1rem; }
  .float-card--streak { top: 15%; left: 2%; }
  .float-card--xp { right: 2%; bottom: 12%; }
  .speech-cloud { right: 1%; font-size: .62rem; }
  .hero-meadow { height: 110px; }
  .hero-meadow img { height: 105px; }
  .benefit-track span { padding-inline: 20px; }
  .section-heading h2,
  .demo-copy h2,
  .journey-copy h2,
  .everywhere-copy h2,
  .sage-copy h2,
  .final-copy h2 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .heading-no-break { white-space: normal; }
  .translation-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
  .translation-stack button { height: 64px; }
  .feature-mosaic { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card--guardian,
  .feature-card--sages { grid-column: auto; grid-template-columns: 1fr; min-height: 0; padding: 29px; border-radius: 30px; }
  .feature-card--streak,
  .feature-card--offline { min-height: 430px; }
  .feature-card h3 { font-size: 2rem; }
  .sage-stack { transform: scale(.9); }
  .demo-section,
  .sage-section { margin-inline: 8px; border-radius: 36px; }
  .demo-tabs { grid-template-columns: 1fr 1fr; }
  .demo-tabs button,
  .demo-tabs button:last-child { grid-column: auto; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; text-align: left; }
  .demo-tabs button:last-child { grid-column: 1 / -1; }
  .demo-tabs button > span { grid-row: 1 / 3; }
  .phone-showcase { min-height: 710px; }
  .phone-shell { width: 338px; height: 686px; border-width: 8px; border-radius: 42px; transform-origin: center; }
  .demo-screen { padding: 49px 15px 72px; }
  .try-it-badge { display: none; }
  .companion-buttons { grid-template-columns: 1fr 1fr; }
  .companion-stage { grid-template-columns: 1fr; padding-top: 22px; border-radius: 34px; }
  .companion-image-wrap { height: 380px; }
  .companion-copy { padding: 20px 28px 38px; text-align: center; }
  .companion-copy ul { display: inline-grid; text-align: left; }
  .companion-aura { top: 29%; left: 50%; }
  .path-card { height: 650px; border-radius: 36px; border-width: 7px; }
  .milestone { width: 72px; height: 72px; border-width: 5px; }
  .milestone img { width: 42px; height: 42px; }
  .milestone > span { top: 77px; }
  .milestone.is-current { width: 88px; height: 88px; }
  .milestone.is-current img { width: 52px; height: 52px; }
  .milestone.is-current > span { top: 95px; }
  .everywhere-visual { min-height: 460px; border-radius: 36px; }
  .book-stack { transform: scale(.9); }
  .check-list { grid-template-columns: 1fr; }
  .sage-grid { gap: 45px; }
  .sage-conversation { padding: 18px; }
  .rhythm-grid { grid-template-columns: 1fr; }
  .rhythm-card,
  .rhythm-card:last-child { grid-column: auto; min-height: 390px; }
  .final-cta { padding-top: 90px; }
  .final-angels { height: 480px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 440px) {
  :root { --container: calc(100vw - 24px); }
  .nav-shell { gap: 12px; }
  .hero { padding: 112px 0 90px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions { gap: 22px; }
  .download-button--hero { width: 100%; justify-content: center; text-align: left; }
  .hero-proof { gap: 8px 13px; font-size: .67rem; }
  .hero-stage { width: 92vw; margin-left: 0; }
  .float-card--streak { left: 6%; }
  .float-card--xp { right: 6%; }
  .speech-cloud { display: none; }
  .section { padding: 80px 0; }
  .section-heading { margin-bottom: 43px; }
  .feature-card { padding: 25px; }
  .streak-orbit { right: 20px; width: 104px; height: 104px; }
  .translation-stack { gap: 9px; }
  .demo-section,
  .sage-section { margin-inline: 0; border-radius: 0; }
  .demo-tabs button { min-height: 58px; }
  .phone-showcase { min-height: 640px; margin-inline: -12px; }
  .phone-shell { width: min(330px, 92vw); height: 632px; }
  .demo-screen { padding-top: 47px; }
  .demo-verse-card { padding: 16px; }
  .demo-verse-card blockquote { font-size: .9rem; }
  .journey-demo-map { height: 220px; }
  .demo-stage--two { top: 86px; left: 112px; }
  .demo-you { top: 62px; left: 122px; }
  .companion-buttons button { grid-template-rows: 58px auto auto; }
  .companion-buttons button > span { width: 49px; height: 49px; }
  .companion-image-wrap { height: 330px; }
  .companion-copy { padding-inline: 21px; }
  .quest-list > div { grid-template-columns: 34px 1fr; }
  .quest-list strong { grid-column: 2; }
  .path-card { height: 570px; }
  .milestone--one { left: 11%; bottom: 58px; }
  .milestone--two { right: 11%; bottom: 172px; }
  .milestone--three { top: 231px; left: 12%; }
  .milestone--four { top: 109px; right: 10%; }
  .milestone--five { top: 20px; left: 34%; }
  .everywhere-visual { min-height: 420px; }
  .offline-halo { width: 310px; height: 310px; }
  .book-stack { transform: scale(.8); }
  .offline-badge { right: 20px; bottom: 25px; }
  .conversation-top { grid-template-columns: 50px 1fr auto; }
  .conversation-top img { width: 50px; height: 50px; }
  .chat-bubble { max-width: 91%; }
  .rhythm-card { padding: 28px; }
  .final-angels { height: 390px; width: 110vw; margin-left: -5vw; }
  .download-dialog { padding: 36px 24px 30px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .benefit-track { transform: none; }
  .hero-angels,
  .final-angels img,
  .companion-image-wrap img { transform: none !important; }
}
