:root {
  color-scheme: light;
  --text: #151515;
  --muted: #6b6864;
  --line: rgba(18, 18, 18, 0.08);
  --orange: #f26d21;
  --orange-soft: #fff1e8;
  --green: #4da66a;
  --red: #d85f4f;
  --shadow: 0 38px 100px rgba(36, 28, 20, 0.18);
  --phone-bg: linear-gradient(145deg, #2b2927, #0d0d0d);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --orange-soft: #fff2e8;
  --orange-dark: #93430f;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.page {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
}

.section {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.hero {
  display: grid;
  align-items: center;
  justify-items: center;
  isolation: isolate;
  padding: 116px 28px 64px;
  overflow: hidden;
  background: #171411;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/hero-dropper-study.png") center / cover no-repeat;
  filter: brightness(0.55) blur(8px) saturate(1.1) contrast(1.05);
  transform: scale(1.05);
}

.hero__background::before,
.hero__background::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero__background::before {
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.04) 0%, rgba(8, 7, 6, 0.08) 34%, rgba(78, 49, 24, 0.34) 68%, rgba(33, 20, 10, 0.68) 100%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.04), rgba(67, 45, 24, 0.08) 48%, rgba(27, 17, 9, 0.32) 100%);
}

.hero__background::after {
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.42), transparent 13%, transparent 87%, rgba(9, 8, 7, 0.42)),
    linear-gradient(180deg, transparent 32%, rgba(196, 126, 58, 0.18) 72%, rgba(70, 39, 17, 0.44) 100%);
  backdrop-filter: blur(0.15px);
}

.nav {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
}

.nav__brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 760;
  text-decoration: none;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.nav__logo {
  height: 44px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__links {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px);
}

.nav__links a {
  border-radius: 999px;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 680;
  text-decoration: none;
}

.nav__links a:last-child {
  background: rgba(255, 255, 255, 0.18);
}

.hero__content {
  width: min(1060px, 100%);
  text-align: center;
}

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

h1 {
  max-width: 1080px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(3.25rem, 6.6vw, 6.75rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.04em; /* Premium tighter spacing */
  text-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.hero__text {
  max-width: 760px;
  margin: 24px auto 30px;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 560;
  line-height: 1.5;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 0 25px;
  font-size: 0.98rem;
  font-weight: 740;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  min-width: 210px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: #171411;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.button--download {
  min-width: 160px;
  min-height: 48px;
  background: rgba(20, 25, 30, 0.85); /* Darker for high contrast */
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button--download:hover {
  transform: scale(1.03);
  background: rgba(20, 25, 30, 0.95);
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background:
    radial-gradient(circle at 50% 56%, rgba(242, 109, 33, 0.075), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
}

.product__container {
  display: flex;
  width: min(100%, 1200px);
  min-height: min(720px, calc(100vh - 80px));
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.5vh, 20px);
}

.product__copy {
  width: min(860px, 100%);
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.4vw, 3.15rem);
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.title-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.product__copy p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  font-weight: 520;
  line-height: 1.5;
}

.product__stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(390px, 58vh, 540px);
  place-items: center;
}

.product__stage::before {
  position: absolute;
  width: min(88vw, 660px);
  aspect-ratio: 1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 109, 33, 0.09), rgba(242, 109, 33, 0.018) 45%, transparent 70%);
  filter: blur(8px);
}

.orbit {
  position: absolute;
  width: min(92vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(17, 17, 17, 0.028);
  border-radius: 999px;
}

.orbit--two {
  width: min(72vw, 560px);
}

.flow {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 1040px);
  padding: 12px 22px 18px;
  justify-items: center;
}

.guide-comment {
  margin-bottom: 18px;
  border-radius: 9999px;
  padding: 10px 20px;
  background: rgba(20, 25, 30, 0.85); /* Darker for high contrast */
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.support-cards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.support-card {
  position: absolute;
  width: 248px;
  border: 1px solid rgba(17, 17, 17, 0.055);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 58px rgba(29, 23, 18, 0.07);
  backdrop-filter: blur(20px);
}

.support-card--tagging {
  top: 208px;
  left: 10px;
  transform: rotate(-5deg);
  z-index: 1;
}

.support-card--revision {
  top: 342px;
  right: 8px;
  transform: rotate(4deg);
}

.support-card__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #93430f;
  font-size: 0.72rem;
  font-weight: 700;
}

.support-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.support-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.mini-question,
.revision-card {
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.92);
}

.mini-question strong,
.revision-card strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.mini-question span,
.revision-card span,
.revision-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tags span {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(147, 67, 15, 0.1);
}

.phone {
  position: relative;
  z-index: 4;
  width: min(280px, 30vh, 20vw); /* Increased base size to be standard */
  aspect-ratio: 0.49;
  flex-shrink: 0;
  border: 4px solid #1a1816;
  border-radius: 46px;
  padding: 0; /* Remove padding to let app inset handle it */
  background: #1a1816; /* Black background to match border */
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone::before {
  position: absolute;
  inset: 3px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 41px;
  pointer-events: none;
  z-index: 5;
}

.phone__speaker {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 20px;
  border-radius: 999px;
  background: #101010;
  transform: translateX(-50%);
}

.app {
  position: absolute;
  inset: 6px;
  height: calc(100% - 12px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 40px;
  padding: 56px 12px 60px; /* Reduced horizontal padding to 12px to maximize content space */
  background: #fbfaf8;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.app.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 10; /* Ensure active is always on top */
}

.app.is-prev {
  opacity: 0;
  transform: translateX(-20%);
  pointer-events: none;
  visibility: hidden; /* Fully remove from view to prevent leakage */
}

h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 740;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.app-bar strong {
  font-size: 0.96rem;
}

.app-bar--back span {
  color: #1e1e1e;
  font-size: 1.2rem;
  line-height: 1;
}

.app--list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(26, 22, 18, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.4s ease;
}

.list-card.is-target {
  border-color: rgba(242, 109, 33, 0.4);
  position: relative;
}

.is-target::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--orange);
  border-radius: 20px;
  animation: pulse 2s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1.05); opacity: 0; }
}

.list-card:hover {
  background: #ffffff;
  transform: scale(1.01);
}

.list-card:active {
  transform: scale(0.98);
}

.list-card--large {
  padding-block: 16px;
}

.list-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.list-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.list-card b {
  color: #3ba4ff;
  font-size: 1.52rem;
  font-weight: 500;
}

.accuracy {
  color: #e46b98;
  font-weight: 620;
}

.list-card--focus {
  border-color: rgba(242, 109, 33, 0.22);
  background: linear-gradient(180deg, rgba(255, 242, 234, 0.96), rgba(255, 255, 255, 0.9));
}

.app--detail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: #181818;
}

.detail-tabs span {
  padding: 11px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 620;
  text-align: center;
}

.detail-tabs .is-active {
  color: #49a5ff;
  box-shadow: inset 0 -2px 0 #49a5ff;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 28px rgba(26, 22, 18, 0.05);
}

.detail-card__question {
  margin: 0 0 14px;
  font-size: 0.77rem;
  line-height: 1.42;
}

.answers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answers li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.71rem;
  line-height: 1.35;
}

.answer--wrong {
  border-color: rgba(224, 108, 128, 0.34);
  background: rgba(255, 239, 242, 0.8);
  color: #cd5d73;
}

.answer--right {
  border-color: rgba(113, 191, 116, 0.34);
  background: rgba(237, 248, 237, 0.86);
  color: #419a4f;
}

.answer-meta {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.answer-meta span:first-child {
  color: #cd5d73;
  font-size: 0.72rem;
  font-weight: 620;
}

.answer-meta span:last-child {
  color: #419a4f;
  font-size: 0.72rem;
  font-weight: 620;
}

.mini-tags--inline {
  margin-top: 12px;
}

.detail-next {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px;
  background: #151311;
}

.detail-next strong {
  display: block;
  color: #ffffff;
  font-size: 0.72rem;
}

.detail-next small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.4;
}

/* Scrollable MCQ Review */
.app--scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.app--scrollable .detail-card {
  margin-bottom: 14px;
}

.app--scrollable .detail-card:last-child {
  margin-bottom: 0;
}

.detail-card__image-placeholder {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f4f2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.detail-card__match-table {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9f8f6;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--text);
}

.answers--compact li {
  padding: 8px 10px;
  font-size: 0.69rem;
}

.ask-community {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #3b8bdb;
  font-size: 0.72rem;
  font-weight: 640;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ask-community:hover {
  background: #f0f7ff;
}

.answer-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.download {
  position: relative;
  text-align: center;
  z-index: 100;
  margin-top: -20px; /* Pulls it up slightly closer to the phones */
}

.download p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Two-Phone Layout ===== */
.phones-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.flow-container {
  display: block;
  height: auto;
}

/* ===== PHONE 2: Tag / Results / Revision ===== */
.screen-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Tag MCQ Card */
.tag-mcq-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.93);
  box-shadow: 0 8px 20px rgba(26,22,18,0.04);
}
.tag-mcq-card__q {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}
.tag-mcq-card__a {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: #cd5d73;
  line-height: 1.35;
}
.tag-mcq-card__wrong {
  font-weight: 700;
  margin-right: 4px;
}
.tag-mcq-card__correct {
  margin: 0 0 10px;
  font-size: 0.7rem;
  color: #419a4f;
  font-weight: 600;
}

/* Tag Pills */
.tag-pills {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Force tags into two lines/columns */
  gap: 8px;
}
.tag-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f5f3f0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.tag-pill:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.tag-pill--on {
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(242,109,33,0.15);
}

/* Done tagging button */
.tag-submit {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.tag-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242,109,33,0.3);
}

/* Results Tabs */
.results-tabs {
  display: flex;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0efed;
  margin: 4px 0 24px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.results-tabs span {
  flex: 1;
  height: 100%;
  font-size: 0.72rem; /* Reduced to prevent clipping */
  font-weight: 750;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Tightened gap for icons */
}
.results-tabs .is-active {
  color: #3b8bdb;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.results-tab-revision {
  cursor: pointer;
}

/* Results Section */
.results-section {
  margin-bottom: 16px;
}
.results-section__title {
  font-size: 0.78rem;
  font-weight: 740;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.results-icon {
  font-size: 0.85rem;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px; /* Slightly reduced gap to prevent right-side clipping */
  width: 100%;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 4px; /* Minimal side padding to maximize content width */
  background: #ffffff;
  text-align: center;
}
.stat-card__label {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 4px;
}
.stat-card strong {
  font-size: 0.82rem;
  font-weight: 760;
}
.stat-card--correct {
  border-color: rgba(77,166,106,0.2);
  background: rgba(237,248,237,0.5);
}
.stat-card--correct strong { color: var(--green); }
.stat-card--incorrect {
  border-color: rgba(224,108,128,0.2);
  background: rgba(255,239,242,0.5);
}
.stat-card--incorrect strong { color: var(--red); }
.stat-card--unattempted {
  border-color: rgba(150,150,150,0.15);
  background: rgba(245,245,245,0.5);
}
.stat-card--unattempted strong { color: var(--muted); }

/* Results Badge */
.results-badge {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}
.results-badge--good {
  background: rgba(237,248,237,0.7);
  color: #419a4f;
  border: 1px solid rgba(77,166,106,0.15);
}

/* Pie Chart */
.pie-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#e88ea8 0% 50%, #b68ad4 50% 100%);
  margin: 6px auto 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 580;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot--pink { background: #e88ea8; }
.dot--purple { background: #b68ad4; }

/* Chapter Performance (Light Theme Optimization) */
.chapter-perf {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.chapter-header strong {
  font-size: 0.78rem;
}
.chapter-header .accuracy {
  color: #e88ea8;
  font-size: 0.72rem;
}
.chapter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.68rem;
  color: var(--muted);
}
.bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.bar__fill--red { background: #e06c80; }
.bar__fill--orange { background: #f2a33c; }
.bar__fill--green { background: #4da66a; }

/* Revision List Card */
.revision-list-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 20px rgba(26,22,18,0.04);
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}
.revision-list-card:hover {
  transform: scale(1.01);
}
.revision-list-card__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.revision-list-card__body {
  flex: 1;
  min-width: 0;
}
.revision-list-card__body strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}
.revision-list-card__body span {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: var(--muted);
}
.revision-list-card__body small {
  display: block;
  margin-top: 3px;
  font-size: 0.64rem;
  color: var(--muted);
  line-height: 1.35;
}
.revision-list-card__due {
  color: var(--orange) !important;
  font-weight: 650;
}
.revision-list-card b {
  color: #3ba4ff;
  font-size: 1.4rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Calendar */
.cal-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}
.cal-month strong {
  font-size: 0.82rem;
}
.cal-month span {
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 0.68rem;
  margin-bottom: 4px;
}
.cal-grid--header {
  margin-bottom: 6px;
}
.cal-grid--header span {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.62rem;
}
.cal-grid span {
  padding: 6px 2px;
  border-radius: 8px;
  line-height: 1;
  color: var(--text);
}
.cal-today {
  background: var(--orange) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.cal-has-event {
  position: relative;
}
.cal-has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.cal-today.cal-has-event::after {
  background: #ffffff;
}
.cal-event {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255,255,255,0.9);
}
.cal-event__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
}
.cal-event__dot--blue {
  background: #3b8bdb;
}
.cal-event strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
}
.cal-event span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--muted);
}
.cal-event small {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.35;
}


/* Time vs Ideal Time Graph */
.time-graph {
  margin-top: 16px;
  padding: 12px;
  background: #fdfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.time-graph__label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.time-graph__bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.time-graph__bar {
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  min-width: fit-content;
}
.time-graph__bar--your {
  background: #cd5d73;
}
.time-graph__bar--ideal {
  background: #4da66a;
}

/* Chapter Breakdown Nested Topics */
.chapter-row--main {
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 10px;
}
.sub-chapter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 6px;
  margin-left: 12px;
  font-size: 0.62rem;
  color: var(--muted);
}
.bar--mini {
  height: 3px;
}

/* Single MCQ Analysis Screen Styles */
.analysis-meta {
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 12px;
}
.analysis-meta p {
  margin: 2px 0;
  font-size: 0.65rem;
  color: var(--muted);
}

.status-tabs {
  display: flex;
  background: #f0efed;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 2px;
}
.status-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9px;
  color: var(--muted);
}
.status-tab--incorrect.is-active {
  background: #ef5b83;
  color: white;
}
.status-tab--unattempted.is-active {
  background: #888;
  color: white;
}
.status-tab--correct.is-active {
  background: #4da66a;
  color: white;
}

.mcq-card-detailed {
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.mcq-card-detailed__header {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #1e1e1e;
}
.mcq-card-detailed__q {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #333;
}
.mcq-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 8px;
}
.mcq-option--wrong {
  background: #fef2f4;
  border-color: #f8c0c8;
  color: #cd5d73;
}
.mcq-option--correct {
  background: #f2faf4;
  border-color: #c0e8cd;
  color: #4da66a;
}
.mcq-option--selected {
  background: #edf4ff;
  border-color: #8bb8f1;
  color: #244a79;
}
.mcq-explanation {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  font-size: 0.65rem;
  color: #666;
}
.mcq-explanation strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
}

.tag-analysis-label {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--muted);
}

.analysis-footer {
  margin-top: 16px;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: white;
}
.analysis-footer__nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.btn-nav {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: #f0efed;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  color: #444;
  cursor: pointer;
}
.btn-nav--next {
  background: #3ba4ff;
  color: white;
}
.btn-view-results {
  width: 100%;
  padding: 14px;
  background: #3ba4ff;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(59, 164, 255, 0.3);
  cursor: pointer;
}

/* Pulsing Guided Indicators for Phone 2 */
.pulsing-target {
  position: relative;
}
.pulsing-target::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--orange);
  border-radius: inherit;
  animation: pulsing 1.5s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes pulsing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* Testimonials Section */
.testimonials {
  padding: clamp(74px, 8vw, 110px) max(20px, calc((100vw - 1240px) / 2));
  background: linear-gradient(180deg, #f6f7f4, #eef3f0);
}

.testimonials__container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.testimonials__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.testimonials__header h2 {
  max-width: 690px;
  margin: 0 0 10px;
  color: #172d31;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.testimonials__header p {
  max-width: 620px;
  margin: 0;
  color: #526568;
  font-size: 1rem;
  line-height: 1.5;
}

.testimonials__header .section-eyebrow {
  margin-bottom: 12px;
  color: #267360;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.testimonials__controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.testimonials__controls span {
  margin-right: 9px;
  color: #617276;
  font-size: .82rem;
}

.testimonials__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid #bfd0c8;
  border-radius: 50%;
  background: #fff;
  color: #1d433d;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.testimonials__arrow:hover:not(:disabled) { background: #d9ebe3; transform: translateY(-2px); }
.testimonials__arrow:disabled { opacity: .4; cursor: default; }
.testimonials__arrow:focus-visible, .testimonials__rail:focus-visible, .testimonial-card__source:focus-visible { outline: 3px solid #ee7847; outline-offset: 3px; }

.testimonials__rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: #9dbbb1 transparent;
  padding: 5px 2px 22px;
}

.testimonial-card {
  display: flex;
  flex: 0 0 clamp(290px, 29vw, 350px);
  flex-direction: column;
  min-height: 305px;
  padding: 27px;
  border: 1px solid #d8e2dc;
  border-radius: 22px;
  background: #fff;
  color: #17332f;
  box-shadow: 0 9px 27px #233c3320;
  scroll-snap-align: start;
}

.testimonial-card__topic {
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #375f55;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 23px 0;
  color: #243b38;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: -.015em;
}

.testimonial-card__source {
  align-self: flex-start;
  margin-top: auto;
  color: #43625b;
  font-size: .81rem;
  font-weight: 700;
  text-decoration: none;
}

.testimonial-card a.testimonial-card__source:hover { text-decoration: underline; text-underline-offset: 3px; }
.testimonial-card--mint { background: #def1e7; border-color: #b7d8c4; }
.testimonial-card--lilac { background: #eee8f8; border-color: #d7c8ec; }
.testimonial-card--lilac .testimonial-card__topic { color: #684f89; }
.testimonial-card--peach { background: #fff0e7; border-color: #efceb8; }
.testimonial-card--peach .testimonial-card__topic { color: #9a5638; }
.testimonial-card--sand { background: #f7edd6; border-color: #e4d4aa; }
.testimonial-card--sand .testimonial-card__topic { color: #815d2d; }
.testimonial-card--sky { background: #e7f1fb; border-color: #c9dcf0; }
.testimonial-card--sky .testimonial-card__topic { color: #3b6186; }
.testimonial-card--cream { background: #fffaf0; border-color: #e8deca; }

/* Footer Section */
.footer {
  background: #fbfaf8;
  padding: 40px 24px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__container {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__message {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  max-width: 600px;
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  html,
  .page {
    scroll-snap-type: y proximity;
  }

  .testimonials {
    padding-left: 16px;
    padding-right: 16px;
  }

  .testimonials__header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .testimonials__controls { align-self: stretch; justify-content: space-between; }
  .testimonials__controls span { margin-right: auto; }
  .testimonial-card { flex-basis: min(84vw, 330px); min-height: 290px; padding: 24px; }

  .page {
    height: 100svh;
  }

  .hero {
    align-items: center;
    min-height: 100svh;
    padding: 94px 18px 54px;
  }

  .hero__background {
    background-position: 49% center;
  }

  .hero__background::before {
    background:
      linear-gradient(180deg, rgba(12, 10, 8, 0.1) 0%, rgba(12, 10, 8, 0.15) 36%, rgba(79, 52, 26, 0.52) 76%, rgba(39, 24, 12, 0.76) 100%),
      radial-gradient(circle at 50% 62%, rgba(242, 109, 33, 0.08), rgba(64, 44, 25, 0.12) 48%, rgba(32, 20, 11, 0.38) 100%);
  }

  .nav {
    top: 16px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav__brand {
    justify-self: start;
    font-size: 1rem;
  }

  .nav__brand span {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }

  .nav__links {
    display: none;
  }

  h1 {
    max-width: 640px;
    font-size: clamp(2.86rem, 12.4vw, 4.25rem);
    line-height: 1;
  }

  .hero__text {
    margin-top: 18px;
    font-size: 1.06rem;
  }

  .hero__text br {
    display: none;
  }

  .button {
    min-height: 52px;
  }

  /* --- SNAP STOP 1: Hero --- */
  .section {
    height: auto;
    scroll-snap-align: none;
  }

  .velorah-hero {
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* --- SNAP STOP 2: Product (single viewport, internally scrollable) --- */
  .product {
    display: flex;
    flex-direction: column;
    height: 100svh;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
  }

  .product__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .product__copy {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 20px 20px 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 72%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(18px);
    z-index: 8;
  }

  .product__copy h2 {
    margin-bottom: 4px;
    font-size: clamp(1.4rem, 5.8vw, 1.9rem);
  }

  .product__copy p {
    display: none;
  }

  .product__stage {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .phones-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
  }

  /* Flow containers stack vertically — NO individual snap */
  .flow-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: unset;
    padding: 20px 16px 12px;
    overflow: visible;
  }

  .flow {
    width: 100%;
    padding: 0;
  }

  .guide-comment {
    max-width: min(330px, 92vw);
    margin-bottom: 14px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .phone {
    height: min(720px, 75svh);
    aspect-ratio: 0.49;
    width: auto;
    max-width: 82vw;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .orbit,
  .product__stage::before,
  .download {
    display: none;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.48rem, 12vw, 3.18rem);
  }

  .product__copy p {
    font-size: 0.95rem;
  }

  .app {
    padding-inline: 12px;
    padding-top: 40px; /* Reduced from 56px as requested */
  }

  .app-bar strong {
    font-size: 0.95rem;
  }

  .list-card strong {
    font-size: 0.92rem;
  }

  .mcq-card-detailed__q {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .mcq-option {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .status-tab {
    font-size: 0.75rem;
  }
}

/* --- Final Premium Polish --- */

/* Hero Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__scroll-dot {
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* Status Bar Inside Phone */
.status-bar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  z-index: 20;
}

.status-bar__icons {
  display: flex;
  gap: 4px;
  font-size: 0.7rem;
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Velorah Hero Styles */

.velorah-hero {
  --background: 201 100% 13%;
  --foreground: 0 0% 100%;
  --muted-foreground: 240 4% 66%;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: hidden;
  scroll-snap-stop: normal;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

.velorah-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(2px) brightness(0.85); /* Slight bokeh and darkening */
}

.velorah-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(10, 16, 26, 0.1) 0%, rgba(10, 16, 26, 0.6) 100%);
}

.velorah-hero__nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.velorah-hero__logo {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  text-decoration: none;
}
.velorah-hero__logo sup { font-size: 0.75rem; line-height: 1rem; }

.velorah-hero__nav-pill {
  display: flex;
  align-items: center;
  padding: 6px;
  background: rgba(20, 25, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.velorah-hero__nav-link {
  padding: 8px 24px;
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.velorah-hero__nav-link:hover {
  color: hsl(var(--muted-foreground));
}

.velorah-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 24px 74px;
  min-height: calc(100svh - 100px);
}

.velorah-hero__h1 {
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -2.46px;
  max-width: 80rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  margin: 0;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
@media (min-width: 640px) { .velorah-hero__h1 { font-size: 4.5rem; } }
@media (min-width: 768px) { .velorah-hero__h1 { font-size: 6rem; } }

.velorah-hero__h1 em {
  font-style: normal;
  color: hsl(var(--muted-foreground));
}

.velorah-hero__eyebrow {
  margin: 0 0 22px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.velorah-hero__subtext {
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 46rem;
  margin: 2rem auto 0;
  line-height: 1.625;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
@media (min-width: 640px) { .velorah-hero__subtext { font-size: 1.25rem; } }

.liquid-glass-btn {
  background: rgba(255, 255, 255, 0.12); /* More visible background */
  background-blend-mode: luminosity;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25); /* Visible border */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.liquid-glass-btn:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.18);
}
.liquid-glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.velorah-hero__nav-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none; /* Pill container already has border */
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.velorah-hero__cta {
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.velorah-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
}

.velorah-hero__secondary {
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.velorah-hero__reassurance {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.89rem;
  line-height: 1.5;
}

.hero-start {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(352px, 100%);
  margin-top: 26px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  color: #172b36;
  text-align: left;
  text-decoration: none;
}

.hero-start__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: #fff0e5;
  color: #9b450e;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-start span:nth-child(2) { display: grid; gap: 3px; }
.hero-start small { color: #5a6470; font-size: 0.73rem; }
.hero-start strong { font-size: 0.92rem; }
.hero-start__arrow { margin-left: auto; font-size: 1.2rem; }

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }

/* ===== Velorah Hero – Mobile Overrides ===== */
@media (max-width: 640px) {
  .velorah-hero__nav {
    padding: 16px 20px;
  }

  .velorah-hero__logo {
    font-size: 1.35rem;
  }

  .velorah-hero__nav-link {
    /* Hide the 'How it works' text link on small screens to save space */
    display: none;
  }

  .velorah-hero__nav-pill {
    padding: 4px;
  }

  .velorah-hero__nav-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

  .velorah-hero__content {
    padding: 32px 20px 50px;
    min-height: calc(100svh - 72px);
    justify-content: center;
  }

  .velorah-hero__h1 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
    letter-spacing: -1.5px;
    line-height: 1.05;
  }

  .velorah-hero__subtext {
    font-size: 1rem;
    margin-top: 1.25rem;
  }

  .velorah-hero__cta {
    padding: 16px 24px;
    font-size: 1rem;
    width: 100%;
    max-width: 360px;
  }

  .velorah-hero__actions {
    width: 100%;
    margin-top: 24px;
  }

  .velorah-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 0.68rem;
  }

}

/* Homepage explanation: the set loop comes before the product previews. */
.chapter-loop,
.included {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  scroll-snap-stop: normal;
}

.chapter-loop {
  background: #f8f5f0;
  padding: clamp(72px, 9vw, 120px) 24px;
}

.chapter-loop__container,
.included__container {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-loop__intro,
.included__intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.chapter-loop__intro h2,
.included__intro h2 {
  margin: 0 0 16px;
  text-align: left;
}

.chapter-loop__intro > p:last-child,
.included__intro > p:last-child {
  margin: 0;
  color: #494642;
  font-size: 1.1rem;
  line-height: 1.6;
}

.chapter-loop__visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.85fr);
  align-items: stretch;
  gap: 18px;
}

.chapter-tree,
.practice-loop {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #e4ded4;
  border-radius: 26px;
  background: #fffdf9;
  box-shadow: 0 18px 38px rgba(42, 33, 22, 0.04);
}

.chapter-tree__root {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(265px, 80%);
  margin: 0 auto;
  padding: 16px;
  border: 2px solid #1d3440;
  border-radius: 17px;
  background: #f1f7f9;
  text-align: center;
}

.chapter-tree__root span,
.chapter-tree__root b { font-size: 0.73rem; }
.chapter-tree__root span { color: #4e626d; text-transform: uppercase; letter-spacing: 0.08em; }
.chapter-tree__root strong { font-size: 1.23rem; }
.chapter-tree__root b { color: #9b450e; }

.chapter-tree__branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 45px 0 0;
  padding: 0;
  list-style: none;
}

.chapter-tree__branches::before {
  position: absolute;
  top: -22px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: #d9a27f;
  content: "";
}

.chapter-tree__root::after {
  position: absolute;
  top: 100%;
  left: 50%;
  height: 23px;
  border-left: 2px solid #d9a27f;
  content: "";
}

.chapter-tree__set {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1px solid #e0d9d0;
  border-radius: 14px;
  background: #fff;
}

.chapter-tree__set::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 22px;
  border-left: 2px solid #d9a27f;
  content: "";
}

.chapter-tree__set span { color: #865036; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.chapter-tree__set strong { font-size: 0.9rem; }
.chapter-tree__set small { color: #5d5a55; font-size: 0.67rem; line-height: 1.3; }
.chapter-tree__set--first { border-color: #ec8547; background: #fff0e6; }
.chapter-tree__set--first strong { color: #8c3d0c; }

.practice-loop { background: #16303d; color: #fff; }
.practice-loop__eyebrow { margin: 0 0 17px; color: #ffbf8e; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.practice-loop ol { margin: 0; padding: 0; list-style: none; }
.practice-loop li { display: flex; gap: 12px; min-height: 68px; }
.practice-loop li > span { position: relative; display: grid; width: 29px; height: 29px; flex: none; place-items: center; border: 1px solid #ffbc8d; border-radius: 50%; color: #ffbc8d; font-size: 0.73rem; font-weight: 800; }
.practice-loop li:not(:last-child) > span::after { position: absolute; top: 100%; left: 50%; height: 35px; margin-top: 3px; border-left: 1px dashed #ffbc8d; content: ""; }
.practice-loop li p { display: grid; gap: 3px; margin: 0; }
.practice-loop li strong { font-size: 0.9rem; }
.practice-loop li small { color: #cbd4d8; font-size: 0.75rem; }
.practice-loop__repeat { margin: 10px 0 0; padding: 13px 15px; border: 1px dashed #ffbc8d; border-radius: 12px; color: #ffe0c9; font-size: 0.78rem; line-height: 1.5; }

.student-situation h3,
.included__card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.student-situation p,
.included__card p {
  margin: 0;
  color: #595650;
  font-size: 0.96rem;
  line-height: 1.58;
}

.chapter-loop__aside {
  display: flex;
  gap: 16px;
  margin: 18px 0 0;
  padding: 20px 26px;
  border: 1px dashed #dba777;
  border-radius: 16px;
  background: #fff;
  color: #3d3934;
  line-height: 1.55;
}
.chapter-loop__aside > span { color: #bd642a; font-size: 1.3rem; }
.chapter-loop__aside p { margin: 0; }

.student-situation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: #efeae1; }
.student-situation .section-eyebrow { margin-bottom: 12px; }
.student-situation h3 { max-width: 420px; margin-bottom: 14px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.student-situation p { margin-bottom: 0; }
.student-situation a { font-weight: 700; text-underline-offset: 3px; }
.student-situation > div:last-child { padding-left: 24px; border-left: 1px solid #cabfb2; }
.student-situation > div:last-child strong { display: block; margin-bottom: 10px; }
.student-situation small { display: block; margin-top: 13px; color: #656059; line-height: 1.45; }

.product { height: auto; min-height: 100vh; padding-block: 76px; overflow: visible; scroll-snap-stop: normal; }
.product__container { min-height: 0; }
.product__explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product__explain > div { display: grid; gap: 8px; padding: 18px; border: 1px solid #e9e4dd; border-radius: 16px; background: #fff; }
.product__explain b { font-size: 0.9rem; }
.product__explain span { color: #5e5a54; font-size: 0.8rem; line-height: 1.5; }
.flow-caption { margin: 0 0 10px; color: #1f3540; font-size: 0.87rem; font-weight: 800; text-align: center; }
.flow-caption span { color: #656d70; font-weight: 500; }

.included {
  padding: clamp(72px, 9vw, 120px) 24px;
  background: #fff;
}

.included__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.included__card {
  padding: 28px 30px;
  border: 1px solid #e9e5e0;
  border-radius: 22px;
  background: #fcfaf7;
}

.included__label {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.included__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 32px;
  border-radius: 22px;
  background: #122532;
  color: #fff;
}

.included__offer .section-eyebrow {
  color: #ffc093;
}

.included__offer h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.included__offer p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.included__offer .button {
  flex-shrink: 0;
  background: #fff;
  color: #122532;
}

@media (max-width: 900px) {
  .chapter-loop__visuals { grid-template-columns: 1fr; }
  .practice-loop ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .practice-loop li { min-height: 0; }
  .practice-loop li:not(:last-child) > span::after { display: none; }
}

@media (max-width: 760px) {
  .velorah-hero {
    height: auto;
    min-height: 100svh;
    scroll-snap-stop: normal;
  }

  .chapter-loop,
  .included {
    min-height: 0;
  }

  .product { display: block; height: auto; min-height: 0; padding: 68px 16px; overflow: visible; scroll-snap-align: none; }
  .product__container { display: block; height: auto; overflow: visible; }
  .product__copy { padding: 0 4px 18px; background: none; backdrop-filter: none; }
  .product__copy p { display: block; }
  .product__explain { grid-template-columns: 1fr; gap: 8px; }
  .product__explain > div { padding: 14px 16px; }
  .product__stage { display: block; min-height: 0; height: auto; overflow: visible; }
  .phones-row { gap: 20px; padding-bottom: 0; }
  .flow-container { width: 100%; padding: 22px 0 0; }
  .phone { height: min(700px, 82svh); max-width: 88vw; }
}

@media (max-width: 600px) {
  .chapter-loop,
  .included {
    padding: 68px 20px;
  }

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

  .chapter-loop__intro > p:last-child { font-size: 1rem; }
  .chapter-tree, .practice-loop { padding: 20px; }
  .chapter-tree__branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .chapter-tree__branches::before { top: -22px; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; }
  .chapter-tree__set { min-height: 86px; padding: 10px 14px; }
  .chapter-tree__set::before { top: 50%; bottom: auto; left: 100%; width: 8px; height: 0; border-left: 0; border-top: 2px solid #d9a27f; }
  .chapter-tree__set:nth-child(2n)::before { left: auto; right: 100%; }
  .chapter-tree__set strong { font-size: 0.95rem; }
  .chapter-tree__set small { font-size: 0.72rem; }
  .practice-loop ol { grid-template-columns: 1fr; }
  .practice-loop li { min-height: 62px; }
  .practice-loop li:not(:last-child) > span::after { display: block; }
  .student-situation { grid-template-columns: 1fr; gap: 16px; }
  .student-situation > div:last-child { padding: 18px 0 0; border-left: 0; border-top: 1px solid #cabfb2; }
  .velorah-hero__content { min-height: calc(100svh - 72px); padding-bottom: 44px; }
  .velorah-hero__reassurance { font-size: 0.81rem; }
  .hero-start { margin-top: 18px; }

  .included__offer {
    align-items: stretch;
    flex-direction: column;
    padding: 26px;
  }

  .included__offer .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-rise,
  .animate-fade-rise-delay,
  .animate-fade-rise-delay-2,
  .guide-comment { animation: none; }
}

.hero-start:focus-visible,
.student-situation a:focus-visible,
.velorah-hero__secondary:focus-visible { outline: 3px solid #f26d21; outline-offset: 3px; }

/* 2026 homepage: one clear practice journey, with distinct support sections. */
html { scroll-snap-type: none; }
.page { height: auto; min-height: 100%; overflow: clip; scroll-snap-type: none; }
.section { height: auto; min-height: 0; overflow: visible; scroll-snap-align: none; scroll-snap-stop: normal; }
.velorah-hero { min-height: 100svh; overflow: hidden; }
.velorah-hero__h1 { max-width: 990px; font-size: clamp(3.2rem, 7vw, 6.1rem); line-height: 1.01; }
.velorah-hero__h1 em { color: #f6d2b9; }
.velorah-hero__h1 .hero-title__desktop { display: block; }
.velorah-hero__h1 .hero-title__mobile { display: none; }
.velorah-hero__subtext { max-width: 650px; margin-top: 25px; }
.velorah-hero__actions { margin-top: 27px; }
.velorah-hero__secondary { white-space: normal; }
.chapter-loop { padding: clamp(72px, 8vw, 110px) 24px; }
.chapter-tree__set { min-width: 0; }
.chapter-tree__set small { overflow-wrap: anywhere; }
.question-mix { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 45px; align-items: start; margin-top: 34px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: #f0e9df; }
.question-mix h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.15; letter-spacing: -.03em; }
.question-mix p:not(.section-eyebrow) { max-width: 450px; margin: 0; color: #4e4943; line-height: 1.6; }
.question-mix ul { margin: 0; padding: 0; list-style: none; }
.question-mix li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #d8cbbd; line-height: 1.4; }
.question-mix li:first-child { padding-top: 0; }
.question-mix li:last-child { border-bottom: 0; padding-bottom: 0; }
.question-mix li strong { font-size: .98rem; }
.question-mix li span { color: #6c6258; font-size: .84rem; }
.journey-section { padding: clamp(74px, 8vw, 118px) 24px; background: #fffdf9; }
.journey-section:nth-of-type(even) { background: #f7f5f1; }
.journey-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(38px, 6vw, 95px); width: min(1130px, 100%); margin-inline: auto; }
.journey-grid--phone-left { grid-template-areas: 'media copy'; }
.journey-grid--phone-left .journey-copy { grid-area: copy; }
.journey-grid--phone-left .product__stage { grid-area: media; }
.demo-section .journey-grid { grid-template-areas: 'demo copy'; }
.demo-section .journey-copy { grid-area: copy; }
.demo-section .sample-phone { grid-area: demo; }
.journey-copy h2 { max-width: 610px; margin: 0 0 20px; font-size: clamp(2.3rem, 4.5vw, 4.15rem); line-height: 1.09; letter-spacing: -.045em; }
.journey-copy > p:not(.section-eyebrow), .support-heading > p:last-child, .extras-shell p:not(.section-eyebrow) { color: #55514d; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.65; }
.journey-note { max-width: 490px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #ddd6ce; font-size: .87rem !important; }
.problem-solution { max-width: 530px; margin-top: 20px; }
.problem-solution span { display: inline-block; margin-bottom: 8px; color: #975126; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.problem-solution p { margin: 0; color: #2e3336; font-size: 1.02rem; line-height: 1.65; }
.problem-solution--answer { padding: 20px 23px; border: 1px solid #b9d8dc; border-radius: 18px; background: #eef8f8; }
.problem-solution--answer span { color: #1d6670; }
.single-stage { display: block; width: 100%; min-height: 0; }
.single-stage::before { display: none; }
.single-stage .phones-row { display: block; }
.single-stage .flow-container { width: 100%; }
.single-stage .flow { width: 100%; padding: 6px 0 22px; }
.single-stage .phone { width: 300px; max-width: min(100%, 310px); height: 608px; aspect-ratio: auto; }
.single-stage .guide-comment { max-width: min(100%, 380px); margin-bottom: 15px; }
.single-stage .flow-caption { font-size: .86rem; }
.sample-phone { width: min(390px, 100%); min-height: 560px; margin-inline: auto; padding: 25px 23px; border: 7px solid #16252c; border-radius: 42px; background: #f7faff; box-shadow: 0 28px 80px #18384224; }
.sample-phone__top { display: grid; gap: 3px; margin-bottom: 30px; }
.sample-phone__top span { color: #597383; font-size: .8rem; }
.sample-phone__top strong { color: #112c40; font-size: 1.25rem; }
.sample-phone__progress { display: flex; justify-content: space-between; gap: 12px; color: #596e79; font-size: .72rem; font-weight: 700; }
.sample-phone__meter { height: 7px; margin: 10px 0 25px; overflow: hidden; border-radius: 10px; background: #dbe7ef; }
.sample-phone__meter span { display: block; width: 33.3%; height: 100%; border-radius: inherit; background: #3476e8; transition: width .3s ease; }
.sample-phone h3 { min-height: 80px; margin: 0 0 22px; color: #112c40; font-size: 1.25rem; line-height: 1.35; }
.sample-options { display: grid; gap: 10px; min-height: 220px; }
.sample-option { width: 100%; padding: 13px 15px; border: 1px solid #cbd9e5; border-radius: 13px; background: #fff; color: #183849; font: inherit; font-size: .9rem; line-height: 1.35; text-align: left; cursor: pointer; }
.sample-option:hover:not(:disabled) { border-color: #3476e8; background: #edf4ff; }
.sample-option.is-correct { border-color: #42aa6a; background: #e4f8eb; }
.sample-option.is-incorrect { border-color: #d66767; background: #fff0ef; }
.sample-feedback { min-height: 49px; margin: 16px 0 12px; color: #52646f; font-size: .78rem; line-height: 1.45; }
.sample-next { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #3376eb; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sample-next:disabled { background: #b5c4d5; cursor: not-allowed; }
.sample-palette { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -5px 0 17px; padding: 9px 10px; border: 1px solid #dae4ed; border-radius: 12px; background: #fff; }
.sample-palette__label { color: #516a7a; font-size: .7rem; font-weight: 750; }
.sample-palette__items { display: flex; gap: 6px; }
.sample-palette__items span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: #e6ecf6; color: #577084; font-size: .72rem; font-weight: 800; }
.sample-palette__items .is-current { background: #3376eb; color: #fff; }
.sample-palette__items .is-answered { background: #35b678; color: #fff; }
.journey-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }
.journey-action .button { text-decoration: none; }
.journey-action span { color: #607079; font-size: .79rem; }
.support-section { padding: clamp(75px, 8vw, 118px) 24px; background: #eff5f7; }
.wellness-section { background: #f4f0f5; }
.support-shell { width: min(1180px, 100%); margin-inline: auto; }
.support-heading { max-width: 790px; margin-bottom: 45px; }
.support-heading h2 { margin: 0 0 16px; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.08; }
.support-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 50px; align-items: center; }
.support-list { display: flex; flex-wrap: wrap; gap: 10px; max-width: 450px; padding: 0; margin: 22px 0 0; list-style: none; }
.support-list li { padding: 9px 12px; border: 1px solid #bcd2dc; border-radius: 999px; background: #fff; color: #17394a; font-size: .78rem; font-weight: 700; }
.screenshot-label { margin-top: 30px; color: #65747c; font-size: .74rem; }
.screen-pair, .wellness-screens { display: flex; align-items: end; justify-content: center; gap: 16px; min-width: 0; }
.screen-pair figure, .wellness-screens figure { width: 48%; min-width: 0; margin: 0; }
.screen-pair img, .wellness-screens img { display: block; width: 100%; max-height: 470px; object-fit: contain; object-position: bottom; border-radius: 21px; box-shadow: 0 16px 43px #233d4d19; }
.screen-pair figcaption, .wellness-screens figcaption { margin-top: 10px; color: #52616a; font-size: .75rem; text-align: center; }
.wellness-screens figure { width: 31%; }
.wellness-screens img { max-height: 400px; }
.extras-section { padding: 78px 24px; background: #fffdf9; }
.extras-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; width: min(1100px, 100%); margin: auto; }
.extras-shell > div { padding: 28px; border: 1px solid #e1dbd5; border-radius: 22px; }
.extras-shell h2, .extras-shell h3 { margin: 0 0 14px; font-size: clamp(1.55rem, 2.4vw, 2.4rem); line-height: 1.2; }
.video-launch { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 124px; padding: 25px; border: 1px solid #d0dfeb; border-radius: 16px; background: linear-gradient(130deg, #dcecff, #f5faff); color: #193c5c; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.video-launch span { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 50%; background: #3476e8; color: #fff; }
.video-embed { aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; }
.offer-section { padding: 24px 24px 88px; background: #fff8ec; }
.offer-shell { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); align-items: center; gap: clamp(24px, 5vw, 60px); width: min(1100px, 100%); margin-inline: auto; padding: clamp(28px, 5vw, 54px); overflow: hidden; border: 1px solid #dca960; border-radius: 30px; background: radial-gradient(circle at 12% 90%, #d0664f75, transparent 38%), radial-gradient(circle at 89% 8%, #e7a65759, transparent 37%), linear-gradient(125deg, #30182f, #52223c 65%, #622a35); color: #fffaf0; box-shadow: 0 24px 65px #67322d27; }
.offer-shell::before { position: absolute; z-index: -1; inset: 12px; border: 1px solid #ffce8038; border-radius: 22px; content: ''; pointer-events: none; }
.offer-shell::after { position: absolute; top: 22px; right: 43%; color: #ffd78e; content: '✦'; font-size: 22px; opacity: .8; pointer-events: none; }
.offer-shell__topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 520px; margin-bottom: 15px; }
.offer-shell__diya { width: 91px; height: 91px; flex: none; filter: drop-shadow(0 0 18px #ffc06966); }
.offer-shell .section-eyebrow { display: inline-flex; margin: 0; padding: 8px 12px; border: 1px solid #f1b96b77; border-radius: 999px; background: #f5ad6224; color: #ffdda4; }
.offer-shell h2 { max-width: 610px; margin: 0 0 14px; font-size: clamp(2rem, 3.8vw, 3.5rem); }
.offer-shell__copy > p:last-child { max-width: 530px; margin: 0; color: #f8e3d4; line-height: 1.55; }
.offer-shell__purchase { position: relative; padding: 30px 25px 25px; overflow: hidden; border: 1px solid #f2c988; border-radius: 21px; background: radial-gradient(circle at 95% 0, #ffdc9e, transparent 44%), #fff7e8; color: #3d2431; box-shadow: 0 16px 38px #220a262e; }
.offer-shell__purchase::before { position: absolute; top: 0; right: 0; left: 0; height: 6px; background: linear-gradient(90deg, #d86646, #f5be65, #d86646); content: ''; }
.offer-shell__price-label { margin: 0 0 5px; color: #974c31; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.offer-shell__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; margin-bottom: 12px; }
.offer-shell__prices del { color: #90767b; font-size: 1.25rem; text-decoration-thickness: 2px; }
.offer-shell__prices strong { color: #752747; font-size: clamp(2.6rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.offer-shell__details { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.offer-shell__details span { padding: 6px 9px; border-radius: 999px; background: #f8e2c1; color: #74462d; font-size: .73rem; font-weight: 750; }
.offer-shell .button { width: 100%; background: #9c3151; border-color: #9c3151; color: #fff; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 10px 23px #813a5133; }
.offer-shell .button:hover { background: #832844; }
.whatsapp-float { position: fixed; z-index: 100; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 11px; min-height: 57px; padding: 9px 17px 9px 12px; border: 1px solid #98e5b2; border-radius: 999px; background: #1caa61; color: #fff; text-decoration: none; box-shadow: 0 14px 36px #13352d4d; transition: transform .18s ease, background .18s ease; }
.whatsapp-float:hover { transform: translateY(-3px); background: #168e51; }
.whatsapp-float svg { width: 32px; height: 32px; flex: none; }
.whatsapp-float span { display: grid; gap: 1px; line-height: 1.2; }
.whatsapp-float strong { font-size: .85rem; white-space: nowrap; }
.whatsapp-float small { color: #e2ffe9; font-size: .72rem; }
.whatsapp-float:focus-visible, .journey-action a:focus-visible { outline: 3px solid #f26d21; outline-offset: 4px; }
.sample-option:focus-visible, .sample-next:focus-visible, .video-launch:focus-visible, .offer-shell a:focus-visible { outline: 3px solid #f26d21; outline-offset: 4px; }
@media (max-width: 900px) {
  .journey-grid, .support-grid { gap: 34px; }
  .single-stage .phone { width: 280px; height: 572px; }
  .screen-pair img { max-height: 370px; }
  .wellness-screens img { max-height: 310px; }
}
@media (max-width: 760px) {
  .velorah-hero__video { display: none; }
  .velorah-hero { background: linear-gradient(145deg, #102d3a, #173f4e 52%, #354642); }
  .velorah-hero__overlay { background: radial-gradient(circle at 20% 10%, #eea77421, transparent 42%); }
  .velorah-hero__h1 { font-size: clamp(2.75rem, 10.5vw, 4.2rem); }
  .velorah-hero__h1 .hero-title__desktop { display: none; }
  .velorah-hero__h1 .hero-title__mobile { display: block; }
  .chapter-loop { padding: 70px 18px; }
  .question-mix, .journey-grid, .support-grid, .extras-shell { grid-template-columns: 1fr; }
  .question-mix { gap: 25px; margin-top: 25px; padding: 25px; }
  .journey-section, .support-section { padding: 72px 20px; }
  .journey-grid, .journey-grid--phone-left, .demo-section .journey-grid { display: flex; flex-direction: column; gap: 24px; }
  .journey-copy { order: 1; width: 100%; }
  .sample-phone, .product__stage { order: 2; }
  .journey-copy h2 { font-size: clamp(2.15rem, 8vw, 3.25rem); }
  .sample-phone { min-height: 0; max-width: 390px; }
  .single-stage { width: 100%; }
  .single-stage .flow-container { padding-top: 4px; }
  .single-stage .phone { width: min(300px, 80vw); max-width: 80vw; height: min(610px, 78svh); }
  .single-stage .guide-comment { font-size: .8rem; }
  .support-heading { margin-bottom: 26px; }
  .support-grid { gap: 25px; }
  .screen-pair img { max-height: 420px; }
  .wellness-screens { align-items: start; gap: 8px; }
  .wellness-screens img { max-height: 320px; }
  .wellness-screens figcaption { font-size: .68rem; }
  .offer-shell { grid-template-columns: 1fr; align-items: stretch; }
  .offer-shell .button { width: 100%; }
  .whatsapp-float { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 56px; height: 56px; min-height: 0; justify-content: center; padding: 10px; }
  .whatsapp-float span { display: none; }
}
@media (max-width: 390px) {
  .sample-phone { padding: 20px 16px; }
  .chapter-tree__set { padding: 9px; }
  .screen-pair { gap: 8px; }
  .support-list li { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .velorah-hero__video { display: none; } }
.phone [role="button"]:focus-visible { outline: 2px solid #f26d21; outline-offset: 2px; }
@media (max-width: 760px) {
  .velorah-hero__logo img { height: 76px !important; }
  .screen-pair, .wellness-screens {
    width: 100%;
    max-width: calc(100vw - 40px);
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 14px 15px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .screen-pair figure, .wellness-screens figure { flex: 0 0 min(72vw, 300px); width: min(72vw, 300px); scroll-snap-align: start; }
  .screen-pair img, .wellness-screens img { max-height: min(66svh, 570px); }
}

/* Clear emotional progression: the student's friction is warm; the next step is calm. */
.problem-solution:not(.problem-solution--answer) {
  padding: 20px 22px;
  border: 1px solid #efbba9;
  border-left: 5px solid #db684c;
  border-radius: 18px;
  background: #fff0e9;
  box-shadow: 0 8px 24px #a9593010;
}
.problem-solution:not(.problem-solution--answer) span { color: #ad4328; }
.problem-solution:not(.problem-solution--answer) p { color: #3e2620; font-size: 1.08rem; font-weight: 630; line-height: 1.55; }
.problem-solution--answer {
  position: relative;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid #a6d6d1;
  border-left: 5px solid #228d89;
  background: #eaf8f5;
  box-shadow: 0 8px 24px #1b777a0d;
}
.problem-solution--answer span { color: #166a69; }
.problem-solution--answer p { color: #1f3839; }

/* All three interactive practice phones share the same outer frame. */
.sample-phone, .single-stage .phone {
  width: 300px;
  max-width: min(300px, 80vw);
  height: 610px;
  min-height: 0;
  flex: none;
  border-radius: 44px;
  overflow: hidden;
}
.sample-phone {
  overflow-y: auto;
  padding: 18px 17px;
  scrollbar-width: thin;
}
.sample-phone__top { margin-bottom: 20px; }
.sample-phone__meter { margin: 8px 0 18px; }
.sample-phone h3 { min-height: 74px; margin-bottom: 15px; font-size: 1.08rem; }
.sample-options { min-height: 193px; gap: 8px; }
.sample-option { padding: 10px 12px; font-size: .82rem; }
.sample-feedback { min-height: 53px; margin: 9px 0; }
.sample-next { padding: 12px; }

/* Actual screenshots sit in consistent cards, regardless of source crop ratio. */
.screen-pair figure, .wellness-screens figure {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(48%, 235px);
  min-width: 0;
  padding: 9px 9px 12px;
  border: 1px solid #d5e0e5;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 15px 40px #243b5015;
}
.wellness-screens figure { width: min(31%, 185px); border-color: #ded6e2; }
.screen-pair img, .wellness-screens img {
  width: 100%;
  height: 430px;
  max-height: none;
  border-radius: 15px;
  background: #f7f9fa;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}
.wellness-screens img { height: 390px; }
.screen-pair figcaption, .wellness-screens figcaption { padding-top: 3px; font-weight: 700; }

.extras-community { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 20px; background: #f0f8f8; }
.extras-community img { display: block; width: 180px; height: 290px; border: 5px solid #16303d; border-radius: 24px; background: #fff; object-fit: cover; object-position: top; box-shadow: 0 15px 35px #183e4526; }
.extras-video { background: #fffdf9; }
.video-poster { position: relative; display: block; height: 230px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #15394e, #315b83); color: #fff; text-decoration: none; }
.video-poster[hidden], .video-launch[hidden] { display: none; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-poster::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, #112833c9, #11283310 72%); pointer-events: none; }
.video-poster__play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #ee394f; box-shadow: 0 8px 25px #162a3955; transform: translate(-50%, -50%); }
.video-poster__title { position: absolute; z-index: 1; bottom: 18px; left: 20px; right: 20px; font-size: 1rem; font-weight: 800; }
.video-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 14px; }
.video-launch { display: inline-flex; width: auto; min-height: 0; padding: 11px 18px; border: 0; border-radius: 999px; background: #173d51; color: #fff; font-size: .9rem; }
.video-actions a { color: #1b5c79; font-size: .9rem; font-weight: 750; text-underline-offset: 3px; }
.video-poster:focus-visible, .video-actions a:focus-visible { outline: 3px solid #f26d21; outline-offset: 4px; }
.video-embed { margin-top: 15px; }
.video-embed[hidden] { display: none; }

@media (max-width: 900px) {
  .screen-pair img { height: 350px; }
  .wellness-screens img { height: 310px; }
  .extras-community { grid-template-columns: 1fr 130px; }
  .extras-community img { width: 130px; height: 250px; }
}
@media (max-width: 760px) {
  .sample-phone, .single-stage .phone { width: min(300px, 80vw); max-width: 80vw; height: min(610px, 78svh); }
  .screen-pair figure, .wellness-screens figure { flex: 0 0 min(72vw, 300px); width: min(72vw, 300px); }
  .screen-pair img, .wellness-screens img { height: min(65svh, 520px); max-height: none; }
  .extras-community { grid-template-columns: minmax(0, 1fr) 115px; }
  .extras-community img { width: 115px; height: 230px; }
  .video-poster { height: 210px; }
}
@media (max-width: 420px) {
  .extras-community { grid-template-columns: 1fr; }
  .extras-community img { justify-self: center; width: min(220px, 70vw); height: 260px; }
}
/* The app screenshot frames use one shared size across Shiv and Wellness. */
.screen-pair figure, .wellness-screens figure { flex: 0 0 200px; width: 200px; }
.screen-pair img, .wellness-screens img { height: 430px; }
.wellness-screens { justify-content: flex-start; overflow-x: auto; padding-bottom: 12px; }
@media (max-width: 760px) {
  .screen-pair figure, .wellness-screens figure { flex: 0 0 min(72vw, 300px); width: min(72vw, 300px); }
  .screen-pair img, .wellness-screens img { height: min(65svh, 520px); }
}
