/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/public/css/pricing.css
   Description: Plans page styles for AutoMarketer AI marketing site
   Last Edited: 2026-04-15
   ================================================== */

/* --------------------------------------------------
   Plans page container override
   -------------------------------------------------- */
.amai-main .amai-container {
  max-width: 1400px;
}

/* --------------------------------------------------
   Plans page header override
   -------------------------------------------------- */
.amai-main .amai-page-header {
  padding: 40px 0 32px;
}

/* --------------------------------------------------
   Plan grid
   -------------------------------------------------- */
.amai-plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 64px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.amai-plan {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.amai-plan--free {
  background: #FDF6F2;
  border-color: #E7C9BB;
}
.amai-plan--free .amai-plan__badge {
  background: #fff;
  color: var(--clay);
  border: 1.5px solid var(--clay);
}

.amai-plan--popular {
  border-color: var(--clay);
  border-width: 2px;
}

.amai-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.amai-plan__label {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 4px;
  text-align: center;
}

.amai-plan__tagline {
  color: var(--stone);
  font-size: 0.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------
   Price block
   -------------------------------------------------- */
.amai-plan__price-block {
  text-align: center;
  margin-bottom: 24px;
}

.amai-plan__price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}

.amai-plan__price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-light);
}

.amai-plan__period {
  color: var(--stone-light);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* --------------------------------------------------
   Features list
   -------------------------------------------------- */
.amai-plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.amai-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.45;
}

/* --------------------------------------------------
   CTA
   -------------------------------------------------- */
.amai-plan__cta {
  margin-top: 28px;
}

.amai-plan__coming-soon {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--stone-light);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --------------------------------------------------
   Separator between plans and FAQ
   -------------------------------------------------- */
.amai-plan-faq-sep {
  border-top: 1.5px solid var(--border);
  margin: 0 0 64px;
}

/* --------------------------------------------------
   FAQ
   -------------------------------------------------- */
.amai-faq {
  max-width: 860px;
  margin: 0 auto 64px;
}

.amai-faq__title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.amai-faq__item {
  border-bottom: 1.5px solid var(--border);
  padding: 24px 0;
}

.amai-faq__q {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

.amai-faq__a {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------
   Billing toggle buttons (JS-driven)
   -------------------------------------------------- */
.amai-billing-toggle {
  display: inline-flex;
  background: #F3EDE9;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.amai-billing-toggle__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--stone);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.amai-billing-toggle__btn.is-active {
  background: var(--clay);
  color: #fff;
}
.amai-billing-toggle__btn:hover:not(.is-active) {
  background: #EAE0DB;
}
.amai-billing-toggle__btn:focus {
  outline: none;
}

/* --------------------------------------------------
   Closing CTA
   -------------------------------------------------- */
.amai-pricing-cta {
  text-align: center;
  padding: 72px 0 88px;
}

.amai-pricing-cta--warm {
  background: var(--clay-light);
  margin: 0 -24px;
  padding: 72px 24px 88px;
  border-radius: var(--radius);
}

.amai-pricing-cta__title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--ink);
}

.amai-pricing-cta__sub {
  font-size: 1rem;
  color: var(--stone);
  margin-bottom: 32px;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 1060px) {
  .amai-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .amai-plan-grid {
    grid-template-columns: 1fr;
  }
}
/* --------------------------------------------------
   Feature pills (Premium / Coming Soon)
   -------------------------------------------------- */
.amai-feature-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.amai-feature-pill--premium {
  background: rgba(217, 119, 87, 0.12);
  color: #D97757;
  border: 1px solid rgba(217, 119, 87, 0.3);
}
.amai-feature-pill--soon {
  background: rgba(100, 100, 120, 0.08);
  color: #888;
  border: 1px solid rgba(100, 100, 120, 0.2);
}

/* --------------------------------------------------
   API key modal
   -------------------------------------------------- */
.amai-apikey-trigger,
.amai-apikey-trigger:hover,
.amai-apikey-trigger:focus,
.amai-apikey-trigger:active {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  margin-top: 5px;
  -webkit-appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}
.amai-apikey-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.amai-apikey-modal-backdrop.is-open {
  display: flex;
}
.amai-apikey-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.amai-apikey-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--stone);
  line-height: 1;
  padding: 4px 8px;
}
.amai-apikey-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.amai-apikey-modal__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}
.amai-apikey-modal__body {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.amai-apikey-modal__providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.amai-apikey-modal__provider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--stone);
}
.amai-apikey-modal__provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  opacity: 0.6;
}
.amai-apikey-modal__note {
  font-size: 0.82rem;
  color: var(--stone-light);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
}

/* --------------------------------------------------
   API key pill
   -------------------------------------------------- */
.amai-apikey-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--stone);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 9px;
  letter-spacing: 0.01em;
}
.amai-apikey-pill {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.amai-apikey-trigger:hover .amai-apikey-pill {
  border-color: var(--clay);
  color: var(--clay);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(217, 119, 87, 0.18);
}
.amai-plan__feature--block {
  align-items: flex-start;
}
.amai-plan__feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: 1;
}
