:root {
  --card-radius: 1.5rem;
}

/* Page background similar to ___ */
/* One continuous mirrored wash: adjacent spans meet on the same color. */
body {
  /* Override the global 100% height so the background covers all page content. */
  height: auto;
  min-height: 100%;

  /* base color */
  background-color: #e5edff;

  /* layers */
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.075) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(96,165,250,0.12), transparent 60%),
    /* Alternating start/end directions without tiled reset boundaries. */
    linear-gradient(
      180deg,
      rgba(229,237,255,0.00) 0%,
      rgba(210,226,255,0.85) 25%,
      rgba(229,237,255,0.00) 50%,
      rgba(210,226,255,0.85) 75%,
      rgba(229,237,255,0.00) 100%
    );

  /* Stretch every layer across the page so no image tile has to restart. */
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%, 100% 100%;
  background-position: center top, center top, left top, right top, center top;

  /* optional but helps the “one continuous canvas” feel */
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}

/* Match the dimensional grid-and-glow canvas used by Home and Jobs while
   retaining Pricing's existing blue background palette. */
.pricing-page .blur-root {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.pricing-page .blur-root::before,
.pricing-page .blur-root::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.pricing-page .blur-root::before { display: none; }

.pricing-page .blur-root::after {
  background:
    radial-gradient(ellipse 900px 480px at 8% 9%, rgba(59, 130, 246, 0.16), transparent 68%),
    radial-gradient(ellipse 820px 460px at 92% 15%, rgba(99, 102, 241, 0.12), transparent 68%),
    radial-gradient(ellipse 1000px 480px at 50% 72%, rgba(96, 165, 250, 0.08), transparent 72%);
}


/* HEADER / NAV – blend into page */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0.95),
    rgba(226, 232, 240, 0.9),
    rgba(226, 232, 240, 0.75),
    transparent
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding-block: 0.75rem;
  gap: 1.25rem;
}

.header-inner > .brand {
  justify-self: start;
}

.header-inner > .main-nav.desktop-nav {
  justify-self: center;
}

.header-inner > .auth-cta,
.header-inner > #auth-area {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo.big {
  width: 47px;
  height: 56px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: #475569;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  color: #111827;
}

.site-nav a[aria-current="page"] {
  color: #1d4ed8;
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .header-inner > .auth-cta,
  .header-inner > #auth-area {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-block: 0.6rem;
  }
  .site-nav {
    gap: 1rem;
  }
}

/* HERO */

.pricing-hero {
  padding: 1.0rem 1.5rem 2.5rem;
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.pricing-hero p {
  max-width: 640px;
  margin: 0.4rem auto 1.7rem;
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.6;
}

/* Billing toggle */

.billing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.billing-label {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.billing-label.active {
  opacity: 1;
  font-weight: 600;
}

.billing-switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #cbd5f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.billing-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
}

.billing-switch input:checked + .billing-slider {
  background-color: #a5b4fc;
}

.billing-switch input:checked + .billing-slider::before {
  transform: translateX(22px);
}

/* Pricing cards */

.pricing-section {
  padding: 0 0 4.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 1.75rem 0;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch; /* make all cards equal height */
}

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

.plan-card {
  position: relative;
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.1rem 1.5rem 1.4rem;
  background: #f9fafb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 0.98rem;
  transform: translateY(0);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2);
}

/* Progressive styling */
.plan-card--free {
  opacity: 0.93;
}

.plan-card--core {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.65);
}

.plan-card--pro {
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.45);
}

.plan-card--pro::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 200deg,
    #22c55e,
    #0ea5e9,
    #6366f1,
    #22c55e
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  height: 1.55rem;
  margin: 0 0 0.45rem;
}

.plan-badge--popular {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.plan-badge--best {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.plan-badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.55rem;
  margin: 0 0 0.45rem;
}

.plan-badge-row .plan-badge {
  margin: 0;
}

.plan-badge--savings {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #059669, #16a34a);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.28);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.plan-badge--savings strong {
  font-size: 0.86rem;
  line-height: 1;
}

.currency-note {
  margin: 0.65rem 0 0;
  color: rgba(15, 23, 42, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.plan-name-top {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 1.55rem;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
  margin: 0 0 0.45rem;
}

.plan-title-main {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 2rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.plan-tagline {
  height: 2.5rem;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.8;
  margin: 0 0 0.45rem;
}

.plan-price {
  min-height: 2.55rem;
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price .price-amount {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.plan-price .price-amount.value-pulse {
  animation: price-value-pulse 460ms cubic-bezier(.2,.8,.2,1);
}

@keyframes price-value-pulse {
  0%   { transform: scale(1); color: inherit; }
  32%  { transform: scale(1.1); color: #1d4ed8; }
  100% { transform: scale(1); color: inherit; }
}

.plan-price span.interval {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity 140ms ease;
}

[data-credit-value] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* The Plus value stores its billing data on the table cell itself. Preserve
   table layout so the value stays centered and does not collapse/wrap. */
.features-table td[data-credit-value] {
  display: table-cell;
  white-space: nowrap;
}

[data-credit-value].value-pulse {
  animation: price-value-pulse 460ms cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .plan-price .price-amount.value-pulse,
  [data-credit-value].value-pulse {
    animation: none !important;
  }
}

.plan-billing-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

.plan-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.6);
  margin: 0.75rem 0;
}

.plan-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 0.45rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-card .credits-heading + .plan-list {
  height: 3.4rem;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
}

.plan-list li span.value {
  font-weight: 650;
  margin-left: 0.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.feature-icon.check {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.feature-icon.x {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.plan-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-actions .hint {
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

/* Primary CTA — premium "black-ish" */
.button-primary{
  background: linear-gradient(180deg, #0b1220 0%, #070d18 100%);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(37, 99, 235, 0.10) inset;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.button-primary:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 18px 44px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(37, 99, 235, 0.14) inset;
}

.button-primary:active{
  transform: translateY(0px);
  filter: brightness(0.98);
}

.button-primary:focus-visible{
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
}

/* old blue/green button */
/* .button-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.button-primary:hover {
  filter: brightness(1.05);
} */

.button-outline {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.9);
  color: #0f172a;
}

.button-outline:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Comparison table */

.features-table-section {
  max-width: 1120px;
  margin: 4.5rem auto 0;
  padding: 0 1.75rem;
}

.credit-label {
  display: inline-flex;
  align-items: center;
}

.credit-logo {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(2, 69, 138, 0.22));
}

.plan-list li.credit-row {
  justify-content: flex-start;
  gap: 0.75rem;
}

.plan-list li.credit-row .value {
  font-size: 1.05rem;
  font-weight: 750;
}

.credits-heading {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 0.7rem;
}

.credits-reset-note {
  margin: 0.8rem auto 0;
  color: rgba(15, 23, 42, 0.42);
  font-size: 0.72rem;
  text-align: center;
}

.features-table-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 1.25rem;
  text-align: center;
  letter-spacing: -0.035em;
}

.credits-explainer {
  max-width: 680px;
  margin: 0.75rem auto 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.95rem;
  font-weight: 500;
}

.features-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.features-table thead {
  background: #f8fafc;
}

.features-table th,
.features-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.features-table th {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  color: #334155;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.features-table th.plan-col,
.features-table td.plan-col {
  text-align: center;
  width: 20%;
}

.features-table th.plan-col--plus {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
}

.features-table th.plan-col--free {
  color: #475569;
  background: rgba(100, 116, 139, 0.08);
}

.features-table th.plan-col--pro {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.08);
}

.features-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}

.features-table tbody tr:hover {
  background: rgba(239, 246, 255, 0.8);
}

.feature-category {
  display: inline-flex;
  min-width: 6.75rem;
  margin-right: 0.75rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.feature-name {
  color: #0f172a;
  font-weight: 600;
}

.features-table .token-row {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.8), rgba(245, 243, 255, 0.8));
}

.features-table .token-amount {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.features-table .credit-value-row {
  background: rgba(255, 255, 255, 0.72);
}

.features-table .credit-value {
  color: #334155;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.features-table .credit-value--best {
  color: #047857;
  font-size: 1rem;
  font-weight: 850;
}

.credit-savings-badge {
  display: block;
  width: fit-content;
  margin: 0.3rem auto 0;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.16);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.features-table td.available span[aria-hidden="true"] {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 0.95rem;
  font-weight: 800;
}

.features-table td.unavailable span[aria-hidden="true"] {
  color: #94a3b8;
  font-size: 0;
  font-weight: 500;
}

.features-table td.unavailable span[aria-hidden="true"]::before {
  content: "✕";
  font-size: 1rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-table tr:last-child td {
  border-bottom: none;
}

/* Horizontal scroll wrapper (mobile-safe) */
.features-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.25rem; /* matches table radius */
}

/* Keep table looking like a card inside the scroll area */
.features-table {
  min-width: 660px; /* forces horizontal scroll on small screens */
  width: 100%;
}

/* Optional: show a subtle "hint" fade on the right edge on mobile */
@media (max-width: 800px) {
  .features-table-scroll {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    background: #ffffff;
  }

  /* Remove outer shadow from the table so you don't get double shadows */
  .features-table {
    box-shadow: none;
    border-radius: 0;
  }
}



/* Keep nav geometry in sync with shared header */
.pricing-page .main-nav {
  position: static;
  transform: none;
}
