:root {
  --background: #f7f9ff;
  --surface: #f7f9ff;
  --surface-lowest: #ffffff;
  --surface-low: #edf4ff;
  --surface-container: #e3efff;
  --surface-high: #d9eaff;
  --surface-highest: #d1e4fb;
  --surface-variant: #d1e4fb;
  --primary: #005da7;
  --primary-container: #2976c7;
  --primary-fixed: #d4e3ff;
  --primary-fixed-dim: #a4c9ff;
  --secondary: #873da6;
  --secondary-container: #de8ffd;
  --secondary-fixed: #f8d8ff;
  --tertiary: #a13a0f;
  --tertiary-container: #c25227;
  --tertiary-fixed: #ffdbcf;
  --tertiary-dim: #ffb59c;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-surface: #091d2e;
  --on-surface-variant: #414751;
  --outline: #717783;
  --outline-variant: #c1c7d3;
  --on-primary: #ffffff;
  --on-primary-container: #fdfcff;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 18px 44px rgba(9, 29, 46, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: max(884px, 100dvh);
  margin: 0;
  color: var(--on-surface);
  background: var(--background);
  font-family: Outfit, sans-serif;
  overflow-x: hidden;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.material-symbols-outlined.filled,
.filled {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(247, 249, 255, 0.82);
  border-bottom: 1px solid rgba(193, 199, 211, 0.35);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--primary);
  background: transparent;
  font-size: 24px;
  font-weight: 650;
}

.brand .material-symbols-outlined {
  font-size: 25px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.desktop-nav button {
  color: var(--on-surface-variant);
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.desktop-nav button:hover,
.desktop-nav button.active {
  color: var(--primary);
  background: rgba(41, 118, 199, 0.1);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-highest);
  border: 1px solid rgba(193, 199, 211, 0.5);
  transition: transform 180ms ease;
}

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

#view {
  min-height: 100dvh;
  outline: none;
}

.screen {
  width: min(100%, 880px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 88px 20px 112px;
  animation: pageIn 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wide-screen {
  width: min(100%, 1024px);
}

.onboarding {
  width: 100%;
  min-height: 100dvh;
  padding: 48px 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(248, 216, 255, 0.65), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(164, 201, 255, 0.55), transparent 30%),
    linear-gradient(135deg, #fff9f0 0%, #ffe4d6 48%, #e8f2ff 100%);
  background-size: 140% 140%;
  animation: pulseBg 16s ease-in-out infinite;
}

.onboarding-grid {
  width: min(100%, 960px);
  display: grid;
  gap: 48px;
  align-items: center;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 22px;
  color: var(--outline);
  font-size: 14px;
  font-weight: 650;
}

.dot {
  color: var(--primary);
  opacity: 0.5;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1,
.page-title {
  margin: 0;
  color: var(--on-surface);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy p,
.lead {
  margin: 14px auto 0;
  max-width: 610px;
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.visual-block {
  position: absolute;
  border-radius: 32px;
  box-shadow: var(--shadow-lift);
}

.visual-block.one {
  width: 54%;
  height: 54%;
  right: 7%;
  bottom: 8%;
  background: linear-gradient(135deg, var(--surface-high), var(--surface-container));
  transform: rotate(12deg);
}

.visual-block.two {
  width: 62%;
  height: 62%;
  left: 4%;
  top: 8%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tertiary-fixed), var(--secondary-fixed));
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.hero-medallion {
  position: absolute;
  inset: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(15px);
}

.hero-medallion::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 4px solid rgba(0, 93, 167, 0.16);
  border-left-color: var(--primary);
  border-bottom-color: var(--tertiary-container);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.medallion-icon {
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.medallion-icon .material-symbols-outlined {
  font-size: 38px;
}

.hero-medallion strong,
.hero-medallion span {
  z-index: 1;
}

.hero-medallion strong {
  font-size: 20px;
}

.hero-medallion span {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 650;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.icon-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-btn {
  padding: 14px 24px;
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(0, 93, 167, 0.2);
}

.secondary-btn {
  padding: 14px 24px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 93, 167, 0.22);
}

.ghost-btn {
  padding: 12px 18px;
  color: var(--on-surface);
  background: var(--surface-high);
}

.text-btn {
  padding: 6px 0;
  min-height: 0;
  color: var(--primary);
  background: transparent;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  box-shadow: 0 18px 34px rgba(0, 93, 167, 0.25);
}

.page-header {
  margin: 8px 0 28px;
}

.page-header.centered {
  text-align: center;
}

.metric-hero {
  display: grid;
  place-items: center;
  margin: 24px auto 4px;
}

.ring {
  --progress: 0deg;
  position: relative;
  width: 192px;
  height: 192px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--progress), var(--surface-variant) 0deg);
  transition: background 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: var(--background);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.ring-content {
  position: relative;
  display: grid;
  gap: 4px;
  text-align: center;
}

.ring-content strong {
  font-size: 38px;
  line-height: 1.1;
}

.ring-content span {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.focus-callout,
.card,
.glass-card,
.scenario-card,
.timeline-card,
.check-item,
.quote-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.focus-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 16px;
  color: var(--on-surface);
  background: rgba(41, 118, 199, 0.1);
  border: 1px solid rgba(0, 93, 167, 0.18);
  text-align: left;
  width: 100%;
}

.focus-callout .play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 93, 167, 0.2);
}

.focus-callout small {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.focus-callout strong {
  display: block;
  font-size: 19px;
  font-weight: 650;
}

.focus-callout > .material-symbols-outlined:last-child {
  margin-left: auto;
  color: var(--on-surface-variant);
}

.dashboard-list,
.card-grid,
.check-stack,
.mission-grid {
  display: grid;
  gap: 14px;
}

.readiness-card,
.card {
  padding: 16px;
  background: var(--surface-lowest);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.readiness-card:hover,
.card:hover,
.timeline-card:hover,
.check-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.readiness-top,
.card-title-row,
.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-name,
.icon-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.icon-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--primary);
  background: var(--surface-container);
  border-radius: 50%;
}

.readiness-name h3,
.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.score {
  font-size: 20px;
  font-weight: 700;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.bar {
  height: 8px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-variant);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 1100ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.tertiary {
  background: var(--tertiary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--on-surface-variant);
  background: var(--surface-highest);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.primary {
  color: var(--on-primary-container);
  background: var(--primary-container);
}

.pill.tertiary {
  color: #380c00;
  background: var(--tertiary-fixed);
}

.pill.error {
  color: #93000a;
  background: var(--error-container);
}

.pulse {
  animation: softPulse 2.5s ease-in-out infinite;
}

.ambient-screen {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 227, 255, 0.9), transparent 44%),
    radial-gradient(circle at 100% 80%, rgba(255, 219, 207, 0.76), transparent 46%),
    var(--background);
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-bottom: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 24px;
  width: 4px;
  border-radius: 999px;
  background: var(--surface-high);
}

.timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 24px;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--tertiary-container));
  animation: drawTimeline 1400ms ease-out forwards;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.node {
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--surface-container);
  border: 2px solid var(--outline-variant);
}

.node.done {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 93, 167, 0.18);
}

.node.active {
  position: relative;
  color: var(--tertiary-container);
  background: var(--surface-lowest);
  border: 4px solid var(--tertiary-container);
  box-shadow: 0 0 22px rgba(194, 82, 39, 0.3);
}

.node.active::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: rgba(194, 82, 39, 0.16);
  animation: ping 1.8s ease-out infinite;
}

.timeline-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(193, 199, 211, 0.35);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.stage.active .timeline-card {
  overflow: hidden;
  border-left: 4px solid var(--tertiary-container);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lift);
}

.stage.locked {
  opacity: 0.62;
}

.timeline-card h3 {
  margin: 8px 0 6px;
  font-size: 23px;
  line-height: 1.25;
}

.timeline-card p {
  margin: 0 0 16px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.milestone {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-container);
}

.mission-hero {
  display: grid;
  gap: 18px;
}

.scenario-box {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid rgba(193, 199, 211, 0.18);
  box-shadow: var(--shadow-soft);
}

.scenario-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(212, 227, 255, 0.85);
  filter: blur(18px);
}

.scenario-box > * {
  position: relative;
  z-index: 1;
}

.scenario-box p {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

.collapsible {
  overflow: hidden;
}

.collapse-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-surface-variant);
  background: transparent;
  text-align: left;
}

.collapse-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}

.collapse-content.open {
  grid-template-rows: 1fr;
}

.collapse-content > div {
  overflow: hidden;
}

.example-answer {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 2px solid var(--surface-high);
  color: var(--on-surface);
  line-height: 1.6;
}

.practice-zone {
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.mic-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.mic-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary-container);
  opacity: 0.25;
  animation: micAmbient 3s ease-in-out infinite;
}

.mic-ring.recording {
  background: var(--error);
  animation: micPulse 1s ease-in-out infinite;
}

.mic-btn {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 93, 167, 0.3);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mic-btn.recording {
  background: var(--error);
  box-shadow: 0 10px 32px rgba(186, 26, 26, 0.3);
}

.mic-btn .material-symbols-outlined {
  font-size: 40px;
}

.practice-zone small {
  margin-top: 18px;
  color: var(--on-surface-variant);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.complete-btn {
  width: 100%;
  min-height: 58px;
  color: var(--on-surface);
  background: var(--surface-highest);
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 650;
}

.complete-btn.done {
  color: var(--on-primary);
  background: var(--primary);
}

.detail-image {
  height: 210px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 93, 167, 0.1), rgba(194, 82, 39, 0.12)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuCCnE5vL5SjekIz4TmxUU1A14mYfJGZxgH5qVRkyxnoi0k1g2q018Y50L2Wx7Our9tKcXLVk3nkgAa_R307k1SQOGRUGp97x2x3KrCNgRWVeJTXf83kbYrpoK_v9IkzE_lwn2KCEP6ChwLuv3Q6SbH_BfQ15Oge_LW0QA4FKeGDGIcUFCNO5-WLlTTICOlRKSnISHQVV0qq0Z7YSNpemhwSFJY2R1VfNRy6XBDgRsne0BH9OJuNJfJ_G05hcyv_efoBc5oQ4B-b-0b_") center/cover;
}

.floating-cta {
  position: sticky;
  bottom: 94px;
  z-index: 10;
  margin-top: 28px;
}

.scenario-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 22px;
  scrollbar-width: none;
}

.scenario-scroll::-webkit-scrollbar {
  display: none;
}

.flip-card {
  min-width: 84vw;
  height: 330px;
  perspective: 1000px;
  scroll-snap-align: center;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  height: 100%;
  transition: transform 620ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  box-shadow: var(--shadow-soft);
}

.flip-front {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(12px);
}

.flip-back {
  color: var(--on-primary-container);
  background: var(--primary-container);
  transform: rotateY(180deg);
}

.flip-card.tertiary .flip-front {
  border-left-color: var(--tertiary-container);
}

.flip-card.tertiary .flip-back {
  color: #fffbff;
  background: var(--tertiary-container);
}

.flip-face h3 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.flip-face p {
  margin: 0;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.flip-back p,
.flip-back .mini-panel {
  color: inherit;
}

.tap-pill {
  align-self: flex-start;
  color: var(--primary);
  background: rgba(41, 118, 199, 0.1);
}

.flip-card.tertiary .tap-pill {
  color: var(--tertiary-container);
  background: rgba(194, 82, 39, 0.1);
}

.mini-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(9, 29, 46, 0.12);
}

.check-section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 650;
}

.alert-card {
  display: flex;
  gap: 12px;
  margin: 22px 0 34px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-low);
  border: 1px solid var(--primary-fixed);
  box-shadow: var(--shadow-soft);
}

.alert-card h3,
.alert-card p {
  margin: 0;
}

.alert-card p {
  margin-top: 4px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-lowest);
  border-left: 4px solid var(--outline-variant);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 220ms ease;
}

.check-item.required {
  border-left-color: var(--error);
}

.check-item.primary {
  border-left-color: var(--primary);
}

.check-item.completed {
  opacity: 0.62;
  border-left-color: var(--primary);
}

.check-item.completed .check-text {
  color: var(--outline);
  text-decoration: line-through;
}

.round-check {
  position: relative;
  width: 25px;
  height: 25px;
  flex: none;
  appearance: none;
  border-radius: 50%;
  border: 2px solid var(--outline-variant);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.round-check:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.round-check:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-text {
  flex: 1;
  min-width: 0;
}

.check-text strong {
  display: block;
  font-weight: 700;
}

.check-text small {
  display: block;
  margin-top: 3px;
  color: var(--on-surface-variant);
}

.celebration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
}

.celebration-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--on-primary-container);
  background: var(--primary-container);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.45), 0 0 22px rgba(41, 118, 199, 0.22);
  animation: float 6s ease-in-out infinite;
}

.celebration-icon .material-symbols-outlined {
  font-size: 34px;
}

.stat-grid {
  display: grid;
  gap: 14px;
  margin: 34px 0;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.stat-card.hero {
  padding: 28px;
}

.stat-card.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(212, 227, 255, 0.75), rgba(248, 216, 255, 0.55), rgba(212, 227, 255, 0.7));
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite;
}

.stat-label {
  margin: 0 0 8px;
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.big-stat {
  color: var(--primary);
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
}

.small-stat {
  font-size: 28px;
  font-weight: 700;
}

.quote-card {
  padding: 28px;
  margin-bottom: 26px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  background: var(--surface-low);
  border-left: 4px solid var(--primary);
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 12px calc(12px + var(--safe-bottom));
  background: rgba(247, 249, 255, 0.86);
  border-top: 1px solid rgba(193, 199, 211, 0.35);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 4px;
  color: var(--on-surface-variant);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.bottom-nav button.active {
  color: var(--on-primary-container);
  background: var(--primary-container);
}

.bottom-nav button.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

#confettiLayer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0;
  animation: confettiFall var(--duration, 5s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shake-in {
  animation: popIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 560ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal > *:nth-child(2) { animation-delay: 80ms; }
.reveal > *:nth-child(3) { animation-delay: 160ms; }
.reveal > *:nth-child(4) { animation-delay: 240ms; }
.reveal > *:nth-child(5) { animation-delay: 320ms; }
.reveal > *:nth-child(6) { animation-delay: 400ms; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.86; }
}

@keyframes ping {
  from { transform: scale(0.8); opacity: 0.8; }
  to { transform: scale(1.8); opacity: 0; }
}

@keyframes drawTimeline {
  to { height: min(48%, 360px); }
}

@keyframes micAmbient {
  0%, 100% { transform: scale(0.92); opacity: 0.28; }
  50% { transform: scale(1.28); opacity: 0; }
}

@keyframes micPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.75; }
  50% { transform: scale(1.46); opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.95; transform: scale(1.02); }
}

@keyframes confettiFall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10%, 85% { opacity: 0.85; }
  100% { transform: translateY(105vh) translateX(var(--drift, 24px)) rotate(420deg); opacity: 0; }
}

@keyframes popIn {
  from { transform: scale(0.86); }
  to { transform: scale(1); }
}

@media (min-width: 680px) {
  .screen {
    padding-inline: 40px;
  }

  .onboarding-grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-copy,
  .page-header:not(.centered) {
    text-align: left;
  }

  .hero-copy p,
  .lead {
    margin-left: 0;
  }

  .trust-line {
    justify-content: flex-start;
  }

  .hero-actions,
  .action-row,
  .action-panel {
    flex-direction: row;
    align-items: center;
  }

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

  .scenario-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .flip-card {
    min-width: 0;
  }

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

  .stat-card.hero {
    grid-column: 1 / -1;
  }
}

@media (min-width: 820px) {
  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .screen {
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
