:root {
  --fr-bg: #000000;
  --fr-text-white: #ffffff;
  --fr-text-dim: #8c8c8c;
  --fr-text-muted: #666666;
  --fr-border: rgba(255, 255, 255, 0.1);
  --fr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fr-mono: var(--font-tree-mono, 'Tree Mono', monospace);
}

/* ──────────────────────────────────────────────────────────────────────────
   MAIN CONTAINER (Exact Framer/Figma Minimalist Dark Aesthetic)
   ────────────────────────────────────────────────────────────────────────── */
.am-footer-section {
  position: relative;
  width: 100%;
  background-color: var(--fr-bg);
  color: var(--fr-text-white);
  font-family: var(--fr-font);
  border-top: 1px solid var(--fr-border);
  padding: 84px 0 36px 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.am-footer-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 64px);
  box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────────────────
   MAIN NAVIGATION GRID (Brand on Left + 6 Structured Columns)
   ────────────────────────────────────────────────────────────────────────── */
.am-framer-main-grid {
  display: grid;
  grid-template-columns: 140px repeat(6, 1fr);
  gap: 32px clamp(18px, 2.5vw, 44px);
  align-items: flex-start;
}

/* Brand Column (Far Left) */
.am-framer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.am-framer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.am-framer-brand:hover {
  opacity: 0.85;
}
.am-framer-brand img {
  height: 22px;
  width: auto;
  display: block;
}

/* Hidden but accessible ⌘K button & inputs for JavaScript hooks */
.am-framer-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--fr-text-dim);
  font-size: 11px;
  font-family: var(--fr-font);
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 6px;
}
.am-framer-cmd-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.am-framer-cmd-key {
  font-family: var(--fr-mono);
  font-size: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Standard Column */
.am-framer-col {
  display: flex;
  flex-direction: column;
}

.am-framer-col-header {
  font-size: 14px;
  font-weight: 500;
  color: var(--fr-text-white);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  font-family: var(--fr-font);
  line-height: 1.3;
}

.am-framer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.am-framer-link-item {
  display: flex;
  align-items: center;
}

.am-framer-link-item a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fr-text-dim);
  text-decoration: none;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
  font-family: var(--fr-font);
}

.am-framer-link-item a:hover {
  color: var(--fr-text-white);
}

/* Exact Framer/Figma Badge (NEW / SOON) */
.am-badge-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 3.5px;
  padding: 1px 4px;
  line-height: 1.1;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.am-badge-tag.soon {
  color: #8c8c8c;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Stacked Sub-Group in the Same Column (e.g. Company below Business, Tools below Community) */
.am-framer-stacked-group {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}

/* ──────────────────────────────────────────────────────────────────────────
   BOTTOM STATUS & COMPLIANCE BAR (Exact Framer Footer Bottom Strip)
   ────────────────────────────────────────────────────────────────────────── */
.am-framer-bottom-bar {
  border-top: 1px solid var(--fr-border);
  margin-top: 68px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 12.5px;
  color: var(--fr-text-muted);
}

/* Left: Follow us */
.am-framer-follow-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}
.am-framer-follow-label {
  color: var(--fr-text-muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.am-framer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.am-framer-social-link {
  color: var(--fr-text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.am-framer-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.am-framer-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Center-Left: Trusted by Compliance Badges */
.am-framer-trusted-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-framer-trusted-label {
  color: var(--fr-text-muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.am-framer-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.am-compliance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.am-compliance-badge:hover {
  opacity: 1;
}
.am-compliance-badge svg {
  height: 16px;
  width: auto;
  display: block;
}

/* Center: Status Indicator */
.am-framer-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cccccc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.am-framer-status-wrap:hover {
  color: #ffffff;
}
.am-framer-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}
.am-framer-status-wrap.issues .am-framer-status-dot {
  background: #f59e0b;
}

/* Center-Right: Metrics & Cookie Preferences Badge */
.am-framer-metric-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fr-text-muted);
  white-space: nowrap;
}
.am-framer-metric-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.am-framer-metric-val {
  color: #ffffff;
  font-weight: 500;
}

.am-cookie-pref-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

.am-cookie-pref-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.am-cookie-pref-badge:active {
  transform: translateY(0);
}

.am-cookie-pref-badge:focus-visible {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.am-cookie-badge-icon {
  width: 12px;
  height: 12px;
  color: #10b981;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.am-cookie-pref-badge:hover .am-cookie-badge-icon {
  transform: rotate(20deg) scale(1.05);
}

/* Far Right: Copyright */
.am-framer-copyright {
  font-size: 12px;
  color: var(--fr-text-muted);
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   WAD AI MODAL (Clean Apple/macOS Minimalist Dark Theme)
   ────────────────────────────────────────────────────────────────────────── */
.am-wad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999998;
}
.am-wad-overlay.active {
  opacity: 1;
  visibility: visible;
}

.am-wad-widget {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, calc(100% + 40px)) scale(0.96);
  width: 92%;
  max-width: 620px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.3s ease;
  font-family: var(--fr-font);
}
.am-wad-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.am-wad-card {
  background: rgba(13, 13, 13, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.am-wad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.am-wad-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-wad-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #000000;
}
.am-wad-title {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.am-wad-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--fr-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.am-wad-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.am-wad-messages {
  max-height: 48vh;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.am-wad-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.am-wad-message.user {
  flex-direction: row-reverse;
}
.am-wad-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}
.am-wad-message.user .am-wad-msg-avatar {
  background: #ffffff;
  color: #000000;
}
.am-wad-msg-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
}
.am-wad-message.user .am-wad-msg-body {
  align-items: flex-end;
}
.am-wad-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.am-wad-msg-author {
  font-weight: 500;
  color: var(--fr-text-dim);
}
.am-wad-msg-time {
  color: var(--fr-text-muted);
  font-size: 10px;
}
.am-wad-msg-text {
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}
.am-wad-msg-text p {
  margin: 0;
}
.am-wad-message.user .am-wad-msg-text {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.am-wad-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.am-wad-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fr-text-dim);
  animation: amWadBounce 1.2s infinite ease-in-out;
}
.am-wad-typing span:nth-child(2) { animation-delay: 0.2s; }
.am-wad-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes amWadBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.am-wad-composer {
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.am-wad-input-wrap {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color 0.15s ease;
}
.am-wad-input-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}
.am-wad-textarea {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  min-height: 24px;
  max-height: 90px;
}
.am-wad-textarea::placeholder {
  color: var(--fr-text-muted);
}

.am-wad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.am-wad-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.am-wad-model-selector {
  position: relative;
}
.am-wad-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fr-text-dim);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.am-wad-model-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10;
  min-width: 80px;
}
.am-wad-model-selector.open .am-wad-model-menu {
  display: block;
}
.am-wad-model-option {
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  color: var(--fr-text-dim);
}
.am-wad-model-option:hover,
.am-wad-model-option.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.am-wad-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--fr-text-dim);
  font-family: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.am-wad-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.am-wad-send-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: none;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  padding: 0;
}
.am-wad-send-btn:hover {
  opacity: 0.9;
}
.am-wad-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Hidden Utility Elements to keep background JS APIs intact */
.am-hidden-newsletter-form {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS (Mobile & Tablet Flexibility)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .am-framer-main-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 28px;
  }
  .am-framer-brand-col {
    grid-column: span 4;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .am-footer-section {
    padding: 50px 0 28px 0;
  }
  .am-footer-container {
    padding: 0 20px;
  }
  .am-framer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .am-framer-brand-col {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }
  .am-framer-cmd-btn {
    margin-top: 0;
  }
  .am-framer-col {
    min-width: 0;
  }
  .am-framer-stacked-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .am-framer-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "follow follow"
      "metric copy";
    align-items: center;
    gap: 16px 12px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--fr-border);
  }
  .am-framer-follow-strip {
    grid-area: follow;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .am-framer-metric-wrap {
    grid-area: metric;
    font-size: 12px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    white-space: normal;
  }
  .am-framer-copyright {
    grid-area: copy;
    font-size: 12px;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .am-footer-section {
    padding: 40px 0 24px 0;
  }
  .am-footer-container {
    padding: 0 16px;
  }
  .am-framer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .am-framer-brand-col {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
  }
  .am-framer-brand img {
    height: 20px;
  }
  .am-framer-cmd-btn {
    padding: 3px 8px;
    font-size: 11px;
    margin-top: 0;
  }
  .am-framer-col {
    min-width: 0;
  }
  .am-framer-col-header {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 11px;
    letter-spacing: -0.01em;
  }
  .am-framer-link-list {
    gap: 9px;
  }
  .am-framer-link-item a {
    font-size: 12.5px;
    line-height: 1.35;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .am-badge-tag {
    font-size: 8px;
    padding: 1px 4px;
    margin-left: 3px;
  }
  .am-framer-stacked-group {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .am-framer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 34px;
    padding-top: 18px;
  }
  .am-framer-follow-strip {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .am-framer-follow-label {
    font-size: 11.5px;
  }
  .am-framer-social-icons {
    gap: 12px;
  }
  .am-framer-social-link svg {
    width: 15px;
    height: 15px;
  }
  .am-framer-metric-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 11.5px;
    line-height: 1.3;
    white-space: normal;
  }
  .am-framer-copyright {
    font-size: 11.5px;
    text-align: left;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.45);
  }
  .am-cookie-pref-badge {
    padding: 2.5px 9px;
    font-size: 10.5px;
  }
}