/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  font-family:
    "Inter",
    -apple-system,
    system-ui,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

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

button,
a {
  touch-action: manipulation;
}

/* ===== BACKGROUND ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-primary);
  pointer-events: none;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      1200px 700px at 55% 18%,
      rgba(10, 10, 18, 0),
      rgba(10, 10, 18, 0.7)
    ),
    radial-gradient(
      900px 650px at 15% 80%,
      rgba(10, 10, 18, 0),
      rgba(10, 10, 18, 0.55)
    );
  z-index: 1;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  transform: translateZ(0);
  z-index: 0;
}

.bg-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -100px;
  right: -50px;
  animation: orb1 20s ease-in-out infinite;
}

.bg-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-2);
  bottom: 10%;
  left: -80px;
  animation: orb2 25s ease-in-out infinite;
}

.bg-orb-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-3);
  top: 40%;
  right: 10%;
  animation: orb3 18s ease-in-out infinite;
}

@keyframes orb1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 60px) scale(1.1);
  }
  66% {
    transform: translate(30px, -30px) scale(0.95);
  }
}

@keyframes orb2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, -40px) scale(1.15);
  }
}

@keyframes orb3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.2);
  }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== SHARED: Backdrop blur ===== */
.content-badge,
.task-item,
.goal-card,
.idea-card,
.project-card,
.finance-card,
.card {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

/* ===== SHARED: Progress tracks ===== */
.goal-progress,
.project-bar,
.fin-progress {
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* ===== SHARED: Progress fills ===== */
.goal-progress-fill,
.project-bar-fill,
.fin-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 1s var(--ease);
}

/* ===== SHARED: Checkmarks ===== */
.task-check,
.goal-task-check {
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-check.done,
.goal-task-check.done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  font-size: var(--fs-xs);
}

/* ===== SHARED: Mockup containers (vh-adaptive) ===== */
.tasks-mockup,
.goals-mockup,
.organize-mockup,
.finance-bento {
  width: 100%;
  max-width: clamp(210px, 42vh, 280px);
  max-height: 100%;
}

/* ===== SCREENS ===== */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    visibility 0.6s var(--ease);
  transform: scale(0.97);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ===== SPLASH ===== */
#splash {
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.splash-content {
  text-align: center;
  animation: splashIn 1s var(--ease) 0.2s both;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

.logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.logo-glow {
  position: absolute;
  inset: -30px;
  background: var(--gradient-main);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
}

.logo-shape {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  border-radius: 28px;
  transform: rotate(45deg);
}

.logo-inner {
  position: absolute;
  inset: 3px;
  background: var(--bg-primary);
  border-radius: 25px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  font-size: var(--fs-3xl);
  transform: rotate(-45deg);
  line-height: 1;
}

.brand {
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}

.brand span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.splash-loader {
  position: absolute;
  bottom: calc(var(--safe-bottom, 0px) + 60px);
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.splash-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  animation: loadProgress 2s var(--ease) forwards;
  transform-origin: left;
}

@keyframes loadProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ===== ONBOARDING ===== */
#onboarding {
  padding: calc(var(--safe-top, 0px) + 10px) 0
    calc(var(--safe-bottom, 0px) + 10px);
}

.slides {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  min-height: 0;
  overflow: hidden;
  opacity: 0.3;
  transform: scale(0.94);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-visual {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4px, 1.2vh, 16px) 0;
}

.slide-content {
  flex: 0 0 auto;
  text-align: center;
  padding: clamp(8px, 1.5vh, 20px) 0 clamp(2px, 0.5vh, 8px);
}

/* ===== CONTENT BADGE / TITLE / DESC ===== */
.content-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.content-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.content-title {
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.content-title .hl {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-desc {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== TASKS MOCKUP (vh-adaptive) ===== */
.tasks-mockup {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.7vh, 6px);
}

.tasks-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.tasks-day {
  font-size: var(--fs-lg);
  font-weight: 900;
}

.tasks-weekday {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.tasks-badge {
  margin-left: auto;
  padding: clamp(2px, 0.4vh, 4px) clamp(6px, 1vh, 10px);
  background: var(--success-soft);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--success);
}

.task-item {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vh, 12px);
  padding: clamp(6px, 1.2vh, 12px) clamp(8px, 1.4vh, 14px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(8px, 1.4vh, 14px);
  animation: taskIn 0.5s var(--ease) backwards;
}

.task-item:nth-child(2) {
  animation-delay: 0.1s;
}
.task-item:nth-child(3) {
  animation-delay: 0.2s;
}
.task-item:nth-child(4) {
  animation-delay: 0.3s;
}
.task-item:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes taskIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.task-check {
  width: clamp(14px, 2.4vh, 18px);
  height: clamp(14px, 2.4vh, 18px);
  border-radius: 5px;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: var(--fs-xs);
  font-weight: 900;
  margin-bottom: 1px;
}

.task-title.done {
  text-decoration: line-through;
  opacity: 0.5;
}

.task-meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-tag {
  padding: clamp(1px, 0.3vh, 3px) clamp(4px, 0.8vh, 8px);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.task-tag.work {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(6, 182, 212, 0.25);
}

.task-tag.personal {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: rgba(139, 92, 246, 0.25);
}

.task-tag.goal {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.25);
}

.task-tag.finance {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.tasks-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: clamp(6px, 1.2vh, 12px);
  border: 2px dashed var(--border-subtle);
  border-radius: clamp(8px, 1.4vh, 14px);
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--text-tertiary);
  animation: taskIn 0.5s var(--ease) 0.5s backwards;
}

/* ===== GOALS MOCKUP (vh-adaptive) ===== */
.goals-mockup {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vh, 10px);
}

.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(10px, 1.8vh, 14px);
  padding: clamp(10px, 1.8vh, 14px);
  animation: goalIn 0.5s var(--ease) backwards;
}

.goal-card:nth-child(1) {
  animation-delay: 0.1s;
}
.goal-card:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes goalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

.goal-card.featured {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(6, 182, 212, 0.08) 100%
  );
  border-color: rgba(139, 92, 246, 0.25);
}

.goal-header {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vh, 10px);
  margin-bottom: clamp(6px, 1.2vh, 10px);
}

.goal-icon {
  width: clamp(28px, 4.8vh, 36px);
  height: clamp(28px, 4.8vh, 36px);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(7px, 1.3vh, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 2.4vh, 18px);
  flex-shrink: 0;
}

.goal-info {
  flex: 1;
  min-width: 0;
}

.goal-title {
  font-size: var(--fs-sm);
  font-weight: 900;
  margin-bottom: 2px;
}

.goal-deadline {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.goal-percent {
  font-size: var(--fs-md);
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.goal-progress {
  height: clamp(3px, 0.6vh, 5px);
  border-radius: 5px;
  margin-bottom: clamp(6px, 1.2vh, 10px);
}

.goal-progress-fill {
  background: var(--gradient-main);
  border-radius: 5px;
}

.goal-tasks {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.7vh, 6px);
}

.goal-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(5px, 1vh, 8px) clamp(7px, 1.2vh, 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: var(--fs-xs);
}

.goal-task-check {
  width: clamp(13px, 2.2vh, 16px);
  height: clamp(13px, 2.2vh, 16px);
  border-radius: 4px;
  font-size: var(--fs-xs);
}

.goal-task-text {
  flex: 1;
}

.goal-task-text.done {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ===== ORGANIZE MOCKUP (vh-adaptive) ===== */
.organize-mockup {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1vh, 8px);
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-label--mt {
  margin-top: clamp(6px, 1.2vh, 10px);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(5px, 1vh, 8px);
}

.idea-card {
  padding: clamp(8px, 1.4vh, 12px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(8px, 1.4vh, 12px);
  animation: ideaIn 0.4s var(--ease) backwards;
}

.idea-card:nth-child(1) {
  animation-delay: 0.1s;
}
.idea-card:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes ideaIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.idea-emoji {
  font-size: clamp(16px, 2.6vh, 20px);
  margin-bottom: clamp(3px, 0.6vh, 6px);
}

.idea-title {
  font-size: var(--fs-xs);
  font-weight: 900;
  margin-bottom: 3px;
}

.idea-text {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}

.project-card {
  padding: clamp(10px, 1.7vh, 14px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(10px, 1.7vh, 14px);
  animation: ideaIn 0.4s var(--ease) 0.25s backwards;
}

.project-header {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vh, 10px);
  margin-bottom: clamp(6px, 1.2vh, 10px);
}

.project-icon {
  width: clamp(28px, 4.4vh, 34px);
  height: clamp(28px, 4.4vh, 34px);
  background: var(--cyan-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 2.4vh, 18px);
  border: 1px solid rgba(6, 182, 212, 0.22);
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: var(--fs-sm);
  font-weight: 900;
  margin-bottom: 2px;
}

.project-meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.project-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-bar {
  flex: 1;
  height: clamp(4px, 0.8vh, 6px);
  border-radius: 6px;
}

.project-bar-fill {
  background: var(--accent-2);
  border-radius: 6px;
}

.project-percent {
  font-size: var(--fs-sm);
  font-weight: 900;
  color: var(--accent-2);
}

/* ===== FINANCE MOCKUP (vh-adaptive) ===== */
.finance-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(5px, 1vh, 8px);
}

.finance-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(12px, 2.2vh, 18px);
  padding: clamp(10px, 1.8vh, 14px);
  box-shadow: var(--shadow-lg);
}

.finance-card.wide {
  grid-column: span 2;
}

.finance-emoji {
  font-size: clamp(18px, 3vh, 24px);
  margin-bottom: clamp(3px, 0.6vh, 6px);
}

.finance-title {
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.finance-value {
  font-size: clamp(16px, 2.6vh, 20px);
  font-weight: 900;
  letter-spacing: -0.4px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.finance-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
  margin-top: 2px;
}

.fin-progress {
  margin-top: clamp(4px, 0.8vh, 8px);
  height: clamp(3px, 0.6vh, 5px);
  border-radius: 999px;
}

.fin-progress-fill {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  border-radius: 999px;
}

/* ===== NAVIGATION ===== */
.ob-nav {
  flex: 0 0 auto;
  padding: 8px 24px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

.pg-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    transform 0.2s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.pg-dot:active {
  transform: scale(0.92);
}

.pg-dot.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 10px 24px rgba(139, 92, 246, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transform: scale(1.35);
}

/* ===== CTA ===== */
.cta-wrap {
  flex: 0 0 auto;
  padding: 10px 24px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.cta-wrap.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  background: var(--gradient-main);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 150%;
  }
}

/* ===== UTILITY ===== */
.wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  padding-top: calc(var(--safe-top, 0px) + 24px);
  padding-bottom: calc(var(--safe-bottom, 0px) + 24px);
}

.card {
  width: min(520px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.title {
  font-size: var(--fs-3xl);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.titleAccent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-tertiary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 800;
  margin-bottom: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cta {
  margin-top: 14px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.footer {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

.grid {
  display: none;
}

/* =============================================
   MEDIA QUERIES
   ============================================= */

/* ----- Very short screens (≤580px height) ----- */
@media (max-height: 580px) {
  .content-badge {
    display: none;
  }
  .content-title {
    font-size: var(--fs-xl);
    margin-bottom: 4px;
  }
  .content-desc {
    font-size: var(--fs-xs);
    line-height: 1.4;
  }
  .slide-content {
    padding: 4px 0 0;
  }

  .tasks-day {
    font-size: var(--fs-sm);
  }
  .goal-title {
    font-size: var(--fs-xs);
  }
  .goal-percent {
    font-size: var(--fs-sm);
  }
  .project-title {
    font-size: var(--fs-xs);
  }

  .ob-nav {
    padding: 4px 24px 2px;
  }
  .cta-wrap {
    padding: 6px 24px;
  }
  .cta-btn {
    padding: 12px 16px;
    font-size: var(--fs-sm);
    border-radius: 12px;
  }
}

/* ----- Short screens (581–667px height) ----- */
@media (min-height: 581px) and (max-height: 667px) {
  .content-title {
    font-size: var(--fs-2xl);
    margin-bottom: 6px;
  }
  .content-desc {
    font-size: var(--fs-xs);
  }
  .content-badge {
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .tasks-day {
    font-size: var(--fs-md);
  }
  .goal-title {
    font-size: var(--fs-xs);
  }
  .goal-percent {
    font-size: var(--fs-sm);
  }
}

/* ----- Tall phones (813px+ height, mobile only) ----- */
@media (min-height: 813px) and (max-width: 767px) {
  .content-title {
    font-size: clamp(24px, 6vw, 30px);
  }
}

/* ----- Tablets (768px+ width) ----- */
@media (min-width: 768px) {
  #onboarding {
    padding: calc(var(--safe-top, 0px) + 16px) 0
      calc(var(--safe-bottom, 0px) + 16px);
  }

  .slide {
    padding: 0 36px;
  }

  .tasks-mockup,
  .goals-mockup,
  .organize-mockup,
  .finance-bento {
    max-width: clamp(300px, 42vh, 380px);
  }

  .task-item {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 12px;
  }
  .task-title {
    font-size: var(--fs-sm);
    margin-bottom: 2px;
  }
  .task-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }
  .task-meta {
    gap: 8px;
  }
  .task-tag {
    padding: 3px 8px;
  }
  .tasks-mockup {
    gap: 8px;
  }
  .tasks-day {
    font-size: var(--fs-xl);
  }
  .tasks-badge {
    padding: 4px 10px;
  }
  .tasks-add {
    padding: 12px;
    border-radius: 14px;
  }

  .goal-card {
    padding: 16px;
    border-radius: 16px;
  }
  .goal-header {
    gap: 12px;
    margin-bottom: 12px;
  }
  .goal-icon {
    width: 42px;
    height: 42px;
    font-size: var(--fs-xl);
    border-radius: 11px;
  }
  .goal-percent {
    font-size: var(--fs-lg);
  }
  .goal-progress {
    height: 6px;
    margin-bottom: 12px;
  }
  .goal-tasks {
    gap: 7px;
  }
  .goal-task {
    padding: 9px 11px;
    border-radius: 9px;
  }
  .goal-task-check {
    width: 17px;
    height: 17px;
  }
  .goals-mockup {
    gap: 12px;
  }

  .idea-card {
    padding: 14px;
    border-radius: 14px;
  }
  .idea-emoji {
    font-size: var(--fs-2xl);
    margin-bottom: 8px;
  }
  .idea-title {
    font-size: var(--fs-sm);
  }
  .project-card {
    padding: 16px;
    border-radius: 16px;
  }
  .project-header {
    gap: 12px;
    margin-bottom: 12px;
  }
  .project-icon {
    width: 38px;
    height: 38px;
    font-size: var(--fs-xl);
  }
  .project-bar {
    height: 7px;
  }

  .finance-card {
    padding: 16px;
    border-radius: 22px;
  }
  .finance-emoji {
    font-size: var(--fs-2xl);
    margin-bottom: 8px;
  }
  .finance-value {
    font-size: var(--fs-xl);
  }
  .fin-progress {
    height: 6px;
  }
  .finance-bento {
    gap: 10px;
  }

  .content-desc {
    max-width: 480px;
    font-size: var(--fs-md);
  }
  .logo-wrap {
    width: 100px;
    height: 100px;
  }
  .ob-nav {
    padding: 10px 24px 6px;
  }
  .cta-btn {
    padding: 17px 24px;
    font-size: var(--fs-md);
    border-radius: 16px;
  }
}

/* ----- Desktop (1024px+ width) ----- */
@media (min-width: 1024px) {
  .slides {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .slide {
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
    padding: 0 28px;
  }

  .slide-visual {
    flex: 0.85;
    justify-content: center;
    padding: 20px 0;
  }
  .slide-content {
    flex: 1.15;
    text-align: left;
    padding: 0;
  }

  .content-title {
    font-size: var(--fs-3xl);
    line-height: 1.1;
    letter-spacing: -1px;
  }
  .content-desc {
    margin: 0;
    max-width: 540px;
    line-height: 1.6;
  }
  .content-badge {
    padding: 6px 14px;
  }

  .tasks-mockup,
  .goals-mockup,
  .organize-mockup,
  .finance-bento {
    max-width: clamp(340px, 48vh, 420px);
  }

  .task-item {
    padding: 14px 16px;
  }
  .task-check {
    width: 22px;
    height: 22px;
  }
  .tasks-mockup {
    gap: 10px;
  }
  .tasks-add {
    padding: 14px;
    font-size: var(--fs-sm);
  }

  .goal-card {
    padding: 18px;
    border-radius: 18px;
  }
  .goal-icon {
    width: 44px;
    height: 44px;
    font-size: var(--fs-2xl);
    border-radius: 12px;
  }
  .goal-title {
    font-size: var(--fs-md);
  }
  .goal-progress {
    margin-bottom: 14px;
  }
  .goal-task {
    padding: 10px 12px;
    font-size: var(--fs-sm);
    border-radius: 10px;
  }
  .goal-task-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  .project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .project-bar {
    height: 8px;
  }

  .finance-card {
    border-radius: 24px;
  }
  .finance-emoji {
    font-size: var(--fs-3xl);
    margin-bottom: 10px;
  }
  .finance-value {
    font-size: var(--fs-2xl);
  }

  .ob-nav {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    padding: 10px 28px 6px;
  }

  .cta-wrap {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 12px 28px;
    display: flex;
    justify-content: center;
  }

  .cta-btn {
    max-width: 420px;
  }
}

/* ----- Large desktop (1280px+ width) ----- */
@media (min-width: 1280px) {
  .slides,
  .ob-nav,
  .cta-wrap {
    max-width: 1200px;
  }

  .slide {
    gap: 56px;
  }
  .slide-content {
    flex: 1.35;
  }
  .slide-visual {
    flex: 0.75;
  }

  .content-desc {
    font-size: var(--fs-lg);
    max-width: 600px;
  }

  .tasks-mockup,
  .goals-mockup,
  .organize-mockup,
  .finance-bento {
    max-width: clamp(380px, 52vh, 480px);
  }
}

/* ----- XL desktop (1440px+ width) ----- */
@media (min-width: 1440px) {
  .slides,
  .ob-nav,
  .cta-wrap {
    max-width: 1320px;
  }

  .content-desc {
    max-width: 640px;
  }

  .tasks-mockup,
  .goals-mockup,
  .organize-mockup,
  .finance-bento {
    max-width: clamp(420px, 55vh, 520px);
  }
}

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