/*
   Nelori Design System - Global Styles
   Theme: "The Digital Gallery" / "Archival Press"

   This is the SINGLE source of truth for all site styles.
   All HTML pages should link only to this file.

   Design Tokens (in :root):
   - Colors: --paper, --ink, --graphite, --signal, --mint, --electric-blue
   - Semantic: --bg, --text, --muted, --surface, --stroke, --accent
   - Typography: --font-display (Space Grotesk), --font-body (DM Sans), --font-mono (Space Mono)
   - Layout: --container-width (1200px), --section-pad

   Key Components (BEM naming):
   - .nav, .hero, .section, .card, .btn
   - .workflow, .catalog, .pricing, .compare, .faq
   - .footer

   Accessibility:
   - Skip link, focus states, reduced motion support
   - AA contrast compliance
   - 44px minimum touch targets

   Last updated: 2025-11-23
*/

:root {
  /* --- COLORS --- */
  /* Base */
  --paper: #F2F0EB; /* Warm archival white background */
  --ink: #121212;   /* Deep black text */
  --graphite: #5A5A5A; /* Secondary text */
  --white: #FFFFFF; /* Card surface */
  --line: #D1D1D1;  /* Borders */

  /* Accents */
  --signal: #FF3300; /* International Orange - Warnings/Urgent only */
  --focus: #0044FF;  /* Interaction focus */
  --mint: #7EF0A1;   /* Benefits, success, checkmarks */
  --electric-blue: #2D5BFF; /* Primary CTA, interactive accents */

  /* Semantic Mappings */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--graphite);
  --surface: var(--white);
  --stroke: var(--line);
  --accent: var(--electric-blue); /* Primary action color */

  /* Legacy semantic colors for compatibility */
  --success: var(--mint);
  --error: #e74c3c;

  /* --- TYPOGRAPHY --- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* --- SPACING & LAYOUT --- */
  --unit: 4px;
  --container-width: 1200px;
  --section-pad: 120px;
  --section-pad-mobile: 60px;

  /* --- ANIMATION --- */
  --ease-snap: cubic-bezier(0.2, 0, 0.2, 1);
  --radius: 2px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- ACCESSIBILITY --- */

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--signal);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Updated sizes for "Blank Street" impact */
h1 { font-size: clamp(3.5rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1.5rem 0;
  max-width: 65ch;
  color: var(--graphite);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

.headline {
  font-weight: 700;
}

.section-subhead {
  font-size: 1.125rem;
  max-width: 760px;
  color: var(--graphite);
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.grid {
  display: grid;
  gap: 24px;
}

.section {
  padding: var(--section-pad-mobile) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 88px;
}

/* Bento Grid Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
  }

  .col-span-2 { grid-column: span 2; }
  .row-span-2 { grid-row: span 2; }
}

/* Responsive Grid & Spacing */
@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

  .section { padding: var(--section-pad) 0; }

  .mt-64 { margin-top: 64px; }
  .mt-48 { margin-top: 48px; }
  .mt-32 { margin-top: 32px; }
  .pt-32 { padding-top: 32px; }
  .pt-48 { padding-top: 48px; }
  .mb-48 { margin-bottom: 48px; }
  .gap-48 { gap: 48px; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.pt-8 { padding-top: 8px; }
.self-start { align-self: flex-start; }
.block { display: block; width: 100%; }
.opacity-70 { opacity: 0.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.bg-ink { background-color: var(--ink); color: var(--paper); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }

.text-paper { color: var(--paper); }
.text-signal { color: var(--signal); }

.link-underline {
  text-decoration: underline;
  color: var(--ink);
}

.link-underline:hover {
  color: var(--electric-blue);
}

.text-left { text-align: left; }
.text-graphite { color: var(--graphite); }
.mb-32 { margin-bottom: 32px; }
.max-w-xs { max-width: 20rem; }
.cursor-pointer { cursor: pointer; }
.flex { display: flex; }
.gap-4 { gap: 1rem; }

/* Responsive column spans for catalog grid */
.col-span-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .md\:col-span-5 { grid-column: span 5; }
  .md\:col-span-7 { grid-column: span 7; }
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  z-index: 10;
  animation: scan 3s linear infinite;
}

/* --- COMPONENTS --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s var(--ease-snap);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-ghost, .btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover, .btn-outline:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-inverse {
  border-color: var(--paper);
  color: var(--paper);
}

.btn-inverse:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* Accent button - electric blue for variety */
.btn-accent {
  background: var(--electric-blue);
  color: var(--white);
  border-color: var(--electric-blue);
}

.btn-accent:hover {
  background: var(--focus);
  border-color: var(--focus);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(45, 91, 255, 0.2);
}

/* Secondary button style */
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.brand__logo {
  height: 24px;
  width: auto;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 102;
}

.mobile-menu-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.mobile-menu-toggle__icon::before,
.mobile-menu-toggle__icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--ink);
  left: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle__icon::before { top: -8px; }
.mobile-menu-toggle__icon::after { top: 8px; }

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease-snap);
  z-index: 101;
}

.nav-menu.active {
  transform: translateY(0);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

  .nav-menu {
    position: static;
    height: auto;
    background: transparent;
    flex-direction: row;
    transform: none;
    justify-content: flex-end;
    width: auto;
  }

  .nav-links {
    flex-direction: row;
    gap: 32px;
  }

  .nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--electric-blue);
    transition: width 0.2s ease;
  }

  .nav-link:hover::after { width: 100%; }
}

.nav__actions {
  display: flex;
  gap: 12px;
}

/* Hero Section (Split Layout) */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start; /* Align visual with heading */
  }
}

.hero__content {
  text-align: left;
}

.hero__headline {
  margin-bottom: 32px;
}

.hero__subhead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 20px 20px 0 rgba(0,0,0,0.05);
}

.hero__scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://placehold.co/800x600/F2F0EB/121212?text=Original+Art') center/cover;
}

.hero__scanner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://placehold.co/800x600/121212/FFFFFF?text=Enhanced+Print') center/cover;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  opacity: 0.8;
}

.hero__metrics {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  flex-wrap: wrap;
}

.hero-metric {
  text-align: center;
  min-width: 120px;
}

.hero-metric__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}

.hero-metric__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

/* Hero page metrics - centered on mobile, left-aligned on desktop */
.hero__metrics--hero {
  border-top: none;
  margin-top: 64px;
  justify-content: center;
}

.hero__metrics--hero .hero-metric {
  text-align: center;
}

@media (min-width: 768px) {
  .hero__metrics--hero {
    justify-content: flex-start;
  }

  .hero__metrics--hero .hero-metric {
    text-align: left;
  }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease-snap);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
  border-color: var(--ink);
  z-index: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 24px;
}

.card__visual {
  flex-grow: 1;
  background: var(--paper);
  margin: 16px -24px -24px;
  border-top: 1px solid var(--line);
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

/* Sticker Grid (Network) */
.sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.sticker {
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
}

.sticker:nth-child(odd) { --r: -2deg; }
.sticker:nth-child(even) { --r: 3deg; }
.sticker:nth-child(3n) { --r: 1deg; }

.feature-card {
  border: none;
  border-top: none;
  padding: 24px 0 0 0;
  background: transparent;
  position: relative;
}

/* Brand motif divider - N-shaped zigzag */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0px,
    var(--line) 8px,
    transparent 8px,
    transparent 10px,
    var(--line) 10px,
    var(--line) 14px,
    transparent 14px,
    transparent 16px
  );
  opacity: 0.6;
}

.feature-card:hover {
  transform: none;
  box-shadow: none;
}

.feature-card:hover::before {
  background: var(--mint);
  opacity: 0.8;
}

.feature-card h3 { margin: 12px 0; }

.network-card {
  padding: 0 0 0 24px;
  border: none;
  border-left: 2px solid var(--line);
  background: transparent;
}

.network-card:hover,
.network-card.scroll-highlight {
  border-color: var(--electric-blue);
  transform: none;
  box-shadow: none;
}

.network-card h3 {
  color: var(--paper);
  margin: 8px 0 12px;
}

.network-card p {
  color: var(--paper);
  opacity: 0.8;
}

/* Quality Cards (dark bg) - with brand motif divider */
.quality-card {
  padding-bottom: 24px;
  position: relative;
}

.quality-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0px,
    rgba(255, 255, 255, 0.15) 8px,
    transparent 8px,
    transparent 10px,
    rgba(255, 255, 255, 0.15) 10px,
    rgba(255, 255, 255, 0.15) 14px,
    transparent 14px,
    transparent 16px
  );
}

.quality-card:last-child::after {
  display: none;
}

.quality-card__title {
  margin-bottom: 8px;
}

/* Network Section Actions */
.network-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Workflow */
.workflow__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workflow__step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.workflow__step:last-child { border-bottom: none; }

.workflow__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow__content h3 {
  margin: 0 0 8px;
}

.workflow__content p {
  margin: 0;
}

@media (min-width: 768px) {
  .workflow__step { gap: 48px; }
}

/* Workflow (Feature Blocks - Gemini style) */
.workflow-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .workflow-block {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
  }

  .workflow-block:nth-child(even) .workflow-text {
    order: 2;
  }
}

.workflow-text h3 {
  margin: 0 0 16px;
}

.workflow-text p {
  margin: 0;
}

.workflow-visual {
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* Catalog Layout */
.catalog__layout {
  display: grid;
  gap: 48px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .catalog__layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  transition: all 0.2s var(--ease-snap);
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.catalog-img {
  aspect-ratio: 4/3;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.catalog-featured .catalog-img { aspect-ratio: 16/10; }

.catalog-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-artist {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--graphite);
  margin-bottom: 8px;
  display: block;
}

.catalog-desc {
  font-size: 0.875rem;
  margin: 8px 0 16px;
}

.catalog-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalog-details.no-border { border-top: none; }

.catalog-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--graphite);
}

.catalog-card__chips { display: flex; gap: 6px; }

.chip {
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.catalog-price { font-weight: 700; color: var(--ink); }

.catalog__sidebar { display: flex; flex-direction: column; gap: 48px; }
.brandable-block { padding: 24px; justify-content: center; }

/* Catalog Preview (Interactive Component) */
.catalog-preview {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
}

.catalog-header {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.catalog-body {
  padding: 24px;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #eee;
  margin-bottom: 16px;
  position: relative;
}

.catalog-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-size-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.catalog-size-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Check List (for pricing and catalog) */
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--graphite);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

/* Price period (alternate name for .price-per) */
.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--graphite);
}

/* Pricing */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.pricing-toggle__inner {
  display: inline-flex;
  background: var(--line);
  padding: 4px;
  border-radius: var(--radius);
}

.pricing-toggle__inner button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--graphite);
  transition: all 0.2s ease;
}

.pricing-toggle__inner button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.card.pro {
  border-color: var(--ink);
}

.card.pro:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Deactivate Pro highlight when sibling cards are hovered */
.pricing-grid:hover .card.pro:not(:hover) {
  border-color: var(--line);
}

.price-large {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 16px 0;
  color: var(--ink);
}

.price-per { font-size: 1rem; font-weight: 400; color: var(--graphite); }

.pricing-features {
  margin: 24px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
}

.pricing-features li {
  margin-bottom: 8px;
  color: var(--graphite);
}

/* Compare Section */
.compare-table {
  display: block;
  overflow-x: auto;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
  font-weight: 700;
}

.compare-table th.highlight {
  background: rgba(45, 91, 255, 0.05);
  color: var(--electric-blue);
  position: relative;
}

.compare-table th.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--electric-blue);
}

.compare-table td.highlight {
  background: rgba(126, 240, 161, 0.05);
  font-weight: 600;
  color: var(--ink);
}

.compare-table td {
  color: var(--graphite);
}

.compare-table .negative {
  color: var(--error);
}

/* Mobile Compare Accordion */
.compare-mobile {
  display: none;
}

@media (max-width: 899px) {
  .compare-table {
    display: none;
  }

  .compare-mobile {
    display: block;
  }
}

.compare-mobile details {
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--white);
}

.compare-mobile summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
}

.compare-mobile .compare-content {
  padding: 0 16px 16px;
}

.compare-mobile .compare-item {
  padding: 8px;
  margin: 8px 0;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.compare-mobile .compare-item.highlight {
  background: rgba(126, 240, 161, 0.08);
  font-weight: 600;
}

.compare-mobile .compare-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--graphite);
  margin-bottom: 4px;
}

/* FAQ Section */
.faq-category {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 32px 0 16px;
  color: var(--ink);
}

.faq-category:first-child {
  margin-top: 0;
}

.accordion {
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--white);
}

.accordion summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: '+';
  float: right;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--graphite);
}

.accordion[open] summary::before {
  content: '−';
}

.accordion-content {
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: var(--graphite);
}

.accordion-content p {
  margin: 0;
}

/* Footer (Clean Columns) */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
  margin-top: 80px;
  border-bottom: none;
}

.footer .brand {
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

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

.footer-col h4 {
  color: var(--paper);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #999;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li { margin: 8px 0; }

.footer-list a {
  font-size: 0.875rem;
  color: var(--paper);
  opacity: 0.8;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-list a:hover {
  opacity: 1;
  color: var(--mint);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: #666;
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-legal { display: flex; gap: 20px; }

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
  color: var(--paper);
}

/* Motifs */
.reg-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 0;
}

.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: var(--ink);
}

.reg-mark::before { top: 9px; left: 0; width: 20px; height: 1px; }
.reg-mark::after { top: 0; left: 9px; width: 1px; height: 20px; }

.tl { top: 24px; left: 24px; }
.tr { top: 24px; right: 24px; }
.bl { bottom: 24px; left: 24px; }
.br { bottom: 24px; right: 24px; }

.nodes-bg {
  position: relative;
  overflow: hidden;
}

.nodes-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at center, var(--line) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px, 120px 100%;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.color-bar {
  display: flex;
  height: 6px;
  width: 80px;
}

.cb { flex: 1; }
.c { background: cyan; }
.m { background: magenta; }
.y { background: yellow; }
.k { background: black; }

/* Notice Callout */
.notice-callout {
  background: var(--mint);
  padding: 24px 0;
  text-align: center;
}

.notice-callout p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.notice-callout a {
  color: var(--ink);
  font-weight: 600;
}

.notice-callout a:hover {
  color: var(--electric-blue);
}

/* Intro text for sections */
.section-intro {
  max-width: 760px;
  color: var(--graphite);
  margin-bottom: 32px;
}

/* Grid responsiveness for footer */
@media (max-width: 767px) {
  .footer .grid-cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer .grid-cols-4 > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer .grid-cols-4 > div:first-child {
    grid-column: span 1;
  }
}

/* --- SHARED FORM COMPONENTS --- */

/* Form layouts */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* Form groups */
.form-group,
.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form__group:last-of-type {
  margin-bottom: 32px;
}

.form-group label,
.form__group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea,
.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
}

.form-group textarea,
.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form helper text */
.helper-text,
.form__helper {
  font-size: 13px;
  color: var(--muted);
  margin-top: -4px;
}

.optional,
.form__optional {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Checkbox groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

/* Form save status */
.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-left: 12px;
}

.save-status.success {
  color: var(--mint);
}

.save-status.error {
  color: var(--error);
}

/* --- TIMELINE COMPONENT --- */

.timeline {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -16px;
  width: 2px;
  background: var(--stroke);
}

.timeline__item--done::after {
  background: var(--accent);
}

.timeline__item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  background: var(--surface);
  border: 2px solid var(--stroke);
  color: var(--muted);
  z-index: 1;
}

.timeline__item--done .icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.timeline__item .content {
  flex: 1;
  padding-top: 4px;
}

.timeline__item .content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
}

.timeline__item .content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.timeline__item .content p.highlight {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .timeline__item {
    gap: 12px;
  }

  .timeline__item .icon {
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .timeline__item .content h4 {
    font-size: 15px;
  }

  .timeline__item .content p {
    font-size: 13px;
  }
}

/* --- POSITION/STATUS COMPONENTS --- */

.position {
  margin: 24px auto;
  padding: 20px;
  background: rgba(126, 240, 161, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(126, 240, 161, 0.3);
  border-radius: 12px;
  max-width: 240px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(126, 240, 161, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 240, 161, 0.2);
}

.position__number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .position {
    max-width: none;
    width: 100%;
    margin: 20px 0;
    padding: 16px;
  }

  .position__number {
    font-size: 36px;
  }
}

/* Status grid (account page) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.status-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-card.highlight {
  background: rgba(126, 240, 161, 0.1);
  border-color: var(--mint);
}

.status-card .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* --- UPLOAD COMPONENT --- */

.upload {
  margin: 32px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.upload h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-align: center;
}

.upload__dropzone {
  border: 2px dashed var(--stroke);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--bg);
}

.upload__dropzone:hover {
  border-color: var(--accent);
  background: rgba(45, 91, 255, 0.05);
}

.upload__dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(45, 91, 255, 0.1);
  transform: scale(1.02);
}

.upload-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.upload-specs {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .upload {
    margin: 24px 0;
    padding: 20px 16px;
  }

  .upload h3 {
    font-size: 18px;
  }

  .upload-icon {
    width: 36px;
    height: 36px;
  }

  .upload-text {
    font-size: 14px;
  }

  .upload-specs {
    font-size: 12px;
  }
}

/* --- REFERRAL COMPONENT --- */

.referral-cta {
  margin: 32px auto 0;
  padding: 24px;
  background: rgba(126, 240, 161, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(126, 240, 161, 0.3);
  border-radius: 12px;
  text-align: center;
  max-width: 520px;
  box-shadow: 0 4px 16px rgba(126, 240, 161, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.referral-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 240, 161, 0.15);
}

.referral-cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.referral-cta > p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.referral__tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tier {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tier--featured {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 600px) {
  .referral-cta {
    max-width: none;
    width: 100%;
    margin: 24px 0 0;
    padding: 20px 16px;
  }

  .referral-cta h3 {
    font-size: 20px;
  }

  .tier {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* --- SUCCESS MESSAGE --- */

.success-message {
  display: none;
  text-align: center;
  padding: 32px;
}

.success-message.active {
  display: block;
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.success-message p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* --- UTILITY TEXT CLASSES --- */

.text--small {
  font-size: 14px;
}

.text--tiny,
.tiny {
  font-size: 13px;
}

.text--muted,
.muted {
  color: var(--muted);
}

/* --- UTILITY CLASSES --- */

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

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

/* Spacing Utilities */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.ml-4 { margin-left: 4px; }
.ml-8 { margin-left: 8px; }
.ml-12 { margin-left: 12px; }

.mr-8 { margin-right: 8px; }

.pt-16 { padding-top: 16px; }
.pt-20 { padding-top: 20px; }

.pb-16 { padding-bottom: 16px; }

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Image Utilities */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography Utilities */
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }

/* Card Variants */
.card--highlight {
  background: rgba(45, 91, 255, 0.05);
  border-left: 4px solid var(--electric-blue);
  padding: 1.5rem;
}

.card--cta {
  background: linear-gradient(135deg, rgba(45, 91, 255, 0.08), rgba(126, 240, 161, 0.08));
  padding: 2.5rem;
}

/* Color Utilities */
.bg-mint { background: var(--mint); }
.bg-electric-blue { background: var(--electric-blue); }
.bg-magenta { background: var(--magenta); }

/* Text Utilities */
.underline {
  text-decoration: underline;
}

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

/* Width Utilities */
.w-full {
  width: 100%;
}

/* On desktop, buttons should not stretch full width */
@media (min-width: 800px) {
  .btn.w-full {
    width: auto;
    min-width: 280px;
  }
}

/* List Utilities */
.list-none {
  list-style: none;
  padding-left: 0;
}

/* Registration Marks (used across multiple pages) */
.reg-mark {
  position: absolute;
  width: 16px;
  height: 16px;
}

.reg-mark--tl {
  top: 16px;
  left: 16px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.reg-mark--tr {
  top: 16px;
  right: 16px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.reg-mark--bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.reg-mark--br {
  bottom: 16px;
  right: 16px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

/* Animation Delay Utilities (for staggered fade-up animations) */
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- FORM VALIDATION & MESSAGES --- */

/* Inline field error message */
.field-error {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  margin-bottom: 0;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input error state */
.input-error,
input.error,
select.error,
textarea.error {
  border-color: var(--error) !important;
  background-color: rgba(255, 107, 107, 0.05);
}

.input-error:focus,
input.error:focus,
select.error:focus,
textarea.error:focus {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Notification/Alert Messages */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
}

.alert--error {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--error);
}

.alert--success {
  background-color: rgba(126, 240, 161, 0.1);
  border: 1px solid rgba(126, 240, 161, 0.3);
  color: var(--mint);
}

.alert--warning {
  background-color: rgba(255, 211, 106, 0.1);
  border: 1px solid rgba(255, 211, 106, 0.3);
  color: #d4a832;
}

.alert--info {
  background-color: rgba(82, 88, 102, 0.08);
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.alert__icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert__message {
  margin: 0;
}

.alert__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.2s;
}

.alert__close:hover {
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner--lg {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

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

/* Button loading state */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: wait;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--line) 50%,
    var(--bg) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmark-circle {
  0% {
    stroke-dashoffset: 166;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--mint);
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 var(--mint);
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--mint);
  fill: none;
  animation: checkmark-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes fill {
  100% {
    box-shadow: inset 0 0 0 30px var(--mint);
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Indeterminate progress bar */
.progress-bar--indeterminate .progress-bar__fill {
  width: 30% !important;
  animation: indeterminate 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

@keyframes indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}
