:root {
  --green: #16a36a;
  --green-strong: #087449;
  --green-soft: #eaf8f1;
  --navy: #0c1b33;
  --navy-soft: #1d3354;
  --blue: #276ef1;
  --blue-soft: #eaf1ff;
  --yellow: #f6c85f;
  --orange: #ff8a3d;
  --red: #e25a5a;
  --white: #ffffff;
  --paper: #f7fafc;
  --ink: #101828;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: rgba(16, 24, 40, 0.10);
  --line-strong: rgba(22, 163, 106, 0.22);
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 20px 60px rgba(16, 24, 40, 0.12);
  --shadow-glow: 0 24px 70px rgba(22, 163, 106, 0.18);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: 1120px;
  --transition: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@property --progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 163, 106, 0.13), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(39, 110, 241, 0.12), transparent 32%),
    linear-gradient(135deg, #fbfffd 0%, #f5f8ff 46%, #ffffff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.42;
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

body::before {
  top: 92px;
  left: -130px;
  background: rgba(22, 163, 106, 0.34);
}

body::after {
  right: -120px;
  bottom: 70px;
  background: rgba(246, 200, 95, 0.36);
  animation-delay: -8s;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(72px, 9vw, 120px) 0;
  scroll-margin-top: 92px;
}

.soft-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.76));
  border-block: 1px solid rgba(16, 24, 40, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 10px 28px rgba(16, 24, 40, 0.045);
  backdrop-filter: blur(22px) saturate(160%);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(22, 163, 106, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #344054;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.10);
}

.nav-menu a::after {
  display: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--green-strong);
  background: rgba(22, 163, 106, 0.10);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.home-main {
  min-height: calc(100vh - 124px);
}

.home-page .hero {
  min-height: calc(100vh - 124px);
  padding: clamp(28px, 5vw, 52px) 0;
}

.hero,
.page-section {
  position: relative;
  display: flex;
  align-items: center;
}

.page-main {
  min-height: calc(100vh - 76px);
}

.page-section {
  min-height: calc(100vh - 76px - 156px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: var(--green-strong);
  background: rgba(22, 163, 106, 0.09);
  border: 1px solid rgba(22, 163, 106, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero h1::first-letter {
  color: var(--green);
}

.hero-subtitle {
  max-width: 650px;
  margin: 0;
  color: #475467;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.tagline {
  max-width: 640px;
  margin: 18px 0 0;
  color: transparent;
  background: linear-gradient(100deg, var(--green-strong), var(--blue) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 850;
  line-height: 1.35;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--navy);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition), background-position var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.97);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--green), var(--blue), var(--green));
  background-size: 220% 100%;
  box-shadow: 0 16px 34px rgba(22, 163, 106, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 0;
  box-shadow: 0 22px 46px rgba(22, 163, 106, 0.30);
}

.btn-ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 24, 40, 0.10);
  box-shadow: var(--shadow-xs);
}

.hero-card,
.panel,
.splitter-card,
.target-card,
.quiz,
.timeline-item,
.stat-card,
.sdg-card,
.about-points article,
.creator-card {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.hero-card:hover,
.panel:hover,
.splitter-card:hover,
.timeline-item:hover,
.stat-card:hover,
.sdg-card:hover,
.about-points article:hover,
.creator-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 106, 0.22);
  box-shadow: var(--shadow-md);
}

.hero-card:hover {
  animation: none;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 88% 12%, rgba(246, 200, 95, 0.30), transparent 32%);
  box-shadow: var(--shadow-md);
  animation: dashboardFloat 6.5s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 163, 106, 0.16), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(39, 110, 241, 0.12), transparent 30%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.hero-card-top,
.summary-list,
.target-details,
.split-results {
  display: grid;
  gap: 14px;
}

.hero-card-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.mini-label,
.summary-list span,
.target-details span,
.split-results span,
.stat-card span,
.balance-block span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-card h2,
.panel h1,
.panel h2,
.target-card h2,
.section-heading h1,
.section-heading h2 {
  margin: 8px 0 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.status-pill {
  padding: 7px 12px;
  color: #7a4f00;
  background: rgba(246, 200, 95, 0.26);
  border: 1px solid rgba(246, 200, 95, 0.34);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.balance-block {
  margin: 32px 0 20px;
  padding: 22px;
  color: var(--white);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(246, 200, 95, 0.28), transparent 38%),
    linear-gradient(135deg, var(--navy), #153f53 58%, var(--green-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.balance-block span {
  color: rgba(255, 255, 255, 0.72);
}

.balance-block strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.summary-list div,
.split-results div,
.target-details div {
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.summary-list strong,
.target-details strong,
.split-results strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mini-chart {
  position: relative;
  height: 112px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
}

.mini-chart::before {
  content: "Progress target";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-chart::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 42%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green), var(--yellow)) left/var(--hero-progress, 0%) 100% no-repeat,
    rgba(16, 24, 40, 0.08);
  transition: background-size 800ms ease;
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(246, 200, 95, 0.98), rgba(22, 163, 106, 0.95));
  box-shadow: 0 10px 22px rgba(22, 163, 106, 0.12);
}

.feature-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.78));
  border-top: 1px solid rgba(16, 24, 40, 0.06);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  min-height: 228px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 106, 0.24);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.feature-card img {
  display: block;
  width: min(100%, 210px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading h1,
.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.section-heading p {
  margin: 16px 0 0;
  color: #475467;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 24px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), rgba(39, 110, 241, 0.62));
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform var(--transition);
}

.timeline-item:hover::after {
  transform: scaleX(1);
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--navy), var(--green));
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.16);
}

.timeline h3,
.sdg-card h3 {
  margin: 20px 0 8px;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.timeline p,
.sdg-card p {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-on-page {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  padding: 22px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(22, 163, 106, 0.12), transparent 32%);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--green-strong);
  border-radius: 18px;
  background: var(--green-soft);
  font-size: 1rem;
  font-weight: 900;
}

.stat-card:nth-child(2) .stat-icon {
  color: #af4c18;
  background: rgba(255, 138, 61, 0.13);
}

.stat-card:nth-child(3) .stat-icon {
  color: #1d55bb;
  background: var(--blue-soft);
}

.stat-card:nth-child(4) .stat-icon {
  color: #8a6200;
  background: rgba(246, 200, 95, 0.20);
}

.dashboard-on-page .stat-card:nth-child(5) .stat-icon {
  color: #8a6200;
  background: rgba(246, 200, 95, 0.20);
}

.stat-card strong {
  position: relative;
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.stat-card small {
  position: relative;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.mood-stat .mood-meter {
  position: relative;
  margin-top: 16px;
}

.mood-stat-icon {
  font-size: 1.35rem;
}

.stat-card:has(#targetProgressText)::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green), var(--yellow)) left/var(--target-progress, 0%) 100% no-repeat,
    rgba(16, 24, 40, 0.08);
  transition: background-size 800ms ease;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 24px;
}

.target-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.panel,
.splitter-card,
.target-card,
.quiz {
  padding: clamp(24px, 3vw, 34px);
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading.compact {
  margin-bottom: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--navy);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 18px;
  outline: 0;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.field input:hover,
.field select:hover {
  border-color: rgba(16, 24, 40, 0.18);
}

.field input:focus,
.field select:focus {
  background: var(--white);
  border-color: rgba(22, 163, 106, 0.56);
  box-shadow: 0 0 0 5px rgba(22, 163, 106, 0.12);
}

.form-button {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: #475467;
  background: rgba(248, 250, 252, 0.86);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #344054;
  font-size: 0.92rem;
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover {
  background: rgba(22, 163, 106, 0.045);
}

tbody tr.is-new {
  animation: transactionPulse 1s ease;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.type-income {
  color: var(--green-strong);
  background: rgba(22, 163, 106, 0.12);
}

.type-expense {
  color: #a94716;
  background: rgba(255, 138, 61, 0.14);
}

.delete-btn {
  min-height: 36px;
  padding: 8px 12px;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 999px;
  background: rgba(180, 35, 24, 0.06);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.delete-btn:hover,
.delete-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(180, 35, 24, 0.11);
  border-color: rgba(180, 35, 24, 0.22);
}

.empty-row td {
  padding: 32px 14px;
  color: var(--muted);
  text-align: center;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  align-items: center;
  gap: 30px;
}

.splitter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
}

.split-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.split-results div {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(14px);
}

.split-results.is-ready div {
  animation: fadeUp 520ms ease forwards;
}

.split-results.is-ready div:nth-child(2) {
  animation-delay: 90ms;
}

.split-results.is-ready div:nth-child(3) {
  animation-delay: 180ms;
}

.split-results div::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green), var(--blue)) left/50% 100% no-repeat,
    rgba(16, 24, 40, 0.08);
}

.split-results div:nth-child(2)::after {
  background:
    linear-gradient(90deg, var(--blue), var(--green)) left/30% 100% no-repeat,
    rgba(16, 24, 40, 0.08);
}

.split-results div:nth-child(3)::after {
  background:
    linear-gradient(90deg, var(--yellow), var(--orange)) left/20% 100% no-repeat,
    rgba(16, 24, 40, 0.08);
}

.split-results strong {
  margin-top: 10px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.04em;
}

.target-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 16%, rgba(246, 200, 95, 0.30), transparent 30%),
    linear-gradient(135deg, var(--navy), #123d51 58%, var(--green-strong));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.target-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.18);
}

.target-card .eyebrow {
  color: #fff4c9;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.progress-ring {
  width: 194px;
  height: 194px;
  display: grid;
  place-items: center;
  margin: 28px auto;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) var(--progress, 0%), rgba(255, 255, 255, 0.17) 0);
  transition: background 800ms ease;
}

.progress-ring div {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: rgba(12, 27, 51, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.progress-ring strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.progress-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 750;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width 800ms ease;
}

.target-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.target-details div {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
}

.target-card::after {
  content: "Sedikit demi sedikit, targetmu semakin dekat.";
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.quiz {
  display: grid;
  gap: 16px;
}

.quiz-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.quiz-card legend {
  padding: 0 4px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.quiz-card label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  color: #344054;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.76);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.quiz-card label:hover,
.quiz-card label:has(input:checked) {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 106, 0.42);
  background: rgba(22, 163, 106, 0.075);
  box-shadow: 0 10px 26px rgba(22, 163, 106, 0.08);
}

.quiz-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.quiz-result {
  display: none;
  margin: 0;
  padding: 14px 16px;
  color: var(--green-strong);
  border: 1px solid rgba(22, 163, 106, 0.18);
  border-radius: 18px;
  background: rgba(22, 163, 106, 0.09);
  font-weight: 850;
}

.quiz-result.show {
  display: block;
  animation: softPop 420ms ease both;
}

.quiz-result.high-score {
  color: #7a4f00;
  border-color: rgba(246, 200, 95, 0.42);
  background: rgba(246, 200, 95, 0.18);
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sdg-card {
  padding: 26px;
}

.sdg-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--green-strong);
  border-radius: 19px;
  background: rgba(22, 163, 106, 0.10);
  font-size: 0.95rem;
  font-weight: 900;
}

.sdg-card:nth-child(2) span {
  color: #1d55bb;
  background: var(--blue-soft);
}

.sdg-card:nth-child(3) span {
  color: #8a6200;
  background: rgba(246, 200, 95, 0.20);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 30px;
}

.about-copy h1,
.about-copy h2 {
  margin: 12px 0 14px;
  color: var(--navy);
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.about-copy p {
  color: #475467;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.about-points article {
  padding: 18px;
}

.about-points span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.about-points h3 {
  margin: 14px 0 8px;
  color: var(--navy);
}

.about-points p,
.creator-card p {
  margin: 0;
  color: var(--muted);
}

.creator-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
}

.creator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(246, 200, 95, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(22, 163, 106, 0.12), transparent 46%);
  pointer-events: none;
}

.creator-card > * {
  position: relative;
}

.creator-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--navy), var(--green));
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.18);
  font-size: 1.35rem;
  font-weight: 900;
}

.creator-card h2,
.creator-card h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ticker-section {
  padding: 0 0 clamp(34px, 5vw, 60px);
}

.motivational-ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 252, 0.82)),
    linear-gradient(135deg, rgba(22, 163, 106, 0.10), rgba(39, 110, 241, 0.08));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.motivational-ticker::before,
.motivational-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 72px;
  height: 100%;
  pointer-events: none;
}

.motivational-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), transparent);
}

.motivational-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.98), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerFlow 32s linear infinite;
}

.ticker-track span {
  flex: 0 0 auto;
  padding-right: 36px;
  color: var(--navy);
  font-size: clamp(0.92rem, 1.7vw, 1.06rem);
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.level-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.54));
}

.level-dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 1.06fr) minmax(260px, 0.72fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 20px;
}

.mission-command {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.mission-side-stack {
  display: grid;
  gap: 20px;
}

.health-card,
.mood-card,
.badge-panel,
.mission-card,
.recommendation-card,
.certificate-card,
.choice-card,
.compare-card,
.pitch-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.health-card:hover,
.mood-card:hover,
.badge-panel:hover,
.mission-card:hover,
.recommendation-card:hover,
.certificate-card:hover,
.choice-card:hover,
.compare-card:hover,
.pitch-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 106, 0.22);
  box-shadow: var(--shadow-md);
}

.health-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 86% 12%, rgba(246, 200, 95, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 251, 0.82));
}

.health-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 163, 106, 0.13), transparent 48%);
  pointer-events: none;
}

.health-card > * {
  position: relative;
}

.health-card-top,
.badge-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.health-card h3,
.mood-card h3,
.badge-panel h3,
.mission-card h3,
.recommendation-card h3,
.certificate-card h3,
.choice-card h3,
.compare-card span,
.pitch-card h3 {
  margin: 8px 0 0;
  color: var(--navy);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--green-strong);
  border: 1px solid rgba(22, 163, 106, 0.18);
  border-radius: 999px;
  background: rgba(22, 163, 106, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.health-ring {
  width: min(100%, 218px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  margin: 30px auto 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 59%, transparent 60%),
    conic-gradient(var(--green) var(--health-progress, 0%), rgba(16, 24, 40, 0.08) 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 24px 54px rgba(22, 163, 106, 0.14);
  transition: background 800ms ease;
}

.health-ring strong {
  color: var(--navy);
  font-size: clamp(3.2rem, 7vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.health-ring span {
  color: var(--muted);
  font-weight: 850;
}

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

.health-checklist div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.health-checklist div span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(16, 24, 40, 0.18);
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.04);
}

.health-checklist div.is-complete {
  color: var(--green-strong);
  border-color: rgba(22, 163, 106, 0.22);
  background: rgba(22, 163, 106, 0.08);
  transform: translateY(-1px);
}

.health-checklist div.is-complete span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.12);
}

.mood-card,
.badge-panel,
.mission-card,
.recommendation-card,
.certificate-card {
  padding: clamp(22px, 2.6vw, 30px);
}

.mood-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 82% 18%, rgba(39, 110, 241, 0.17), transparent 34%);
}

.mood-display {
  display: grid;
  gap: 18px;
}

.mood-display > span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.20)),
    linear-gradient(135deg, rgba(22, 163, 106, 0.14), rgba(246, 200, 95, 0.22));
  box-shadow: var(--shadow-xs);
  font-size: 2.4rem;
}

.mood-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.mood-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
}

.mood-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green));
  transition: width 800ms ease;
}

.badge-panel {
  display: grid;
  gap: 20px;
  background:
    linear-gradient(145deg, rgba(12, 27, 51, 0.96), rgba(18, 61, 81, 0.94) 58%, rgba(8, 116, 73, 0.92));
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.badge-panel .mini-label,
.badge-panel h3,
.badge-panel-top strong {
  color: var(--white);
}

.badge-panel .mini-label {
  color: rgba(255, 255, 255, 0.68);
}

.badge-panel-top strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 12px 10px 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: softPop 420ms ease both;
}

.badge-initial {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #694400;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ffe7a3);
  font-size: 0.72rem;
  font-weight: 950;
}

.achievement-badge strong {
  display: block;
  color: var(--white);
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.15;
}

.achievement-badge span:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 750;
}

.empty-badges {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.mission-card {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 88% 14%, rgba(22, 163, 106, 0.12), transparent 34%);
}

.mission-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mission-card-top strong {
  padding: 8px 12px;
  color: var(--green-strong);
  border: 1px solid rgba(22, 163, 106, 0.18);
  border-radius: 999px;
  background: rgba(22, 163, 106, 0.08);
  font-size: 0.84rem;
}

.mission-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--yellow));
  transition: width 800ms ease;
}

.mission-list {
  display: grid;
  gap: 10px;
}

.mission-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.76);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.mission-item.is-complete {
  border-color: rgba(22, 163, 106, 0.28);
  background: rgba(22, 163, 106, 0.08);
  box-shadow: 0 10px 26px rgba(22, 163, 106, 0.08);
}

.mission-check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 14px;
  background: rgba(16, 24, 40, 0.06);
  font-size: 0.88rem;
  font-weight: 950;
}

.mission-item.is-complete .mission-check {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.mission-item strong {
  display: block;
  color: var(--navy);
  line-height: 1.2;
}

.mission-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.recommendation-card {
  min-height: 194px;
  background:
    linear-gradient(145deg, rgba(12, 27, 51, 0.96), rgba(18, 61, 81, 0.94)),
    radial-gradient(circle at 82% 16%, rgba(246, 200, 95, 0.22), transparent 34%);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.recommendation-card .mini-label,
.recommendation-card h3 {
  color: var(--white);
}

.recommendation-card .mini-label {
  color: rgba(255, 255, 255, 0.68);
}

.recommendation-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 760;
}

.certificate-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(246, 200, 95, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.certificate-card.is-hidden {
  display: none;
}

.certificate-card p {
  margin: 14px 0 18px;
  color: var(--muted);
}

.certificate-card p strong {
  color: var(--green-strong);
}

.certificate-preview {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(22, 163, 106, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(22, 163, 106, 0.10), transparent 48%),
    rgba(248, 250, 252, 0.90);
}

.certificate-card.show-preview .certificate-preview {
  display: block;
  animation: softPop 420ms ease both;
}

.certificate-preview span {
  color: var(--green-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.certificate-preview strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.certificate-preview p {
  margin: 10px 0 0;
}

.needs-game-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.choice-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 236px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(22, 163, 106, 0.08), rgba(39, 110, 241, 0.06));
}

.choice-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-strong);
  border-radius: 15px;
  background: rgba(22, 163, 106, 0.10);
  font-size: 0.8rem;
  font-weight: 950;
}

.choice-card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.choice-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.choice-actions button {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #344054;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.74);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.choice-actions button:hover,
.choice-actions button:focus-visible,
.choice-actions button.is-selected {
  transform: translateY(-1px);
  color: var(--green-strong);
  border-color: rgba(22, 163, 106, 0.32);
  background: rgba(22, 163, 106, 0.09);
  box-shadow: 0 8px 18px rgba(22, 163, 106, 0.08);
}

.choice-card.is-correct {
  border-color: rgba(22, 163, 106, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 248, 241, 0.84)),
    linear-gradient(135deg, rgba(22, 163, 106, 0.13), transparent);
}

.choice-card.is-wrong {
  border-color: rgba(226, 90, 90, 0.30);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 245, 0.86)),
    linear-gradient(135deg, rgba(226, 90, 90, 0.10), transparent);
}

.game-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.game-result {
  display: none;
  margin: 0;
  padding: 13px 15px;
  color: var(--navy);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.game-result.show {
  display: block;
  animation: softPop 420ms ease both;
}

.compare-grid,
.pitch-grid {
  display: grid;
  gap: 18px;
}

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

.compare-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(16, 24, 40, 0.05), transparent);
}

.compare-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--orange);
}

.after-card::before {
  background: var(--green);
}

.compare-card span,
.pitch-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 950;
}

.compare-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  position: relative;
  padding-left: 22px;
  color: #475467;
  font-weight: 720;
}

.compare-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.after-card li::before {
  background: var(--green);
}

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

.pitch-card {
  min-height: 268px;
  padding: clamp(22px, 2.8vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.80)),
    radial-gradient(circle at 86% 14%, rgba(39, 110, 241, 0.10), transparent 34%);
}

.pitch-card span {
  padding: 7px 11px;
  color: var(--green-strong);
  border: 1px solid rgba(22, 163, 106, 0.16);
  border-radius: 999px;
  background: rgba(22, 163, 106, 0.08);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.pitch-card h3 {
  margin-top: 20px;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
}

.pitch-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 163, 106, 0.22), transparent 32%),
    linear-gradient(135deg, var(--navy), #071225);
}

.home-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy);
  font-size: 0.88rem;
}

.home-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-footer strong,
.footer-credit {
  color: var(--yellow);
  font-weight: 850;
}

.home-footer a,
.footer-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  transition: color var(--transition);
}

.home-footer a:hover,
.footer-link:hover {
  color: var(--yellow);
}

.footer h2 {
  margin: 0 0 8px;
  color: var(--white);
}

.footer p {
  margin: 4px 0;
}

.footer-credit {
  margin-top: 14px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.home-page .hero-copy.visible .eyebrow,
.home-page .hero-copy.visible h1,
.home-page .hero-copy.visible .tagline,
.home-page .hero-copy.visible .hero-badges,
.home-page .hero-copy.visible .hero-subtitle,
.home-page .hero-copy.visible .hero-actions {
  animation: fadeUp 760ms ease both;
}

.home-page .hero-copy.visible h1 {
  animation-delay: 80ms;
}

.home-page .hero-copy.visible .tagline {
  animation-delay: 170ms;
}

.home-page .hero-copy.visible .hero-subtitle {
  animation-delay: 250ms;
}

.home-page .hero-copy.visible .hero-badges {
  animation-delay: 310ms;
}

.home-page .hero-copy.visible .hero-actions {
  animation-delay: 390ms;
}

.home-page .hero-card.visible {
  animation: slideInRight 820ms ease both, dashboardFloat 6.5s ease-in-out 900ms infinite;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(42px, 28px, 0) scale(1.08);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes transactionPulse {
  0% {
    background: rgba(246, 200, 95, 0.32);
    box-shadow: inset 4px 0 0 var(--yellow);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 transparent;
  }
}

@keyframes softPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes tickerFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 2px;
  }

  .nav-menu a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

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

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

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

  .nav-menu {
    position: fixed;
    inset: 86px 20px auto 20px;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    transform: translateY(-14px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .hero-grid,
  .app-grid,
  .split-layout,
  .target-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .home-page .hero,
  .page-section {
    min-height: auto;
  }

  .timeline,
  .stats-grid,
  .feature-grid,
  .sdg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-dashboard,
  .needs-game-board,
  .pitch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-command {
    grid-template-columns: 1fr;
  }

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

  .health-card {
    grid-column: 1 / -1;
  }

  .splitter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .navbar {
    min-height: 72px;
  }

  .section-pad {
    padding: 64px 0;
  }

  .home-main {
    min-height: auto;
  }

  .home-page .hero {
    padding: 46px 0 64px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  .hero-actions,
  .quiz-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .summary-list,
  .form-grid,
  .timeline,
  .stats-grid,
  .split-results,
  .target-details,
  .sdg-grid,
  .about-points,
  .level-dashboard,
  .mission-command,
  .mission-side-stack,
  .needs-game-board,
  .compare-grid,
  .pitch-grid,
  .health-checklist {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .splitter-card,
  .target-card,
  .quiz,
  .creator-card,
  .health-card,
  .mood-card,
  .badge-panel,
  .mission-card,
  .recommendation-card,
  .certificate-card,
  .choice-card,
  .compare-card,
  .pitch-card {
    padding: 22px;
    border-radius: 24px;
  }

  .health-card {
    grid-column: auto;
  }

  .mission-card {
    grid-column: auto;
  }

  .motivational-ticker {
    border-radius: 22px;
  }

  .motivational-ticker::before,
  .motivational-ticker::after {
    width: 34px;
  }

  .choice-card {
    min-height: auto;
  }

  .game-footer {
    align-items: stretch;
  }

  .game-result {
    width: 100%;
  }

  .timeline-item,
  .stat-card {
    min-height: auto;
  }

  .progress-ring {
    width: 164px;
    height: 164px;
  }

  .progress-ring div {
    width: 118px;
    height: 118px;
  }

  .home-footer {
    padding: 12px 0;
  }

  .home-footer .container {
    justify-content: center;
    text-align: center;
  }

  .feature-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: 178px;
    padding: 12px;
    border-radius: 22px;
  }

  .feature-card h3 {
    font-size: 0.92rem;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-wrap tbody {
    display: grid;
    gap: 12px;
  }

  .table-wrap tr {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-xs);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .table-wrap .empty-row {
    display: block;
    padding: 0;
  }

  .table-wrap .empty-row td {
    display: block;
    padding: 20px 14px;
    text-align: center;
  }

  .table-wrap .empty-row td::before {
    content: none;
  }

  .table-wrap td[data-label="Aksi"] .delete-btn {
    width: 100%;
  }
}

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

  body::before,
  body::after,
  .hero-card,
  .ticker-track {
    animation: none !important;
  }
}
