/**
 * All Prompt Hub — Universal Generator Tool Engine Styles
 * High-performance, responsive, WCAG 2.2 AA compliant, zero external CSS dependencies.
 */

:root {
  --aph-gen-primary: #4f46e5;
  --aph-gen-primary-hover: #4338ca;
  --aph-gen-primary-light: #eef2ff;
  --aph-gen-secondary: #0ea5e9;
  --aph-gen-accent: #10b981;
  --aph-gen-bg: #f8fafc;
  --aph-gen-card-bg: #ffffff;
  --aph-gen-border: #e2e8f0;
  --aph-gen-border-focus: #4f46e5;
  --aph-gen-text-main: #0f172a;
  --aph-gen-text-muted: #64748b;
  --aph-gen-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --aph-gen-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --aph-gen-radius: 12px;
}

/* Base Wrapper */
.aph-gen-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 64px 16px;
  box-sizing: border-box;
}

/* Breadcrumbs */
.aph-gen-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--aph-gen-text-muted);
  margin-bottom: 24px;
}
.aph-gen-breadcrumbs a {
  color: var(--aph-gen-primary);
  text-decoration: none;
  transition: color 150ms ease;
}
.aph-gen-breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--aph-gen-primary-hover);
}
.aph-gen-breadcrumbs .sep {
  color: #cbd5e1;
}
.aph-gen-breadcrumbs .current {
  color: var(--aph-gen-text-main);
  font-weight: 600;
}

/* Hero Header */
.aph-gen-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}
.aph-gen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--aph-gen-primary-light);
  color: var(--aph-gen-primary);
  margin-bottom: 16px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.aph-gen-hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--aph-gen-text-main);
  line-height: 1.2;
  margin: 0 0 14px 0;
  letter-spacing: -0.025em;
}
.aph-gen-hero__title-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aph-gen-hero__desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.aph-gen-hero__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.aph-gen-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Direct Answer AEO Box */
.aph-gen-direct-answer {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--aph-gen-primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 auto 32px auto;
  max-width: 900px;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.04);
}
.aph-gen-direct-answer__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aph-gen-primary);
  margin-bottom: 6px;
}
.aph-gen-direct-answer__text {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Master Workspace Container */
.aph-gen-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--aph-gen-border);
  border-radius: var(--aph-gen-radius);
  box-shadow: var(--aph-gen-shadow-lg);
  padding: 24px;
  margin-bottom: 48px;
}

@media (min-width: 992px) {
  .aph-gen-workspace {
    grid-template-columns: 380px 1fr;
    gap: 32px;
    padding: 32px;
  }
}

/* Left Form Column */
.aph-gen-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aph-gen-controls__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aph-gen-border);
}
.aph-gen-controls__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--aph-gen-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aph-gen-clear-btn {
  background: none;
  border: none;
  color: var(--aph-gen-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 150ms ease;
}
.aph-gen-clear-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Preset Pills */
.aph-gen-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.aph-gen-presets__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aph-gen-text-muted);
  text-transform: uppercase;
}
.aph-gen-preset-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 150ms ease;
}
.aph-gen-preset-pill:hover {
  background: var(--aph-gen-primary-light);
  border-color: #c7d2fe;
  color: var(--aph-gen-primary);
}

/* Fields */
.aph-gen-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aph-gen-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}
.aph-gen-select,
.aph-gen-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--aph-gen-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--aph-gen-text-main);
  background-color: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}
.aph-gen-select:focus,
.aph-gen-input:focus {
  outline: none;
  border-color: var(--aph-gen-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Primary Action Buttons */
.aph-gen-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.aph-gen-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--aph-gen-primary);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
  transition: all 150ms ease;
  width: 100%;
}
.aph-gen-btn-primary:hover {
  background: var(--aph-gen-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.35);
}
.aph-gen-btn-primary:active {
  transform: translateY(0);
}
.aph-gen-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button (Shuffle / Again) */
.aph-gen-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--aph-gen-border);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}
.aph-gen-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--aph-gen-primary);
}

/* Right Output Column */
.aph-gen-results-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.aph-gen-results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aph-gen-border);
  margin-bottom: 16px;
}
.aph-gen-results-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--aph-gen-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aph-gen-results-panel__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State / Initial Placeholder */
.aph-gen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  margin-top: auto;
  margin-bottom: auto;
}
.aph-gen-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.8;
}
.aph-gen-placeholder__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px 0;
}
.aph-gen-placeholder__desc {
  font-size: 0.9375rem;
  color: var(--aph-gen-text-muted);
  max-width: 380px;
  margin: 0;
}

/* Generated Result Cards List */
.aph-gen-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aph-gen-card {
  background: #ffffff;
  border: 1px solid var(--aph-gen-border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  position: relative;
}
.aph-gen-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.08);
}
.aph-gen-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.aph-gen-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.aph-gen-card__copy-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 150ms ease;
  flex-shrink: 0;
}
.aph-gen-card__copy-btn:hover {
  background: var(--aph-gen-primary-light);
  color: var(--aph-gen-primary);
  border-color: #c7d2fe;
}
.aph-gen-card__copy-btn.copied {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.aph-gen-card__content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-line;
  margin-bottom: 12px;
}
.aph-gen-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.aph-gen-card__badge {
  font-size: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Compliance Disclaimer Box */
.aph-gen-disclaimer {
  font-size: 0.8125rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 16px;
  line-height: 1.5;
}

/* Editorial Article Layout */
.aph-gen-article {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--aph-gen-border);
}
.aph-gen-article section {
  margin-bottom: 40px;
}
.aph-gen-article h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--aph-gen-text-main);
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}
.aph-gen-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 10px 0;
}
.aph-gen-article p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}
.aph-gen-article ol,
.aph-gen-article ul {
  padding-left: 24px;
  margin-bottom: 20px;
  color: #334155;
  line-height: 1.7;
}
.aph-gen-article li {
  margin-bottom: 8px;
}
.aph-gen-article a:not(.aph-gen-related-card):not(.aph-related-card):not(.aph-mid-promo__cta) {
  color: var(--aph-gen-primary);
  text-decoration: underline;
  font-weight: 500;
}
.aph-gen-article a:not(.aph-gen-related-card):not(.aph-related-card):not(.aph-mid-promo__cta):hover {
  color: var(--aph-gen-primary-hover);
}

/* Authoritative Reference Link Cards */
.aph-gen-references {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 24px;
}
.aph-gen-references__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 8px;
}
.aph-gen-references__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aph-gen-references__list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}

/* Related Tools Grid */
.aph-gen-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.aph-gen-related-card {
  background: #ffffff;
  border: 1px solid var(--aph-gen-border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 150ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.aph-gen-related-card:hover {
  border-color: var(--aph-gen-primary);
  box-shadow: var(--aph-gen-shadow);
  transform: translateY(-2px);
}
.aph-gen-related-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aph-gen-text-main);
  margin: 0 0 6px 0;
}
.aph-gen-related-card__desc {
  font-size: 0.8125rem;
  color: var(--aph-gen-text-muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
}
.aph-gen-related-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--aph-gen-primary);
}

/* FAQ Accordion */
.aph-gen-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.aph-gen-faq-item {
  border: 1px solid var(--aph-gen-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.aph-gen-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--aph-gen-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}
.aph-gen-faq-question:hover {
  background: #f8fafc;
}
.aph-gen-faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

/* Call to Action Bar */
.aph-gen-cta-bar {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  margin-top: 56px;
}
.aph-gen-cta-bar h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
}
.aph-gen-cta-bar p {
  color: #c7d2fe;
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 1rem;
}
.aph-gen-cta-bar a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #312e81;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.aph-gen-cta-bar a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Breakpoints Testing Rules */
@media (max-width: 480px) {
  .aph-gen-workspace {
    padding: 16px;
  }
  .aph-gen-card {
    padding: 14px;
  }
}


/* Extended Input & State Styles */
.aph-gen-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  resize: vertical;
  box-sizing: border-box;
}
.aph-gen-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.aph-gen-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
}
.aph-gen-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.aph-gen-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


/* ========== Premium SaaS UI Enhancements ========== */
.aph-gen-hero-band {
  position: relative;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f7f5ff 0%, #ede9fe 46%, #e0e7ff 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.14);
  padding: 56px 24px 50px;
  overflow: hidden;
}
.aph-gen-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(91, 70, 246, 0.16) 1.3px, transparent 1.3px),
    linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.aph-gen-hero-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 28%, rgba(124, 58, 237, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(79, 70, 229, 0.10) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.aph-gen-hero-band__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}
.aph-gen-hero-band .aph-gen-hero {
  margin: 0 auto;
  max-width: 840px;
  text-align: center;
}
.aph-gen-hero-band .aph-gen-badge {
  background: #ffffff;
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
  margin-bottom: 18px;
}
.aph-gen-hero-band .aph-gen-hero__title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 14px 0;
}
.aph-gen-hero-band .aph-gen-hero__title-gradient {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: #0f172a;
}
.aph-gen-hero-band .aph-gen-hero__desc {
  font-size: 1.06rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
  margin: 0 auto 10px;
  max-width: 720px;
}
.aph-gen-hero__intro {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto 20px;
  max-width: 740px;
}
.aph-gen-hero-band .aph-gen-chip {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.18);
  color: #334155;
}
.aph-gen-wrapper {
  padding-top: 22px;
}
.aph-gen-wrapper > .aph-gen-breadcrumbs {
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .aph-gen-hero-band {
    padding: 40px 16px 36px;
  }
}

/* Universal Mid-Content Promotional Banner (Width = Editorial W + 16px, extending 8px left & right) */
.aph-mid-promo,
.tool-promo-banner {
  display: grid;
  grid-template-columns: 42% 58%;
  width: calc(100% + 16px) !important;
  max-width: 836px !important;
  margin: 40px auto !important;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 58%, #3b82f6 100%);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.22);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box !important;
}

/* Inside nested editorial containers (where parent container width matches content width W) */
.aph-sec__inner > .aph-mid-promo,
.aph-sec__inner > .tool-promo-banner,
.aph-tool-section .aph-mid-promo,
.aph-tool-section .tool-promo-banner,
.aph-tool-editorial-deepdive .aph-mid-promo,
.aph-tool-editorial-deepdive .tool-promo-banner {
  width: calc(100% + 16px) !important;
  max-width: none !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
  box-sizing: border-box !important;
}
.aph-mid-promo__media {
  position: relative;
  min-height: 240px;
  background: #ede9fe;
  overflow: hidden;
}
.aph-mid-promo__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(79, 70, 229, 0) 58%, #4f46e5 100%);
  pointer-events: none;
}
.aph-mid-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.aph-mid-promo__content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}
.aph-mid-promo__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.aph-gen-article .aph-mid-promo .aph-mid-promo__title,
.aph-gen-article .aph-mid-promo__title,
.aph-mid-promo__title {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff !important;
  margin: 0 0 10px 0 !important;
}
.aph-gen-article .aph-mid-promo .aph-mid-promo__desc,
.aph-gen-article .aph-mid-promo__desc,
.aph-mid-promo__desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94) !important;
  margin: 0 0 22px 0 !important;
  max-width: 520px;
}
.aph-gen-article .aph-mid-promo__cta,
.aph-mid-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #ffffff;
  color: #4f46e5 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.aph-mid-promo__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}
.aph-mid-promo__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
@media (max-width: 852px) {
  .aph-mid-promo,
  .tool-promo-banner {
    width: calc(100% + 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
}
@media (max-width: 760px) {
  .aph-mid-promo,
  .tool-promo-banner {
    grid-template-columns: 1fr;
  }
  .aph-mid-promo__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .aph-mid-promo__media::after {
    background: linear-gradient(to bottom, rgba(79, 70, 229, 0) 65%, rgba(79, 70, 229, 0.85) 100%);
  }
  .aph-mid-promo__content {
    padding: 26px 22px;
  }
}
@media (max-width: 480px) {
  .aph-mid-promo,
  .tool-promo-banner {
    border-radius: 16px;
    width: calc(100% + 12px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
  }
}
@media (max-width: 360px) {
  .aph-mid-promo,
  .tool-promo-banner {
    border-radius: 14px;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (min-width: 992px) {
  .aph-gen-workspace {
    grid-template-columns: 430px 1fr;
    gap: 28px;
    padding: 24px;
    align-items: start;
  }
}
.aph-gen-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) {
  .aph-gen-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aph-gen-field--full {
    grid-column: 1 / -1;
  }
}
.aph-req {
  color: #dc2626;
  font-weight: 700;
}
.aph-gen-help {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.aph-gen-advanced {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.aph-gen-advanced__summary {
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
}
.aph-gen-advanced__summary::-webkit-details-marker {
  display: none;
}
.aph-gen-advanced__body {
  padding: 0 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aph-gen-actions {
  margin-top: 14px;
}

/* Editorial Content Enhancements */
.aph-gen-article {
  max-width: 860px;
}
.aph-gen-article h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 18px 0 8px 0;
}
.aph-gen-callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.9375rem;
  color: #1e293b;
}
.aph-gen-callout--warn {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}
.aph-gen-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}
@media (min-width: 640px) {
  .aph-gen-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.aph-gen-compare-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}
.aph-gen-compare-card--weak {
  border-top: 3px solid #ef4444;
  background: #fef2f2;
}
.aph-gen-compare-card--strong {
  border-top: 3px solid #10b981;
  background: #f0fdf4;
}
.aph-gen-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.aph-gen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.aph-gen-table th,
.aph-gen-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left;
}
.aph-gen-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

/* In-Content Promotional Banners */
.aph-gen-promo-banner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
}
@media (min-width: 640px) {
  .aph-gen-promo-banner {
    flex-direction: row;
    align-items: center;
  }
}
.aph-gen-promo-banner__title {
  font-size: 1.0625rem !important;
  font-weight: 700;
  color: #1e1b4b !important;
  margin: 0 0 4px 0 !important;
}
.aph-gen-promo-banner__desc {
  font-size: 0.9rem !important;
  color: #475569 !important;
  margin: 0 !important;
}
.aph-gen-promo-banner__cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #4f46e5;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 150ms ease;
}
.aph-gen-promo-banner__cta:hover {
  background: #4338ca;
}
.aph-gen-related-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.aph-gen-related-section,
.aph-gen-faq-section {
  margin-top: 44px;
}


/* === Multi-Layout SaaS Landing Page Content Architecture === */
.aph-gen-article {
  max-width: 1160px;
  padding-top: 40px;
}
.aph-gen-article section.aph-sec {
  margin-bottom: 44px;
}
.aph-sec--default .aph-sec__inner {
  max-width: 820px;
  margin: 0 auto;
}
.aph-sec--wide .aph-sec__inner,
.aph-sec--cards .aph-sec__inner,
.aph-sec--band-muted .aph-sec__inner,
.aph-sec--band-tint .aph-sec__inner,
.aph-sec--band-highlight .aph-sec__inner {
  max-width: 100%;
}
.aph-sec--band-muted {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 28px;
}
.aph-sec--band-tint {
  background: linear-gradient(135deg, #f5f7ff 0%, #f8f5ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 36px 28px;
}
.aph-sec--band-highlight {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 40px 28px;
}
.aph-sec--band-highlight h2,
.aph-sec--band-highlight h3,
.aph-sec--band-highlight h4,
.aph-sec--band-highlight strong {
  color: #ffffff;
}
.aph-sec--band-highlight p,
.aph-sec--band-highlight li {
  color: #cbd5e1;
}
.aph-sec--band-highlight a {
  color: #a5b4fc;
}

/* Split Editorial Layout */
.aph-layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .aph-layout-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
  }
  .aph-layout-split--reverse .aph-layout-split__media {
    order: -1;
  }
}

/* Structural Visual / Diagram Panel */
.aph-visual-panel {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid #1e293b;
  font-size: 0.875rem;
  line-height: 1.55;
}
.aph-visual-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.aph-visual-panel__tag {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}
.aph-visual-panel__block {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #6366f1;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}
.aph-visual-panel__block:last-child {
  margin-bottom: 0;
}
.aph-visual-panel__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.aph-visual-panel code {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Three-Column & Four-Column Feature Layouts (Open Editorial Columns, Not Boxy Cards) */
.aph-layout-cols-3,
.aph-layout-cols-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .aph-layout-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aph-layout-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .aph-layout-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.aph-col-feature {
  border-top: 2px solid #c7d2fe;
  padding-top: 16px;
}
.aph-sec--band-highlight .aph-col-feature {
  border-top-color: rgba(165, 180, 252, 0.4);
}
.aph-col-feature__icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}
.aph-col-feature h3 {
  margin: 0 0 8px 0 !important;
  font-size: 1.05rem !important;
}
.aph-col-feature p {
  margin: 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

/* Step-by-Step Vertical Timeline */
.aph-timeline {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 24px 0 0 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 768px) {
  .aph-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }
}
.aph-timeline__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0 !important;
}
.aph-timeline__num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.aph-timeline__body strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.aph-timeline__body p {
  margin: 0 !important;
  font-size: 0.9375rem !important;
}

/* Example Showcase Pairs */
.aph-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}
@media (min-width: 860px) {
  .aph-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.aph-showcase-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  background: #ffffff;
}
.aph-showcase-item__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.aph-showcase-item h3 {
  margin: 0 0 10px 0 !important;
}

/* =========================================================================
   Responsive Editorial Card Grids & Component System
   Transforms full-width stacked example cards into balanced, responsive multi-column layouts
   ========================================================================= */

.aph-sec--cards .aph-sec__inner {
  max-width: 100%;
}

/* 3-Column Example & Feature Grids */
.aph-gen-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

@media (max-width: 960px) {
  .aph-gen-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 620px) {
  .aph-gen-grid-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}

/* 2-Column Responsive Grids */
.aph-gen-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

@media (max-width: 680px) {
  .aph-gen-grid-2 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}

/* Editorial Content Cards (distinguished from dynamic output generator cards) */
.aph-gen-grid-3 > .aph-gen-card,
.aph-gen-grid-2 > .aph-gen-card,
.aph-sec--cards .aph-gen-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 24px 22px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.aph-gen-grid-3 > .aph-gen-card:hover,
.aph-gen-grid-2 > .aph-gen-card:hover,
.aph-sec--cards .aph-gen-card:hover {
  transform: translateY(-2px) !important;
  border-color: #c7d2fe !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08) !important;
}

.aph-gen-grid-3 > .aph-gen-card h3,
.aph-gen-grid-2 > .aph-gen-card h3,
.aph-sec--cards .aph-gen-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.35 !important;
}

.aph-gen-grid-3 > .aph-gen-card p,
.aph-gen-grid-2 > .aph-gen-card p,
.aph-sec--cards .aph-gen-card p {
  font-size: 0.9375rem !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  flex: 1 !important;
}

/* Comparison Grids */
.aph-gen-compare-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 680px) {
  .aph-gen-compare-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}

.aph-gen-compare-card {
  border-radius: 14px !important;
  padding: 24px 22px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.aph-gen-compare-card--weak {
  border-left: 4px solid #ef4444 !important;
  background: #fff8f8 !important;
}

.aph-gen-compare-card--strong {
  border-left: 4px solid #10b981 !important;
  background: #f6fdf9 !important;
}

/* Responsive Table Wrapper */
.aph-gen-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  margin: 24px 0 !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  -webkit-overflow-scrolling: touch !important;
}

.aph-gen-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 0.9375rem !important;
}

.aph-gen-table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.aph-gen-table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
}

.aph-gen-table tr:last-child td {
  border-bottom: none !important;
}

.aph-gen-table tr:hover td {
  background: #f8faff !important;
}

/* Highlight / Tip Callout Box */
.aph-gen-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%) !important;
  border-left: 4px solid #6366f1 !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin: 24px 0 !important;
  color: #1e293b !important;
}

.aph-gen-callout h3,
.aph-gen-callout h4 {
  margin: 0 0 8px 0 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.aph-gen-callout p {
  margin: 0 !important;
  color: #475569 !important;
  line-height: 1.6 !important;
}

/* Distinct In-Content Promo Banner Variants */
.aph-gen-promo-banner__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #4f46e5;
}
.aph-gen-promo-banner--gradient-cta {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  border: none;
  color: #ffffff;
  padding: 26px 28px;
}
.aph-gen-promo-banner--gradient-cta .aph-gen-promo-banner__title {
  color: #ffffff !important;
}
.aph-gen-promo-banner--gradient-cta .aph-gen-promo-banner__desc {
  color: #e0e7ff !important;
}
.aph-gen-promo-banner--gradient-cta .aph-gen-promo-banner__cta {
  background: #ffffff;
  color: #312e81 !important;
}
.aph-gen-promo-banner--gradient-cta .aph-gen-promo-banner__cta:hover {
  background: #eef2ff;
}

.aph-gen-promo-banner--split-spotlight {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #4f46e5;
  padding: 22px 24px;
}

.aph-gen-promo-banner--compact-rec {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 18px 22px;
}
.aph-gen-promo-banner--compact-rec .aph-gen-promo-banner__eyebrow {
  color: #0369a1;
}
.aph-gen-promo-banner--compact-rec .aph-gen-promo-banner__cta {
  background: #0284c7;
}
.aph-gen-promo-banner--compact-rec .aph-gen-promo-banner__cta:hover {
  background: #0369a1;
}


/* === Unified Form Controls (Input, Textarea, Select, Checkbox) & Vector Icons === */
.aph-gen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--aph-gen-primary);
  flex-shrink: 0;
}
.aph-gen-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.aph-gen-icon--sm {
  width: 14px;
  height: 14px;
  color: currentColor;
}
.aph-gen-icon--white {
  color: #ffffff;
}

.aph-gen-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aph-gen-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.aph-gen-input,
.aph-gen-select,
.aph-gen-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--aph-gen-text-main);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.aph-gen-input,
.aph-gen-select {
  height: 42px;
  padding: 9px 12px;
}

.aph-gen-textarea {
  min-height: 98px;
  padding: 11px 13px;
  resize: vertical;
}

.aph-gen-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.aph-gen-select option {
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  padding: 8px 10px;
}

.aph-gen-input::placeholder,
.aph-gen-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.aph-gen-input:hover,
.aph-gen-select:hover,
.aph-gen-textarea:hover {
  border-color: #94a3b8;
}

.aph-gen-input:focus,
.aph-gen-select:focus,
.aph-gen-textarea:focus {
  outline: none;
  border-color: var(--aph-gen-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.aph-gen-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.aph-gen-checkbox-wrap:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.aph-gen-checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--aph-gen-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.aph-gen-advanced__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aph-gen-advanced__summary::after {
  content: "";
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 150ms ease;
}
.aph-gen-advanced[open] .aph-gen-advanced__summary::after {
  transform: rotate(180deg);
}

.aph-gen-placeholder__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px auto;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--aph-gen-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aph-gen-placeholder__icon svg {
  width: 26px;
  height: 26px;
}

.aph-col-feature__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.aph-col-feature__icon svg {
  width: 18px;
  height: 18px;
}
.aph-sec--band-highlight .aph-col-feature__icon {
  background: rgba(165, 180, 252, 0.16);
  color: #c7d2fe;
}


/* ==========================================================================
   Related Tools Card Component — Underline Fix & Clean Card Typography
   ========================================================================== */
.aph-gen-article a.aph-gen-related-card,
.aph-gen-article a.aph-related-card,
.aph-gen-related-section a.aph-gen-related-card,
.aph-gen-related-grid a.aph-gen-related-card,
.aph-related-grid a.aph-related-card,
.aph-gen-related-card,
.aph-related-card,
a.aph-gen-related-card,
a.aph-related-card {
  text-decoration: none !important;
  color: inherit !important;
}

.aph-gen-article a.aph-gen-related-card:hover,
.aph-gen-article a.aph-related-card:hover,
.aph-gen-related-section a.aph-gen-related-card:hover,
.aph-gen-related-grid a.aph-gen-related-card:hover,
.aph-related-grid a.aph-related-card:hover,
.aph-gen-related-card:hover,
.aph-related-card:hover,
a.aph-gen-related-card:hover,
a.aph-related-card:hover,
.aph-gen-related-card:focus,
.aph-related-card:focus,
.aph-gen-related-card:focus-visible,
.aph-related-card:focus-visible {
  text-decoration: none !important;
  color: inherit !important;
}

/* Tool Title inside Related Cards */
.aph-gen-related-card .aph-gen-related-card__title,
.aph-related-card .aph-related-card__title,
.aph-gen-related-card h3,
.aph-related-card h3,
a.aph-gen-related-card .aph-gen-related-card__title,
a.aph-related-card .aph-related-card__title,
a.aph-gen-related-card h3,
a.aph-related-card h3 {
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.35;
}

/* Tool Description inside Related Cards */
.aph-gen-related-card .aph-gen-related-card__desc,
.aph-related-card .aph-related-card__desc,
.aph-gen-related-card p,
.aph-related-card p,
a.aph-gen-related-card .aph-gen-related-card__desc,
a.aph-related-card .aph-related-card__desc,
a.aph-gen-related-card p,
a.aph-related-card p {
  text-decoration: none !important;
  line-height: 1.5;
}

/* Icon Container inside Related Cards */
.aph-gen-related-card .aph-gen-related-card__icon,
.aph-related-card .aph-related-card__icon,
a.aph-gen-related-card .aph-gen-related-card__icon,
a.aph-related-card .aph-related-card__icon {
  text-decoration: none !important;
}

/* Launch Tool CTA inside Related Cards */
.aph-gen-related-card .aph-gen-related-card__link,
.aph-related-card .aph-related-card__cta,
a.aph-gen-related-card .aph-gen-related-card__link,
a.aph-related-card .aph-related-card__cta {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--aph-gen-primary, #4f46e5);
}

.aph-gen-related-card:hover .aph-gen-related-card__link,
.aph-related-card:hover .aph-related-card__cta {
  text-decoration: none !important;
}
