/* Ladric marketing — extends Tailwind (see index.html). Plus Jakarta Sans: variable TTF in assets/fonts. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf") format("truetype");
}

html {
  -webkit-user-select: none;
  user-select: none;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(22, 24, 26, 0.92);
  color: #ccff00;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(204, 255, 0, 0.35);
  background: rgba(28, 31, 33, 0.96);
}

.back-to-top:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 3px;
}

.back-to-top .material-symbols-outlined {
  font-size: 1.5rem;
  font-variation-settings: "FILL" 0, "wght" 500;
}

/* Newsletter (homepage): honeypot hidden from visual users */
.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Premium site footer */
.site-footer {
  background: linear-gradient(180deg, rgba(18, 20, 22, 0.98) 0%, #060708 45%, #030405 100%);
}

.site-footer-glow {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(204, 255, 0, 0.2) 25%,
    rgba(18, 241, 255, 0.18) 55%,
    rgba(204, 255, 0, 0.15) 78%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer a:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #ccff00;
  color: #0c0e10;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid #12f1ff;
  outline-offset: 2px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.kinetic-gradient {
  background: linear-gradient(135deg, #ccff00 0%, #12f1ff 100%);
}

.glass-nav {
  background: rgba(12, 14, 16, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Fixed nav offset for in-page anchors */
section[id],
#main header,
.support-article[id],
.support-category[id] {
  scroll-margin-top: 5.5rem;
}

/* Scroll-spy: desktop + mobile section nav */
a.nav-section-link {
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

a.nav-section-link.is-active {
  color: #ccff00;
  border-bottom-color: #ccff00;
}

/* Mobile drawer: no bottom border; use color only */
#nav-drawer a.nav-section-link.is-active {
  border-bottom-color: transparent;
}

/* Mobile menu */
.nav-drawer {
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* App Store / Google Play style badges (hero CTAs) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 0.65rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.store-badge:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.store-badge:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 3px;
}

button.js-store-soon:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 3px;
}

.store-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.store-badge-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge-lines .store-badge-kicker {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.store-badge-lines .store-badge-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Support: FAQ accordion */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(28, 31, 33, 0.9);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font: inherit;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-trigger .faq-icon {
  transition: transform 0.25s ease;
  color: #ccff00;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* App preview frame */
.app-preview-glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(204, 255, 0, 0.06),
    0 0 120px rgba(18, 241, 255, 0.04);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-drawer-backdrop {
    transition: none;
  }
}

/* The dark background overlay */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensures it stays on top */
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* The alert box itself */
.custom-alert-box {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

.custom-alert-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  color: #333;
}

.custom-alert-message {
  margin: 0 0 24px 0;
  color: #666;
  line-height: 1.5;
}

.custom-alert-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.custom-alert-btn:hover {
  background: #0056b3;
}

/* A simple animation so it pops up nicely */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Support page — copy support email modal */
.support-email-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 7, 8, 0.75);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.support-email-modal {
  width: 100%;
  max-width: 20rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1f21;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: popIn 0.25s ease-out;
}

.support-email-modal-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.support-email-modal-hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #71717a;
}

.support-email-modal-address {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #ccff00;
  cursor: pointer;
  text-align: center;
  word-break: break-all;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.support-email-modal-address:hover {
  border-color: rgba(204, 255, 0, 0.45);
  background: rgba(204, 255, 0, 0.06);
}

.support-email-modal-address:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 2px;
}

.support-email-modal-copy-btn {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #ccff00;
  color: #0c0e10;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.support-email-modal-copy-btn:hover {
  filter: brightness(1.05);
}

.support-email-modal-copy-btn:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 2px;
}

.support-email-modal-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #12f1ff;
}

.support-email-modal-close-btn {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.support-email-modal-close-btn:hover {
  color: #a1a1aa;
}

.support-email-modal-close-btn:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 2px;
}

.support-email-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10000;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(204, 255, 0, 0.35);
  background: rgba(28, 31, 33, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ccff00;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  pointer-events: none;
}

.support-email-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 425px) {
  .text-lg-mobile {
    font-size: 0.9rem !important;
  }
}

/* Legal policy pages — stacked nav + divider on mobile; left sidebar on desktop */
.legal-doc-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .legal-doc-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.legal-doc-nav {
  flex-shrink: 0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .legal-doc-nav {
    width: 15rem;
    padding-bottom: 0;
    margin-bottom: 0;
    padding-right: 2rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

.legal-doc-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-doc-nav-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  color: #12f1ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-doc-nav-link:hover {
  color: #ccff00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc-nav-link:focus-visible {
  outline: 2px solid #12f1ff;
  outline-offset: 3px;
  border-radius: 2px;
}

.legal-doc-nav-current {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 800;
  color: #fff;
}

.legal-doc-content {
  flex: 1;
  min-width: 0;
}