/* ═══════════════════════════════════════════
   CubaCell Connect — Landing Page Styles
   Primary web color: #000066 (navy / appPrimary), #0099cc (cyan / accent)
   ═══════════════════════════════════════════ */

:root {
  --color-navy:   #000066;
  --color-accent: #0099cc;
}

html { scroll-behavior: smooth; }

/* ══════════════════════════════════════════
   ANIMATED NAVY↔ACCENT GRADIENT
   Shared by section badges, primary buttons, and
   any accent text that wants the moving gradient
   instead of a flat navy/accent theme swap.
══════════════════════════════════════════ */
@keyframes gradientTravel {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-text {
  background: linear-gradient(90deg, var(--color-navy), var(--color-accent), var(--color-navy));
  background-size: 200% auto;
  animation: gradientTravel 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-bg {
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent), var(--color-navy));
  background-size: 200% 200%;
  animation: gradientTravel 4s ease infinite;
}

/* Hide scrollbar while keeping scroll functional */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Top horizontal scrollbar container */
.top-scrollbar {
  transform: rotateX(180deg);
}
.top-scrollbar > * {
  transform: rotateX(180deg);
}
.top-scrollbar.md\:flex {
  align-items: flex-end !important;
}
.top-scrollbar::-webkit-scrollbar {
  height: 8px;
}
.top-scrollbar::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
}
.dark .top-scrollbar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.top-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-navy);
  border-radius: 4px;
}
.dark .top-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-accent);
}

/* Global scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-navy); border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: var(--color-accent); }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav-link {
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--color-accent); }
.dark .nav-link { color: #9ca3af; }
.dark .nav-link:hover { color: var(--color-accent); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent), var(--color-navy));
  background-size: 200% 200%;
  animation: gradientTravel 4s ease infinite;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-navy) 35%, transparent);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.1);
  color: #1f2937;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(0,0,0,.08); }

.dark .btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.dark .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ══════════════════════════════════════════
   SECTION — typography and badges
══════════════════════════════════════════ */
.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.875rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--color-navy), var(--color-accent), var(--color-navy));
  background-size: 200% auto;
  animation: gradientTravel 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.dark .section-title { color: #fff; }

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.dark .section-subtitle { color: #9ca3af; }

/* ══════════════════════════════════════════
   STEPS (how it works)
══════════════════════════════════════════ */
.step-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  text-align: center;
}
.dark .step-card { background: #1f2937; border-color: #374151; }

.step-number {
  font-family: fantasy, cursive;
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-accent), #007299);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-navy) 40%, transparent);
  border: 3px solid transparent;
}
.dark .step-number {
  border-color: #1f2937;
  background: linear-gradient(135deg, var(--color-accent), #007299);
}

.step-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; color: #111827; }
.dark .step-title { color: #fff; }
.step-desc  { font-size: 0.875rem; color: #6b7280; }
.dark .step-desc  { color: #9ca3af; }

.flow-arrow {
  font-size: 1.5rem;
  color: #d1d5db;
  font-weight: 700;
  flex-shrink: 0;
}
.dark .flow-arrow { color: #4b5563; }
/* On mobile, rotate arrows to point downward */
@media (max-width: 640px) { .flow-arrow { transform: rotate(90deg); } }

/* ══════════════════════════════════════════
   CARRIER CARD (single-carrier compatibility section)
══════════════════════════════════════════ */
.carrier-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border-width: 2px;
  border-style: solid;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}
.dark .carrier-card { background: #1f2937; }

.carrier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-top: 0.375rem;
}

.code-inline {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--color-navy);
}
.dark .code-inline { background: #374151; color: var(--color-accent); }

/* ══════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════ */
.faq-item {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  transition: border-color 0.2s;
}
.dark .faq-item { background: #1f2937; border-color: #374151; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.faq-question:hover { background: #f9fafb; }
.dark .faq-question { color: #fff; }
.dark .faq-question:hover { background: rgba(255,255,255,.04); }

.faq-icon {
  width: 1.25rem; height: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.7;
}
.dark .faq-answer { color: #d1d5db; }
.faq-answer a { color: var(--color-navy); text-decoration: underline; }
.dark .faq-answer a { color: var(--color-accent); }

/* ══════════════════════════════════════════
   ROADMAP
══════════════════════════════════════════ */
.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f3f4f6;
}
.dark .roadmap-item { background: #1f2937; border-color: #374151; }

.roadmap-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.roadmap-done     { border-color: rgba(0,153,204,.25); }
.roadmap-progress { border-color: rgba(251,191,36,.25); }
.roadmap-planned  { opacity: 0.65; }

/* ══════════════════════════════════════════
   FOOTER LINKS
══════════════════════════════════════════ */
.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
  font-size: 0.875rem;
}
.dark .footer-link { color: #9ca3af; }
.footer-link:hover, .dark .footer-link:hover { color: var(--color-accent); }

/* ══════════════════════════════════════════
   ALERT / DISCLAIMER BOX
══════════════════════════════════════════ */
.alert-box {
  text-align: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(179,139,77,.3);
  background: rgba(179,139,77,.08);
}
.dark .alert-box { background: rgba(179,139,77,.12); border-color: rgba(179,139,77,.35); }

/* ══════════════════════════════════════════
   LEGAL PAGES (privacy / terms / eula)
══════════════════════════════════════════ */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.dark .legal-content h2 { color: #fff; }
.legal-content p, .legal-content li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
}
.dark .legal-content p, .dark .legal-content li { color: #9ca3af; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: #111827; font-weight: 600; }
.dark .legal-content strong { color: #fff; }

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
/* Pause on hover so users can read the message */
.marquee-track:hover { animation-play-state: paused; }

.marquee-content { flex-shrink: 0; }

/* Two identical copies ensure a seamless loop with no visible jump */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.35s ease both; }

/* ══════════════════════════════════════════
   DIAL.HTML — code cards, tab bar, input sheet
══════════════════════════════════════════ */
[x-cloak] { display: none !important; }

#dial-nav { padding-top: env(safe-area-inset-top, 0px); }
#header-toggle-wrap { top: calc(env(safe-area-inset-top, 0px) + 4rem); }
.ios-standalone .brand-logo-link { cursor: default; }

/* Bottom app-style tab bar (mobile only) — one category at a time */
.tab-bar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab-icon-pill {
  width: 2rem; height: 2rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: #fff;
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  text-align: left; /* buttons center-align by default in the UA stylesheet */
  transition: box-shadow 0.15s, transform 0.15s;
}
.code-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.dark .code-card { background: #1f2937; border-color: #374151; }
.code-card-title { font-weight: 700; font-size: 0.9rem; color: #111827; }
.dark .code-card-title { color: #fff; }
.code-card-desc { font-size: 0.775rem; color: #6b7280; margin-top: 0.1rem; }
.dark .code-card-desc { color: #9ca3af; }
.code-card-code { font-size: 0.7rem; font-family: ui-monospace, monospace; color: #9ca3af; margin-top: 0.3rem; }
.code-card-mnemonic { font-size: 0.7rem; color: var(--color-navy); margin-top: 0.15rem; }
.dark .code-card-mnemonic { color: var(--color-accent); }
.code-card-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--color-navy);
}
.dark .code-card-icon { background: var(--color-accent); }
.code-card-copy {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
  transition: background 0.15s, color 0.15s;
}
.code-card-copy:hover { background: #f3f4f6; color: #111827; }
.dark .code-card-copy:hover { background: #374151; color: #fff; }
