/* ===================================================================
   AGEWELL ALLIANCE — COMPONENTS
   Reusable UI widgets composed across multiple pages: buttons, cards,
   icon boxes, grids, counters, tags, parallax, marquee, accordion,
   timeline, team cards, blog cards/post body, forms, testimonial,
   pricing card, comparison table, danger stat, CTA banner, certificate
   mock, POS flow, scroll-zoom, related-pages rail.

   Load order: AFTER tokens + layout. Components inherit tokens and
   are scoped narrowly enough not to fight layout chrome.
   =================================================================== */

/* ===== BUTTONS ===== */
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(201, 168, 76, 0.4), 0 4px 12px rgba(201, 168, 76, 0.2);
}
.btn-gold:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
  transition-duration: 0.1s;
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(10, 22, 40, 0.35), 0 4px 12px rgba(10, 22, 40, 0.15);
}
.btn-navy:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-icon svg { width: 18px; height: 18px; }


/* ===== CARDS / ICON / GRID / COUNTERS / TAGS / PARALLAX / MARQUEE / ACCORDION / TIMELINE / TEAM / BLOG / FORMS / TESTIMONIAL / PRICING / COMPARISON / DANGER STAT / CTA BANNER / CERTIFICATE / POS FLOW ===== */
/* ===== CARDS — APPLE-STYLE HOVER ===== */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
}
.card-cream { background: var(--cream); }
.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease,
              border-color 0.4s ease;
}
.card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Apple-style card inner content smooth reveal */
.card h3, .card p, .card ul {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover h3 { transform: translateY(-1px); }

/* ===== ICON BOXES ===== */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box-gold { background: var(--gold-glow); }
.icon-box-green { background: var(--green-glow); }
.icon-box-navy { background: rgba(30, 52, 96, 0.08); }
.icon-box-red { background: rgba(220, 38, 38, 0.08); }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }

/* ===== STAT COUNTERS ===== */
.counter-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-text);
  line-height: 1;
}
.counter-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tag-gold { background: var(--gold-glow); color: var(--gold-dark); border: 1px solid rgba(201, 168, 76, 0.2); }
.tag-green { background: var(--green-glow); color: var(--green); border: 1px solid rgba(26, 122, 76, 0.2); }
.tag-red { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.15); }
.tag-navy { background: rgba(30, 52, 96, 0.08); color: var(--navy); border: 1px solid rgba(30, 52, 96, 0.15); }

/* ===== PARALLAX ===== */
.parallax-container { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ===== MARQUEE ===== */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 3rem;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== ACCORDION — APPLE STYLE ===== */
.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  text-align: left;
}
.accordion-header:hover { color: var(--gold-dark); padding-left: 4px; }
.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.5s var(--ease-spring);
  flex-shrink: 0;
  color: var(--gold);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-body-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-item.open .accordion-body-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light), transparent);
}
.timeline-item { padding-bottom: 2.5rem; position: relative; }
.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  transform: translateX(-50%);
  margin-left: 1px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== TEAM CARDS ===== */
.team-card {
  text-align: center;
  padding: 2rem;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
}
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.3;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.team-card .role {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== BLOG CARDS — APPLE STYLE ===== */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.04);
}
.blog-card-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}
.blog-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img .icon {
  font-size: 3rem;
  opacity: 0.3;
}
.blog-card-body { padding: 1.75rem; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.blog-card-meta .date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card h3 a { transition: color 0.3s; }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s;
}
.blog-card .read-more:hover { gap: 0.6rem; }

/* ===== BLOG POST ===== */
.blog-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.blog-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.blog-content p { margin-bottom: 1.5rem; }
.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.blog-content li { margin-bottom: 0.5rem; }
.blog-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--cream);
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy);
}
.blog-content .callout {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.blog-content .callout h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.blog-content .callout p { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.blog-sidebar .sidebar-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.blog-sidebar .sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}
.blog-sidebar .sidebar-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.blog-sidebar .sidebar-link:hover { color: var(--gold-dark); padding-left: 0.5rem; }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-500); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-select,
.form-dark .form-textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-dark .form-input:focus,
.form-dark .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.form-dark .form-label { color: rgba(255,255,255,0.6); }
.form-dark .form-select option { background: var(--navy); color: var(--white); }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}
.testimonial p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.75rem; color: var(--text-light); }

/* ===== PRICING CARD — APPLE STYLE ===== */
.policy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  position: relative;
}
.policy-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
}
.policy-card.featured {
  border: 2px solid var(--gold);
  transform: scale(1.03);
  box-shadow: 0 25px 70px rgba(201, 168, 76, 0.18), 0 8px 20px rgba(201, 168, 76, 0.08);
}
.policy-card.featured:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 35px 80px rgba(201, 168, 76, 0.22), 0 12px 30px rgba(201, 168, 76, 0.1);
}
.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-mono);
}
.policy-header {
  padding: 2.25rem 2rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.policy-tier {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.policy-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.policy-price { display: flex; align-items: baseline; justify-content: center; gap: 0.2rem; }
.policy-price .currency { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.policy-price .amount { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.policy-price .period { font-size: 0.9rem; color: var(--text-light); }
.policy-body { padding: 1.5rem 2rem; }
.policy-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.policy-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.policy-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.policy-features li.highlight { font-weight: 700; color: var(--navy); }
.policy-footer { padding: 0 2rem 2rem; }
.policy-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.3s;
}

/* ===== COMPARISON TABLE (semantic <table>) ===== */
.comp-table { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); width: 100%; border-collapse: collapse; }
.comp-header { background: var(--navy); }
.comp-header th, .comp-header div { padding: 1.15rem 1.25rem; text-align: center; font-weight: 700; color: var(--white); font-size: 0.9rem; }
.comp-header th:first-child, .comp-header div:first-child { text-align: left; background: transparent; }
.comp-header th:nth-child(2), .comp-header div:nth-child(2) { opacity: 0.6; }
.comp-header th:nth-child(3), .comp-header div:nth-child(3) { background: rgba(201, 168, 76, 0.15); color: var(--gold); }
.comp-row { background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.04); }
.comp-row:nth-child(even) { background: var(--cream); }
.comp-row td, .comp-row div { padding: 0.9rem 1.25rem; font-size: 0.88rem; }
.comp-row td:first-child, .comp-row div:first-child { font-weight: 600; color: var(--navy); }
.comp-row-category { background: var(--navy) !important; }
/* Legacy div-grid support */
.comp-header[style*="grid"] { display: grid; }
.comp-row[style*="grid"] { display: grid; }
.comp-row[style*="grid"] div { display: flex; align-items: center; }
.comp-row div:nth-child(2) { color: var(--text-light); text-align: center; }
.comp-row div:nth-child(3) { color: var(--green); font-weight: 600; text-align: center; background: rgba(34, 197, 94, 0.03); }

/* ===== DANGER STAT ===== */
.danger-stat {
  background: var(--white);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all 0.3s;
}
.danger-stat:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.danger-stat .number { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--red); margin-bottom: 0.2rem; }
.danger-stat .label { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  animation: cta-breathe 4s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.02em;
}
.cta-banner h2 em { font-style: normal; color: var(--gold); }
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* ===== CERTIFICATE MOCK ===== */
.certificate-mock {
  max-width: 650px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.certificate-mock::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
}
.certificate-mock::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  pointer-events: none;
}

/* ===== POS FLOW ===== */
.pos-flow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}
.pos-flow-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.pos-flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}


/* ===== SCROLL-ZOOM ON SCROLL ===== */
/* ===== APPLE-STYLE IMAGE/ELEMENT ZOOM ON SCROLL ===== */
.scroll-zoom {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-zoom.zoomed {
  transform: scale(1.03);
}


/* ===== RELATED PAGES RAIL ===== */
/* ===== RELATED PAGES RAIL =====
   Phase 2/3 of SEO link pyramid. Lives at the bottom of every pillar
   and hub page. Ships keyword-anchored equity to 4 sibling pages with
   visible context cards. See SEO_PYRAMID.md §6. */
.related-pages {
  padding: 4.5rem 0;
  background: var(--cream);
  border-top: 1px solid rgba(10,22,40,0.06);
}
.related-pages .container { max-width: 1180px; }
.related-pages-head { text-align: center; margin-bottom: 2.5rem; }
.related-pages-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .65rem;
}
.related-pages-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}
.related-pages-title em { color: var(--gold-text); font-style: italic; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: var(--radius-lg, 14px);
  padding: 1.5rem 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 10px rgba(10,22,40,0.04);
  position: relative;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(10,22,40,0.08);
}
.related-card-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .55rem;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 .55rem;
  color: var(--navy);
}
.related-card-desc {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-light, #4a5567);
  margin: 0 0 1rem;
}
.related-card-go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.related-card-go::after { content: "→"; transition: transform 0.2s ease; }
.related-card:hover .related-card-go::after { transform: translateX(4px); }

