/* Nexus-Latinoamérica · Finanzas Digitales — landing (self-contained) */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-elevated: #0f172a;
  --surface: #111c33;
  --surface-2: #152238;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --border: rgba(148, 163, 184, 0.18);
  --ring: rgba(59, 130, 246, 0.45);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37, 99, 235, 0.35), transparent 70%);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --radius-shot: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --btn-primary-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  --btn-primary-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.28);
  --focus-ring: 0 0 0 3px var(--ring);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --border: rgba(15, 23, 42, 0.12);
  --ring: rgba(37, 99, 235, 0.35);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37, 99, 235, 0.12), transparent 70%);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  --btn-primary-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  --btn-primary-shadow-hover: 0 2px 8px rgba(37, 99, 235, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Header / Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  flex-shrink: 0;
  color: var(--accent);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-company {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  justify-content: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 0.65rem 1.35rem;
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--btn-primary-shadow-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  text-decoration: none;
}
.btn-ghost:focus-visible {
  box-shadow: var(--focus-ring);
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  line-height: 1;
}
.btn-icon:hover {
  border-color: color-mix(in srgb, var(--muted) 55%, var(--border));
  background: var(--surface-2);
}
.btn-icon:focus-visible {
  box-shadow: var(--focus-ring);
}

/* Primary CTA: circular icon + pill label */
.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: inherit;
  vertical-align: middle;
}
.btn-launch:visited {
  color: inherit;
}
.btn-launch:focus-visible {
  outline: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--focus-ring);
}
.btn-launch__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-launch__icon svg {
  flex-shrink: 0;
}
.btn-launch:hover .btn-launch__icon {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-launch__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: var(--btn-primary-shadow);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-launch:hover .btn-launch__label {
  background: var(--accent-hover);
  box-shadow: var(--btn-primary-shadow-hover);
}
.btn-launch:active {
  transform: scale(0.985);
}
.btn-launch--button {
  appearance: none;
}
.price-card .btn-launch {
  margin-top: 0.35rem;
  align-self: center;
}

.theme-toggle .theme-icon {
  display: block;
}
html[data-theme="light"] .theme-icon--sun {
  display: none;
}
html[data-theme="light"] .theme-icon--moon {
  display: block;
}
html:not([data-theme="light"]) .theme-icon--moon {
  display: none;
}
html:not([data-theme="light"]) .theme-icon--sun {
  display: block;
}

.nav-toggle {
  display: none;
}

/* Mobile drawer */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: color-mix(in srgb, var(--bg) 96%, black);
    backdrop-filter: blur(16px);
    padding: 1rem 1.25rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    border-bottom: 1px solid var(--border);
    z-index: 45;
    overflow-y: auto;
  }
  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-links a {
    padding: 0.65rem 0.75rem;
  }
}

@media (min-width: 901px) {
  .nav-panel {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 0.5rem;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex: 0 0 auto;
  }
  .nav-links li {
    flex-shrink: 0;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    font-size: 0.8125rem;
    padding: 0.3rem 0.4rem;
  }
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}
.section-tight {
  padding-top: 2.5rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.section-intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  font-size: 1.02rem;
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(3.25rem, 7vw, 4.75rem);
  background: var(--hero-glow);
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.75rem, 6.5vw, 4.25rem);
  max-width: 52rem;
  margin-inline: auto;
}
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(48rem, 100%);
  margin-inline: auto;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(44rem, 100%);
  margin-inline: auto;
  gap: clamp(1rem, 2.8vw, 1.35rem);
}
.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  width: 100%;
  max-width: min(40rem, 100%);
  margin: 0;
  padding-bottom: 0;
}
.hero-product-icon {
  width: clamp(40px, 10vw, 52px);
  height: clamp(40px, 10vw, 52px);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.125rem);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.hero-tagline {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
  max-width: 100%;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(0.98rem, 2.2vw, 1.1rem);
  line-height: 1.62;
  margin: 0;
  max-width: 52ch;
  text-wrap: balance;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  justify-content: center;
  align-items: stretch;
}
.hero-ctas > .btn {
  min-height: 2.75rem;
}
.hero-cta-launch svg {
  flex-shrink: 0;
}
.hero-ctas .hero-cta-launch {
  gap: 0.45rem;
}
.hero-ctas .hero-cta-secondary {
  padding-inline: 1.35rem;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}
.hero-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: clamp(0.95rem, 3vw, 1.25rem);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: min(28rem, 100%);
  margin-top: clamp(0.85rem, 3vw, 2rem);
  margin-inline: auto;
  opacity: 0.97;
}
html[data-theme="light"] .hero-card {
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}
.hero-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.845rem;
  line-height: 1.5;
}
.hero-card li + li {
  margin-top: 0.38rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Screenshots */
.shots-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }
}
.shot-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.shot-frame__chrome {
  border-radius: var(--radius-shot);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  line-height: 0;
}
html[data-theme="light"] .shot-frame__chrome {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
.shot-frame__chrome img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.shot-frame--tall .shot-frame__chrome {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(44rem, 80vh);
}
.shot-frame--tall .shot-frame__chrome img {
  object-fit: cover;
  object-position: top center;
}
.shot-frame--wide .shot-frame__chrome {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: clamp(28rem, 52vw, 46rem);
}
.shot-frame--wide .shot-frame__chrome img {
  object-fit: cover;
  object-position: top center;
}
.shot-caption {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
}
.shot-caption strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.shot-placeholder {
  aspect-ratio: 9/16;
  max-height: 320px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.88rem;
}
.shot-placeholder strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}
.shot-real {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.shot-real img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Features list */
.feature-list {
  display: grid;
  gap: 0.65rem 2rem;
}
@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child {
  border-bottom: none;
}
.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 0.1rem;
}

/* Security */
.security-panel {
  background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .security-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.security-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.security-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.security-title {
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.security-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.security-cta {
  margin-top: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.price-tag {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.price-tag small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}
.price-title {
  margin: 0;
  font-size: 1.1rem;
}
.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.trial-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 0.9rem;
  color: var(--text);
}
.trial-callout strong {
  color: var(--accent);
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 900;
  color: var(--accent);
  font-size: 1.1rem;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.faq-narrow {
  max-width: 42rem;
}

.contact-block {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.contact-block-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ——— Footer (mirrors app intent) ——— */
.site-footer {
  background: #020617;
  color: #e2e8f0;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid #0f172a;
  margin-top: 3rem;
}
html[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #e2e8f0;
  border-top-color: #1e293b;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.footer-brand svg {
  flex-shrink: 0;
  color: #3b82f6;
}
.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-actions {
    align-items: flex-end;
  }
}
.btn-contact-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn-contact-footer:hover {
  background: #1d4ed8;
  box-shadow: var(--btn-primary-shadow-hover);
}
.btn-contact-footer:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--btn-primary-shadow);
}
.btn-contact-footer:active {
  transform: scale(0.97);
}
.footer-meta {
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-meta {
    text-align: right;
  }
}
.footer-meta p {
  margin: 0;
}
.footer-meta p + p {
  margin-top: 0.25rem;
}
.footer-legal {
  margin-top: 0.75rem;
}
.footer-legal a {
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
}
.footer-legal a:hover {
  color: #e2e8f0;
}

.footer-quick {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #0f172a;
}
.footer-quick-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.8), #020617);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
@media (min-width: 1024px) {
  .footer-quick-inner {
    flex-direction: row;
    align-items: stretch;
    padding: 2rem;
    gap: 2.5rem;
  }
}
.footer-qr-link {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: box-shadow 0.15s, outline 0.15s;
}
.footer-qr-link:hover {
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
  text-decoration: none;
}
.footer-qr-link:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.footer-qr-link img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  border-radius: 0.5rem;
}
@media (min-width: 640px) {
  .footer-qr-link img {
    width: 8rem;
    height: 8rem;
  }
}
@media (min-width: 1024px) {
  .footer-qr-link img {
    width: 9rem;
    height: 9rem;
  }
}
.footer-qr-caption {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  transition: color 0.15s;
}
.footer-qr-link:hover .footer-qr-caption {
  color: #2563eb;
}
.footer-quick-copy {
  flex: 1;
  text-align: center;
  min-width: 0;
}
@media (min-width: 1024px) {
  .footer-quick-copy {
    text-align: left;
  }
}
.quick-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}
.quick-label span.line {
  display: none;
  height: 1px;
  width: 2rem;
  background: rgba(96, 165, 250, 0.6);
}
@media (min-width: 640px) {
  .quick-label span.line {
    display: inline-block;
  }
}
.footer-quick-copy h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.footer-quick-copy > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .footer-quick-copy > p {
    margin-left: 0;
  }
}
.footer-em {
  color: #cbd5e1;
}
.footer-pills {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding-top: 0.25rem;
}
@media (min-width: 640px) {
  .footer-pills {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .footer-pills {
    justify-content: flex-start;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}
.pill svg {
  flex-shrink: 0;
  color: #60a5fa;
  width: 1rem;
  height: 1rem;
}
.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: background 0.15s, transform 0.12s;
}
.footer-app-link:hover {
  background: #3b82f6;
  text-decoration: none;
  color: #fff;
}
.footer-app-link:active {
  transform: scale(0.98);
}
.footer-url-mono {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}
@media (min-width: 1024px) {
  .footer-url-mono {
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 36rem;
  }
}

/* ——— Contact modal (matches app) ——— */
#contactModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(15, 23, 42, 0.8);
  padding: 1rem;
  align-items: center;
  justify-content: center;
}
#contactModal.is-open {
  display: flex;
}
.contact-sheet {
  background: #fff;
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  color: #0f172a;
}
.contact-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #1e293b;
}
.contact-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.contact-close:hover {
  color: #ef4444;
}
#contactForm {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px var(--ring);
}
#contactForm textarea {
  resize: vertical;
  min-height: 6rem;
}
.contact-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: #64748b;
}
#contactSubmitBtn {
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--btn-primary-shadow);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
#contactSubmitBtn:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: var(--btn-primary-shadow-hover);
}
#contactSubmitBtn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--btn-primary-shadow);
}
#contactSubmitBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
#contactStatus {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
#contactStatus.is-ok {
  color: #059669;
}
#contactStatus.is-warn {
  color: #d97706;
}
#contactStatus.is-err {
  color: #dc2626;
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9rem;
}
.path-hint {
  font-size: 0.85em;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hidden-visually {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
