/* Scoped to this hero only — mirrors your existing hero style, no globals */
#aiwens-hero-automation {
  /* tweak text colors via local vars if needed */
  --aiwens-hero-subtext: #334155;
  --aiwens-btn-bg: #0f172a;
  --aiwens-btn-text: #ffffff;
  --aiwens-btn-bg-hover: #1e293b;

  background: transparent;
  padding: 3rem 1.25rem;
  position: relative;
  overflow: hidden; /* contain rotating icons */
}

/* Main container */
#aiwens-hero-automation .aiwens-hero__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: linear-gradient(180deg, #bae6fd 0%, #ffffff 100%);
  border-radius: 1.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

/* Copy */
#aiwens-hero-automation .aiwens-hero__copy {
  max-width: 680px;
  margin: 0 auto;
}
#aiwens-hero-automation .aiwens-hero__title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
#aiwens-hero-automation .aiwens-hero__sub {
  font-size: 1.125rem;
  color: var(--aiwens-hero-subtext);
  margin-bottom: 1.25rem;
}

/* CTAs */
#aiwens-hero-automation .aiwens-hero__cta {
  margin-bottom: 1rem;
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#aiwens-hero-automation .aiwens-hero__btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 999px; /* pill shape */
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
  will-change: transform;
  animation: bounceLoop 2.6s ease-in-out infinite;
}


/* ===== Website Packages (Scoped: aiwens-website-*) ===== */
#aiwens-website-plans {
  padding: 28px 20px 60px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  font-family: 'Inter', system-ui, sans-serif;

  --site-blue: #3b82f6;
  --site-blue-dark: #2563eb;
  --site-green: #22c55e;
  --site-orange: #ff6a00;
  --site-ink: #0f172a;
  --site-ink-soft: #374151;
  --site-chip: #f3f6fb;
  --site-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.aiwens-website__container { max-width: 1200px; margin: 0 auto; }

.aiwens-website__header { text-align: center; margin-bottom: 28px; }

.aiwens-website__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--site-ink);
  display: inline-block;
  position: relative;
}
.aiwens-website__title::after {
  content: "";
  display: block;
  height: 4px;
  margin: 10px auto 0;
  width: 260px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffffff, #1e90ff, #ff6a00, #22c55e, #ffffff);
  background-size: 300% 100%;
  animation: aiwensWebsiteLine 6s linear infinite;
}
@keyframes aiwensWebsiteLine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.aiwens-website__subtitle {
  font-size: 1rem;
  color: var(--site-ink-soft);
  margin-top: 8px;
}

.aiwens-website__selector {
  margin-top: 16px;
}
.aiwens-website__selector label {
  font-weight: 600;
  margin-right: 8px;
}
.aiwens-website__selector select {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* grid */
.aiwens-website__grid {
  display: none; /* hidden until active */
  grid-template-columns: 1fr;
  gap: 24px;
  justify-content: center;
}
.aiwens-website__grid.active { display: grid; }

@media (min-width: 768px) {
  .aiwens-website__grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
}
@media (min-width: 1200px) {
  .aiwens-website__grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
}

/* cards */
.aiwens-website__card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: var(--site-shadow);
  padding: 20px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.aiwens-website__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
}

/* featured card */
.aiwens-website__card--featured { border: 2px solid var(--site-blue-dark); }
.aiwens-website__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--site-blue), var(--site-orange));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* plan text */
.aiwens-website__plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: var(--site-ink);
}
.aiwens-website__price {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--site-blue-dark);
  margin-bottom: 8px;
}
.aiwens-website__price span { font-size: 0.9rem; font-weight: 600; color: #6b7280; }
.aiwens-website__blurb {
  text-align: center;
  color: var(--site-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* features */
.aiwens-website__features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 6px;
}
.aiwens-website__features li {
  background: var(--site-chip);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.aiwens-website__features.includes li::before { content: "✔ "; color: var(--site-green); font-weight: 700; }
.aiwens-website__features.excludes li::before { content: "✘ "; color: #ef4444; font-weight: 700; }

.aiwens-website__note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}
/* Highlight "Everything in ..." lines */
.aiwens-website__features li {
  background: var(--site-chip);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.aiwens-website__features li:has(> :first-child) {
  /* reset default pseudo hack fallback */
}

.aiwens-website__features li {
  position: relative;
}

/* Specifically target text that begins with "Everything in" */
.aiwens-website__features li:nth-child(n):where(:has(*)) {} /* fallback safe */

.aiwens-website__features li {
  color: var(--site-ink);
}
.aiwens-website__features li:has(:is(:first-child)) {} /* safe placeholder */

/* simpler: use attribute contains match via JS or extra class, 
   but with pure CSS: match text with "Everything in" */
.aiwens-website__features li {
  /* general look */
}
.aiwens-website__features li::before {
  font-weight: 700;
}

.aiwens-website__features li {
  /* default reset */
}
.aiwens-website__features li {
  /* keep other look */
}

/* Add class in HTML: <li class="everything">Everything in Starter</li> */
.aiwens-website__features li.everything {
  color: var(--site-orange);
  font-weight: 700;
}
.aiwens-website__features li.everything::before {
  content: "+ ";
  color: var(--site-orange);
}

/* Align cards so notes sit at bottom */
.aiwens-website__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.aiwens-website__note {
  margin-top: auto; /* pushes note to bottom */
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

/* Footnote under table */
.aiwens-website__footnote {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}


/* ===== Section 3 CTA: Fix & Upgrade (Scoped: aiwens-fixhelp-*) ===== */
#aiwens-fix-help-cta {
  padding: 16px 20px 40px; /* tight spacing to hug previous section */
  background: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* local tokens */
  --fixhelp-green: #22c55e;
  --fixhelp-orange: #ff6a00;
  --fixhelp-ink: #0f172a;
  --fixhelp-ink-soft: #334155;
  --fixhelp-card: #f7fbf9;
  --fixhelp-border: rgba(30, 64, 175, 0.22);
}

.aiwens-fixhelp__container {
  max-width: 1100px;
  margin: 0 auto;
}

.aiwens-fixhelp__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, var(--fixhelp-card) 100%);
  border: 1px solid var(--fixhelp-border);
  border-radius: 28px;
  box-shadow:
    0 12px 40px rgba(2, 8, 23, 0.06),
    0 1px 0 rgba(2, 8, 23, 0.02) inset;
  padding: 40px 24px;
}

/* animated gradient edge */
.aiwens-fixhelp__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(90deg, #ffffff, #1e90ff, #ff6a00, #22c55e, #ffffff);
  background-size: 300% 100%;
  animation: aiwensFixHelpBorder 8s linear infinite;
  z-index: -1;
}
@keyframes aiwensFixHelpBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* title + animated underline for consistency */
.aiwens-fixhelp__title {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fixhelp-ink);
  margin: 0 0 12px 0;
  display: inline-block;
  position: relative;
}
.aiwens-fixhelp__title::after {
  content: "";
  display: block;
  height: 4px;
  width: 180px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffffff, #1e90ff, #ff6a00, #22c55e, #ffffff);
  background-size: 300% 100%;
  animation: aiwensFixHelpBorder 8s linear infinite;
}

.aiwens-fixhelp__sub {
  max-width: 760px;
  margin: 8px auto 24px;
  color: var(--fixhelp-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* CTA button: light green base → orange on hover; slow bounce loop */
.aiwens-fixhelp__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--fixhelp-green);
  color: #0b0b0b;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(34, 197, 94, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.05) inset;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  animation: aiwensFixHelpBounce 2.8s ease-in-out infinite;
}
.aiwens-fixhelp__cta:hover,
.aiwens-fixhelp__cta:focus-visible {
  background: var(--fixhelp-orange);
  color: #ffffff;
  box-shadow:
    0 16px 36px rgba(255, 106, 0, 0.35),
    0 2px 0 rgba(255,255,255,0.15) inset;
  transform: translateY(-2px);
  outline: none;
}
.aiwens-fixhelp__cta-icon {
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes aiwensFixHelpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* responsive padding */
@media (min-width: 768px) {
  .aiwens-fixhelp__card { padding: 56px 28px; }
  .aiwens-fixhelp__title { font-size: 2.05rem; }
}
/* Section 2 (Fix & Upgrade Plans) */
#aiwens-fix-plans {
  padding: 12px 20px 28px;  /* was bigger → now tighter */
}

/* Section 3 (Fix & Upgrade CTA) */
#aiwens-fix-help-cta {
  padding: 12px 16px 24px;  /* cut both top + bottom */
}
