/* TMR-fidelity utilities */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Hero — TMR-fidelity dark theme */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  overflow: hidden;
}
.hero__poster, .hero__video,
.hero__media video, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  color: var(--paper);
  font-weight: 700;
  line-height: 1.12;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}
.hero .lead {
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-6);
}
.hero__ctas { gap: var(--sp-3); }
.hero__badges { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
@media (min-width: 768px) {
  .hero { padding: 120px 0 140px; }
}

/* "What you'll receive" cards (v6 — image-led) */
.vprops { padding: var(--sp-8) 0; }
.vprop {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.vprop::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sapphire-dark), var(--sapphire-light));
  z-index: 2;
}
.vprop:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vprop__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--paper-2);
}
.vprop__body-wrap {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex: 1;
}
.vprop__title { font-size: var(--fs-20); margin-bottom: var(--sp-3); margin-top: 0; }
.vprop__body { color: var(--slate); font-size: var(--fs-14); line-height: 1.6; margin-bottom: 0; }
/* Legacy icon styles kept for any leftover usage */
.vprop__icon {
  width: 56px; height: 56px; margin: 0 auto var(--sp-4);
  border-radius: 14px;
  background: var(--sapphire-tint);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sapphire-dark);
}

/* Steps — TMR-fidelity 52px gradient number */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; text-align: center; }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sapphire-dark), var(--sapphire));
  color: var(--paper);
  font-weight: 700;
  font-size: var(--fs-20);
  margin-bottom: var(--sp-3);
  box-shadow: 0 4px 12px rgba(31, 128, 255, 0.25);
}
.step__title { font-size: var(--fs-20); margin-bottom: var(--sp-3); }
.step__body { color: var(--slate); }
.step__body--narrow { max-width: 360px; margin: 0 auto; }

/* Differentiator cards (v6 — image-led) */
.diff-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sapphire-dark), var(--sapphire-light));
  z-index: 2;
}
.diff-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.diff-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--paper-2);
}
.diff-card__body-wrap {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex: 1;
}
.diff-card__kicker { color: var(--sapphire); font-weight: 700; font-size: var(--fs-12); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.diff-card__title { font-size: var(--fs-20); margin-bottom: var(--sp-2); margin-top: 0; }
.diff-card__body { color: var(--slate); font-size: var(--fs-14); line-height: 1.6; }

/* Pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }

.price-grid { padding-top: var(--sp-3); }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.price-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sapphire-dark), var(--sapphire-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.price-card--featured { border-color: var(--sapphire); box-shadow: 0 0 0 1px var(--sapphire), var(--shadow); }
.price-card--featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sapphire); color: var(--paper);
  padding: 4px 14px; border-radius: 999px;
  font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.04em;
  z-index: 2;
}
.price-card__name { font-size: var(--fs-18); font-weight: 700; margin-bottom: var(--sp-2); margin-top: var(--sp-2); }
.price-card__price {
  font-size: var(--fs-40);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.02em;
}
.price-card__price-suffix { font-size: var(--fs-14); color: var(--slate); font-weight: 500; }
.price-card__tagline { color: var(--slate); font-size: var(--fs-14); margin-bottom: var(--sp-5); min-height: 2.5em; }
.price-card__list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); flex: 1; }
.price-card__list li {
  padding: var(--sp-2) 0;
  font-size: var(--fs-14);
  color: var(--ink-2);
  position: relative;
  padding-left: var(--sp-5);
}
.price-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--sapphire);
  border-bottom: 2px solid var(--sapphire);
  transform: rotate(-45deg);
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq__cat { margin-bottom: var(--sp-8); }
.faq__cat h3 { font-size: var(--fs-24); margin-bottom: var(--sp-5); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}
.faq details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: var(--sp-6);
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: var(--fs-24); color: var(--slate);
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: var(--sp-3);
  color: var(--slate);
  font-size: var(--fs-14);
  line-height: 1.6;
}

/* Sample report cards */
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.sample-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 960px) { .sample-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .sample-grid--two { grid-template-columns: 1fr; max-width: 480px; } }

.sample-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}
.sample-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sapphire-dark), var(--sapphire-light));
  z-index: 1;
}
.sample-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.sample-card__cover { aspect-ratio: 16/10; background: var(--paper-2); background-size: cover; background-position: center; }
.sample-grid--two .sample-card__cover { aspect-ratio: 4/3; }
.sample-card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.sample-card__title { font-size: var(--fs-24); margin-bottom: var(--sp-2); }
.sample-card__subtitle { color: var(--slate-2); font-size: var(--fs-12); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.sample-card__list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); color: var(--slate); font-size: var(--fs-14); line-height: 1.6; }
.sample-card__list li { padding: 2px 0; }
.sample-card__cta { margin-top: auto; }

/* CIM structure preview */
.cim-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.cim-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--paper-3);
  gap: var(--sp-4);
}
.cim-preview__row:last-child { border-bottom: 0; }
.cim-preview__num { color: var(--sapphire); font-weight: 700; min-width: 32px; }
.cim-preview__title { font-weight: 600; flex: 1; }
.cim-preview__desc { color: var(--slate); font-size: var(--fs-14); flex: 2; }
.cim-preview__pages { color: var(--slate-2); font-size: var(--fs-12); white-space: nowrap; }
@media (max-width: 640px) {
  .cim-preview__row { flex-wrap: wrap; }
  .cim-preview__desc { flex: 1 0 100%; padding-left: 44px; }
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-2);
}
.legal h2 { font-size: var(--fs-24); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal h3 { font-size: var(--fs-18); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal p, .legal li { font-size: var(--fs-16); line-height: 1.7; }
.legal ul, .legal ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal__updated { color: var(--slate-2); font-size: var(--fs-14); }

/* About */
.about-hero { position: relative; padding: var(--sp-8) 0; background: var(--paper-2); }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--paper-3); max-width: 920px; margin: var(--sp-7) auto 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { max-width: 720px; margin: 0 auto; text-align: center; }
.about-body p { text-align: left; }
.about-body p strong { color: var(--ink); }
.about-body--centered p { text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-info__row {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--paper-2);
  border-radius: var(--radius);
}
.contact-info__row h4 { margin-bottom: var(--sp-1); font-size: var(--fs-16); }
.contact-info__row p { margin: 0; color: var(--slate); font-size: var(--fs-14); }

/* Callout */
.callout {
  background: var(--sapphire-tint);
  border-left: 4px solid var(--sapphire);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout--center { text-align: center; border-left: 0; border-top: 4px solid var(--sapphire); }

/* Page heading */
.page-head { padding: var(--sp-8) 0 var(--sp-5); text-align: center; }
.page-head h1 { font-size: var(--fs-40); margin-bottom: var(--sp-3); }
.page-head .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Path block — how-it-works dual paths */
.path-block { background: var(--paper); padding: var(--sp-7) 0; }
.path-block--owner { background: var(--paper); }
.path-block--advisor { background: var(--paper-2); }
.path-block__header { text-align: center; max-width: 720px; margin: 0 auto var(--sp-7); }
.path-block__eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sapphire-tint); color: var(--sapphire-dark); font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.path-block__steps { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-7); }
.path-block__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.path-block__step .step__title { margin-top: 0; }
@media (min-width: 768px) {
  .path-block__step { flex-direction: row; align-items: flex-start; text-align: left; gap: var(--sp-5); }
  .path-block__step .step__num { flex-shrink: 0; margin-bottom: 0; }
  .path-block__step-content { flex: 1; }
}
