.trial-upgrade-hero-preview {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
}

.trial-upgrade-hero-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.trial-cta-helper {
  margin-top: 8px;
  color: #1e3a8a;
  font-weight: 850;
}

.trial-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: 10px;
  padding: 10px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.trial-secondary-cta:hover,
.trial-secondary-cta:focus-visible {
  background: #eff6ff;
  outline: none;
}

.trial-pricing-page {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px 48px;
}

.trial-pricing-hero {
  display: block;
  max-width: 760px;
  padding: 0;
  border: 1px solid #d7e3f4;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.trial-pricing-hero h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.trial-pricing-hero p {
  color: #475569;
  font-weight: 760;
  line-height: 1.55;
  max-width: 620px;
}

.trial-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
}

.trial-plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #d7e3f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.trial-plan-card.is-featured {
  border-color: #2563eb;
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.18);
  transform: translateY(-4px);
}

.trial-plan-badge {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trial-plan-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
}

.trial-price {
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.trial-price span {
  color: #64748b;
  font-size: 1rem;
  font-weight: 850;
}

.trial-plan-card p {
  margin: 0;
  color: #475569;
  font-weight: 720;
  line-height: 1.45;
}

.trial-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trial-plan-card li {
  color: #1f2937;
  font-weight: 760;
}

.trial-plan-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #2563eb;
}

.trial-plan-card .billing-primary-button,
.trial-plan-card .billing-secondary-button {
  width: 100%;
  justify-content: center;
}

.trial-comparison-card,
.trial-faq-card,
.trial-preview-section,
.trial-final-cta {
  border: 1px solid #d7e3f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.trial-comparison-card,
.trial-faq-card {
  padding: 20px;
}

.trial-comparison-card h3,
.trial-faq-card h3,
.trial-preview-section h3,
.trial-final-cta h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.trial-comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.trial-comparison-table th,
.trial-comparison-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-weight: 760;
}

.trial-comparison-table th {
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 950;
}

.trial-preview-section {
  display: block;
  padding: 24px;
}

.trial-preview-section > div:first-child {
  max-width: 760px;
}

.trial-preview-section p {
  max-width: 760px;
  color: #475569;
  font-weight: 740;
  line-height: 1.5;
}

.trial-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trial-step-list div {
  padding: 12px;
  border: 1px solid #d7e3f4;
  border-radius: 14px;
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 850;
}

.trial-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.trial-state-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #d7e3f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.trial-state-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trial-state-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.trial-state-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.trial-state-card p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  font-weight: 730;
  line-height: 1.45;
}

.trial-state-card.is-active {
  border-color: #86efac;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.trial-state-card.is-active .trial-state-icon {
  background: #dcfce7;
  color: #15803d;
}

.trial-state-card.is-export {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.trial-state-card.is-export .trial-state-icon {
  background: #ffedd5;
  color: #c2410c;
}

.trial-state-card.is-readonly {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.trial-state-card.is-readonly .trial-state-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.trial-mini-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.trial-mini-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6d28d9;
}

.trial-mini-meter.green span {
  background: #16a34a;
}

.trial-mini-meter.orange span {
  background: #f97316;
}

.trial-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trial-faq-grid details {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fbff;
}

.trial-faq-grid summary {
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
}

.trial-faq-grid p {
  color: #475569;
  font-weight: 720;
  line-height: 1.45;
}

.trial-final-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.trial-final-cta p {
  margin: 0;
  color: #475569;
  font-weight: 740;
}

.trial-dashboard-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
  margin: 0 0 18px;
}

.trial-banner,
.trial-usage-widget,
.trial-readonly-banner {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.trial-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #86efac;
}

.trial-banner.warning {
  border-color: #fdba74;
  background: #fffaf0;
}

.trial-banner.urgent {
  border-color: #fca5a5;
  background: #fff5f5;
}

.trial-banner-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
}

.trial-banner.warning .trial-banner-icon {
  background: #f59e0b;
}

.trial-banner.urgent .trial-banner-icon {
  background: #dc2626;
}

.trial-banner h3 {
  margin: 0;
  color: #166534;
  font-size: 1.3rem;
}

.trial-banner.warning h3 {
  color: #c2410c;
}

.trial-banner.urgent h3 {
  color: #dc2626;
}

.trial-banner p {
  margin: 5px 0 0;
  color: #1f2937;
  font-weight: 730;
}

.trial-upgrade-button {
  min-width: 170px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 12px 16px;
}

.trial-banner.warning .trial-upgrade-button {
  background: linear-gradient(180deg, #f97316, #ea580c);
}

.trial-banner.urgent .trial-upgrade-button {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

.trial-dismiss-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 1.4rem;
}

.trial-usage-widget {
  padding: 18px;
  border: 1px solid #d7e3f4;
}

.trial-usage-widget h3 {
  margin: 0 0 14px;
  color: #0f172a;
}

.trial-usage-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.trial-usage-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 950;
}

.trial-usage-label {
  color: #0f172a;
  font-weight: 850;
}

.trial-usage-count {
  color: #0f172a;
  font-weight: 850;
}

.trial-progress {
  grid-column: 2 / 4;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.trial-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.trial-readonly-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
}

.trial-readonly-banner h3 {
  margin: 0;
  color: #1e3a8a;
}

.trial-readonly-banner p {
  margin: 4px 0 0;
  color: #334155;
  font-weight: 730;
}

.trial-paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.50);
}

.trial-paywall-card {
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid #d7e3f4;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.trial-paywall-card h2 {
  margin: 12px 0 8px;
  color: #0f172a;
}

.trial-paywall-card p {
  color: #475569;
  font-weight: 730;
  line-height: 1.5;
}

.trial-paywall-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1.3rem;
  font-weight: 950;
}

.trial-paywall-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .trial-dashboard-panel {
    grid-template-columns: 1fr;
  }

  .trial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .trial-pricing-page {
    padding: 48px 14px 36px;
  }

  .trial-card-grid,
  .trial-faq-grid,
  .trial-step-list,
  .trial-state-grid {
    grid-template-columns: 1fr;
  }

  .trial-banner,
  .trial-readonly-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trial-upgrade-button,
  .trial-readonly-banner .trial-upgrade-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
