/* reviews.css: page-specific styles for regaliscapitalreviews.com */
/* Foundation: tokens.css (cloned from client-resources-hub shared-tokens.css). */

/* === RESET + BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans, 'Lato', system-ui, sans-serif);
  color: var(--ink, #0a0a0a);
  background: var(--cream, #F8F4EE);
  line-height: var(--lh-body, 1.6);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy, #002950); text-decoration: underline; }
a:hover { color: var(--gold-deep, #e6b94a); }

/* === HERO === */
.hero {
  background: var(--navy, #002950);
  color: white;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.hero h1 {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: var(--lh-tight, 1.1);
  color: var(--gold, #fcd981);
  margin-bottom: 1rem;
}
.hero h2.subhead {
  font-family: var(--sans, 'Lato', system-ui, sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: var(--lh-snug, 1.4);
  max-width: 56rem;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
}
.hero .last-updated {
  margin-top: 1.5rem;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-soft, #fce5b8);
}

/* === STATS STRIP (4-stat funnel) === */
.stats-strip {
  background: white;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  text-align: center;
  border-bottom: 1px solid var(--border, #e0dcd4);
}
.stats-strip .stat-number {
  display: block;
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-ink, #7a5d14);
  line-height: 1;
}
.stats-strip .stat-label {
  display: block;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft, #6c6c6c);
  margin-top: 0.5rem;
}

/* === SECTION HEADERS === */
section { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); max-width: 96rem; margin: 0 auto; }
section > h2.section-title {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy, #002950);
  margin-bottom: 0.75rem;
}
section > h2.section-title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--gold, #fcd981);
  margin-top: 1rem;
}
section > .section-intro {
  font-size: 1.0625rem;
  line-height: var(--lh-body, 1.6);
  color: var(--ink-soft, #6c6c6c);
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* === VIDEO TILE GRID === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 2rem;
}
.video-tile {
  background: white;
  border: 1px solid var(--border, #e0dcd4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,41,80,0.04));
  transition: box-shadow 0.2s, transform 0.2s;
}
.video-tile:hover { box-shadow: var(--shadow-md, 0 4px 16px rgba(0,41,80,0.08)); transform: translateY(-2px); }
.video-tile .video-frame,
.video-tile .video-poster,
.video-tile .video-player {
  background: var(--navy, #002950);
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  position: relative;
}
.video-tile .video-poster {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
}
.video-tile .video-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.video-tile .video-poster .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 41, 80, 0.85);
  color: var(--gold, #fcd981);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.video-tile .video-poster:hover .play-icon,
.video-tile .video-poster:focus-visible .play-icon {
  background: var(--gold, #fcd981);
  color: var(--navy, #002950);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-tile .video-player {
  object-fit: contain;
}
.video-tile .tile-body { padding: 1.25rem 1.5rem 1.5rem; }
.video-tile .tile-headline {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy, #002950);
  line-height: var(--lh-snug, 1.4);
  margin-bottom: 0.5rem;
}
.video-tile .tile-mechanics {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute, #8b8b8b);
  margin-bottom: 0.75rem;
}
.video-tile .pull-quote {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1rem;
  font-style: italic;
  line-height: var(--lh-body, 1.6);
  color: var(--ink, #0a0a0a);
  border-left: 3px solid var(--gold, #fcd981);
  padding-left: 1rem;
}
.video-fallback-message {
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-mute, #8b8b8b);
  font-size: 0.875rem;
}

/* === CLOSED DEAL OUTCOMES (screenshot grid) === */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}
.deal-card {
  background: white;
  border: 1px solid var(--border, #e0dcd4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,41,80,0.04));
}
.deal-card .deal-headline {
  display: block;
  padding: 1rem 1.25rem;
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy, #002950);
  line-height: var(--lh-snug, 1.4);
  border-bottom: 1px solid var(--border, #e0dcd4);
}
.deal-card img.deal-proof {
  width: 100%;
  height: auto;
  display: block;
}

/* === CLOSED DEAL STRUCTURES TABLE === */
.deal-structures-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(1rem, 2vw, 2rem);
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,41,80,0.04));
}
.deal-structures-table thead th {
  background: var(--navy, #002950);
  color: white;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.25rem;
  text-align: left;
}
.deal-structures-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, #e0dcd4);
  font-size: 0.9375rem;
  vertical-align: top;
}
.deal-structures-table tbody tr:nth-child(even) {
  background: rgba(252, 217, 129, 0.06);
}
.deal-structures-table tbody tr:hover {
  background: rgba(252, 217, 129, 0.15);
}
.deal-structures-table .industry {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-weight: 600;
  color: var(--navy, #002950);
}
.deal-structures-table .number {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  color: var(--ink, #0a0a0a);
}
.deal-structures-table .notes {
  font-size: 0.8125rem;
  color: var(--ink-soft, #6c6c6c);
}

/* === TEAM POD GRID === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.team-pod {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,41,80,0.08);
  border-radius: 8px;
  padding: 1.5rem;
}
.team-pod .pod-name {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy, #002950);
  margin-bottom: 0.5rem;
}
.team-pod .pod-body {
  font-size: 0.9375rem;
  line-height: var(--lh-body, 1.6);
  color: var(--ink-soft, #6c6c6c);
}

/* === MILESTONES (numbered list) === */
.milestone-list { list-style: none; counter-reset: milestone; }
.milestone-list > li {
  counter-increment: milestone;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border, #e0dcd4);
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: baseline;
  gap: 1.5rem;
}
.milestone-list > li::before {
  content: counter(milestone, decimal-leading-zero);
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-ink, #7a5d14);
}
.milestone-list .milestone-title {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy, #002950);
  display: block;
  margin-bottom: 0.25rem;
}
.milestone-list .milestone-body { color: var(--ink-soft, #6c6c6c); font-size: 0.9375rem; }
.milestone-footnote {
  margin-top: 1.5rem;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: var(--ink-mute, #8b8b8b);
}

/* === FAQ === */
.faq details {
  border-bottom: 1px solid var(--border, #e0dcd4);
  padding: 1.25rem 0;
}
.faq details summary {
  cursor: pointer;
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy, #002950);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-ink, #7a5d14);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details .faq-answer {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: var(--lh-body, 1.6);
  color: var(--ink-soft, #6c6c6c);
}
.faq details .faq-answer p + p { margin-top: 0.75rem; }

/* === FOOTER === */
.site-footer {
  background: var(--navy, #002950);
  color: rgba(255,255,255,0.8);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  font-size: 0.875rem;
  line-height: var(--lh-body, 1.6);
  text-align: center;
}
.site-footer .footer-logo { margin-bottom: 2rem; }
.site-footer .footer-logo img { width: 12rem; margin: 0 auto; }
.site-footer .disambiguation {
  max-width: 56rem;
  margin: 0 auto 2rem;
  font-size: 0.8125rem;
}
.site-footer .footer-links {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer .footer-links a { color: var(--gold, #fcd981); }
.site-footer .disclaimer {
  max-width: 56rem;
  margin: 1.5rem auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.site-footer .copyright {
  margin-top: 2rem;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.site-footer .cookie-notice {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

/* === RESPONSIVE: 900px === */
@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .deal-structures-table thead { display: none; }
  .deal-structures-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border, #e0dcd4);
    border-radius: 8px;
    padding: 1rem;
  }
  .deal-structures-table tbody td {
    display: block;
    padding: 0.4rem 0;
    border-bottom: none;
  }
  .deal-structures-table tbody td::before {
    content: attr(data-label);
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-mute, #8b8b8b);
    display: block;
    margin-bottom: 0.15rem;
  }
}

/* === RESPONSIVE: 640px === */
@media (max-width: 640px) {
  .stats-strip { grid-template-columns: 1fr; }
}
