/* Hugin — billing page styles (extends styles.css) */

.billing-main {
  max-width: 1080px;
}

.billing-hero {
  text-align: center;
  margin-block-end: var(--s-12);
}
.billing-hero .hero-title {
  margin-block-start: var(--s-3);
}
.billing-hero .hero-sub {
  max-width: 540px;
  margin: var(--s-4) auto 0;
  color: var(--ink-mute);
  font-size: var(--fs-18);
  line-height: 1.5;
}

/* Shared .status-banner rules moved to styles.css so /, /billing, /account can reuse them (VOL-283). */

/* ===== Current account summary ===== */
.current-summary {
  margin-block-end: var(--s-10);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}
.summary-head h2 {
  font-size: var(--fs-24);
  margin-block-start: var(--s-2);
}
.summary-tier {
  color: var(--accent);
  text-transform: capitalize;
}
/* Shared .usage-* classes moved to styles.css so /account.html can reuse them (VOL-282). */

/* ===== Pricing grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-block-end: var(--s-12);
}
@media (max-width: 780px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}

/* ===== Tier cards ===== */
.tier-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  box-shadow: var(--shadow-2);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--accent-line);
}

/* Pro card lit by ember — the warm voice signals the elevated tier
   against Free's cooler moss palette. */
.tier-card.tier-pro {
  border-color: var(--warm-line);
  box-shadow: var(--shadow-3),
              0 0 0 1px color-mix(in oklab, var(--warm) 30%, transparent),
              0 12px 36px var(--warm-soft);
}
.tier-card.tier-pro:hover {
  box-shadow: var(--shadow-3),
              0 0 0 2px color-mix(in oklab, var(--warm) 55%, transparent),
              0 16px 48px var(--warm-soft);
}

.tier-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 600ms ease;
}
.tier-card:hover .tier-image {
  transform: scale(1.04);
}

/* Dark gradient overlay so bottom content stays legible regardless of image */
.tier-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 17, 13, 0.0) 0%,
      rgba(20, 17, 13, 0.0) 35%,
      rgba(20, 17, 13, 0.55) 60%,
      rgba(20, 17, 13, 0.92) 100%
    );
}

.tier-content {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 3;
  padding: var(--s-6) var(--s-6) var(--s-6);
  color: #F1EFE6;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.tier-content .eyebrow {
  color: rgba(241, 239, 230, 0.62);
}
.tier-eyebrow-pro {
  color: var(--warm) !important;
}

.tier-name {
  font-size: var(--fs-30);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-block-start: var(--s-1);
}
.tier-price-amount {
  font-family: var(--font-display);
  font-size: var(--fs-44);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.tier-price-period {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  color: rgba(241, 239, 230, 0.70);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-size: var(--fs-14);
  color: rgba(241, 239, 230, 0.85);
  line-height: 1.5;
}
.tier-tick {
  color: var(--accent);
  font-weight: 700;
  margin-inline-end: var(--s-2);
}
/* Pro tier marginalia — Elder Futhark glyphs (ᚺ ᛁ ᚦ ᚱ) glow ember,
   reinforcing the world-tree tier as the warmer, ceremonial path. */
.tier-pro .tier-tick {
  color: var(--warm);
  font-family: 'Noto Sans Runic', var(--font-display), serif;
  font-weight: 400;
  font-size: var(--fs-16);
  text-shadow: 0 0 8px var(--warm-soft);
}

.tier-cta {
  margin-block-start: var(--s-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.tier-cta[hidden] { display: none; }

.btn-ghost.tier-cta {
  background: rgba(241, 239, 230, 0.08);
  color: #F1EFE6;
  border-color: rgba(241, 239, 230, 0.20);
}
.btn-ghost.tier-cta:hover {
  background: rgba(241, 239, 230, 0.14);
  border-color: rgba(241, 239, 230, 0.32);
}

.btn-primary.tier-cta {
  background: var(--warm);
  color: var(--warm-ink);
  font-weight: 600;
  border-color: var(--warm);
}
.btn-primary.tier-cta:hover {
  background: color-mix(in oklab, var(--warm) 88%, white);
  border-color: color-mix(in oklab, var(--warm) 88%, white);
}
.btn-primary.tier-cta:disabled {
  opacity: 0.55;
  cursor: progress;
}

.tier-cta[data-state="current"] {
  background: transparent;
  color: rgba(241, 239, 230, 0.62);
  border-color: rgba(241, 239, 230, 0.20);
  cursor: default;
  pointer-events: none;
}

/* ===== Footer note ===== */
.footer-note {
  text-align: center;
  padding: var(--s-6) var(--s-4);
  font-size: var(--fs-13);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.footer-note .rune-deco {
  color: var(--accent);
  margin-inline-end: var(--s-1);
}

/* The promise — privacy micro-copy below the Pro CTA (VOL-341). */
.tier-promise {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-13);
  line-height: 1.55;
}
.tier-promise .rune-deco {
  color: var(--warm);
  margin-inline-end: var(--s-1);
}
