/* LEDA shared light theme */
body.light-mode {
  --black: #f5f5f5;
  --black2: #ebebeb;
  --black3: #ffffff;
  --black4: #e4e4e4;
  --white: #121212;
  --white2: #2a2a2a;
  --gray: #555555;
  --gray2: #6a6a6a;
  --gray3: #c8c8c8;
  --gold-dim: rgba(201, 168, 76, 0.14);
}

body.light-mode nav {
  background: rgba(245, 245, 245, 0.97) !important;
  border-bottom-color: rgba(201, 168, 76, 0.35) !important;
}

/* Logo: white-on-black → black-on-white in light mode */
body.light-mode .nav-logo,
body.light-mode .footer-logo,
body.light-mode .brand-logo,
body.light-mode .brand-logo-sm {
  filter: invert(1);
}

body.light-mode .tb {
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .btn-outline {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--white2);
}

body.light-mode .fg input,
body.light-mode .fg textarea,
body.light-mode .fg select {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--white2);
}

body.light-mode .fg select option {
  background: #fff;
}

body.light-mode .app-card,
body.light-mode .feat,
body.light-mode .cinfo,
body.light-mode .contact-form,
body.light-mode .feature-card,
body.light-mode .loop-step,
body.light-mode .seo-content,
body.light-mode .other-app-card,
body.light-mode .theme-card,
body.light-mode .lang-pill,
body.light-mode .screenshot-slot {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .app-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .social-link {
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .stat,
body.light-mode hr.dv,
body.light-mode .stats-row,
body.light-mode .footer-bottom,
body.light-mode .section-divider {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .info-strip {
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .breadcrumb {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .screenshots-wrap::after,
body.light-mode .strip-wrap::after {
  background: linear-gradient(to left, var(--black) 15%, transparent);
}

body.light-mode .trust-bar {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .trust-sep {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .app-featured,
body.light-mode .app-card-sm,
body.light-mode .app-featured-visual,
body.light-mode .app-card-shot,
body.light-mode .strip-shot {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .hero-glow {
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(201, 168, 76, 0.1) 0%,
    rgba(61, 200, 255, 0.03) 40%,
    transparent 72%
  );
}

body.light-mode .phone-mockup {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Developer store hub — below nav */
.dev-store-bar {
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.07) 0%,
    rgba(10, 10, 10, 0.2) 42%,
    rgba(61, 200, 255, 0.05) 100%
  );
  border-bottom: 0.5px solid rgba(201, 168, 76, 0.16);
  padding: 0.6rem max(1.25rem, env(safe-area-inset-left, 0px)) 0.6rem max(1.25rem, env(safe-area-inset-right, 0px));
  position: sticky;
  top: 64px;
  z-index: 99;
  backdrop-filter: blur(10px);
}

.dev-store-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  flex-wrap: wrap;
}

.dev-store-bar-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  opacity: 0.9;
  margin-right: 0.15rem;
}

.dev-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white2, #f0f0f0);
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s, background 0.18s, transform 0.12s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}

.dev-store-chip:hover {
  transform: translateY(-1px);
}

.dev-store-chip--apple:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.dev-store-chip--play:hover {
  border-color: rgba(201, 168, 76, 0.42);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold2, #e8c86d);
  box-shadow: 0 6px 22px rgba(201, 168, 76, 0.1);
}

.dev-store-chip-brand {
  font-weight: 600;
  color: var(--gold, #c9a84c);
}

.dev-store-chip--play .dev-store-chip-brand {
  color: var(--gold2, #e8c86d);
}

body.light-mode .dev-store-bar {
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.1) 0%,
    rgba(245, 245, 245, 0.5) 45%,
    rgba(61, 200, 255, 0.06) 100%
  );
  border-bottom-color: rgba(201, 168, 76, 0.28);
}

body.light-mode .dev-store-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--white2, #2a2a2a);
}

body.light-mode .dev-store-chip--apple:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.16);
}

body.light-mode .dev-store-chip--play:hover {
  background: rgba(201, 168, 76, 0.12);
}

@media (max-width: 720px) {
  .dev-store-bar-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.1rem;
  }

  .dev-store-chip {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
    min-width: min(100%, 168px);
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .dev-store-chip-text {
    font-size: 10px;
  }
}

/* Theme toggle button (app pages + home) */
.nr,
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb {
  background: none;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.tb:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

/* YouTube Shorts — hero embed (app pages) */
.hero-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.short-embed {
  width: min(320px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  position: relative;
  cursor: pointer;
}

.short-embed-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: rgba(201, 168, 76, 0.95);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, background 0.15s;
  z-index: 2;
}

.short-embed-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #e8c86d;
}

.short-embed.is-playing .short-embed-poster,
.short-embed.is-playing .short-embed-play {
  display: none;
}

.short-embed .short-embed-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.short-embed.is-playing .short-embed-iframe {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.short-embed-player {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.short-embed iframe,
.short-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.short-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #111 0%, #1a1a1a 100%);
  color: var(--white2);
  text-decoration: none;
  transition: background 0.15s;
}

.short-embed-fallback:hover {
  background: linear-gradient(160deg, #161616 0%, #222 100%);
  color: var(--gold);
}

.short-embed-fallback-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.95);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.short-embed-fallback span {
  font-size: 11px;
  color: var(--gray);
}

.short-embed-fallback strong {
  font-size: 14px;
  color: inherit;
}

.video-yt-link {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.2px;
  transition: color 0.15s;
}

.video-yt-link:hover {
  color: var(--gold);
}

body.light-mode .short-embed {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

/* Desktop nav links (shared; mobile hide in @media below) */
.nm {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nm a {
  font-size: 13px;
  color: var(--gray, #888);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.nm a:hover,
.nm a.active {
  color: var(--gold, #c9a84c);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray, #888);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-back:hover {
  color: var(--gold, #c9a84c);
}

/* Mobile nav */
.nav-menu-btn {
  display: none;
  background: none;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.nav-menu-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.nav-panel {
  display: none;
  position: absolute;
  top: 64px;
  right: 1.25rem;
  min-width: 200px;
  background: var(--black2, #111);
  border: 0.5px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}

.nav-panel.open {
  display: flex;
}

.nav-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray, #888);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-panel a:hover {
  color: var(--gold, #c9a84c);
  background: rgba(201, 168, 76, 0.08);
}

body.light-mode .nav-panel {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .nav-panel a:hover {
  background: rgba(201, 168, 76, 0.12);
}

.btn-store-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

:root {
  --soon: #c084fc;
  --soon-dim: rgba(192, 132, 252, 0.12);
  --soon-border: rgba(192, 132, 252, 0.28);
}

.soon-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--soon);
  background: var(--soon-dim);
  border: 0.5px solid var(--soon-border);
  padding: 3px 9px;
  border-radius: 20px;
}

.soon-badge {
  background: var(--soon-dim);
  border: 1px solid var(--soon-border);
  color: var(--soon);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.link-btn-soon {
  opacity: 0.78;
  cursor: default;
  pointer-events: none;
  border-style: dashed;
}

.contact-err {
  display: none;
  background: rgba(255, 80, 80, 0.1);
  border: 0.5px solid rgba(255, 80, 80, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #ff8888;
  margin-top: 0.75rem;
}

body.light-mode .contact-err {
  color: #c44;
}

/* Site-wide mobile */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  .nm {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  nav {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  }

  .nav-menu-btn,
  .tb {
    width: 44px;
    height: 44px;
  }

  .nav-panel {
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    left: max(1.25rem, env(safe-area-inset-left, 0px));
    min-width: 0;
  }

  .nav-back {
    display: none !important;
  }

  .breadcrumb {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
    font-size: 10px;
    line-height: 1.5;
  }

  footer {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    gap: 0.75rem 1.25rem;
  }

  .app-hero-right,
  .hero-icon-showcase,
  .hero-shot {
    width: 100%;
    max-width: 100%;
  }

  .hero-icon-showcase {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .phone-mockup-wrap {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .app-cta-row .btn-store {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .app-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .app-cta-row .btn-store {
    width: 100%;
    justify-content: center;
  }

  .nav-badge {
    display: none;
  }

  .themes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* SEO cross-links */
.seo-content a,
.feature-desc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.seo-content a:hover,
.feature-desc a:hover {
  color: var(--gold2);
}

.related-apps-strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 12px;
  color: var(--gray2);
}

.related-apps-strip .related-label {
  color: var(--gray);
  letter-spacing: 0.3px;
}

.related-apps-strip a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s;
}

.related-apps-strip a:hover {
  color: var(--gold2);
}

.related-apps-strip .related-sep {
  opacity: 0.35;
}

.footer-links {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

@media (max-width: 720px) {
  .related-apps-strip {
    padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 1.5rem;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    font-size: 11px;
    gap: 0.3rem 0.4rem;
  }
}

/* Download links page (links.html) */
body.links-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(64px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  position: relative;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  body.links-page {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
  }

  body.links-page .back-link span {
    display: none;
  }

  body.links-page .btn-store--sm {
    flex: 1 1 100%;
    min-height: 44px;
  }

  body.links-page .app-card-stores {
    flex-direction: column;
  }

  body.links-page .app-card-top {
    flex-wrap: wrap;
  }

  body.links-page .app-card-learn {
    margin-left: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }
}

body.links-page .links-hero-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% -5%,
    rgba(201, 168, 76, 0.14) 0%,
    rgba(61, 200, 255, 0.04) 38%,
    transparent 72%
  );
}

body.links-page .links-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.links-page .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  animation: links-fade-up 0.5s ease both;
}

body.links-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray, #888);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}

body.links-page .back-link:hover {
  color: var(--gold, #c9a84c);
}

body.links-page .back-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

body.links-page .links-hero {
  text-align: center;
  margin-bottom: 22px;
  animation: links-fade-up 0.55s ease both;
}

body.links-page .brand-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 18px;
}

body.links-page .brand-logo {
  width: min(150px, 58vw);
  height: auto;
  display: block;
}

body.links-page .links-hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 8vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white, #fff);
  margin-bottom: 8px;
}

body.links-page .links-hero-stores {
  font-size: 12px;
  color: var(--gray, #888);
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto;
}

body.links-page .links-hero-sub {
  font-size: 14px;
  color: var(--gray, #888);
  line-height: 1.5;
  margin-bottom: 18px;
}

body.links-page .links-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.links-page .links-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray, #888);
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(201, 168, 76, 0.2);
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.02em;
}

body.links-page .links-trust-pill svg {
  color: var(--gold, #c9a84c);
  flex-shrink: 0;
}

body.links-page .links-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin: 4px 0 10px 2px;
}

body.links-page .links-section-label--muted {
  color: var(--gray, #888);
  margin-top: 16px;
}

body.links-page .links-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: links-fade-up 0.5s 0.08s ease both;
}

body.links-page .app-card {
  background: var(--black2, #111);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

body.links-page .app-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

body.links-page .app-card--featured {
  border-color: rgba(201, 168, 76, 0.35);
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.08) 0%, var(--black2, #111) 42%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.06) inset;
}

body.links-page .app-card--featured:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

body.links-page .app-card--soon {
  opacity: 0.82;
  border-style: dashed;
  border-color: rgba(192, 132, 252, 0.22);
}

body.links-page .app-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 0;
}

body.links-page .app-card:not(.app-card--soon) .app-card-top {
  margin-bottom: 10px;
}

body.links-page .app-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.links-page .app-card--featured .app-card-icon {
  box-shadow: 0 8px 28px rgba(61, 200, 255, 0.12);
}

body.links-page .app-card-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

body.links-page .app-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

body.links-page .app-card-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  background: var(--gold-dim, rgba(201, 168, 76, 0.1));
  border: 0.5px solid var(--gold-border, rgba(201, 168, 76, 0.25));
  border-radius: 4px;
  padding: 2px 6px;
}

body.links-page .app-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white, #fff);
  line-height: 1.2;
}

body.links-page .app-card-tagline {
  font-size: 11px;
  color: var(--gray, #888);
  line-height: 1.35;
}

body.links-page .app-card-meta .soon-pill {
  font-size: 8px;
  padding: 2px 7px;
}

body.links-page .app-card-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.links-page .btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  flex: 1;
  min-width: min(100%, 148px);
  justify-content: center;
}

body.links-page .btn-store--sm {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  min-width: 0;
  flex: 1 1 calc(50% - 4px);
}

body.links-page .btn-store-ios {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white2, #f0f0f0);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
}

body.links-page .btn-store-ios:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

body.links-page .app-card--featured .btn-store-ios {
  background: #3dc8ff;
  color: #050d1a;
  border-color: transparent;
}

body.links-page .app-card--featured .btn-store-ios:hover {
  background: #7dddff;
}

body.links-page .btn-store-play {
  background: var(--gold, #c9a84c);
  color: #0a0a0a;
}

body.links-page .btn-store-play:hover {
  background: var(--gold2, #e8c86d);
  transform: translateY(-1px);
}

body.links-page .btn-store-sub {
  font-size: 9px;
  opacity: 0.75;
  display: block;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.links-page .btn-store-name {
  font-size: 13px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

body.links-page .app-card-learn {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray, #888);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.15s;
  align-self: flex-start;
  margin-top: 2px;
}

body.links-page .app-card-learn:hover {
  color: var(--gold, #c9a84c);
}

body.links-page .links-social-wrap {
  margin-top: 32px;
  text-align: center;
  animation: links-fade-up 0.5s 0.15s ease both;
}

body.links-page .links-social-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray2, #555);
  margin-bottom: 12px;
}

body.links-page .social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.links-page .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--black2, #111);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: var(--gray, #888);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.15s, transform 0.12s;
}

body.links-page .social-btn:hover {
  background: var(--black3, #1a1a1a);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold, #c9a84c);
  transform: translateY(-2px);
}

body.links-page .social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.links-page .links-footer {
  margin-top: 36px;
  text-align: center;
  animation: links-fade-up 0.5s 0.25s ease both;
  opacity: 0;
  animation-fill-mode: both;
}

body.links-page .links-footer-copy {
  font-size: 12px;
  color: var(--white, #fff);
  font-weight: 500;
  margin-bottom: 6px;
}

body.links-page .links-footer-legal {
  font-size: 10px;
  color: var(--gray, #888);
  line-height: 1.6;
}

@keyframes links-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.light-mode.links-page .links-hero-glow {
  background: radial-gradient(
    ellipse 80% 55% at 50% -5%,
    rgba(201, 168, 76, 0.12) 0%,
    rgba(61, 200, 255, 0.03) 38%,
    transparent 72%
  );
}

body.light-mode.links-page .app-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode.links-page .app-card--featured {
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.1) 0%, #fff 45%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode.links-page .links-trust-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode.links-page .btn-store-ios {
  background: rgba(0, 0, 0, 0.05);
  color: var(--white2, #2a2a2a);
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode.links-page .app-card--featured .btn-store-ios {
  background: #3dc8ff;
  color: #050d1a;
}

body.light-mode.links-page .social-btn {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode.links-page .social-btn:hover {
  background: #f5f5f5;
}

body.light-mode.links-page .back-link {
  color: var(--gray2, #555);
}

body.light-mode.links-page .back-link:hover {
  color: var(--gold, #c9a84c);
}

body.light-mode.links-page .links-footer-legal,
body.light-mode.links-page .links-hero-sub,
body.light-mode.links-page .app-card-tagline {
  color: var(--gray, #555);
}

/* Privacy policy pages (privacy/*.html) */
body.privacy-page {
  min-height: 100%;
  background: var(--black, #0a0a0a);
  color: var(--white2, #f0f0f0);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(48px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}

body.privacy-page .privacy-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 45% at 50% 0%,
    color-mix(in srgb, var(--privacy-accent, #c9a84c) 18%, transparent) 0%,
    transparent 68%
  );
}

body.privacy-page .privacy-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

body.privacy-page .privacy-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

body.privacy-page .privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray, #888);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}

body.privacy-page .privacy-back:hover {
  color: var(--gold, #c9a84c);
}

body.privacy-page .privacy-back svg {
  flex-shrink: 0;
  opacity: 0.75;
}

body.privacy-page .privacy-header {
  text-align: center;
  padding: 8px 0 32px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

body.privacy-page .privacy-brand-logo {
  width: min(120px, 42vw);
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

body.privacy-page .privacy-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--privacy-accent, #c9a84c) 35%, transparent);
}

body.privacy-page .privacy-app-name {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white, #fff);
  margin-bottom: 6px;
}

body.privacy-page .privacy-doc-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--privacy-accent, #c9a84c);
  margin-bottom: 8px;
}

body.privacy-page .privacy-updated {
  font-size: 12px;
  color: var(--gray2, #555);
  letter-spacing: 0.02em;
}

body.privacy-page .privacy-body {
  font-size: 14px;
  color: var(--gray, #aaa);
}

body.privacy-page .privacy-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

body.privacy-page .privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.privacy-page .privacy-section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white, #fff);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

body.privacy-page .privacy-section h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--privacy-accent, #c9a84c);
  flex-shrink: 0;
  transform: translateY(1px);
}

body.privacy-page .privacy-section p {
  margin-bottom: 10px;
}

body.privacy-page .privacy-section p:last-child {
  margin-bottom: 0;
}

body.privacy-page .privacy-section ul,
body.privacy-page .privacy-section ol {
  margin: 10px 0 10px 1.15rem;
  padding: 0;
}

body.privacy-page .privacy-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}

body.privacy-page .privacy-section li:last-child {
  margin-bottom: 0;
}

body.privacy-page .privacy-section a {
  color: var(--privacy-accent, #c9a84c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.privacy-page .privacy-section strong {
  color: var(--white2, #f0f0f0);
  font-weight: 600;
}

body.privacy-page .privacy-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 0.5px solid rgba(201, 168, 76, 0.2);
  text-align: center;
}

body.privacy-page .privacy-site-link {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--gold, #c9a84c);
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
  margin-bottom: 10px;
}

body.privacy-page .privacy-site-link:hover {
  color: var(--gold2, #e8c86d);
}

body.privacy-page .privacy-footer-copy {
  font-size: 11px;
  color: var(--gray2, #555);
}

body.light-mode.privacy-page .privacy-glow {
  background: radial-gradient(
    ellipse 70% 45% at 50% 0%,
    color-mix(in srgb, var(--privacy-accent, #c9a84c) 10%, transparent) 0%,
    transparent 68%
  );
}

body.light-mode.privacy-page .privacy-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode.privacy-page .privacy-section {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode.privacy-page .privacy-footer {
  border-top-color: rgba(201, 168, 76, 0.35);
}

body.light-mode.privacy-page .privacy-brand-logo {
  filter: invert(1);
}

@media (max-width: 480px) {
  body.privacy-page .privacy-back span {
    display: none;
  }

  body.privacy-page .privacy-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  body.privacy-page .privacy-section {
    margin-bottom: 22px;
    padding-bottom: 22px;
  }
}

/* ─── UI polish: focus, motion, frames ─── */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 2px;
}

.tb:focus-visible,
.nav-menu-btn:focus-visible,
.dev-store-chip:focus-visible,
.btn-store:focus-visible,
.submit-btn:focus-visible,
.leda-translate-notice-en:focus-visible,
.leda-translate-notice-close:focus-visible {
  outline-color: var(--gold, #c9a84c);
}

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

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

@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;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Hero phone labels (home) */
.hero-phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.hero-phone-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35px;
  color: var(--gray2, #555);
  text-align: center;
  max-width: 92px;
  line-height: 1.25;
}

body.light-mode .hero-phone-label {
  color: var(--gray, #555);
}

/* Device-style screenshot frames */
.hero-phone,
.strip-shot,
.app-card-shot,
.screenshot-slot {
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 14px 42px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-phone::after,
.strip-shot::after,
.app-card-shot::after,
.screenshot-slot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-phone,
.strip-shot,
.app-card-shot,
.screenshot-slot {
  position: relative;
}

.app-featured-visual img {
  border-radius: 14px;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 12px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.light-mode .hero-phone,
body.light-mode .strip-shot,
body.light-mode .app-card-shot,
body.light-mode .screenshot-slot {
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .app-featured-visual img {
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.1);
}

/* App card accent hovers (home) */
.app-card-sm--tasbih:hover {
  border-color: rgba(201, 168, 76, 0.42) !important;
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.06);
}

.app-card-sm--happycalc:hover {
  border-color: rgba(232, 93, 117, 0.38) !important;
  box-shadow: 0 12px 40px rgba(232, 93, 117, 0.06);
}

.app-card-sm--bipi:hover {
  border-color: rgba(245, 197, 24, 0.38) !important;
  box-shadow: 0 12px 40px rgba(245, 197, 24, 0.06);
}

.app-card-sm--moni:hover {
  border-color: rgba(74, 222, 128, 0.38) !important;
  box-shadow: 0 12px 40px rgba(74, 222, 128, 0.06);
}

.app-card-sm--tasbih:hover .app-link {
  color: var(--gold, #c9a84c);
}

.app-card-sm--happycalc:hover .app-link {
  color: #e85d75;
}

.app-card-sm--bipi:hover .app-link {
  color: #f5c518;
}

.app-card-sm--moni:hover .app-link {
  color: #4ade80;
}

.app-card-top .soon-pill {
  margin-left: auto;
  flex-shrink: 0;
}

/* About feature SVG icons */
.feat-icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .dev-store-bar {
    position: static;
    top: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-phone-label {
    font-size: 8px;
    max-width: 84px;
  }
}

@media print {
  body.privacy-page {
    background: #fff;
    color: #111;
    padding: 0;
  }

  body.privacy-page .privacy-glow,
  body.privacy-page .privacy-top-bar {
    display: none;
  }

  body.privacy-page .privacy-section h2,
  body.privacy-page .privacy-app-name {
    color: #111;
  }

  body.privacy-page .privacy-body {
    color: #333;
  }
}
