: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 mandatory;
}

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 mandatory;
  -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-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; }
}

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

  .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 */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

.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;
  min-height: 100vh;
  overflow: hidden;
  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: 60px 24px 160px; /* Shifted up */
  min-height: calc(100vh - 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__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 {
  margin-top: 2.5rem;
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@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: 0 20px 40px;
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 8svh; /* Tight under the nav — copy sits high on screen */
  }

  .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 40px;
    font-size: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 320px;
  }
}
