/* ============================
   PÉNZÜGYES — Components & Sections
   ============================ */

/* === NAV === */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  font-family: var(--text);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
:root[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.7);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.nav-logo .logo-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 12px var(--lime);
  vertical-align: middle;
  margin-bottom: 4px;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; white-space: nowrap; }
.nav-links a {
  color: var(--fg-dim);
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--lime);
  color: var(--lime-on);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--lime-soft); }

/* Theme toggle button (sun/moon) — sits between nav-links and nav-cta */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex: none;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover {
  background: var(--glass-2);
  color: var(--lime);
  border-color: var(--line-2);
  transform: rotate(12deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
:root[data-theme="light"] .theme-toggle .sun-icon { display: block; }
:root[data-theme="light"] .theme-toggle .moon-icon { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { gap: 10px; padding: 8px 8px 8px 16px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 15px; height: 15px; }
}

/* === CUSTOM CURSOR === */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--lime);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.2s ease;
  box-shadow: 0 0 24px rgba(198, 255, 61, 0.8);
}
.cursor-dot.big {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  background: rgba(198, 255, 61, 0.4);
}
@media (pointer: coarse) { .cursor-dot { display: none; } }

/* === HERO === */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 18px 0 18px;
}
.hero h1 .lime { color: var(--lime); }
.hero h1 em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 6%;
  height: 14%;
  background: var(--lime);
  z-index: -1;
  transform: skewX(-10deg);
  opacity: 0.85;
  filter: blur(0.5px);
}
.hero-sub {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0a0a0a;
}

/* Hero phone area */
.hero-phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}
.hero-phone-stage .glow-blob {
  z-index: -1;
}
.hero-phone-stage .phone {
  transform: rotate(-4deg);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-14px); }
}

/* ===== Showcase stage (phone + callouts) ===== */
.showcase-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.showcase-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  grid-column: 2;
}
.showcase-phone-wrap .phone {
  width: 320px;
  animation: phone-float-soft 8s ease-in-out infinite;
}
@keyframes phone-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.showcase-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,255,61,0.28) 0%, rgba(198,255,61,0.08) 35%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.callout {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 280px;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s ease;
}
.callout:hover {
  transform: translateY(-4px);
  border-color: rgba(198,255,61,0.3);
}
.callout-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(198,255,61,0.2), rgba(198,255,61,0.05));
  border: 1px solid rgba(198,255,61,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.callout-body {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.callout-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.callout-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

/* Position callouts in grid + offsets */
.callout-tl { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; margin-bottom: -60px; margin-right: 20px; }
.callout-bl { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; margin-top: 60px; margin-right: 30px; }
.callout-tr { grid-column: 3; grid-row: 1; justify-self: start; align-self: end; margin-bottom: -60px; margin-left: 20px; }
.callout-br { grid-column: 3; grid-row: 1; justify-self: start; align-self: start; margin-top: 60px; margin-left: 30px; }

/* Subtle dotted connector line (pure decoration) */
.callout::before {
  content: "";
  position: absolute;
  width: 60px; height: 1px;
  background: repeating-linear-gradient(to right, rgba(198,255,61,0.4) 0 4px, transparent 4px 8px);
  top: 50%;
  pointer-events: none;
}
.callout-tl::before, .callout-bl::before { right: -60px; }
.callout-tr::before, .callout-br::before { left: -60px; }

@media (max-width: 1100px) {
  .showcase-stage { gap: 24px; }
  .callout { max-width: 240px; padding: 14px 16px; }
  .callout-tl, .callout-tr { margin-bottom: -80px; }
  .callout-bl, .callout-br { margin-top: 80px; }
}
@media (max-width: 960px) {
  .showcase-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .callout {
    max-width: 100%;
    margin: 0 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    align-self: auto !important;
  }
  .callout::before { display: none; }
  .showcase-phone-wrap { grid-column: 1; grid-row: auto; order: -1; }
}

/* App mockup recreated in CSS */
.app-mockup {
  width: 100%; height: 100%;
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 60%, #0d0d0d 100%);
  font-family: var(--text);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.app-mockup .app-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130%; height: 50%;
  background: radial-gradient(ellipse at center top, rgba(198, 255, 61, 0.85) 0%, rgba(149, 212, 10, 0.4) 30%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.app-mockup .app-content {
  position: relative;
  z-index: 1;
  padding: 40px 18px 70px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-status-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.app-header {
  display: flex; align-items: center; gap: 10px;
}
.app-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b3a1a, #3a2010);
  border: 2px solid var(--lime);
  position: relative;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.app-greeting { font-family: var(--display); font-weight: 800; font-size: 18px; }
.app-streak {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  margin-left: 6px;
  gap: 3px;
}
.app-bell {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.app-balance-pill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  align-self: center;
}
.app-balance {
  font-family: var(--display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 6px 0;
}
.app-balance .flip-digit {
  overflow: hidden;
  vertical-align: top;
  height: 1em;
  line-height: 1;
}
.app-sub-balance {
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.app-sub-balance .dot { color: var(--lime); }
.app-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.app-action-pill {
  background: rgba(255,255,255,0.08);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 600;
}
.app-tile-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.app-bottom {
  margin-top: auto;
  background: #161616;
  border-radius: 24px 24px 0 0;
  padding: 14px;
  margin: 0 -18px -18px;
  flex: 0 0 auto;
}
.app-bottom-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
}
.app-cards-row { display: flex; gap: 8px; overflow: hidden; }
.app-mini-card {
  flex: 0 0 110px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px;
  font-size: 10px;
}
.app-mini-card .check-tag {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  float: right;
  color: #0a0a0a; font-weight: 700;
}
.app-mini-card-emoji { font-size: 18px; margin-bottom: 4px; }
.app-mini-card-title { font-weight: 700; font-size: 10px; }
.app-mini-card-desc { color: rgba(255,255,255,0.55); font-size: 9px; line-height: 1.3; }
.app-tabbar {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 6px;
  display: flex; justify-content: space-around; align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 5;
}
.app-tab { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; opacity: 0.6; font-size: 14px; }
.app-tab.center {
  width: 38px; height: 38px;
  background: var(--lime);
  border-radius: 50%;
  color: #0a0a0a;
  font-weight: 900; font-size: 18px;
  opacity: 1;
  box-shadow: 0 0 16px rgba(198,255,61,0.6);
}

/* === STATS === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(20px);
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--fg-dim);
  font-size: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; gap: 24px; }
}

/* === SECTION HEADERS === */
.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
  text-wrap: balance;
}
.section-head h2 .lime { color: var(--lime); }
.section-head p {
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 540px;
  text-wrap: pretty;
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feature {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px rgba(198,255,61,0.5);
}
.feature h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-wrap: balance;
}
.feature p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* layout sizes */
.f-large { grid-column: span 4; min-height: 300px; }
.f-mid { grid-column: span 3; }
.f-small { grid-column: span 2; }
.f-tall { grid-column: span 2; min-height: 320px; }
.f-wide { grid-column: span 4; }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .f-large, .f-mid, .f-small, .f-tall, .f-wide { grid-column: span 1; }
  .f-large { grid-column: span 2; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .f-large { grid-column: span 1; }
}

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.step {
  padding: 22px;
  position: relative;
}
.step-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--lime);
  margin-bottom: 20px;
  display: block;
  opacity: 0.95;
}
.step h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step p {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* === AI COACH HIGHLIGHT === */
.coach-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.coach-chat {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(198,255,61,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 420px;
  justify-content: flex-end;
}
.coach-msg {
  max-width: 86%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.coach-msg.user {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-2);
  border-bottom-right-radius: 4px;
}
.coach-msg.bot {
  align-self: flex-start;
  background: var(--lime);
  color: #0a0a0a;
  border-bottom-left-radius: 4px;
  font-weight: 500;
}
.coach-msg.bot .label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  opacity: 0.7;
}
.typing {
  display: flex; gap: 4px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  align-self: flex-start;
  width: fit-content;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--fg-dim);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 1024px) { .coach-section { grid-template-columns: 1fr; gap: 40px; } }

/* === COMMUNITY / KÖZÖS KASSZA === */
.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.community-card {
  padding: 30px;
  min-height: 320px;
  position: relative;
}
.community-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0;
}
.community-card p {
  color: var(--fg-dim);
  font-size: 14px;
}

.kassza-vis {
  position: relative;
  height: 200px;
  margin-top: 28px;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.kassza-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.kassza-row:last-child { border-bottom: none; }
.kassza-person {
  display: flex; align-items: center; gap: 10px;
}
.kassza-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b3a1a, #3a2010);
  border: 1.5px solid var(--lime);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.kassza-amount { font-family: var(--display); font-weight: 700; }
.kassza-amount.lime { color: var(--lime); }

@media (max-width: 768px) {
  .community { grid-template-columns: 1fr; }
}

/* === WIDGETS === */
.widget-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.widget-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 22px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.widget-card.lime {
  background: linear-gradient(160deg, var(--lime), var(--lime-deep));
  color: #0a0a0a;
}
.widget-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
.widget-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 4px;
}
.widget-desc {
  font-size: 12px;
  opacity: 0.75;
}
.widget-bar-track {
  height: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}
.widget-bar-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 999px;
  transform: translateX(-30%);
  animation: bar-grow 2.4s ease-out forwards;
}
.widget-card:not(.lime) .widget-bar-fill { background: var(--lime); }
@keyframes bar-grow {
  from { transform: translateX(-100%); }
  to { transform: translateX(-30%); }
}
@media (max-width: 768px) { .widget-showcase { grid-template-columns: 1fr; } }

/* === WIDGETS — phone screenshot placeholders === */
.widgets-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  justify-items: center;
  align-items: end;
  margin: 24px auto 56px;
  perspective: 1400px;
}
@media (max-width: 768px) {
  .widgets-stage { grid-template-columns: 1fr; gap: 48px; }
}
.widgets-phone-col {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.widgets-phone-label {
  display: inline-flex; align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.widgets-phone-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.widgets-phone {
  width: 280px;
  animation: phone-float-soft 8s ease-in-out infinite;
}
.widgets-phone-col:nth-child(2) .widgets-phone { animation-delay: -2s; }

/* The placeholder fills the phone screen */
.widget-placeholder {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: var(--text);
  color: #fff;
  isolation: isolate;
}
.widget-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(198,255,61,0.15), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(120,80,255,0.18), transparent 55%),
    linear-gradient(180deg, #2a3b1f 0%, #1a1f10 50%, #0a0a0a 100%);
  z-index: -1;
}
.widget-placeholder.lock::before {
  background:
    radial-gradient(circle at 60% 30%, rgba(198,255,61,0.18), transparent 55%),
    linear-gradient(180deg, #1c2410 0%, #0e1208 60%, #050505 100%);
}

.wp-status {
  display: flex; justify-content: space-between;
  padding: 16px 22px 0;
  font-size: 11px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.wp-status-right { letter-spacing: 1px; opacity: 0.85; }

.wp-date {
  text-align: center;
  margin: 8px 0 14px;
}
.wp-date-day {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.wp-date-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
  flex: 1;
}
.wp-w {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.wp-w-large { grid-column: span 2; padding: 14px 14px 12px; gap: 6px; }
.wp-w-small { aspect-ratio: 1 / 1; }
.wp-w-medium { grid-column: span 2; padding: 12px 14px; }
.wp-w-lime {
  background: var(--lime);
  color: #0a0a0a;
  border-color: rgba(0,0,0,0.1);
}
.wp-w-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.wp-w-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wp-w-value span { font-size: 11px; opacity: 0.7; font-weight: 700; }
.wp-w-meta { font-size: 10px; opacity: 0.6; }
.wp-w-label-sm {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.wp-w-value-sm {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.wp-w-meta-sm { font-size: 9px; opacity: 0.65; }
.wp-w-bar {
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.wp-w-bar-fill {
  height: 100%;
  width: var(--w, 50%);
  background: var(--lime);
  border-radius: 999px;
}

.wp-app-row {
  grid-column: span 2;
  display: flex; justify-content: space-around;
  margin-top: 4px;
}
.wp-app-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.wp-dock {
  display: flex; justify-content: space-around;
  padding: 14px 18px 22px;
  margin-top: auto;
}
.wp-dock-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* Lock screen */
.wp-lock-time {
  font-family: var(--display);
  font-weight: 200;
  font-size: 78px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 4px 0 4px;
}
.wp-lock-date {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 18px;
}
.wp-lock-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: auto;
}
.wp-lock-w {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.wp-lock-w.lime {
  background: var(--lime);
  color: #0a0a0a;
}
.wp-lock-w-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.wp-lock-w-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}
.wp-lock-notif {
  margin: auto 14px 22px;
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 12px 14px;
}
.wp-lock-notif-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.wp-lock-notif-title {
  font-size: 12px;
  font-weight: 700;
}
.wp-lock-notif-body {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.3;
}

.wp-placeholder-tag {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}

/* Widget bullets */
.widgets-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .widgets-bullets { grid-template-columns: 1fr; }
}
.widgets-bullet {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.widgets-bullet:hover {
  border-color: rgba(198,255,61,0.3);
  transform: translateY(-3px);
}
.widgets-bullet-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(198,255,61,0.12);
  border: 1px solid rgba(198,255,61,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.widgets-bullet-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.widgets-bullet-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

/* === SUBSCRIPTION ALERTS === */
.subs-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.sub-row {
  display: flex; align-items: center;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 14px;
  font-size: 14px;
}
.sub-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}
.sub-name { font-weight: 600; }
.sub-meta { font-size: 11px; color: var(--fg-dim); margin-top: 2px; }
.sub-price { margin-left: auto; font-family: var(--display); font-weight: 700; }
.sub-pill {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  background: rgba(198,255,61,0.18);
  color: var(--lime);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === E-LEARNING === */
.elearning {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.lesson-card {
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lesson-card:hover {
  transform: translateX(8px);
  border-color: var(--lime);
}
.lesson-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(198,255,61,0.12);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}
.lesson-title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.lesson-meta { color: var(--fg-dim); font-size: 12px; margin-top: 2px; }
.lesson-arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.lesson-card:hover .lesson-arrow { background: var(--lime); color: #0a0a0a; }

@media (max-width: 1024px) {
  .elearning { grid-template-columns: 1fr; }
}

/* === MARQUEE BANNER === */
.marquee-banner {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  margin-right: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.marquee-item .star {
  width: 18px; height: 18px;
  display: inline-block;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee-item .dim { color: var(--fg-faint); }

/* === FINAL CTA === */
.final-cta {
  text-align: center;
  padding: 80px 32px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top, rgba(198,255,61,0.15), transparent 60%), var(--glass);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.final-cta h2 .lime { color: var(--lime); }
.final-cta p {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 auto 32px;
}
.store-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 18px;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--display);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.store-btn:hover { transform: scale(1.04); }
.store-btn .icon { font-size: 28px; }
.store-btn .small { font-size: 11px; opacity: 0.6; display: block; line-height: 1; margin-bottom: 2px; }
.store-btn .big { font-size: 18px; line-height: 1; }
.store-btn.dark { background: #1a1a1a; color: #fff; border: 1px solid var(--line-2); }

/* === FOOTER === */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand { font-family: var(--display); font-weight: 900; font-size: 32px; letter-spacing: -0.04em; margin-bottom: 14px; }
.footer-brand .logo-dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--lime);
  border-radius: 50%;
  margin-left: 4px;
  box-shadow: 0 0 16px var(--lime);
  vertical-align: middle;
  margin-bottom: 6px;
}
.footer-tag { color: var(--fg-dim); font-size: 14px; max-width: 320px; }
.footer-col h5 { font-family: var(--display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px; color: var(--fg-faint); }
.footer-col a { display: block; padding: 6px 0; color: var(--fg-dim); font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: 13px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* === HERO SPLIT (text + characters) === */
.hero-split {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text-col h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.hero-text-col h1 em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero-text-col h1 em::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 6%;
  height: 14%;
  background: var(--lime);
  z-index: -1;
  transform: skewX(-10deg);
  opacity: 0.85;
}
.hero-text-col h1 .lime { color: var(--lime); }
.hero-team-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.hero-team-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198,255,61,0.35) 0%, transparent 65%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-team-img-split {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.55));
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@media (max-width: 1024px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text-col .hero-cta { justify-content: center; }
  .hero-text-col .hero-meta { justify-content: center; flex-wrap: wrap; }
  .hero-text-col .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-team-col { min-height: auto; order: 2; }
  .hero-team-img-split { max-width: 460px; }
}

/* === RESPONSIVE HERO === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 140px 0 60px; min-height: auto; }
  .hero-phone-stage { order: 2; }
  .hero-phone-stage .phone { width: 280px; }
}
@media (max-width: 480px) {
  .showcase-phone-wrap .phone { width: 300px; }
}

/* === TILT CARD INNER protection === */
[data-tilt] > * { transform: translateZ(0); }


/* =========================================================
   NEW SECTIONS · 3-layer budget, daily habit, cashflow,
   goals, household, learn, wrapped
   ========================================================= */

/* === 3-LAYER BUDGET === */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.budget-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.budget-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.budget-card:hover::after { opacity: 1; }
.budget-spend { background: linear-gradient(160deg, rgba(198,255,61,0.14), rgba(198,255,61,0.02)); }
.budget-spend::after { box-shadow: inset 0 0 0 1px rgba(198,255,61,0.3); }
.budget-save { background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)); }
.budget-save::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.budget-emergency { background: linear-gradient(160deg, rgba(255,184,77,0.12), rgba(255,184,77,0.01)); }
.budget-emergency::after { box-shadow: inset 0 0 0 1px rgba(255,184,77,0.3); }

.budget-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.budget-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.budget-amount {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.budget-amount span {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-dim);
  margin-left: 4px;
}
.budget-meter {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.budget-meter-fill {
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--lime), var(--lime-glow));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 500;
}
.budget-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* === DAILY HABIT === */
.habit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.habit-flow {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.habit-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.habit-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50px;
  bottom: -22px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.18) 0 5px, transparent 5px 10px);
}
.habit-step-num {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--lime), var(--lime-deep));
  color: #0a0a0a;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.habit-step-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.habit-step-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
}

.habit-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.streak-card {
  padding: 32px;
  background: linear-gradient(160deg, rgba(198,255,61,0.14), rgba(198,255,61,0.02));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.streak-flame {
  font-size: 40px;
  filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.6));
}
.streak-count {
  font-family: var(--display);
  font-weight: 900;
  font-size: 80px;
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.05em;
  margin: 4px 0;
  text-shadow: 0 0 40px rgba(198,255,61,0.4);
}
.streak-label {
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 500;
  margin-bottom: 20px;
}
.streak-days {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.streak-day {
  flex: 1;
  max-width: 36px;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  color: var(--fg-dim);
}
.streak-day.on {
  background: linear-gradient(160deg, var(--lime), var(--lime-deep));
  color: #0a0a0a;
}
.streak-day.today {
  background: rgba(198,255,61,0.15);
  color: var(--lime);
  border: 1px dashed rgba(198,255,61,0.5);
}
.streak-foot {
  font-size: 12px;
  color: var(--fg-dim);
}

.xp-card { padding: 24px; }
.xp-row { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.xp-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #e6e6e6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.xp-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.xp-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.xp-fill {
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--lime), var(--lime-glow));
}
.xp-meta {
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 500;
}
.badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
}
.badge span {
  font-size: 22px;
}
.badge div {
  font-size: 10px;
  color: var(--fg-dim);
  font-weight: 600;
}
.badge.locked { opacity: 0.4; }
.badge.locked span { filter: grayscale(1); }

/* === CASHFLOW + GOALS === */
.cf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.cf-card { padding: 28px; }
.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.cf-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.cf-balance {
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--lime);
}
.cf-balance span {
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 500;
  margin-left: 8px;
  letter-spacing: 0;
}
.cf-tabs { display: flex; gap: 6px; }
.cf-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: var(--fg-dim);
  border: 1px solid rgba(255,255,255,0.06);
}
.cf-tab.active {
  background: rgba(198,255,61,0.12);
  color: var(--lime);
  border-color: rgba(198,255,61,0.3);
}
.cf-chart {
  position: relative;
  margin-top: 8px;
}
.cf-svg {
  width: 100%;
  height: 200px;
  display: block;
}
.cf-events {
  position: relative;
  height: 36px;
  margin-top: 8px;
}
.cf-event {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.cf-event span {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 12px;
  margin-bottom: 2px;
}

.goals-card { padding: 28px; }
.goals-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.goal-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.goal-row:last-child { border-bottom: none; }
.goal-row.goal-emergency .goal-title { color: #ffb84d; }
.goal-emoji {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.goal-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.goal-bar {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--lime), var(--lime-glow));
}
.goal-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--fg-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* === COACH PROMPTS === */
.coach-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coach-prompt {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--fg-dim);
  font-style: italic;
}

/* === HÁZTARTÁS === */
.community-card.single { padding: 36px; }
.hh-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hh-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hh-mode { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-mode-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: var(--fg-dim);
  border: 1px solid rgba(255,255,255,0.06);
}
.hh-mode-pill.active {
  background: rgba(198,255,61,0.12);
  color: var(--lime);
  border-color: rgba(198,255,61,0.3);
}

/* Household — kategória bontás */
.hh-total {
  display: flex; flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.hh-total-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2px;
}
.hh-total-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hh-categories {
  display: flex; flex-direction: column;
  gap: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.hh-cat-row {
  display: flex; flex-direction: column;
  gap: 10px;
}
.hh-cat-head {
  display: flex; align-items: center;
  gap: 12px;
}
.hh-cat-emoji { font-size: 20px; line-height: 1; }
.hh-cat-name {
  flex: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.hh-cat-total {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.hh-cat-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.hh-seg {
  display: block;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hh-seg + .hh-seg { margin-left: 1px; }
.hh-cat-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.hh-cat-people > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hh-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.hh-foot {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hh-foot-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(198,255,61,0.1);
  border: 1px solid rgba(198,255,61,0.2);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
}
.hh-foot-meta {
  font-size: 12px;
  color: var(--fg-faint);
}

@media (max-width: 768px) {
  .hh-total { align-items: flex-start; text-align: left; }
  .hh-cat-name { font-size: 14px; }
  .hh-cat-total { font-size: 13px; }
  .hh-cat-people { font-size: 11.5px; gap: 6px 12px; }
  .hh-foot { flex-direction: column; align-items: flex-start; }
}

/* === LEARN === */
.learn-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.learn-grid-v2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .learn-grid-v2 { grid-template-columns: 1fr; }
}

.lesson-icon.done {
  background: var(--lime);
  color: #0a0a0a;
}
.lesson-icon.active {
  background: rgba(198,255,61,0.18);
  color: var(--lime);
  box-shadow: 0 0 0 2px rgba(198,255,61,0.35);
}

.learn-progress {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.learn-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.learn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--lime-soft));
  border-radius: 999px;
  width: var(--w, 0%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.learn-progress-meta {
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 600;
}

/* Community teaser */
.community-teaser {
  padding: 32px;
  background: linear-gradient(160deg, rgba(198,255,61,0.08), rgba(198,255,61,0.01) 60%);
  display: flex; flex-direction: column;
  gap: 0;
}
.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(198,255,61,0.12);
  border: 1px solid rgba(198,255,61,0.25);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.community-teaser h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.community-teaser p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.community-stat {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.community-stat-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--lime);
  margin-bottom: 4px;
}
.community-stat-label {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.3;
}
.community-quote {
  position: relative;
  padding: 18px 20px 18px 44px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.community-quote-mark {
  position: absolute;
  top: 4px; left: 16px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--lime);
  opacity: 0.6;
}
.community-quote p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 8px;
  font-style: italic;
}
.community-quote-author {
  font-size: 12px;
  color: var(--fg-faint);
  font-weight: 600;
}

@media (max-width: 480px) {
  .community-teaser { padding: 24px; }
  .community-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .community-stat { padding: 14px; }
  .community-stat-num { font-size: 22px; }
  .community-quote { padding: 16px 16px 16px 38px; }
}
.learn-card { padding: 28px; }
.learn-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Minigame */
.mg-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}
.mg-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.mg-emoji {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.mg-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.mg-meta {
  font-size: 11px;
  color: var(--fg-dim);
}
.mg-guess { margin-bottom: 14px; }
.mg-bar {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, rgba(198,255,61,0.05), rgba(198,255,61,0.4), rgba(198,255,61,0.05));
  border-radius: 999px;
  margin-bottom: 8px;
}
.mg-bar-marker {
  position: absolute;
  top: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(198,255,61,0.6);
  transform: translateX(-50%);
}
.mg-bar-target {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: rgba(255,255,255,0.7);
  transform: translateX(-50%);
}
.mg-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--fg-dim);
  font-weight: 600;
}
.mg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mg-tipp { color: var(--fg-dim); }
.mg-tipp strong { color: #fff; }
.mg-result { color: var(--lime); font-weight: 600; }
.mg-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mg-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

/* === WRAPPED === */
.wrapped-card {
  margin-top: 64px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(160deg, rgba(198,255,61,0.06), rgba(255,255,255,0.02));
}
.wrapped-left h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 12px 0 12px;
}
.wrapped-left p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}
.wrapped-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wrapped-stat {
  padding: 22px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
.wrapped-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.wrapped-num.lime { color: var(--lime); }
.wrapped-label {
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 500;
}

/* === RESPONSIVE for new sections === */
@media (max-width: 960px) {
  .budget-grid { grid-template-columns: 1fr; }
  .habit-grid { grid-template-columns: 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .wrapped-card { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 520px) {
  .wrapped-right { grid-template-columns: 1fr; }
  .badges-row { grid-template-columns: repeat(2, 1fr); }
  .budget-amount { font-size: 36px; }
  .streak-count { font-size: 64px; }
}


/* =========================================================
   MOBILE FIXES & POLISH (≤768px and ≤480px)
   ========================================================= */

@media (max-width: 768px) {
  /* Container padding */
  .wrap { padding: 0 18px; }

  /* NAV */
  .nav { top: 12px; padding: 8px 8px 8px 16px; max-width: calc(100% - 16px); }
  .nav-logo { font-size: 16px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }

  /* HERO */
  .hero { padding: 110px 0 40px; min-height: auto; }
  .hero-split-grid { gap: 28px !important; }
  .hero-text-col h1 { font-size: clamp(40px, 11vw, 60px) !important; }
  .hero-sub { font-size: 16px !important; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { flex-wrap: wrap; gap: 12px 18px; justify-content: center; }
  .hero-team-img-split { max-width: 92%; }

  /* APP SHOWCASE — phone size + stacked callouts */
  .showcase-phone-wrap .phone {
    width: min(280px, 78vw) !important;
    height: auto !important;
    aspect-ratio: 280 / 580;
  }
  .callout { padding: 14px 16px; }
  .callout-icon { width: 38px; height: 38px; font-size: 18px; }
  .callout-title { font-size: 14px; }
  .callout-desc { font-size: 12px; }

  /* SECTION HEADS */
  .section-head h2 { font-size: clamp(34px, 8.5vw, 48px) !important; }
  .section-head p { font-size: 15px; }

  /* STATS */
  .stat-num { font-size: 32px !important; }
  .stat-label { font-size: 11px; }

  /* BUDGET cards */
  .budget-card { padding: 22px; }
  .budget-amount { font-size: 38px; }

  /* HABIT */
  .habit-flow { padding: 24px; gap: 20px; }
  .habit-step { gap: 14px; }
  .habit-step-num { width: 38px; height: 38px; font-size: 16px; border-radius: 12px; }
  .habit-step:not(:last-child)::after { left: 19px; top: 44px; bottom: -18px; }
  .streak-card { padding: 24px; }
  .streak-count { font-size: 56px; }
  .streak-day { padding: 6px 0; font-size: 10px; max-width: 30px; }

  /* CASHFLOW */
  .cf-card, .goals-card { padding: 20px; }
  .cf-balance { font-size: 24px; }
  .cf-balance span { display: block; margin: 4px 0 0; font-size: 12px; }
  .cf-svg { height: 160px; }
  .cf-events { height: 30px; }
  .cf-event { font-size: 9px; }
  .cf-event span { font-size: 10px; }
  /* Hide overlap-prone middle events */
  .cf-event:nth-child(2), .cf-event:nth-child(4) { display: none; }
  .goal-row { gap: 10px; padding: 12px 0; }
  .goal-emoji { width: 32px; height: 32px; font-size: 16px; }
  .goal-title { font-size: 13px; }
  .goal-amount { font-size: 11px; }

  /* COACH */
  .coach-section { gap: 32px; }
  .coach-text h2 { font-size: clamp(34px, 8.5vw, 48px) !important; }
  .coach-text p { font-size: 16px !important; }
  .coach-chat { padding: 18px; }
  .coach-msg { max-width: 92%; font-size: 13px; padding: 11px 14px; }
  .coach-prompt { font-size: 12px; padding: 7px 12px; }

  /* HÁZTARTÁS */
  .community-card.single { padding: 24px; }
  .hh-head h3 { font-size: 18px !important; }
  .hh-mode-pill { font-size: 11px; padding: 6px 10px; }
  .kassza-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; }
  .kassza-amount { font-size: 14px; }

  /* LEARN + MINIGAME */
  .learn-card { padding: 22px; }
  .learn-card h3 { font-size: 20px !important; }
  .lesson-card { gap: 12px; padding: 12px 14px; }
  .lesson-icon { width: 36px; height: 36px; font-size: 14px; }
  .lesson-title { font-size: 14px; }
  .lesson-meta { font-size: 11px; }
  .lesson-arrow { width: 30px; height: 30px; font-size: 14px; }
  .mg-card { padding: 18px; }
  .mg-foot { gap: 6px; }

  /* WIDGETS */
  .widget-card { padding: 22px; min-height: 160px; }
  .widget-value { font-size: 30px; }

  /* WRAPPED */
  .wrapped-card { padding: 24px; gap: 24px; margin-top: 40px; }
  .wrapped-left h3 { font-size: 26px; }
  .wrapped-stat { padding: 18px; }
  .wrapped-num { font-size: 26px; }

  /* FINAL CTA */
  .final-cta { padding: 56px 24px; }
  .final-cta h2 { font-size: clamp(38px, 10vw, 56px) !important; }
  .store-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .store-btn { justify-content: center; }

  /* MARQUEE */
  .marquee-item { font-size: clamp(36px, 12vw, 56px); }

  /* FOOTER */
  .footer { padding: 56px 0 28px; }

  /* Reveal-stagger spacing for stacked items */
  .stats-row { gap: 18px !important; }

  /* Disable tilt visually-only on touch */
  [data-tilt] { transform: none !important; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .section-pad { padding: 56px 0; }

  /* NAV */
  .nav-logo .logo-dot { display: none; }

  /* HERO */
  .hero-text-col .eyebrow { font-size: 11px; }
  .hero-meta-item { font-size: 12px; }

  /* SHOWCASE */
  .showcase-phone-wrap .phone {
    width: min(240px, 72vw) !important;
  }

  /* STATS row 2x2 → still ok, tighten */
  .stats-row { padding: 24px 16px !important; }

  /* BUDGET */
  .budget-card { padding: 20px; }
  .budget-amount { font-size: 34px; }
  .budget-amount span { font-size: 16px; }

  /* HABIT */
  .streak-count { font-size: 48px; }
  .streak-days { gap: 4px; }
  .badges-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .badge { padding: 10px 4px; }
  .badge span { font-size: 18px; }
  .badge div { font-size: 9px; }

  /* CASHFLOW — only show key events */
  .cf-event:nth-child(1), .cf-event:nth-child(5) { display: none; }
  .cf-balance { font-size: 22px; }

  /* GOALS — stack name & amount */
  .goal-row {
    flex-wrap: wrap;
  }
  .goal-row > div:nth-child(2) { min-width: 0; flex: 1 1 60%; }

  /* COACH */
  .coach-msg { max-width: 100%; font-size: 12.5px; }

  /* HÁZTARTÁS */
  .kassza-avatar { width: 32px; height: 32px; font-size: 12px; }

  /* WIDGETS */
  .widget-value { font-size: 26px; }

  /* WRAPPED */
  .wrapped-stat { padding: 16px; }
  .wrapped-num { font-size: 22px; }

  /* CALLOUTS */
  .callout { padding: 12px 14px; gap: 10px; }
  .callout-body { gap: 2px; }
  .callout-icon { width: 36px; height: 36px; font-size: 16px; flex-shrink: 0; }

  /* APP-MOCKUP inside phone */
  .app-balance { font-size: clamp(26px, 7vw, 32px) !important; }
  .app-grid { gap: 6px !important; }
  .app-tile { padding: 8px 6px; font-size: 10px; }

  /* FINAL CTA */
  .final-cta { padding: 44px 18px; }
}

/* iPhone SE / very narrow */
@media (max-width: 360px) {
  .hero-text-col h1 { font-size: 38px !important; }
  .section-head h2 { font-size: 32px !important; }
  .budget-amount { font-size: 30px; }
  .streak-count { font-size: 44px; }
}

/* Prevent horizontal overflow site-wide */
html, body { overflow-x: hidden; max-width: 100%; }

/* Cards never wider than viewport */
.card { max-width: 100%; }
