/* Pointfolio: refined editorial layout, forced CTA contrast */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navy fills: anchors reset by Tailwind; force readable labels */
a.btn-navy-primary,
a.btn-navy-primary:visited {
  color: #ffffff !important;
}

a.btn-navy-primary:hover,
a.btn-navy-primary:focus-visible {
  color: #ffffff !important;
}

a.btn-gold-key,
a.btn-gold-key:visited {
  color: #0a1128 !important;
}

a.btn-gold-key:hover,
a.btn-gold-key:focus-visible {
  color: #0a1128 !important;
}

/*
 * App navy = #0F4C81 (Flutter AppColors.accentNavy). Tailwind CDN injects utilities AFTER this file
 * and can override backgrounds; use !important on fills so CTAs always match the app.
 */
a.btn-navy-primary,
.btn-navy-primary {
  position: relative;
  overflow: hidden;
  background-color: #0f4c81 !important;
  background-image: linear-gradient(180deg, #1366aa 0%, #0f4c81 42%, #0c3f6b 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 26px rgba(15, 76, 129, 0.38) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

a.btn-navy-primary:hover,
.btn-navy-primary:hover {
  background-color: #0a3560 !important;
  background-image: linear-gradient(180deg, #115a96 0%, #0a3560 50%, #082d52 100%) !important;
  filter: brightness(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 14px 32px rgba(15, 76, 129, 0.42) !important;
}

.btn-navy-primary.btn-interactive:hover {
  transform: scale(1.03);
}

.btn-navy-primary .btn-label {
  position: relative;
  z-index: 1;
  color: inherit !important;
}

.btn-gold-key {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f0d878 0%, #d4af37 42%, #b8942e 100%);
  color: #0a1128 !important;
  font-weight: 800;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 28px rgba(180, 140, 40, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gold-key:hover {
  filter: brightness(1.04);
}

.btn-gold-key.btn-interactive:hover {
  transform: scale(1.03);
}

.btn-gold-key .btn-label {
  position: relative;
  z-index: 1;
  color: inherit !important;
}

a.btn-outline-navy,
.btn-outline-navy {
  border: 2px solid #0f4c81 !important;
  color: #0f4c81 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 76, 129, 0.08) !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

a.btn-outline-navy:hover,
.btn-outline-navy:hover {
  background: rgba(15, 76, 129, 0.07) !important;
}

.btn-outline-navy.btn-interactive:hover {
  transform: scale(1.03);
}

.elevated-card {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 50px -12px rgba(10, 17, 40, 0.12),
    0 8px 16px -8px rgba(10, 17, 40, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.elevated-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 28px 60px -14px rgba(10, 17, 40, 0.14),
    0 12px 24px -8px rgba(10, 17, 40, 0.1);
  border-color: #dde4ec;
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 50px -12px rgba(10, 17, 40, 0.12),
    0 8px 16px -8px rgba(10, 17, 40, 0.08);
}

.mockup-gold-bar {
  background: linear-gradient(165deg, #ecd87a 0%, #d4af37 38%, #a67c1f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.mockup-float {
  animation: mockup-float 8s ease-in-out infinite;
}

@keyframes mockup-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Hero device frame: warm metal bezel + paper-toned screen well (blends with #F0EEE9 page) */
.iphone-bezel {
  display: flex;
  flex-direction: column;
  border-radius: 2.75rem;
  padding: 12px;
  background: linear-gradient(
    155deg,
    #ece8e1 0%,
    #ddd8cf 38%,
    #cfc9c0 100%
  ) !important;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(28, 29, 55, 0.07),
    0 14px 38px -12px rgba(28, 29, 55, 0.14),
    0 6px 16px -8px rgba(28, 29, 55, 0.09) !important;
}

.iphone-screen-inner {
  flex: 1;
  min-height: 0;
  border-radius: 2.05rem;
  overflow: hidden;
  background: #f0eee9 !important;
  box-shadow: inset 0 0 0 1px rgba(28, 29, 55, 0.08) !important;
}

/* Footer lockup: mark slightly larger than header logo; opaque (no blend) so it reads crisp on blue */
.footer-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-brand-lockup {
    gap: 0.625rem;
  }
}

.footer-brand-mark {
  flex-shrink: 0;
  display: block;
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
  .footer-brand-mark {
    height: 2.75rem;
  }
}

/* Legacy: kept if referenced elsewhere */
.phone-frame {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  padding: 0.4rem;
  background: linear-gradient(160deg, #ece8e1 0%, #e0dcd4 100%);
  box-shadow:
    0 0 0 1px rgba(28, 29, 55, 0.06),
    0 20px 44px -12px rgba(28, 29, 55, 0.14);
}

.phone-frame-inner {
  flex: 1;
  min-height: 0;
  border-radius: 1.65rem;
  overflow: hidden;
}

.premium-card {
  animation: premium-glow 6s ease-in-out infinite;
}

@keyframes premium-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.75;
  }
}

.ticker-wrap {
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.btn-interactive {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mockup-float,
  .ticker,
  .premium-card {
    animation: none !important;
  }

  .btn-interactive:hover {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.text-emerald {
  color: #1b5e20;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
