/*
  CAN-TAP Verified — Theme Layer
  Follows: awesome-design-md-fork/design-md/can-tap-verified/DESIGN.md
  Aesthetic: photo-led, Canadian institutional trust brand.
  Apple product-page clarity crossed with restrained national identity.
  NO JetBrains Mono. NO file-tab labels. NO fake coordinates.
*/

/* ── Typography ──────────────────────────────────────────────────────── */

h1, h2 {
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-family: var(--font);
}

/* IBM Plex Serif italic — for pull-quotes ONLY (sparingly) */
.pull-quote,
blockquote.pull-quote {
  font-family: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 2px solid var(--blue);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* Eyebrow — flat uppercase notation, no pill, no dot */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}

/* ── Panels — dark, restrained, institutional ────────────────────────── */

.panel,
.hero-rating-card {
  background: var(--surface) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 12px 40px rgba(0,0,0,0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Featured plan — flat blue top rule, no gradient animation */
.plan-card.featured {
  border-top: 2px solid var(--blue) !important;
  position: relative;
}

/* ── NFC pulse — used on tap imagery ─────────────────────────────────── */

.nfc-pulse-wrap { position: relative; display: inline-block; }
.nfc-ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(22,93,255,0.28);
  animation: nfc-pulse 3.2s ease-out infinite;
  pointer-events: none;
}
.nfc-ring:nth-child(2) { animation-delay: 1.07s; inset: -18px; opacity: 0.55; }
.nfc-ring:nth-child(3) { animation-delay: 2.14s; inset: -28px; opacity: 0.25; }
@keyframes nfc-pulse {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.07); }
}

/* ── Button hover refinements ────────────────────────────────────────── */

.btn-primary:hover {
  box-shadow: 0 0 0 3px rgba(22,93,255,0.18), 0 6px 20px rgba(22,93,255,0.24);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.22);
}

/* ── Scroll reveal — staggered entrance (used on other pages) ────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.52s cubic-bezier(0.25,1,0.5,1),
    transform 0.52s cubic-bezier(0.25,1,0.5,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Nav compact on scroll ───────────────────────────────────────────── */

header.nav.nav-compact {
  background: rgba(8,17,31,0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════════════════════════════════════
   PHOTO-LED ARCHITECTURE — replaces the legacy dossier layer
   Shared classes for pages that want the CAN-TAP photo-first
   editorial treatment (package rows, artifact blocks, pull quotes).
   ══════════════════════════════════════════════════════════════════════ */

.photo-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.photo-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.photo-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--white);
  margin: 0.7rem 0 0.8rem;
}
.photo-head p {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
}

.photo-block {
  margin-bottom: 5rem;
}
.photo-block:last-of-type { margin-bottom: 0; }
.photo-block .photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface);
  margin-bottom: 2rem;
}
.photo-block .photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-block .copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.photo-block .copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.photo-block .copy p {
  font-size: 1.02rem;
  max-width: 58ch;
  margin: 0 auto 1.4rem;
  color: var(--ink);
}

/* ── Manifesto section ───────────────────────────────────────────────── */

.manifesto {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 6.5rem 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.manifesto-head h2 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--white);
  max-width: 16ch;
  margin-top: 1.1rem;
}
.manifesto-body {
  max-width: 58ch;
}
.manifesto-body p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.manifesto-body em {
  color: var(--white);
  font-style: italic;
}
.manifesto-body .pull-quote {
  font-size: 1.35rem;
  color: var(--white);
  border-left-width: 3px;
  margin: 2rem 0;
  padding-left: 1.5rem;
}
.manifesto-body .btn-row { margin-top: 1.8rem; }

@media (max-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .manifesto-head h2 { max-width: none; }
  .manifesto { padding: 4.5rem 0; }
}

/* ── Mobile sticky CTA (legacy pages) ────────────────────────────────── */

.sticky-mobile-cta { display: none; }
@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom));
    background: rgba(8,17,31,0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 0.75rem;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.25,1,0.5,1);
  }
  .sticky-mobile-cta.visible { transform: translateY(0); }
  .sticky-mobile-cta .btn { flex: 1; min-height: 48px; font-size: 0.92rem; }
  .sticky-mobile-cta-dismiss {
    color: rgba(255,255,255,0.35);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
  }
}
