/* ==========================================================
   Pricing page
   Navy hero (with fee card) → light principles → light plans →
   deep-navy comparison table → light FAQ → navy CTA
   ========================================================== */

/* ---------- Hero ---------- */
.price-hero-intro {
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--white) 78%, transparent);
}
.price-hero-btn {
  padding: 1rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.price-hero-link {
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.price-hero-link:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

/* Fee card — reads like a menu: plan ....... price */
.rate-card {
  position: relative;
  padding: 1.75rem;
  background: color-mix(in srgb, var(--white) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}
.rate-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 2px;
  background: var(--fg);
}
.rate-card-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.rate-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}
.rate-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}
.rate-dots {
  flex-grow: 1;
  border-bottom: 1px dotted color-mix(in srgb, var(--white) 25%, transparent);
  transform: translateY(-4px);
}
.rate-value {
  font-size: 2rem;
  line-height: 1;
  color: var(--fg);
}
.rate-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.principle {
  padding: 2rem;
  border-top: 2px solid var(--fg-on-light);
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.principle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  background: var(--bg-darker);
  color: var(--fg);
  font-size: 1.15rem;
}
.principle-title {
  margin-bottom: 0.6rem;
  font-size: 2rem;
  line-height: 1;
}
.principle-text {
  line-height: 1.7;
  color: color-mix(in srgb, var(--fg-dim) 85%, transparent);
}

/* ---------- Plans (light) ---------- */
.plans-section {
  background: color-mix(in srgb, var(--accent) 35%, var(--white));
}

/* ---------- Comparison table ---------- */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}
.matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.matrix th,
.matrix td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}
.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--bg-darker);
  vertical-align: bottom;
}
.matrix-feature-head {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}
.matrix-plan {
  width: 20%;
  text-align: center;
}
.matrix-plan-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 85%, transparent);
}
.matrix-plan-price {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--fg);
}
.matrix tbody th {
  text-align: left;
  font-weight: 400;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}
.matrix tbody td {
  text-align: center;
}
.matrix tbody tr {
  transition: background 0.25s;
}
.matrix tbody tr:hover {
  background: color-mix(in srgb, var(--white) 4%, transparent);
}
.matrix-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--on-accent);
  font-size: 0.7rem;
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s;
}
.matrix tbody tr.in-view .matrix-yes {
  transform: none;
  opacity: 1;
}
.matrix tbody td:nth-of-type(2) .matrix-yes {
  transition-delay: 0.08s;
}
.matrix tbody td:nth-of-type(3) .matrix-yes {
  transition-delay: 0.16s;
}
.matrix-no {
  color: color-mix(in srgb, var(--white) 25%, transparent);
}
.matrix-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 50%, transparent);
}

/* ---------- FAQ ---------- */
@media (min-width: 992px) {
  .price-faq-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.text-link {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--fg-on-light);
}

/* ---------- CTA ---------- */
.price-cta {
  overflow: hidden;
}
.price-cta::before {
  content: "";
  position: absolute;
  inset: -20% 10%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--fg) 16%, transparent),
    transparent 60%
  );
  pointer-events: none;
}
.price-cta > .wrap {
  position: relative;
}
.price-cta-text {
  max-width: 34rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .matrix-yes {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
