/* =============================================
   CSS VARIABLES — Design tokens from landing page
   ============================================= */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-subtle: #f5f7ff;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --white: #ffffff;

  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-900: #312e81;

  /* Legacy compat */
  --color-bg: #f9f7f6;
  --color-bg-footer: #f2efed;
  --color-primary: #127aca;
  --color-black: hsl(0, 0%, 0%);
  --color-gray2: hsl(0, 0%, 77%);
  --color-gray: hsl(0, 0%, 92%);
  --color-white: hsl(0, 0%, 100%);
  --color-text: hsl(0, 0%, 18%);
  --color-text-bold: hsl(0, 0%, 21%);
  --color-text-light: hsl(0, 0%, 40%);
  --color-link: #378ef0;
  --color-link-hover: #363636;
}

/* =============================================
   RESET & BASE
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--white) 100%);
  color: var(--slate-900);
}

/* =============================================
   NAV HEADER
   ============================================= */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.nav-brand:hover {
  color: var(--slate-900);
}
.nav-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* =============================================
   LAYOUT
   ============================================= */
#root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
}

main {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-hover);
}

strong, b {
  color: var(--slate-800);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes hero-glow {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.8; }
}
@keyframes hero-glow-secondary {
  0% { transform: scale(1) translateY(0); opacity: 0.8; }
  100% { transform: scale(1.15) translateY(-5%); opacity: 1; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse-arrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(4px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =============================================
   SECTIONS — Base
   ============================================= */
section {
  padding: 6rem 1.5rem;
}
section.bg-white {
  background: var(--white);
}
section.bg-slate {
  background: rgba(248, 250, 252, 0.5);
}
section.bg-dark {
  background: var(--slate-900);
  color: var(--white);
}
section.bordered {
  border-top: 1px solid var(--slate-200);
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 650px) {
  .section-container { padding: 0 0.5rem; }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 3rem; }
}

/* Dark section header overrides */
.bg-dark .section-header h2 { color: var(--white); }
.bg-dark .section-header p { color: var(--slate-300); }

/* Section Badge */
.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.bg-dark .section-badge {
  color: var(--indigo-300);
  background: rgba(49, 46, 129, 0.5);
  border-color: rgba(67, 56, 202, 0.5);
}
.section-badge.orange {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}

/* =============================================
   BETA NOTICE BANNER
   ============================================= */
.beta-notice {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}
.beta-notice strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}
.beta-notice a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}
.beta-notice a:hover {
  opacity: 0.9;
  color: white;
}

/* =============================================
   HERO BADGE
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.badge:hover {
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.2), 0 4px 10px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 9999px;
  margin-right: 0.5rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1400px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(236, 72, 153, 0.08) 50%, transparent 70%);
  animation: hero-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.hero-wrapper::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 50%;
  max-width: 600px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
  animation: hero-glow-secondary 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

header {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 7rem;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
  header h1 { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  header h1 { font-size: 4.5rem; }
}

header h1 .highlight {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #ec4899 50%, #f59e0b 75%, #6366f1 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  display: inline-block;
  padding: 0.1em 0.15em;
  margin: -0.1em -0.15em;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

header .subtitle {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  font-weight: 400;
}
header .subtitle strong {
  color: var(--slate-800);
  font-weight: 700;
}

/* =============================================
   SERVICE CARDS — Build Service Selection
   ============================================= */
#service-cards {
  display: flex;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 260px;
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.service-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.service-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.badge-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  color: var(--slate-600);
  white-space: nowrap;
}
.badge-label.blue {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.service-card p {
  color: var(--slate-600);
  line-height: 1.6;
  font-size: 0.9375rem;
  flex: 1;
}

.btn-service {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--slate-200);
  background: transparent;
  color: var(--slate-900);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-service:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}
.btn-service.blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-service.blue:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
}

@media (max-width: 600px) {
  #service-cards { flex-direction: column; }
  .service-card { min-width: 100%; }
}

/* =============================================
   HOW IT WORKS — Steps
   ============================================= */
.how-it-works-section .section-header h2,
.how-it-works-section .section-header p {
  color: var(--white);
}

.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    gap: 2rem;
  }
}

.steps-container .step {
  flex: 1;
  text-align: center;
  max-width: 18rem;
}
.steps-container .step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.steps-container .step p {
  color: var(--slate-400);
  line-height: 1.6;
  font-size: 0.9rem;
}

.step-icon {
  width: 7rem;
  height: 7rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 2px solid rgba(79, 70, 229, 0.5);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}
.step-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(79, 70, 229, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.5), 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.step-icon:hover::before {
  opacity: 1;
}
.step-icon img {
  width: 5rem;
  height: 5rem;
  position: relative;
  z-index: 1;
}

/* Store icons variant */
.step-icon.store-icons {
  display: flex;
  gap: 0.75rem;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
}
.step-icon.store-icons::before { display: none; }
.step-icon.store-icons:hover {
  transform: none;
  box-shadow: none;
}
.store-square {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store-square:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.apple-square {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 50%, #0d47a1 100%);
}
.apple-square img {
  height: 2rem;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.android-square {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 50%, #1b5e20 100%);
}
.android-square img {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Arrows between steps */
.arrow {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .arrow { display: flex; }
}
.arrow img {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.6;
  animation: pulse-arrow 2s ease-in-out infinite;
  filter: brightness(0) saturate(100%) invert(39%) sepia(81%) saturate(1885%) hue-rotate(225deg) brightness(98%) contrast(95%);
}

/* =============================================
   ANNOUNCEMENT SECTION
   ============================================= */
.announcement-box {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.announcement-box .section-header {
  margin-bottom: 2rem;
}
.announcement-box .section-header h2 {
  font-size: 1.75rem;
}

.announcement-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.announcement-content p {
  color: var(--slate-600);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.announcement-content strong {
  color: var(--slate-800);
}

/* CTA Buttons inside announcement */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--white) !important;
}
.btn-cta.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  color: var(--white) !important;
}
.btn-cta.orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  color: var(--white) !important;
}
.btn-cta img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
  .announcement-box {
    padding: 2rem 1.25rem;
  }
  .announcement-box .section-header h2 {
    font-size: 1.5rem;
  }
}

/* =============================================
   ABOUT / WHY SECTION — Dark theme narrative
   ============================================= */
.why-section {
  padding: 6rem 1.5rem;
}
.why-section .section-container {
  max-width: 900px;
  margin: 0 auto;
}
.why-content {
  text-align: center;
}
.why-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.why-content h2 .highlight {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-story {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: left;
}
.why-story p {
  color: var(--slate-300);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.why-story strong {
  color: var(--slate-100);
}
.why-story a {
  color: var(--indigo-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.why-story a:hover {
  color: var(--indigo-300);
}

/* =============================================
   EARLY BIRD CTA
   ============================================= */
.early-bird-cta {
  margin-top: 2.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(249, 115, 22, 0.05));
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.early-bird-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 60%);
  pointer-events: none;
}
.early-bird-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.early-bird-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(249, 115, 22, 0.6); }
}
.early-bird-badge img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.early-bird-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.early-bird-content p {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.early-bird-content p strong {
  color: #f97316;
  font-weight: 700;
  font-size: 1.15rem;
}
.early-bird-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: #ea580c;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
a.early-bird-btn {
  color: #ea580c;
}
.early-bird-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}
a.early-bird-btn:hover {
  color: white;
}
.early-bird-btn:hover img {
  filter: brightness(0) invert(1);
}
.early-bird-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(47%) sepia(98%) saturate(1653%) hue-rotate(360deg) brightness(101%) contrast(97%);
  transition: filter 0.2s ease;
}
@media (max-width: 640px) {
  .early-bird-cta { padding: 2rem 1.5rem; }
  .early-bird-content h3 { font-size: 1.25rem; }
  .early-bird-content p { font-size: 0.95rem; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.footer-container {
  max-width: 80rem;
  margin: 0 auto;
}
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.footer-brand {
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand { text-align: left; }
}
.footer-brand .brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
.footer-brand .brand .highlight {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  background: none;
}
.footer-brand .brand-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-top: 0.5rem;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--slate-50);
  border-radius: 9999px;
}
.footer-author-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--slate-200);
  object-fit: cover;
}
.footer-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.footer-author-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-800);
}
.footer-author-name a {
  color: var(--primary);
  text-decoration: none;
}
.footer-author-name a:hover {
  text-decoration: underline;
}
.footer-author-title {
  font-size: 0.6875rem;
  color: var(--slate-500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-links a {
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-sponsor {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-sponsor img {
  height: 20px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* =============================================
   MODAL — Capacitor Warning
   ============================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--slate-200);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--slate-900);
}
.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--slate-900);
}
.modal-body {
  padding: 2rem;
}
.modal-body p {
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.modal-body p:first-child {
  margin-top: 0;
}
.modal-features {
  list-style: none;
  padding: 1rem 0;
  margin: 1.5rem 0;
}
.modal-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--slate-600);
}
.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}
.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--slate-200);
  justify-content: flex-end;
}
.btn-modal {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}
.btn-modal.primary {
  background: var(--primary);
  color: var(--white);
}
.btn-modal.primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}
.btn-modal.secondary {
  background: var(--slate-100);
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
}
.btn-modal.secondary:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

/* =============================================
   LEGACY COMPAT — Styles used by other pages
   ============================================= */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0px 16px;
  position: relative;
}

p, li, span {
  font-size: 16px;
}
ul {
  padding-left: 32px;
}
li {
  line-height: 1.6;
}

input[type='text'],
input[type='file'],
input[type='email'],
select {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px var(--color-gray2) solid;
  border-radius: 5px;
  min-height: 32px;
  width: 100%;
  margin: 8px 0;
  background: var(--color-white);
}

/* Ripple effect */
.ripple {
  width: 2px;
  height: 2px;
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  animation: rippleEffect 0.5s ease-in-out;
}
@keyframes rippleEffect {
  0% { transform: scale(1); }
  100% { opacity: 0; transform: scale(var(--scale)); }
}

button,
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  background-color: var(--color-gray);
  border: 1px var(--color-gray2) solid;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.2;
  color: black;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}
button:hover,
.btn:hover {
  opacity: 0.7;
}
.btn.blue {
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 1px var(--color-primary) solid;
}
.btn.orange {
  color: var(--color-white);
  background-color: #e67e22;
  border: 1px #d35400 solid;
}
.btn.round {
  border-radius: 16px;
}
.btn:disabled {
  color: #1010104d;
  cursor: not-allowed;
}
.btn.blue.btn:disabled {
  opacity: 0.5;
  color: var(--color-white);
}
.btn.download {
  padding: 4px 8px;
}

input {
  background-color: var(--color-white);
}

div[id^='upload-area-'] {
  display: inline-block;
  padding: 16px;
  border: 2px #d1d1d1 dashed;
  width: 180px;
  text-align: center;
  background-color: var(--color-white);
}
div[id^='upload-area-'].is-dragover {
  border-color: gray;
  background-color: whitesmoke;
}

pre {
  padding: 8px;
  background: #eaeaea;
  color: #555;
  border-radius: 4px;
  overflow: auto;
  border: 1px #c4c4c4 solid;
  max-height: max(50vh, 312px);
}
code {
  font-family: monospace;
}

.checkbox {
  font-family: monospace;
  position: relative;
  top: -2px;
}
.flex {
  display: flex;
}
.margin-0 { margin: 0px; }
.margin-right-8 { margin-right: 8px; }
.margin-top-8 { margin-top: 8px; }
.margin-top-48 { margin-top: 48px; }
.margin-top-64 { margin-top: 64px; }
.margin-bottom-8 { margin-bottom: 8px; }
.margin-bottom-48 { margin-bottom: 48px; }
.margin-bottom-64 { margin-bottom: 64px; }
.has-text-small { font-size: small; }

#upload-area {
  display: flex;
  justify-content: space-evenly;
  gap: 16px;
}

#qrcode > .popup-box > div {
  background-color: var(--color-white);
  text-align: center;
  margin-bottom: 16px;
}

.popup {
  width: 100vw;
  height: 100vh;
  background-color: #00000080;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}
.popup-box {
  position: fixed;
  background: gainsboro;
  padding: 16px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  border: 1px #a7a7a7 solid;
  z-index: 10;
  width: min(320px, 90%);
  box-sizing: content-box;
}
.popup-box h3 { margin-top: 0px; }

.overflow-auto { overflow: auto; }
.hidden { display: none !important; }

div[id^='upload-area-'] > p {
  margin: 0px;
  margin-top: 8px;
  font-size: 14px;
}

#create-credentials-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
#create-credentials-form > div {
  flex-basis: calc(50% - 12px);
}
@media only screen and (max-width: 600px) {
  #create-credentials-form > div { flex-basis: 100%; }
}

.offline-message {
  font-size: large;
  text-align: center;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.legal-table tr {
  border-bottom: 1px solid #ccc;
  text-align: left;
}
.legal-table th,
.legal-table td {
  padding: 8px;
}
