/* ─────────────────────────────────────────────────────────────────────────────
   tiers.css — Tier badge, founding member badge, beta tag, and plans page
   ───────────────────────────────────────────────────────────────────────────── */

/* ── BETA tag (in app header, next to wordmark) ─────────────────────────────── */

.beta-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.12rem 0.35rem;
  margin-left: 0.45rem;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Tier badges ─────────────────────────────────────────────────────────────── */

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.18rem 0.45rem;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
}

.tier-badge.devoted {
  color: #c9853a;
  background: rgba(201, 133, 58, 0.1);
  border: 1px solid rgba(201, 133, 58, 0.28);
}

.tier-badge.owned {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

/* Small "· free during beta" note inside a badge */
.tier-badge-beta-note {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.75;
  text-transform: none;
}

/* Corner variant — positioned absolutely inside a relative parent */
.tier-badge.corner {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
}

/* ── Tier banner (slim bar at top of a section/card) ─────────────────────────── */

.tier-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.tier-banner.devoted {
  color: #c9853a;
  background: rgba(201, 133, 58, 0.08);
  border-color: rgba(201, 133, 58, 0.2);
}

.tier-banner.owned {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
}

.tier-banner .tier-banner-note {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.65;
}

/* ── Founding Member badge ───────────────────────────────────────────────────── */

.founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c9a84c;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(201, 168, 76, 0.07);
}

.founding-badge .founding-badge-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Large version for plans page card */
.founding-badge.large {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.1em;
}

/* ── Beta welcome modal ───────────────────────────────────────────────────────── */

#beta-welcome-modal .modal {
  max-width: 460px;
  text-align: center;
  padding: 2.5rem 2rem;
}

#beta-welcome-modal .beta-welcome-badge {
  margin: 0 auto 1.75rem;
}

#beta-welcome-modal h3 {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

#beta-welcome-modal p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

#beta-welcome-modal p + p {
  margin-top: 0.85rem;
}

#beta-welcome-modal .beta-welcome-cta {
  margin-top: 2rem;
  width: 100%;
}

/* ── Plans page ──────────────────────────────────────────────────────────────── */

#section-plans {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

#section-plans h2 {
  margin-bottom: 0.35rem;
}

.plans-status-line {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Founding member highlight card */
.founding-member-card {
  background: var(--bg-surface);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.founding-member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.founding-member-card .founding-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.founding-member-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.founding-member-card .founding-card-body {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.9rem;
}

.founding-member-card .founding-card-body p + p {
  margin-top: 0.65rem;
}

.founding-member-card .founding-date {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.founding-member-card .founding-prices {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.founding-price-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.founding-price-item .plan-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.founding-price-item .price-display {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.founding-price-item .price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.founding-price-item .price-founding {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c9a84c;
}

.founding-price-item .price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tier comparison grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 680px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.plan-card.current {
  border-color: var(--accent-dim);
}

.plan-card-header {
  margin-bottom: 1.25rem;
}

.plan-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.02em;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.plan-card-price .price-free {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.plan-card-price .price-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-card-price .price-main.founding {
  color: #c9a84c;
}

.plan-card-price .price-strike {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.plan-card-price .price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-card-yearly {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.plan-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.plan-card-features li {
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--bg-subtle);
}

.plan-card-features li:last-child {
  border-bottom: none;
}

.plan-card-features .feat-check {
  color: var(--accent-dim);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.plan-card-cta {
  margin-top: auto;
  padding-top: 1rem;
}

.plan-card-cta .btn {
  width: 100%;
  text-align: center;
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Beta notice bar */
.plans-beta-notice {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.plans-beta-notice strong {
  color: var(--text-primary);
}

/* Plans feedback section */
.plans-feedback {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plans-feedback a {
  color: var(--accent-dim);
  text-decoration: none;
}

.plans-feedback a:hover {
  color: var(--accent);
}

/* ── Micro-feedback prompt ────────────────────────────────────────────────────── */

#micro-feedback-modal .micro-feedback-card {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 380px;
  width: calc(100% - 2rem);
  z-index: 8000;
  box-shadow: var(--shadow-lg);
}

#micro-feedback-modal .micro-feedback-question {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

#micro-feedback-modal .micro-feedback-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

#micro-feedback-modal .micro-feedback-option {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

#micro-feedback-modal .micro-feedback-option:hover {
  border-color: var(--accent-dim);
  color: var(--text-primary);
}

#micro-feedback-modal .micro-feedback-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

/* Office mode overrides */
[data-theme="office"] .tier-badge.devoted {
  color: #8a5c1a;
  background: rgba(138, 92, 26, 0.08);
  border-color: rgba(138, 92, 26, 0.25);
}

[data-theme="office"] .tier-badge.owned {
  color: #7a6012;
  background: rgba(122, 96, 18, 0.08);
  border-color: rgba(122, 96, 18, 0.25);
}

[data-theme="office"] .founding-badge {
  color: #7a6012;
  border-color: rgba(122, 96, 18, 0.35);
  background: rgba(122, 96, 18, 0.06);
}

[data-theme="office"] .beta-tag {
  color: #888;
  background: #f0f0f0;
  border-color: #ddd;
}
