/* aiformbuilders.com — Apple glassmorphism, light blue/purple */

:root {
  --bg: #f0f4ff;
  --bg-2: #e8eeff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --border: rgba(148, 163, 184, 0.35);
  --text: #1e293b;
  --muted: #64748b;
  --accent: #5b7cfa;
  --accent-2: #8b5cf6;
  --accent-hover: #4f6ef7;
  --pros-bg: rgba(91, 124, 250, 0.1);
  --pros-border: rgba(91, 124, 250, 0.25);
  --pros-fg: #3b5bdb;
  --cons-bg: rgba(244, 63, 94, 0.08);
  --cons-border: rgba(244, 63, 94, 0.2);
  --cons-fg: #e11d48;
  --radius: 20px;
  --radius-sm: 14px;
  --blur: 20px;
  --content-max: 44rem;
  --page-max: 72rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --shadow-glass: 0 8px 32px rgba(91, 124, 250, 0.08), 0 2px 8px rgba(139, 92, 246, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(160deg, #f0f4ff 0%, #ede9fe 35%, #f8fafc 70%, #eef2ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(91, 124, 250, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(139, 92, 246, 0.14), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(96, 165, 250, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 0 2px 2px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(91, 124, 250, 0.06);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(91, 124, 250, 0.08);
}

.site-nav a.nav-active {
  color: var(--accent);
  background: rgba(91, 124, 250, 0.12);
}

/* Glass card utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
}

/* Hero */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(91, 124, 250, 0.12);
  border: 1px solid rgba(91, 124, 250, 0.2);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: var(--page-max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.stat-card {
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* Editor pick */
.pick-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .pick-card {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.pick-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.pick-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.pick-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 1rem;
}

.pick-features li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.pick-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(91, 124, 250, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 124, 250, 0.4);
  color: #fff;
}

.pick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pick-stat {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.pick-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
}

.pick-stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: rgba(91, 124, 250, 0.08);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.tool-card {
  padding: 1.75rem;
}

.tool-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.tool-card .tool-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-card .tool-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.5rem 0 1rem;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(91, 124, 250, 0.1);
  color: var(--accent);
  border: 1px solid rgba(91, 124, 250, 0.15);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 480px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros,
.cons {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.pros {
  background: var(--pros-bg);
  border: 1px solid var(--pros-border);
}

.pros h4 {
  color: var(--pros-fg);
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
}

.cons {
  background: var(--cons-bg);
  border: 1px solid var(--cons-border);
}

.cons h4 {
  color: var(--cons-fg);
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
}

.pros ul,
.cons ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pros li,
.cons li {
  margin-bottom: 0.2rem;
}

/* FAQ */
.faq-list {
  max-width: var(--content-max);
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.75rem;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Page content (inner pages) */
.page-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-main--wide {
  max-width: var(--page-max);
}

.page-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-main h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.page-main h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  opacity: 0.5;
}

.article-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Guide cards on homepage */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91, 124, 250, 0.12);
  color: inherit;
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.guide-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-card .guide-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--blur));
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  max-width: 22rem;
}

.site-footer h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.related-sites {
  columns: 2;
  column-gap: 1.5rem;
}

@media (max-width: 480px) {
  .related-sites {
    columns: 1;
  }
}

.related-sites li {
  break-inside: avoid;
}

.footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(91, 124, 250, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }
}

/* Pricing mini tables in cards */
.pricing-mini {
  width: 100%;
  font-size: 0.8125rem;
  margin: 0.75rem 0;
}

.pricing-mini th,
.pricing-mini td {
  padding: 0.4rem 0.5rem;
}

.highlight-row {
  background: rgba(91, 124, 250, 0.06);
}
