/* Pricing page (matches "GriidAi - The Future of GeoAI.html" look) */

body.pricing-page {
  background:
    radial-gradient(circle at top left, rgba(44, 121, 140, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfc 0%, #ffffff 42%, #f4f7f8 100%);
}

.pricing-shell {
  min-height: 100vh;
  padding: calc(3rem + 64px) 1rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pricing-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.pricing-shell::before,
.pricing-shell::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(140px);
  pointer-events: none;
}

.pricing-shell::before {
  top: 0;
  left: 25%;
  width: 1000px;
  height: 500px;
  background: rgba(44, 121, 140, 0.05);
}

.pricing-shell::after {
  top: 33%;
  right: 25%;
  width: 800px;
  height: 400px;
  background: rgba(44, 121, 140, 0.10);
  filter: blur(120px);
}

.pricing-shell-inner {
  width: 100%;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.pricing-titleblock {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2c798c;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.pricing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a; /* slate-900 */
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .pricing-headline {
    font-size: 3rem;
  }
}

.pricing-subhead {
  color: #6b7280; /* gray-500 */
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (min-width: 768px) {
  .pricing-subhead {
    font-size: 1.05rem;
  }
}

.billing-toggle {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0; /* slate-200 */
  box-shadow: 0 20px 60px rgba(226, 232, 240, 0.7);
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af; /* gray-400 */
  white-space: nowrap;
}

.billing-label.is-active {
  color: #1f2937; /* gray-800 */
  font-weight: 700;
}

.billing-save {
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669; /* emerald-600 */
}

.billing-switch {
  position: relative;
  width: 44px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-switch input {
  position: absolute;
  inset: 0;
  opacity: 0.0001;
  cursor: pointer;
}

.billing-switch-track {
  width: 44px;
  height: 26px;
  border-radius: 9999px;
  background: #e5e7eb; /* gray-200 */
  padding: 3px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.billing-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, width 0.2s ease;
}

.billing-switch input:checked + .billing-switch-track {
  background: #2c798c;
}

.billing-switch input:checked + .billing-switch-track .billing-switch-thumb {
  transform: translateX(18px);
}

.billing-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: 0 auto 4rem;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 30px 90px rgba(226, 232, 240, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 110px rgba(226, 232, 240, 0.75);
}

.plan-card.is-featured {
  border: 2px solid #2c798c;
  box-shadow: 0 30px 90px rgba(44, 121, 140, 0.12);
}

.plan-card-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 48px;
  gap: 0.75rem;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.2;
}

.plan-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 700;
  white-space: nowrap;
}

.plan-badge-accent {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  background: rgba(44, 121, 140, 0.1);
  color: #2c798c;
  border: 1px solid rgba(44, 121, 140, 0.2);
  white-space: nowrap;
}

.plan-desc {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  min-height: 36px;
  font-weight: 400;
}

.plan-price {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  color: #111827;
}

.plan-billing-detail {
  margin: 0.35rem 0 0;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-period {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 600;
}

.plan-note {
  font-size: 0.7rem;
  color: #9ca3af;
  min-height: 36px;
  font-weight: 400;
  line-height: 1.4;
}

.plan-sep {
  height: 1px;
  width: 100%;
  background: #f3f4f6;
  border: 0;
  margin: 0.5rem 0;
}

.plan-features {
  padding-left: 1rem;
  list-style: disc;
  margin: 0;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-cta {
  margin-top: 2rem;
  width: min(100%, 220px);
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.pricing-page .pricing-cta {
  max-width: none;
  align-self: center;
}

@media (max-width: 420px) {
  .plan-cta {
    padding: 0.8rem 0.75rem;
    font-size: 0.85rem;
  }
}

.plan-cta.is-primary {
  background: rgba(44, 121, 140, 0.10);
  color: #2c798c;
  border-color: transparent;
}

.plan-cta.is-primary:hover {
  background: rgba(44, 121, 140, 0.14);
}

.plan-cta.is-outline {
  background: #ffffff;
  color: #2c798c;
  border-color: rgba(44, 121, 140, 0.30);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.06);
}

.plan-cta.is-outline:hover {
  background: rgba(44, 121, 140, 0.05);
  border-color: #2c798c;
}

.addons {
  width: 100%;
  max-width: 896px; /* ~4xl */
  margin: 0 auto 2.5rem;
}

.addons h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.addons p {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.addons-table {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.06);
}

.addons-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.addons-table thead tr {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}

.addons-table th,
.addons-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.addons-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  transition: background-color 0.15s ease;
}

.addons-table tbody tr:hover {
  background: #f9fafb;
}

.addons-table tbody tr:last-child {
  border-bottom: 0;
}

.addons-table td:first-child {
  font-weight: 600;
  color: #111827;
}

.addons-table td:last-child {
  color: #6b7280;
  font-weight: 400;
}

.pricing-footer-note {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 600;
}
