/* NoTube.ai pricing page — scoped inside base.html's site-main */
.pricing-shell { max-width: 1100px; margin: 0 auto; }

/* ============================================================
   Hero
============================================================ */
.price-hero {
  text-align: center;
  padding: 40px 0 60px 0;
}
.badge-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.price-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 18px 0;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-hero-sub {
  max-width: 640px;
  margin: 0 auto 32px auto;
  font-size: 17px;
  color: var(--text-2);
}
.price-hero-sub em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 4px;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 150ms;
}
.toggle-btn.active {
  background: var(--text);
  color: var(--bg);
}
.toggle-btn:hover:not(.active) { color: var(--text); }
.save-chip {
  font-size: 11px;
  padding: 2px 8px;
  background: color-mix(in oklab, var(--success) 18%, transparent);
  color: var(--success);
  border-radius: 999px;
  font-weight: 600;
}
.toggle-btn.active .save-chip {
  background: var(--bg-elev-2);
  color: var(--success);
}

/* ============================================================
   Plans grid
============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.plan-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, var(--bg-elev)) 0%, var(--bg-elev) 55%);
  box-shadow: 0 20px 60px -20px color-mix(in oklab, var(--accent) 50%, transparent);
}
.plan-featured:hover { transform: translateY(-4px); }
.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.plan-lifetime { border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); }

.plan-card header { margin-bottom: 14px; }
.plan-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.plan-tag {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.plan-price .currency { font-size: 20px; color: var(--text-2); margin-top: 8px; }
.plan-price .amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.plan-price .per {
  font-size: 13px;
  color: var(--text-3);
  margin-left: 4px;
}

.plan-price-yearly-note {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
  min-height: 16px;
}

.plan-credits {
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}
.plan-credits strong { color: var(--text); font-size: 14px; }
.plan-featured .plan-credits { border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }

.btn-block { display: flex; justify-content: center; width: 100%; padding: 11px 14px; font-size: 14px; }
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline-accent:hover { background: var(--accent-soft); }
.btn-primary-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.btn-primary-soft:hover { background: color-mix(in oklab, var(--accent) 20%, var(--accent-soft)); }
.soon {
  margin-left: 4px;
  padding: 1px 7px;
  background: var(--bg-elev-2);
  color: var(--text-3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Lifetime spotlight
============================================================ */
.lifetime-spotlight {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 48px;
  margin-bottom: 96px;
  background:
    radial-gradient(ellipse at right, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--border));
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  color: #fff;
  border: 0;
}
.lifetime-left h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 14px 0;
  line-height: 1.15;
}
.lifetime-left p { color: var(--text-2); font-size: 16px; margin: 0 0 22px 0; max-width: 520px; }
.lifetime-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lifetime-features li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.lifetime-features .check { color: var(--accent); font-weight: 700; }
.lifetime-right {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.lifetime-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}
.lifetime-price .currency { font-size: 28px; color: var(--text-2); margin-top: 10px; }
.lifetime-price .amount {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lifetime-strike {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ============================================================
   API section
============================================================ */
.api-section {
  margin-bottom: 96px;
  padding: 48px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.api-head { text-align: center; max-width: 640px; margin: 0 auto 32px auto; }
.api-head h2 {
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  margin: 14px 0 12px 0;
}
.api-head p { color: var(--text-2); font-size: 16px; margin: 0; }
.api-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.api-card-main {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.api-price-block { margin-bottom: 20px; }
.api-price { display: flex; align-items: baseline; gap: 4px; }
.api-price .currency { font-size: 18px; color: var(--text-2); margin-top: 6px; }
.api-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.api-price .per { font-size: 14px; color: var(--text-3); margin-left: 8px; }
.api-code {
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #e5e7eb;
  overflow-x: auto;
  margin: 0 0 18px 0;
  white-space: pre;
}
.api-code .kw { color: #a78bfa; }
.api-code .str { color: #86efac; }
.api-actions { display: flex; gap: 8px; }

.api-features {
  display: grid;
  gap: 10px;
}
.api-feature {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.api-feature-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; color: var(--text); }
.api-feature-body { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.api-feature code {
  background: var(--bg-elev-2); padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
}

.api-callout {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}
.api-callout strong { color: var(--text); }

/* Teaser shown on /pricing/ that links out to /api/ */
.api-teaser {
  margin: 56px 0 16px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.api-teaser-inner { max-width: 560px; margin: 0 auto; }
.api-teaser h2 {
  font-size: 24px;
  margin: 10px 0 6px 0;
  letter-spacing: -0.01em;
}
.api-teaser p { color: var(--text-2); margin: 0 0 18px 0; font-size: 15px; }
.api-teaser .cta-actions { justify-content: center; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.plan-features strong { color: var(--text); font-weight: 600; }
.plan-features .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-features .dash { color: var(--text-3); flex-shrink: 0; }

/* ============================================================
   Credit transparency section
============================================================ */
.credit-transparency {
  margin: 0 auto 96px auto;
  padding: 56px 28px;
  background: linear-gradient(180deg, var(--bg-elev) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.transparency-head { text-align: center; max-width: 720px; margin: 0 auto 36px auto; }
.transparency-head h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 14px 0;
  line-height: 1.15;
}
.transparency-head p {
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
}

.credits-table-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.credits-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}
.credits-table th, .credits-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.credits-table tbody tr:last-child td { border-bottom: 0; }
.credits-table th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.credits-table td { color: var(--text-2); }
.credits-table .right { text-align: right; }
.credits-table .mono { font-family: var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.tier-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.tier-free { background: #60a5fa; }
.tier-mid { background: #34d399; }
.tier-flagship { background: #f59e0b; }
.tier-frontier { background: #ef4444; }
.tier-image { background: #a78bfa; }

.credits-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.example {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.example-big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.example-label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 4px; }
.example-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   Compare table
============================================================ */
.compare-section {
  margin-bottom: 96px;
}
.compare-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
}
.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 12px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th { font-weight: 600; color: var(--text); font-size: 15px; }
.compare-table thead th {
  padding: 18px;
  background: var(--bg);
  position: sticky; top: 64px;
  z-index: 1;
}
.compare-table .feature-col { text-align: left; }
.compare-table td:first-child { text-align: left; color: var(--text-2); min-width: 240px; }
.compare-table .popular { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.compare-table thead .popular { background: color-mix(in oklab, var(--accent) 14%, var(--bg)); color: var(--accent); border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.compare-table .section-row td {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 18px;
}
.compare-note {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin: 20px auto 0 auto;
  max-width: 640px;
}

/* ============================================================
   FAQ
============================================================ */
.faq-section { margin-bottom: 96px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 22px;
  color: var(--text-3);
  transition: transform 200ms;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > div {
  padding: 0 18px 18px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   Final CTA
============================================================ */
.final-cta {
  text-align: center;
  padding: 72px 28px;
  margin-bottom: 40px;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 18%, var(--bg)) 0%, var(--bg) 70%);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.final-cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}
.final-cta p { color: var(--text-2); font-size: 16px; margin: 0 0 24px 0; }
.btn-lg { padding: 14px 28px; font-size: 15px; font-weight: 600; }
.cta-actions { display: flex; gap: 10px; justify-content: center; }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .lifetime-spotlight { grid-template-columns: 1fr; padding: 28px; }
  .api-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .credits-examples { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .price-hero h1 { font-size: 34px; }
  .transparency-head h2, .compare-section h2, .faq-section h2, .final-cta h2 { font-size: 26px; }
  .marketing-links { display: none; }
}
