/* ==========================================================================
   Lupa landing page styles — ported from Jon's coming-soon design.
   Palette + reset + the coming-soon component styles. Dark glassmorphism.
   ========================================================================== */

:root {
  --bg-dark: #09090b;
  --panel-dark: #18181b;
  --text-primary: #ffffff;
  --text-muted: #a1a1aa;

  --silver-gradient: linear-gradient(160deg, #27272a 0%, #18181b 100%);
  --silver-highlight: rgba(255, 255, 255, 0.06);

  /* Gold accent */
  --gold-mid: #eab308;
  --gold-light: #fef08a;
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-mid) 100%);

  /* Theme primary (Tech blue-slate) */
  --theme-primary: #395065;
  --theme-primary-light: #4c667e;

  /* Background gradients */
  --bg-gradient-center: var(--theme-primary);
  --bg-gradient-edge: #09090b;

  --flat-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --crisp-border: 1px solid rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }  /* the hidden attribute must win over component display rules */

/* ----- Coming-soon / landing layout ----- */
body.coming-soon-body {
  padding: 40px 20px;
  background-color: var(--bg-gradient-edge);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient-center), var(--bg-gradient-edge) 80%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.coming-soon-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.glass-plate {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.coming-soon-logo {
  width: 240px; height: 310px; margin-bottom: 15px;
  display: flex; align-items: center; justify-content: center;
}
.coming-soon-logo img { width: 100%; height: auto; object-fit: contain; }
.coming-soon-logo .logo-dark { mix-blend-mode: screen; opacity: 0.65; }
.coming-soon-logo .logo-light { display: none; opacity: 0.85; }

.coming-soon-title {
  font-size: 4.5rem; line-height: 1.1; margin-bottom: 10px;
  font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.coming-soon-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coming-soon-subtitle {
  font-size: 1.35rem; color: var(--text-muted); margin-bottom: 20px;
  line-height: 1.6; max-width: 800px; font-weight: 400;
}
.coming-soon-subtitle span.accent { color: var(--text-primary); font-weight: 600; }

.action-buttons {
  display: flex; gap: 20px; margin-top: 10px; margin-bottom: 30px;
  width: 100%; justify-content: center;
}

.btn-large {
  padding: 18px 36px; font-size: 1.15rem; border-radius: 12px;
  font-weight: 800; display: flex; align-items: center; gap: 12px;
  transition: all 0.3s ease; text-decoration: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; border: none;
}

.btn-primary {
  background: var(--gold-mid); color: #000;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3); border: none;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.4); background: var(--gold-light);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  transform: translateY(-4px); background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%; margin-bottom: 30px;
}
.gallery-item {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.gallery-item.placeholder-1 { background: linear-gradient(135deg, #395065, #1e293b); }
.gallery-item.placeholder-2 { background: linear-gradient(135deg, #4c667e, #334155); }
.gallery-item.placeholder-3 { background: linear-gradient(135deg, #eab308, #b45309); }

.features-callouts {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 20px; width: 100%; margin-bottom: 40px;
}
.callout-card {
  background: rgba(24, 24, 27, 0.6); border-radius: 16px; padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; transition: all 0.3s ease; position: relative; overflow: hidden; cursor: default;
}
.callout-card:hover {
  transform: translateY(-5px); border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 15px 40px rgba(234, 179, 8, 0.15);
}
.callout-card::before {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg); transition: left 0s;
}
.callout-card:hover::before { left: 200%; transition: left 0.7s ease-in-out; }
.callout-card i {
  font-size: 2rem; color: var(--gold-mid); text-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
  margin-bottom: 8px; transition: transform 0.3s ease;
}
.callout-card:hover i { transform: scale(1.1); }
.callout-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text-primary); }

.why-switch-section {
  width: 100%; margin-top: 20px; padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.why-switch-section[id] { scroll-margin-top: 30px; }
.why-switch-title {
  font-size: 3.5rem; font-weight: 900; margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -1.5px;
}
.why-switch-subtitle { font-size: 1.35rem; color: var(--text-muted); max-width: 800px; line-height: 1.6; }
.why-switch-subtitle span.accent { color: var(--text-primary); font-weight: 600; }

.content-boxes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
  width: 100%; margin-top: 40px; text-align: left;
}
.content-box {
  background: rgba(24, 24, 27, 0.4); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 30px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.content-box:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.content-box h3 { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin-top: 0; margin-bottom: 12px; }
.content-box p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.content-box-image {
  width: 100%; height: 250px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center; margin-top: auto;
}

.full-width-placeholder {
  width: 100%; height: 400px; margin-top: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-radius: 20px; border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); backdrop-filter: blur(10px);
}

.image-caption-section { margin-top: 40px; text-align: center; }
.image-caption-section h3 { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; margin-top: 0; letter-spacing: -0.5px; }
.image-caption-section p { font-size: 1.25rem; color: var(--text-muted); line-height: 1.6; max-width: 800px; margin: 0 auto; }

.stats-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: 50px; }
.stat-card {
  background: rgba(24, 24, 27, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 30px 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--gold-mid); box-shadow: 0 15px 40px rgba(234, 179, 8, 0.15); }
.stat-card i { font-size: 2.5rem; color: var(--gold-mid); margin-bottom: 15px; text-shadow: 0 0 20px rgba(234, 179, 8, 0.4); }
.icon-stack-custom { position: relative; display: inline-block; width: 3rem; height: 3.5rem; margin-bottom: 15px; }
.icon-stack-custom .fa-users { position: absolute; font-size: 2.5rem; color: var(--gold-mid); left: 50%; bottom: 0; transform: translateX(-50%); margin-bottom: 0; text-shadow: 0 0 20px rgba(234, 179, 8, 0.4); }
.icon-stack-custom .fa-infinity { position: absolute; font-size: 1.2rem; color: var(--gold-mid); left: 50%; top: -2px; transform: translateX(-50%); text-shadow: 0 0 15px rgba(234, 179, 8, 0.4); margin-bottom: 0; }
.stat-card h4 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.4; }

.email-signup-form { display: flex; gap: 15px; align-items: center; justify-content: center; margin-bottom: 0; width: 100%; max-width: 600px; }
.email-input {
  flex: 1; padding: 18px 24px; font-size: 1.15rem; font-family: 'Outfit', sans-serif;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px; color: var(--text-primary); outline: none;
  transition: all 0.3s ease; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.email-input:focus { border-color: var(--gold-mid); box-shadow: 0 0 15px rgba(234, 179, 8, 0.2), inset 0 2px 10px rgba(0,0,0,0.5); background: rgba(0, 0, 0, 0.6); }
.email-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.waitlist-success {
  margin-top: 28px; padding: 20px 28px; border-radius: 12px;
  background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.4);
  color: var(--text-primary); font-size: 1.15rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
}
.waitlist-success i { color: var(--gold-mid); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.fine-print { margin-top: 25px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); max-width: 600px; line-height: 1.5; text-align: center; }
.site-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.3); width: 100%; }

.hero-graphic { width: 100%; margin-top: 20px; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255, 255, 255, 0.1); background: #18181b; }
.hero-graphic img { width: 100%; height: auto; display: block; }
.hero-graphic::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(9, 9, 11, 0.8) 100%); pointer-events: none; }

/* Fixed glow orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: 0.3; pointer-events: none; }
.orb-1 { background: var(--gold-mid); width: 500px; height: 500px; top: -100px; left: -100px; }
.orb-2 { background: var(--theme-primary); width: 600px; height: 600px; bottom: -100px; right: -100px; }

/* ==========================================================================
   Theme toggle + light theme (dark is the default; user opts into light)
   ========================================================================== */
.theme-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary); cursor: pointer; font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.theme-toggle:hover {
  color: var(--gold-mid); border-color: rgba(234, 179, 8, 0.5);
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(234, 179, 8, 0.18);
}
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: inline; }

/* Smooth surface transitions when switching themes */
body.coming-soon-body, .glass-plate, .callout-card, .content-box, .stat-card,
.email-input, .cta-section, .btn-secondary, .coming-soon-logo img {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* ----- Light theme ----- */
[data-theme="light"] {
  --bg-gradient-center: rgba(57, 80, 101, 0.10);
  --bg-gradient-edge: #eef0f3;
  --bg-dark: #eef0f3;
  --text-primary: #18181b;
  --text-muted: #52525b;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.7); border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); color: var(--text-primary);
}
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: inline; }

[data-theme="light"] .coming-soon-logo .logo-dark { display: none; }
[data-theme="light"] .coming-soon-logo .logo-light { display: block; }

[data-theme="light"] .glass-plate {
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .coming-soon-title,
[data-theme="light"] .why-switch-title {
  background: linear-gradient(180deg, #18181b 0%, #52525b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}

[data-theme="light"] .coming-soon-subtitle,
[data-theme="light"] .why-switch-subtitle,
[data-theme="light"] .content-box p,
[data-theme="light"] .image-caption-section p { color: var(--text-muted); }
[data-theme="light"] .coming-soon-subtitle span.accent,
[data-theme="light"] .why-switch-subtitle span.accent { color: var(--text-primary); }

[data-theme="light"] .callout-card,
[data-theme="light"] .content-box,
[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .callout-card h3,
[data-theme="light"] .content-box h3,
[data-theme="light"] .stat-card h4,
[data-theme="light"] .image-caption-section h3 { color: var(--text-primary); }
[data-theme="light"] .callout-card:hover { border-color: rgba(234, 179, 8, 0.6); box-shadow: 0 15px 40px rgba(234, 179, 8, 0.2); }
[data-theme="light"] .content-box:hover { border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .stat-card:hover { border-color: var(--gold-mid); }
[data-theme="light"] .callout-card::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent); }

[data-theme="light"] .content-box-image,
[data-theme="light"] .full-width-placeholder {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
  border: 1px dashed rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .content-box-image i,
[data-theme="light"] .full-width-placeholder i { color: rgba(0, 0, 0, 0.25) !important; }

[data-theme="light"] .why-switch-section { border-top-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .site-footer { border-top-color: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .fine-print { color: rgba(0, 0, 0, 0.45); }

[data-theme="light"] .btn-secondary { background: rgba(0, 0, 0, 0.04); color: var(--text-primary); border: 1px solid rgba(0, 0, 0, 0.12); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0, 0, 0, 0.07); border-color: rgba(0, 0, 0, 0.2); }

[data-theme="light"] .email-input {
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-primary); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .email-input::placeholder { color: rgba(0, 0, 0, 0.35); }
[data-theme="light"] .email-input:focus { background: #fff; border-color: var(--gold-mid); box-shadow: 0 0 12px rgba(234, 179, 8, 0.2), inset 0 2px 6px rgba(0, 0, 0, 0.04); }

[data-theme="light"] .cta-section {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(234, 179, 8, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .waitlist-success { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.5); color: var(--text-primary); }

[data-theme="light"] .orb { opacity: 0.16; }

/* ----- Responsive ----- */
@media (max-width: 900px) { .features-callouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-callouts { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .stats-callouts { grid-template-columns: 1fr; }
  .full-width-placeholder { height: 250px; }
  .content-boxes-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-switch-title { font-size: 2.5rem; }
  .action-buttons { flex-direction: column; align-items: center; }
  .action-buttons .btn-large { width: 100%; max-width: 400px; justify-content: center; }
  .email-signup-form { flex-direction: column; }
  .email-input { width: 100%; box-sizing: border-box; text-align: center; }
  .email-signup-form .btn-large { width: 100%; justify-content: center; }
  .coming-soon-title { font-size: 3rem; }
  .coming-soon-subtitle { font-size: 1.1rem; }
  .coming-soon-container { padding: 40px 20px; }
}

/* ==========================================================================
   Feature-card hover animations (ported from Jon's latest design).
   At rest every animation is disabled, so the cards show a clean settled
   frame (matching Jon's mockup); they only play while a card is hovered.
   Uses any-hover (true if ANY pointer can hover, e.g. a mouse on a
   touchscreen laptop) rather than hover, which is false on hybrid devices
   and would otherwise let the animations loop forever. Pure-touch phones
   with no mouse fall through and loop, which is fine.
   ========================================================================== */
.route-anim-container {
  width: 100%; height: 60px; margin-top: 15px;
  position: relative; opacity: 0.7; transition: opacity 0.3s ease;
}
.callout-card:hover .route-anim-container { opacity: 1; }

@media (any-hover: hover) {
  .route-anim-container * { animation-name: none !important; }
  .callout-card:hover .route-anim-container .anim-route-line { animation-name: drawRouteLine !important; }
  .callout-card:hover .route-anim-container .anim-pin { animation-name: dropRoutePin !important; }
  .callout-card:hover .route-anim-container .anim-smart-block { animation-name: scanAndSnap !important; }
  .callout-card:hover .route-anim-container .anim-shift-block { animation-name: shiftRight !important; }
  .callout-card:hover .route-anim-container .anim-invoice-doc { animation-name: slideInvoice !important; }
  .callout-card:hover .route-anim-container .anim-invoice-doc rect:first-child { animation-name: flashInvoice !important; }
  .callout-card:hover .route-anim-container .anim-invoice-stamp { animation-name: stampInvoice !important; }
  .callout-card:hover .route-anim-container .anim-invoice-check { animation-name: drawCheck !important; }
  .callout-card:hover .route-anim-container .anim-msg-left { animation-name: flyMsgLeft !important; }
  .callout-card:hover .route-anim-container .anim-msg-right { animation-name: flyMsgRight !important; }
  .callout-card:hover .route-anim-container .anim-unified-inbox { animation-name: pulseInbox !important; }
  .callout-card:hover .route-anim-container .anim-skip-solid { animation-name: fadeOutSolid !important; }
  .callout-card:hover .route-anim-container .anim-skip-check { animation-name: fadeOutCheck !important; }
  .callout-card:hover .route-anim-container .anim-skip-dashed { animation-name: fadeInDashed !important; }
  .callout-card:hover .route-anim-container .anim-skip-plane { animation-name: flyPlaneUp !important; }
  .callout-card:hover .route-anim-container .anim-invoice-line2 { animation-name: fadeOutLine !important; }
  .callout-card:hover .route-anim-container .anim-invoice-price2 { animation-name: fadeOutPrice !important; }
  .callout-card:hover .route-anim-container .anim-invoice-strike { animation-name: drawStrike !important; }
  .callout-card:hover .route-anim-container .anim-invoice-total { animation-name: shrinkTotal !important; }
  .callout-card:hover .route-anim-container .anim-role-tag1 { animation-name: slideTag1 !important; }
  .callout-card:hover .route-anim-container .anim-role-tag2 { animation-name: slideTag2 !important; }
  .callout-card:hover .route-anim-container .anim-role-tag3 { animation-name: slideTag3 !important; }
  .callout-card:hover .route-anim-container .anim-role-avatar1 { animation-name: fadeAvatar1 !important; }
  .callout-card:hover .route-anim-container .anim-role-avatar2 { animation-name: fadeAvatar2 !important; }
  .callout-card:hover .route-anim-container .anim-role-avatar3 { animation-name: fadeAvatar3 !important; }
  .callout-card:hover .route-anim-container .anim-mobile-swipe { animation-name: swipeItem !important; }
  .callout-card:hover .route-anim-container .anim-mobile-success { animation-name: fadeSuccess !important; }
  .callout-card:hover .route-anim-container .anim-mobile-item2 { animation-name: shiftListUp !important; }
  .callout-card:hover .route-anim-container .anim-mobile-item3 { animation-name: shiftListUp !important; }
  .callout-card:hover .route-anim-container .anim-mobile-item4 { animation-name: shiftListUp !important; }
  .callout-card:hover .route-anim-container .anim-mobile-touch { animation-name: touchSwipe !important; }
  .callout-card:hover .route-anim-container .anim-db-light { animation-name: pulseLight !important; }
  .callout-card:hover .route-anim-container .anim-data-flow { animation-name: flowData !important; }
  .callout-card:hover .route-anim-container .anim-doc-line1 { animation-name: drawDocLine1 !important; }
  .callout-card:hover .route-anim-container .anim-doc-line2 { animation-name: drawDocLine2 !important; }
  .callout-card:hover .route-anim-container .anim-doc-line3 { animation-name: drawDocLine3 !important; }
  .callout-card:hover .route-anim-container .anim-download-arrow { animation-name: dropArrow !important; }
  .callout-card:hover .route-anim-container .anim-owner-person { animation-name: empowerOwner !important; }
}

.anim-route-line { stroke-dasharray: 250; stroke-dashoffset: 0; animation: drawRouteLine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-pin { opacity: 1; animation: dropRoutePin 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-pin-1 { animation-delay: 0.2s; }
.anim-pin-2 { animation-delay: 1.2s; }
.anim-pin-3 { animation-delay: 2.2s; }
@keyframes drawRouteLine {
  0%, 10% { stroke-dashoffset: 250; opacity: 1; }
  70%, 90% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes dropRoutePin {
  0% { opacity: 0; transform: translateY(-15px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

.anim-smart-block { transform: translate(75px, 25px); fill: var(--gold-mid); animation: scanAndSnap 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-shift-block { transform: translateX(0); animation: shiftRight 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes scanAndSnap {
  0% { opacity: 0; transform: translate(10px, -15px); fill: var(--text-primary); }
  10% { opacity: 1; transform: translate(10px, -15px); fill: var(--text-primary); }
  20% { transform: translate(75px, -15px); fill: var(--text-primary); }
  25% { transform: translate(75px, 25px); fill: var(--gold-mid); }
  85% { opacity: 1; transform: translate(75px, 25px); fill: var(--gold-mid); }
  95%, 100% { opacity: 0; transform: translate(75px, 25px); fill: var(--gold-mid); }
}
@keyframes shiftRight {
  0%, 20% { transform: translateX(-65px); }
  25%, 85% { transform: translateX(0); }
  95%, 100% { transform: translateX(-65px); }
}

.anim-invoice-doc { animation: slideInvoice 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-invoice-doc rect:first-child { animation: flashInvoice 4s ease-in-out infinite; }
.anim-invoice-stamp { transform-origin: center; animation: stampInvoice 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite; }
.anim-invoice-check { stroke-dasharray: 25; stroke-dashoffset: 0; animation: drawCheck 4s ease-out infinite; }
@keyframes slideInvoice {
  0% { transform: translate(60px, 40px); opacity: 0; }
  10%, 80% { transform: translate(60px, 0px); opacity: 1; }
  90%, 100% { transform: translate(60px, -30px); opacity: 0; }
}
@keyframes flashInvoice {
  0%, 24% { fill: var(--theme-primary); opacity: 0.4; }
  27%, 80% { fill: var(--gold-mid); opacity: 0.2; }
  100% { fill: var(--theme-primary); opacity: 0.4; }
}
@keyframes stampInvoice {
  0%, 20% { opacity: 0; transform: scale(3); }
  25%, 80% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes drawCheck {
  0%, 26% { stroke-dashoffset: 25; }
  35%, 100% { stroke-dashoffset: 0; }
}

.anim-msg { opacity: 0; }
.anim-msg-left { animation: flyMsgLeft 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-msg-right { animation: flyMsgRight 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; animation-delay: 2s; }
.anim-unified-inbox { transform-origin: 0 0; animation: pulseInbox 2s ease-out infinite; }
@keyframes flyMsgLeft {
  0%, 10% { transform: translate(30px, 30px) scale(0.5); opacity: 0; }
  20% { transform: translate(30px, 30px) scale(1); opacity: 1; }
  40% { transform: translate(100px, 30px) scale(1); opacity: 1; }
  45%, 100% { transform: translate(100px, 30px) scale(0.5); opacity: 0; }
}
@keyframes flyMsgRight {
  0%, 10% { transform: translate(170px, 30px) scale(0.5); opacity: 0; }
  20% { transform: translate(170px, 30px) scale(1); opacity: 1; }
  40% { transform: translate(100px, 30px) scale(1); opacity: 1; }
  45%, 100% { transform: translate(100px, 30px) scale(0.5); opacity: 0; }
}
@keyframes pulseInbox {
  0%, 76% { transform: translate(100px, 30px) scale(1); }
  80% { transform: translate(100px, 30px) scale(1.15); }
  95%, 100% { transform: translate(100px, 30px) scale(1); }
}

.anim-skip-solid { opacity: 0; animation: fadeOutSolid 4s ease infinite; }
.anim-skip-check { opacity: 0; animation: fadeOutCheck 4s ease infinite; }
.anim-skip-dashed { opacity: 0.4; animation: fadeInDashed 4s ease infinite; }
.anim-skip-plane { opacity: 0; transform: translate(60px, -10px) scale(0.5); animation: flyPlaneUp 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-invoice-line2 { opacity: 0; animation: fadeOutLine 4s ease infinite; }
.anim-invoice-price2 { opacity: 0; animation: fadeOutPrice 4s ease infinite; }
.anim-invoice-strike { opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 0; animation: drawStrike 4s ease infinite; }
.anim-invoice-total { width: 4px; animation: shrinkTotal 4s ease infinite; }
@keyframes fadeOutSolid { 0%, 15% { opacity: 0.8; } 20%, 85% { opacity: 0; } 95%, 100% { opacity: 0.8; } }
@keyframes fadeOutCheck { 0%, 15% { opacity: 1; } 20%, 85% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes fadeInDashed { 0%, 15% { opacity: 0; } 20%, 85% { opacity: 0.4; } 95%, 100% { opacity: 0; } }
@keyframes flyPlaneUp {
  0%, 15% { opacity: 0; transform: translate(60px, 30px) scale(0.5); }
  20% { opacity: 1; transform: translate(60px, 10px) scale(1.2); }
  25%, 85% { opacity: 1; transform: translate(60px, 10px) scale(1); }
  95%, 100% { opacity: 0; transform: translate(60px, -10px) scale(0.5); }
}
@keyframes drawStrike {
  0%, 20% { opacity: 1; stroke-dashoffset: 40; }
  25%, 30% { opacity: 1; stroke-dashoffset: 0; }
  35%, 85% { opacity: 0; stroke-dashoffset: 0; }
  95%, 100% { opacity: 0; stroke-dashoffset: 40; }
}
@keyframes fadeOutLine { 0%, 25% { opacity: 0.6; } 30%, 85% { opacity: 0; } 95%, 100% { opacity: 0.6; } }
@keyframes fadeOutPrice { 0%, 25% { opacity: 0.8; } 30%, 85% { opacity: 0; } 95%, 100% { opacity: 0.8; } }
@keyframes shrinkTotal { 0%, 25% { width: 10px; } 30%, 85% { width: 4px; } 95%, 100% { width: 10px; } }

.anim-role-tag1 { opacity: 1; transform: translate(110px, 9px); animation: slideTag1 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-role-tag2 { opacity: 1; transform: translate(110px, 26px); animation: slideTag2 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-role-tag3 { opacity: 1; transform: translate(110px, 43px); animation: slideTag3 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-role-avatar1 { opacity: 1; animation: fadeAvatar1 4s ease infinite; }
.anim-role-avatar2 { opacity: 1; animation: fadeAvatar2 4s ease infinite; }
.anim-role-avatar3 { opacity: 1; animation: fadeAvatar3 4s ease infinite; }
@keyframes slideTag1 { 0%, 15% { opacity: 0; transform: translate(120px, 9px); } 25%, 85% { opacity: 1; transform: translate(110px, 9px); } 95%, 100% { opacity: 0; transform: translate(120px, 9px); } }
@keyframes slideTag2 { 0%, 25% { opacity: 0; transform: translate(120px, 26px); } 35%, 85% { opacity: 1; transform: translate(110px, 26px); } 95%, 100% { opacity: 0; transform: translate(120px, 26px); } }
@keyframes slideTag3 { 0%, 35% { opacity: 0; transform: translate(120px, 43px); } 45%, 85% { opacity: 1; transform: translate(110px, 43px); } 95%, 100% { opacity: 0; transform: translate(120px, 43px); } }
@keyframes fadeAvatar1 { 0%, 20% { opacity: 0; } 25%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes fadeAvatar2 { 0%, 30% { opacity: 0; } 35%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes fadeAvatar3 { 0%, 40% { opacity: 0; } 45%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }

.anim-mobile-swipe { opacity: 0; transform: translate(32px, 0); animation: swipeItem 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-mobile-success { opacity: 0; animation: fadeSuccess 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-mobile-item2, .anim-mobile-item3, .anim-mobile-item4 { transform: translate(0, -14px); animation: shiftListUp 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-mobile-touch { opacity: 0; animation: touchSwipe 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes swipeItem {
  0%, 10% { opacity: 1; transform: translate(0, 0); }
  15% { opacity: 1; transform: translate(32px, 0); }
  20%, 85% { opacity: 0; transform: translate(32px, 0); }
  95%, 100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes fadeSuccess { 0%, 25% { opacity: 1; } 30%, 85% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes shiftListUp { 0%, 30% { transform: translate(0, 0); } 40%, 85% { transform: translate(0, -14px); } 95%, 100% { transform: translate(0, 0); } }
@keyframes touchSwipe {
  0%, 5% { opacity: 0; transform: translate(0, 0) scale(1.5); }
  10% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  15% { opacity: 0.6; transform: translate(32px, 0) scale(1); }
  20%, 85% { opacity: 0; transform: translate(32px, 0) scale(1); }
  95%, 100% { opacity: 0; transform: translate(0, 0) scale(1.5); }
}

.anim-db-light { opacity: 1; fill: var(--gold-mid); animation: pulseLight 4s ease infinite; }
.anim-data-flow { opacity: 1; stroke-dasharray: 4; stroke-dashoffset: -24; animation: flowData 4s ease-out infinite; }
.anim-doc-line1 { opacity: 1; width: 16px; animation: drawDocLine1 4s ease infinite; }
.anim-doc-line2 { opacity: 1; width: 12px; animation: drawDocLine2 4s ease infinite; }
.anim-doc-line3 { opacity: 1; width: 14px; animation: drawDocLine3 4s ease infinite; }
.anim-download-arrow { opacity: 0; transform: translate(108px, 0px) scale(0); transform-origin: center; transform-box: fill-box; animation: dropArrow 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.anim-owner-person { opacity: 1; fill: var(--gold-mid); animation: empowerOwner 4s ease infinite; }
@keyframes pulseLight { 0%, 20% { opacity: 0.3; fill: var(--theme-primary); } 25%, 85% { opacity: 1; fill: var(--gold-mid); } 95%, 100% { opacity: 0.3; fill: var(--theme-primary); } }
@keyframes dropArrow {
  0%, 10% { opacity: 0; transform: translate(108px, -15px) scale(1); }
  15% { opacity: 1; transform: translate(108px, 0px) scale(1.1); }
  20% { opacity: 1; transform: translate(108px, 0px) scale(1); }
  25%, 85% { opacity: 0; transform: translate(108px, 0px) scale(0); }
  95%, 100% { opacity: 0; transform: translate(108px, -15px) scale(1); }
}
@keyframes flowData {
  0%, 25% { opacity: 0; stroke-dashoffset: 0; }
  30% { opacity: 1; stroke-dashoffset: 0; }
  50%, 85% { opacity: 1; stroke-dashoffset: -24; }
  95%, 100% { opacity: 0; stroke-dashoffset: -24; }
}
@keyframes drawDocLine1 { 0%, 35% { opacity: 0; width: 0; } 40%, 85% { opacity: 1; width: 16px; } 95%, 100% { opacity: 0; width: 0; } }
@keyframes drawDocLine2 { 0%, 40% { opacity: 0; width: 0; } 45%, 85% { opacity: 1; width: 12px; } 95%, 100% { opacity: 0; width: 0; } }
@keyframes drawDocLine3 { 0%, 45% { opacity: 0; width: 0; } 50%, 85% { opacity: 1; width: 14px; } 95%, 100% { opacity: 0; width: 0; } }
@keyframes empowerOwner { 0%, 45% { opacity: 0.3; fill: var(--text-primary); } 50%, 85% { opacity: 1; fill: var(--gold-mid); } 95%, 100% { opacity: 0.3; fill: var(--text-primary); } }

/* Light-mode: faint map grid lines turn dark so they read on white cards */
[data-theme="light"] .route-anim-container line,
[data-theme="light"] .route-anim-container g[stroke] { stroke: rgba(0, 0, 0, 0.1) !important; }
