/* ****************** STUDYLUMO — Global Styles & Component Library ****************** */

/* ─── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  /* Explicitly lock to light theme values — never inherit OS dark mode */
  color: #1A1814;
  background-color: #F8F7F4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Typography ────────────────────────────────────────── */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-md {
  font-size: var(--text-md);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.text-5xl {
  font-size: var(--text-5xl);
}

.text-6xl {
  font-size: var(--text-6xl);
}

.font-normal {
  font-weight: var(--weight-normal);
}

.font-medium {
  font-weight: var(--weight-medium);
}

.font-semibold {
  font-weight: var(--weight-semibold);
}

.font-bold {
  font-weight: var(--weight-bold);
}

.font-extrabold {
  font-weight: var(--weight-extrabold);
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-brand {
  color: var(--color-primary);
}

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

.text-left {
  text-align: left;
}

/* ─── Layout Utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width-xl);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-2xl);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.grid {
  display: grid;
}

/* ─── Section ───────────────────────────────────────────── */
.section {
  padding-block: var(--space-4xl);
}

.section--alt {
  background-color: var(--surface);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-primary-trans);
  border: var(--border-normal) solid var(--color-primary-border);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-base);
  white-space: nowrap;
  outline-offset: 3px;
  min-height: 48px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-primary-shadow);
}

.btn--primary:hover {
  background-color: var(--color-primary-mid);
  box-shadow: 0 4px 20px var(--color-primary-shadow);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-primary);
  border: var(--border-normal) solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-trans);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: var(--space-md);
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--sm {
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  min-height: 36px;
}

.btn--lg {
  font-size: var(--text-lg);
  padding: var(--space-md) var(--space-2xl);
  min-height: 56px;
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background-color: var(--surface);
  border: var(--border-normal) solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card--brand {
  border-color: var(--color-primary-border);
  background: linear-gradient(135deg, var(--color-primary-trans), transparent);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Badge / Chip ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--primary {
  background: var(--color-primary-trans);
  color: var(--color-primary-mid);
}

.badge--warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge--info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.badge--purple {
  background: var(--color-purple-light);
  color: var(--color-purple);
}

/* ─── Navbar ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  /* Always light — frosted glass effect over white */
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid #E8E5DE;
  transition: all var(--transition-base);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__logo img {
  height: 28px;
  width: 28px;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: inline-block;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ─── Mobile Menu ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  background-color: var(--bg);
  z-index: var(--z-overlay);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__link {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding-top: calc(64px + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  /* background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%); */
  pointer-events: none;
}

.hero__tag {
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-transform: capitalize;
}

.hero__title .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-4xl);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── App Mockup ────────────────────────────────────────── */
.mockup {
  margin-inline: auto;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: var(--border-normal) solid var(--border);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.mockup__screen {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
}

/* ─── Feature Grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Steps List ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.step__number {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
}

/* ─── Testimonials ──────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial__quote {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial__stars {
  color: var(--color-amber);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary-mid);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ─── CTA Banner ────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 48px var(--color-primary-shadow);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-banner__subtitle {
  color: rgba(255, 255, 255, 0.80);
  font-size: var(--text-lg);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.btn--white {
  background: #fff;
  color: var(--color-primary-mid);
  font-weight: var(--weight-bold);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.90);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background-color: var(--surface);
  border-top: var(--border-normal) solid var(--border);
  padding-block: var(--space-4xl) var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 3fr 1fr 1fr 1fr;
  }
}

.footer__brand-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-md);
  max-width: 36ch;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-base);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: var(--border-normal) solid var(--border);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ─── Page Header (inner pages) ─────────────────────────── */
.page-header {
  padding-top: calc(64px + var(--space-4xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4xl);
}

.page-header__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-md);
}

.page-header__meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ─── Prose (legal / about text) ───────────────────────── */
.prose {
  max-width: 72ch;
  margin-inline: auto;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose p {
  margin-bottom: var(--space-md);
}

.prose ul {
  padding-left: var(--space-xl);
  list-style: disc;
}

.prose ul li {
  margin-bottom: var(--space-sm);
}

.prose strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.prose a {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  transition: opacity var(--transition-fast);
}

.prose a:hover {
  opacity: 0.75;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s var(--transition-slow) both;
}

.animate-delay-1 {
  animation-delay: 0.15s;
}

.animate-delay-2 {
  animation-delay: 0.30s;
}

.animate-delay-3 {
  animation-delay: 0.45s;
}

.animate-delay-4 {
  animation-delay: 0.60s;
}

/* ─── Scroll-reveal (JS adds .is-visible) ─────────────────*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-3xl);
}

/* ─── App Store Badges ──────────────────────────────────── */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--text-primary);
  color: var(--bg);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-base);
  min-height: 52px;
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge__icon {
  font-size: 24px;
}

.store-badge__sub {
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  opacity: 0.7;
  display: block;
  text-align: left;
}

/* ─── Glowing Orb Decoration ───────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.orb--primary {
  background: var(--color-primary);
}

.orb--purple {
  background: var(--color-purple);
}

/* ─── Horizontal rule ───────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Scrollbar (Chromium) ──────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════
   ─── 404 Page ───────────────────────────────────────────
   ═══════════════════════════════════════════════════════════ */

.page-404 body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* ── Decorative blobs ─── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 8s ease-in-out infinite;
}

.blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -180px;
  left: -180px;
  animation-delay: 0s;
}

.blob--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--color-primary-mid) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  animation-delay: -4s;
}

@keyframes blob-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-24px) scale(1.03); }
}

/* ── 404 Card ─── */
.error-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: var(--border-normal) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: error-slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes error-slide-up {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── 404 Number ─── */
.error-code {
  font-size: clamp(80px, 16vw, 120px);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 60%, #0F7537 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -4px;
  margin-bottom: 4px;
  animation: error-pulse-glow 3s ease-in-out infinite;
}

@keyframes error-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(34, 197, 94, 0)); }
  50%       { filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.35)); }
}

/* ── Icon ─── */
.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-primary-trans);
  border: var(--border-thick) solid var(--color-primary-border);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
  animation: error-slide-up 0.6s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.error-icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary-mid);
  stroke: currentColor;
}

/* ── Text ─── */
.error-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  animation: error-slide-up 0.6s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.error-desc {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  animation: error-slide-up 0.6s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Actions ─── */
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  animation: error-slide-up 0.6s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Separator ─── */
.error-separator {
  margin: var(--space-xl) 0 0;
  border: none;
  border-top: var(--border-normal) solid var(--border);
  animation: error-slide-up 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Brand strip ─── */
.error-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-5);
  transition: color var(--transition-base);
  animation: error-slide-up 0.6s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.error-brand:hover { color: var(--color-primary-mid); }

.error-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

.error-brand__name {
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}

/* ── 404 responsive ─── */
@media (max-width: 480px) {
  .error-card {
    padding: 40px 24px 36px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   ─── Verify Email Page ──────────────────────────────────
   ═══════════════════════════════════════════════════════════ */

.page-verify body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* ── Verify card (shared wrapper) ─── */
.verify-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: var(--border-normal) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: error-slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── States ─── */
.verify-state {
  display: none;
  flex-direction: column;
  align-items: center;
}

.verify-state.is-active {
  display: flex;
}

/* ─── Loading spinner ─── */
.verify-spinner {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary-trans);
  border: var(--border-thick) solid var(--color-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  position: relative;
}

.verify-spinner::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  animation: verify-spin 0.75s linear infinite;
}

@keyframes verify-spin {
  to { transform: rotate(360deg); }
}

/* ─── Success icon (animated checkmark) ─── */
.verify-success-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary-trans);
  border: var(--border-thick) solid var(--color-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  animation: verify-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}

.verify-success-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-border);
  animation: verify-ring-pulse 2s ease-out 0.4s infinite;
}

@keyframes verify-ring-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes verify-pop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.verify-check {
  width: 36px;
  height: 36px;
  color: var(--color-primary-mid);
  stroke: currentColor;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: verify-draw-check 0.5s ease 0.3s forwards;
}

@keyframes verify-draw-check {
  to { stroke-dashoffset: 0; }
}

/* ─── Error icon ─── */
.verify-error-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.08);
  border: var(--border-thick) solid rgba(239, 68, 68, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  animation: verify-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.verify-error-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-error);
  stroke: currentColor;
}

/* ─── Titles & body copy ─── */
.verify-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.verify-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 34ch;
  margin-inline: auto;
}

.verify-desc--loading {
  margin-bottom: 0;
}

/* ─── Email chip (shows the verified address) ─── */
.verify-email-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-primary-trans);
  border: var(--border-normal) solid var(--color-primary-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary-mid);
  margin-bottom: var(--space-xl);
  word-break: break-all;
}

.verify-email-chip svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ─── Actions ─── */
.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  width: 100%;
}

/* ─── Separator & brand (reuse error-brand pattern) ─── */
.verify-separator {
  width: 100%;
  margin: var(--space-xl) 0 0;
  border: none;
  border-top: var(--border-normal) solid var(--border);
}

.verify-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-5);
  transition: color var(--transition-base);
}

.verify-brand:hover { color: var(--color-primary-mid); }

.verify-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

.verify-brand__name {
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .verify-card {
    padding: 40px 24px 36px;
  }

  .verify-actions {
    flex-direction: column;
  }

  .verify-actions .btn {
    justify-content: center;
  }
}