/* ═══════════════════════════════════════════════════════════
   BILLING PAGE — page-specific styles
   ═══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.rd1 { transition-delay: .06s; }
.rd2 { transition-delay: .12s; }
.rd3 { transition-delay: .18s; }
.rd4 { transition-delay: .24s; }
.rd5 { transition-delay: .30s; }
.rd6 { transition-delay: .36s; }

.hero {
  padding: 148px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(62,243,210,.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(62,243,210,.07);
  border: 1px solid rgba(62,243,210,.18);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,5vw,3.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: .5;
}

.billing-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  padding: 64px 0 96px;
}

.summary-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.summary-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,10,15,.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(62,243,210,.5);
  animation: summary-pulse 2s infinite;
}

@keyframes summary-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.summary-header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary-body {
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(34,49,74,.5);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(62,243,210,.07);
  border: 1px solid rgba(62,243,210,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

.summary-item-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.summary-item-desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
}

.summary-contact {
  margin: 0 24px 24px;
  padding: 16px;
  border: 1px solid rgba(62,243,210,.15);
  border-radius: var(--radius);
  background: rgba(62,243,210,.04);
  text-align: center;
}

.summary-contact p {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.55;
}

.summary-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(62,243,210,.25);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .2s;
}

.summary-contact a:hover {
  background: rgba(62,243,210,.08);
}

.billing-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.billing-section-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.bs-heading {
  margin: 0;
}

.billing-section-block:last-child {
  margin-bottom: 0;
}

.bs-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  background: var(--surface);
  transition: background .2s;
  user-select: none;
  text-align: left;
  border: 0;
  color: var(--text);
}

.bs-header:hover {
  background: var(--surface2);
}

.bs-header.open {
  background: var(--surface2);
}

.bs-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bs-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  width: 28px;
  flex-shrink: 0;
}

.bs-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.bs-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .2s, color .2s;
}

.bs-header.open .bs-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.bs-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
  background: rgba(7,10,15,.25);
}

.bs-body.open {
  max-height: 1400px;
}

.bs-content {
  padding: 28px;
  border-top: 1px solid var(--border);
}

.bs-content p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.bs-content p:last-child {
  margin-bottom: 0;
}

.bs-content p strong {
  color: var(--text);
  font-weight: 500;
}

.bs-rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.bs-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.bs-rule.ok {
  background: rgba(52,211,153,.04);
  border: 1px solid rgba(52,211,153,.1);
}

.bs-rule.warn {
  background: rgba(251,191,36,.04);
  border: 1px solid rgba(251,191,36,.1);
}

.bs-rule.bad {
  background: rgba(251,113,133,.04);
  border: 1px solid rgba(251,113,133,.1);
}

.bs-rule.neutral {
  background: rgba(7,10,15,.4);
  border: 1px solid var(--border);
}

.bs-rule-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}

.bs-rule.ok .bs-rule-icon {
  color: var(--success);
}

.bs-rule.warn .bs-rule-icon {
  color: var(--warning);
}

.bs-rule.bad .bs-rule-icon {
  color: var(--danger);
}

.bs-rule.neutral .bs-rule-icon {
  color: var(--accent);
}

.bs-rule strong {
  color: var(--text);
  font-weight: 500;
}

.bs-callout {
  padding: 18px 20px;
  border: 1px solid rgba(62,243,210,.18);
  border-radius: var(--radius);
  background: rgba(62,243,210,.04);
  margin: 16px 0;
}

.bs-callout-title {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bs-callout p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.bs-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.bs-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(62,243,210,.08);
  border: 1px solid rgba(62,243,210,.18);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.billing-email {
  color: var(--accent);
}

@media (max-width: 960px) {
  .billing-wrap {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 112px 0 56px;
  }

  .bs-content {
    padding: 20px;
  }
}
