/*
Theme Name: Aftermarket
Version: 1.0.0
Author: Madre
Author URI: https://wearemadre.com
Description: FSE block theme for the Aftermarket newsletter landing page.
*/

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --am-dark:        #0b0820;
  --am-dark-card:   #1a1650;
  --am-dark-footer: #07051a;
  --am-purple:      #7c5af5;
  --am-purple-soft: #c084fc;
  --am-purple-light: #d392fa;
  --am-yellow:      #f0c040;
  --am-white:       #ffffff;
  --am-light:       #f5f8fe;
  --am-ink:         #1a1a1a;
  --am-muted:       #6b7280;
  --am-border:      #e5e7eb;
  --am-radius:      8px;
  --am-radius-lg:   16px;
  --am-gradient:    linear-gradient(135deg, #0b0820 0%, #1d1456 70%, #2d1b6e 100%);
}

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

html { overflow-x: clip; scroll-behavior: smooth; }
[id] { scroll-margin-top: 40px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--am-ink);
  background: var(--am-white);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Shared section wrapper ──────────────────────────────── */
.am-section {
  padding: 5rem 2rem;
  width: 100%;
}

.am-section-inner {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}

/* ── Shared: pill tag ────────────────────────────────────── */
.am-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  background: #6728fb;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 55px;
  gap: 10px;
  margin-bottom: 1.25rem;
}

/* ── Shared: highlight span ──────────────────────────────── */
.am-highlight {
  background: linear-gradient(90deg, #284BFB 0%, #7B6DFB 25%, #D392FA 50%, #7B6DFB 75%, #284BFB 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.2s ease;
}

/* ── Shared: inputs ──────────────────────────────────────── */
.am-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--am-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--am-white);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.am-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.am-hero-form .am-input::placeholder,
.am-footer-cta-form .am-input::placeholder {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
  color: #fefeff;
}
.am-input:focus { border-color: var(--am-purple); }

.am-input-light {
  background: var(--am-white);
  border-color: var(--am-border);
  color: var(--am-ink);
}
.am-input-light::placeholder { color: var(--am-muted); }

/* ── Shared: buttons ─────────────────────────────────────── */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--am-radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.am-btn-primary,
.wp-block-button.am-btn-primary .wp-block-button__link {
  background: var(--am-purple-light);
  color: #070c3c !important;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.35s ease;
}
.am-btn-primary::before,
.wp-block-button.am-btn-primary .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
}
.am-btn-primary:hover,
.wp-block-button.am-btn-primary .wp-block-button__link:hover {
  color: #070c3c !important;
  box-shadow:
    0 0 20px rgba(211, 146, 250, 0.5),
    0 6px 24px rgba(211, 146, 250, 0.3);
}
.am-btn-primary:hover::before,
.wp-block-button.am-btn-primary .wp-block-button__link:hover::before {
  left: 160%;
}
.am-btn-primary:active,
.wp-block-button.am-btn-primary .wp-block-button__link:active {
  box-shadow: 0 0 10px rgba(211, 146, 250, 0.3);
}

/* Loading state — spinner via ::after, shimmer paused */
.am-btn-primary.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.am-btn-primary.is-loading::before { display: none; }
.am-btn-primary.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(7, 12, 60, 0.25);
  border-top-color: #070c3c;
  border-radius: 50%;
  animation: am-spin 0.7s linear infinite;
}
@keyframes am-spin {
  to { transform: rotate(360deg); }
}

/* Subscribe feedback message */
.am-subscribe-msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.75rem;
  transition: opacity 0.3s ease;
}
.am-subscribe-msg.is-success { color: #4ade80; }
.am-subscribe-msg.is-success p { margin: 0 0 0.5rem; line-height: 1.5; }
.am-subscribe-msg.is-success p:last-child { margin-bottom: 0; }
.am-subscribe-msg.is-error   { color: #f87171; }
.am-subscribe-msg.is-already {
  font-weight: 600;
  background: linear-gradient(90deg, #284BFB, #7B6DFB, #D392FA, #7B6DFB, #284BFB);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: am-already-shimmer 3s linear infinite;
}
@keyframes am-already-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── NAV ─────────────────────────────────────────────────── */
.am-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #070C3C !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.am-nav.is-scrolled {
  background: rgba(7, 12, 60, 0.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.am-nav-inner {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 2rem;
}
.am-nav-logo img {
  display: block;
}
.am-nav-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--am-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.am-nav-links {
  flex: 1;
}
.am-nav-links .wp-block-navigation__container {
  gap: 2rem;
  flex-wrap: nowrap;
}
.am-nav-links .wp-block-navigation-item__content {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--am-white) !important;
  text-decoration: none;
  transition: color 0.15s;
  padding: 0 !important;
}
.am-nav-links .wp-block-navigation-item__content:hover { color: var(--am-purple) !important; }
.am-btn-subscribe .wp-block-button__link {
  background: var(--am-purple-soft);
  color: var(--am-white) !important;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border: none;
}
.am-btn-subscribe .wp-block-button__link:hover {
  background: var(--am-purple);
  color: var(--am-white) !important;
}

/* ── HERO ────────────────────────────────────────────────── */
.am-hero {
  background: url('assets/img/madre-hero-bg.webp') no-repeat center/cover;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.am-hero-inner {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 403px;
  gap: 4rem;
  align-items: center;
}
.am-hero-content { padding-right: 6rem; }

.am-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--am-purple-light);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  color: var(--am-white);
  width: fit-content;
}
.am-hero h1 {
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--am-white);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  padding-right: 2rem;
}
.am-hero-subtitle,
.am-hero-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #fefeff;
}
.am-hero-subtitle { margin: 0 0 0.75rem; }
.am-hero-desc { margin: 0 0 2rem; padding-right: 1rem; }
.am-hero-form,
.am-footer-cta-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.am-hero-form .am-input,
.am-footer-cta-form .am-input {
  flex: 1;
  min-width: 130px;
  height: 60px;
  border-radius: 11px;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(108, 111, 135, 0.3), rgba(108, 111, 135, 0.3)) padding-box,
    linear-gradient(101.4deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
}
.am-hero-form [type="submit"],
.am-footer-cta-form [type="submit"] {
  height: 60px;
  padding: 0 1.75rem;
}

.am-social-proof-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.am-avatar-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.am-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-left: -12px;
  opacity: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.am-avatar:first-child {
  margin-left: 0;
  animation: am-avatar-in 0.5s 0.1s ease forwards, am-avatar-swim 3s 3.2s ease-in-out infinite;
}
.am-avatar:nth-child(2) {
  animation: am-avatar-in 0.5s 0.25s ease forwards, am-avatar-swim 3s 3.5s ease-in-out infinite;
}
.am-avatar:nth-child(3) {
  animation: am-avatar-in 0.5s 0.4s ease forwards, am-avatar-swim 3s 3.8s ease-in-out infinite;
}
.am-avatar:hover {
  border-color: var(--am-purple-light);
  box-shadow: 0 0 0 3px rgba(211, 146, 250, 0.35);
  animation-play-state: paused;
  z-index: 1;
}
@keyframes am-avatar-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes am-avatar-swim {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 1; transform: translateY(-5px); }
}
.am-social-proof {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #fefeff;
}
.am-hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 900px;
}
.am-hero-image-wrap img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--am-radius-lg);
  transition: transform 0.45s;
  will-change: transform;
}
.am-hero-image-wrap:hover img {
  transform: rotateZ(-5deg) rotateY(0deg);
}

/* ── FEATURES ────────────────────────────────────────────── */
.am-features { background: var(--am-light); }
.am-features-desc {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #070c3c;
  margin: 0 0 0.75rem;
}
.am-features h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #070c3c;
  margin: 0 0 0.75rem;
}
.am-feature-grid {
  margin-top: 2.5rem !important;
  align-items: stretch !important;
}
.am-feature-grid .wp-block-column {
  display: flex;
  flex-direction: column;
}
.am-feature-card {
  background: var(--am-dark) !important;
  border-radius: var(--am-radius-lg) !important;
  padding: 1.5rem 16px !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 1px rgba(103, 40, 251, 0.15);
  transition: box-shadow 0.35s ease;
}
.am-feature-card:hover {
  box-shadow:
    0 0 0 1px rgba(103, 40, 251, 0.4),
    0 8px 32px rgba(103, 40, 251, 0.25),
    0 2px 12px rgba(40, 75, 251, 0.15);
}
.am-feature-card h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 0 0.75rem !important;
}
.am-feature-card p {
  font-family: 'Golos Text', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  letter-spacing: -0.02em !important;
  color: #bcd3ff !important;
  margin: 0 0 auto !important;
}
.am-feature-card-img {
  display: block !important;
  width: calc(100% + 3rem) !important;
  margin: 1.5rem -1.5rem -1.5rem !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.am-feature-card-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0 !important;
}

/* ── PREVIOUS ISSUES ─────────────────────────────────────── */
.am-issues { background: var(--am-light); }
.am-issues h2 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #090f46;
  margin: 0 0 0.5rem;
}
.am-issues > .am-section-inner > .wp-block-paragraph,
.am-issues .has-muted-color {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #54619f !important;
  margin: 0 0 1.5rem;
}
.am-issues-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}
.am-issues-form .am-input-light {
  width: 180px;
  flex: 1 1 160px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(7, 12, 60, 0.25);
  background: rgba(108, 111, 135, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--am-ink);
}
.am-issues-form [type="submit"] {
  height: 60px;
  min-width: 235px;
  border-radius: 12px;
  background: #3355ff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f5f8fe !important;
  box-shadow: none;
  transition: box-shadow 0.35s ease;
}
.am-issues-form [type="submit"]:hover {
  box-shadow: 0 0 20px rgba(51, 85, 255, 0.45), 0 6px 24px rgba(51, 85, 255, 0.25);
}
.am-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.am-filter-tabs-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.am-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 69px;
  height: 44px;
  border-radius: 50px;
  padding: 12px 24px;
  background: #ffffff;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #0d3e60;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.am-tab.active, .am-tab:hover {
  background: #3355ff;
  color: #ffffff;
}
.am-filter-search {
  position: relative;
  flex-shrink: 0;
}
.am-filter-search::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url('assets/img/search-icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.am-search-input {
  width: 267px;
  height: 44px;
  border-radius: 52px;
  padding: 18px 21px 18px 47px;
  background: transparent;
  border: 1px solid #b1c3cf;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #657694;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.am-search-input::placeholder {
  color: #657694;
}
.am-search-input:focus {
  border-color: #3355ff;
  box-shadow: 0 0 0 3px rgba(51, 85, 255, 0.12);
}
/* Query block: style post cards */
.am-query .wp-block-post-template {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}
.am-query {
  position: relative;
}
.am-query.is-fetching .wp-block-post-template {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.am-query.is-fetching::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
}
.am-query.is-fetching::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(211, 146, 250, 0.2);
  border-top-color: #d392fa;
  border-radius: 50%;
  animation: am-spin 0.75s linear infinite;
  z-index: 11;
}

/* Card stagger entrance */
@keyframes am-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.am-article-card {
  animation: am-card-in 0.35s ease both;
}

/* Load more */
.am-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.am-btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2rem;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid #b1c3cf;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #0d3e60;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.am-btn-load-more:hover {
  border-color: #3355ff;
  color: #3355ff;
}
.am-btn-load-more.is-loading {
  color: transparent;
  pointer-events: none;
}
.am-btn-load-more.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(13, 62, 96, 0.2);
  border-top-color: #0d3e60;
  border-radius: 50%;
  animation: am-spin 0.7s linear infinite;
}
.am-article-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(13, 62, 96, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 456px;
  transition: box-shadow 0.25s ease;
}
.am-article-card:hover {
  box-shadow: 0 0 0 2px #d392fa, 0 8px 32px rgba(211, 146, 250, 0.2);
}

/* Image wrapper — anchors the category chip */
.am-article-card-img-wrap {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  min-height: 241px;
  background: linear-gradient(135deg, #eef1ff 0%, #ede8ff 100%);
}
.am-article-card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23c5caf5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.am-article-card-img-wrap .wp-block-post-featured-image:not(:empty),
.am-article-card-img-wrap > div:has(img) {
  position: relative;
  z-index: 1;
}
.am-article-card-img-wrap:has(img)::before { display: none; }
.am-article-card-img-wrap .wp-block-post-featured-image,
.am-article-card-img-wrap .wp-block-post-featured-image a,
.am-article-card-img-wrap .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
.am-article-card-img-wrap .wp-block-post-featured-image img {
  object-fit: cover;
}

/* Category chip overlay */
.am-card-cats {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  font-size: 0 !important;
}
.am-card-cats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: #ffffff;
  color: #3355ff;
  font-family: 'Inter', sans-serif;
  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.5;
  padding: 0 8px;
  border-radius: 56px;
  text-decoration: none;
  white-space: nowrap;
}

/* Card body */
.am-article-card-body {
  padding: 0 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.am-article-card .wp-block-post-title a {
  font-family: 'Golos Text', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #070c3c;
  text-decoration: none;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.am-article-card .wp-block-post-excerpt p {
  font-family: 'Golos Text', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #3f4f66;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 0;
}
.am-article-card .wp-block-post-excerpt .wp-block-post-excerpt__more-link {
  font-family: 'Golos Text', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #3355ff;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 2px;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ── SINGLE POST ─────────────────────────────────────────── */
.am-single {
  background: #ffffff;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

/* Shared inner column */
.am-single-header,
.am-single-body {
  max-width: 680px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Category chip */
.am-single-cats .wp-block-post-terms__separator { display: none; }
.am-single-cats a {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(51, 85, 255, 0.07);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3355ff;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

/* Title */
.am-single-title.wp-block-post-title {
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0a0a0a;
  margin: 0 0 1.5rem;
}

/* Meta row */
.am-single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2.5rem;
}
.am-single-meta .wp-block-post-date,
.am-single-meta .wp-block-post-date a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b6b6b;
  text-decoration: none;
}
.am-reading-time {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b6b6b;
}
.am-reading-time::before {
  content: '·';
  margin: 0 0.4rem;
  opacity: 0.5;
}
.am-single-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.am-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0 !important;
}
.am-single-tags .wp-block-post-terms__separator { display: none; }
.am-single-tags a {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 56px;
  border: 1px solid #d392fa;
  background: transparent;
  color: #3355ff;
  font-family: 'Inter', sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.am-single-tags a:hover {
  background: #d392fa;
  border-color: #d392fa;
  color: #fff;
}

/* Featured image — wide card */
.am-single-img-wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.am-single-img-wrap .wp-block-post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

/* Post content */
.am-single-body .wp-block-post-content {
  font-family: 'Golos Text', sans-serif;
  font-size: 19px;
  line-height: 1.8;
  letter-spacing: -0.01em;
  color: #292929;
}
.am-single-body .wp-block-post-content > * { margin-bottom: 1.5em; }
.am-single-body .wp-block-post-content h2,
.am-single-body .wp-block-post-content h3,
.am-single-body .wp-block-post-content h4 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}
.am-single-body .wp-block-post-content h2 { font-size: 1.75rem; }
.am-single-body .wp-block-post-content h3 { font-size: 1.35rem; }
.am-single-body .wp-block-post-content a {
  color: #3355ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.am-single-body .wp-block-post-content blockquote {
  border-left: 3px solid #3355ff;
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.5em;
  font-style: italic;
  color: #6b6b6b;
}
.am-single-body .wp-block-post-content img {
  border-radius: 10px;
  max-width: 100%;
}

/* Share row */
.am-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}
.am-share-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #6b6b6b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.am-share-btns { display: flex; align-items: center; gap: 8px; }
.am-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  color: #3f3f3f;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.am-share-btn:hover {
  background: #3355ff;
  color: #ffffff;
}

/* Prev / Next nav cards */
.am-post-nav-cards {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e8e8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.am-post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.am-post-nav-card:hover {
  border-color: #3355ff;
  background: rgba(51, 85, 255, 0.03);
}
.am-post-nav-card--next { text-align: right; }
.am-post-nav-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3355ff;
}
.am-post-nav-card__title {
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .am-post-nav-cards { grid-template-columns: 1fr; }
}

/* Related Posts */
.am-related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e8e8;
  width: min(1140px, calc(100vw - 3rem));
  margin-left: calc(50% - min(570px, calc(50vw - 1.5rem)));
}
.am-related-heading {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.am-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .am-related { width: 100%; margin-left: 0; }
  .am-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .am-related-grid { grid-template-columns: 1fr; }
}

/* ── CONTENT GATE ────────────────────────────────────────── */
.wp-block-post-content.is-gated {
  max-height: 420px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.am-gate {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}
.am-gate-inner {
  max-width: 480px;
  margin: 0 auto;
}
.am-gate-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3355ff;
  margin: 0 0 1rem;
}
.am-gate-title {
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin: 0 0 0.75rem;
}
.am-gate-body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #6b6b6b;
  margin: 0 0 1.75rem;
}
.am-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.am-gate-input {
  width: 100%;
  height: 52px;
  padding: 0 1.125rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  color: #0a0a0a;
  outline: none;
  transition: border-color 0.2s;
}
.am-gate-input::placeholder { color: #9ca3af; }
.am-gate-input:focus { border-color: #3355ff; }
.am-gate-form .am-btn-primary {
  width: 100%;
  height: 52px;
  font-size: 1rem;
}
.am-gate-msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
}
.am-gate-msg.is-error { color: #f87171; }

/* ── ARCHIVE (category / tag / date) ────────────────────── */
.am-archive {
  background: var(--am-light);
  padding-top: 6rem !important;
  padding-bottom: 5rem !important;
}
.am-archive-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dde4ee;
}
.am-archive-title.wp-block-query-title,
.am-archive-title.wp-block-heading {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #090f46;
  margin: 0 0 0.5rem;
}
.am-archive-desc.wp-block-term-description p {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #54619f;
  margin: 0;
}
.am-pagination.wp-block-query-pagination {
  margin-top: 3rem;
  gap: 6px;
}
.am-pagination .wp-block-query-pagination-numbers,
.am-pagination .wp-block-query-pagination-previous,
.am-pagination .wp-block-query-pagination-next {
  display: flex;
  align-items: center;
  gap: 6px;
}
.am-pagination a,
.am-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  border: 1.5px solid #b1c3cf;
  background: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0d3e60;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.am-pagination a:hover {
  background: #3355ff;
  border-color: #3355ff;
  color: #fff;
}
.am-pagination .page-numbers.current {
  background: #3355ff;
  border-color: #3355ff;
  color: #fff;
}

/* ── WHY SUBSCRIBE ───────────────────────────────────────── */
.am-why {
  background: #070c3c;
  text-align: center;
}
.am-why h2 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f5f8fe;
  margin: 0 0 0.25rem;
}
.am-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.5rem;
}
.am-why-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.am-why-item-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.am-why-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #6728fb;
  border-radius: 39.88px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 26.99px;
  line-height: 30.3px;
  letter-spacing: -0.12px;
  color: #ffffff;
}
.am-why-item-top p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #f5f8fe;
  text-align: left;
  margin: 0;
}
.am-why-item-img {
  border-radius: 16px;
  overflow: hidden;
  background: #0f1340;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.am-why-item-img img,
.am-why-item-img .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
.am-why-item-img .wp-block-image { margin: 0; }
.am-hero-image-wrap .wp-block-image { margin: 0; }
.am-hero-image-wrap .wp-block-image img { display: block; width: 100%; height: auto; }
/* Relevant card — WP columns handles 2-col layout */
.am-relevant-card > .wp-block-columns { gap: 0; margin: 0; }
.am-relevant-card > .wp-block-columns > .wp-block-column { margin: 0; }
.am-why-item-img--badge {
  position: relative;
  overflow: visible;
}
.am-why-item-img--badge img {
  border-radius: 16px;
}
@keyframes am-badge-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 0 rgba(240,192,64,0); }
  50%       { box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 16px 4px rgba(240,192,64,0.45); }
}
.am-early-access {
  position: absolute;
  top: 35%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  animation: am-badge-glow 2.4s ease-in-out infinite;
}
.am-why .wp-block-buttons { margin-top: 2.5rem !important; }
.am-why .wp-block-button.am-btn-primary .wp-block-button__link {
  width: 241px;
  height: 60px;
  border-radius: 12px;
  background: #d392fa;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #070c3c !important;
}
@media (max-width: 768px) {
  .am-why-grid { grid-template-columns: 1fr; }
}

/* ── RELEVANT ────────────────────────────────────────────── */
.am-relevant { background: #f5f8fe; text-align: center; }
.am-relevant h2 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  color: #070c3c;
  margin: 0 0 0.5rem;
}
.am-relevant > .wp-block-group__inner-container > p,
.am-relevant > p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #3f4f66 !important;
}
.am-relevant-card {
  background: linear-gradient(180deg, #070c3c 0%, #282e6e 122.94%);
  border: 1px solid #bcd3ff;
  border-radius: 32px;
  padding: 0;
  text-align: left;
  max-width: 1141px;
  margin: 2.5rem auto 0;
  overflow: hidden;
  padding: 25px;
}
.am-relevant-col {
  padding: 0.5rem 2.75rem 1.5rem;
}
.am-relevant-col:first-child {
  border-right: 1px solid rgba(188, 211, 255, 0.2);
}
.am-relevant-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}
.am-relevant-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem -2.75rem 0;
  padding: 1.25rem 2.75rem 0;
  border-top: 1px solid rgba(188, 211, 255, 0.2);
}
.am-relevant-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.am-relevant-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  object-fit: contain;
  margin-top: 0.5em;
}

/* ── FOOTER CTA ──────────────────────────────────────────── */
.am-footer-cta {
  background: url('./assets/img/footer-cta-bg.webp') center / cover no-repeat;
  text-align: center;
}
.am-footer-cta h2 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 0.75rem;
  width: auto;
  max-width: none;
}
.am-footer-cta-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 2rem;
}
.am-footer-cta-form { justify-content: center; width: 730px; max-width: 100%; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
.am-footer {
  background: url('./assets/img/footer-bg.webp') center / cover no-repeat;
  padding: 3rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.am-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.am-footer-top {
  margin-bottom: 5rem !important;
}
.am-footer .wp-block-site-logo img {
  filter: brightness(0) invert(1);
}

/* Social icons */
.am-social-icons { gap: 0.5rem; }
.am-social-icons .wp-block-social-link {
  background: none !important;
  border-radius: 0 !important;
  width: 36px;
  height: 36px;
  margin-right: 5px;
}
.am-social-icons .wp-block-social-link-anchor {
  display: block;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  background-color: transparent !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s;
}
.am-social-icons .wp-block-social-link-anchor svg { display: none !important; }
.am-social-icons .wp-block-social-link-anchor:hover { opacity: 0.8; }
/* Social icon background-images injected via PHP (absolute URLs) in enqueue.php */

/* Footer CTA buttons */
.am-footer .am-footer-links {
  margin-bottom: 2.5rem !important;
  gap: 0.75rem;
}
/* Outline variant (default) */
.am-footer-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45.81px;
  border-radius: 12px;
  border: 1px solid #ffffff !important;
  background: #070c3c !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 13.41px 16px;
  gap: 11.17px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.am-footer-btn .wp-block-button__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #d392fa;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 12px;
}
.am-footer-btn .wp-block-button__link:hover::before { transform: scaleX(1); }
.am-footer-btn .wp-block-button__link:hover {
  border-color: #d392fa !important;
  color: #070c3c !important;
}

/* Primary filled variant */
.am-footer-btn--primary .wp-block-button__link {
  width: 211px !important;
  background: #d392fa !important;
  border: none !important;
  color: #070c3c !important;
}
.am-footer-btn--primary .wp-block-button__link::before {
  background: #c07de8;
}
.am-footer-btn--primary .wp-block-button__link:hover {
  border-color: transparent !important;
  color: #070c3c !important;
}

/* Bottom bar */
.am-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}
.am-footer-legal {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px !important;
  line-height: 22.4px;
  letter-spacing: -0.24px;
  vertical-align: middle;
  color: #8c9baa !important;
  margin: 0 !important;
}
.am-footer-legal-links .wp-block-navigation-item__content {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px !important;
  line-height: 22.4px;
  letter-spacing: -0.24px;
  vertical-align: middle;
  color: #8c9baa !important;
  text-decoration: none;
  transition: color 0.15s;
  padding: 0 !important;
}
.am-footer-legal-links .wp-block-navigation__container { gap: 1.5rem; }
.am-footer-legal-links .wp-block-navigation-item__content:hover {
  color: var(--am-white) !important;
}

/* ── Search template ─────────────────────────────────────── */
.am-search-bar { margin-top: 1.5rem; max-width: 560px; }
.am-archive-header--row .am-search-bar { margin-top: 0; max-width: 320px; width: 100%; }
.am-search-bar .wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  border: 1px solid var(--am-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--am-white);
  padding: 0.375rem;
}
.am-search-bar .wp-block-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.625rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--am-ink);
  background: transparent;
}
.am-search-bar .wp-block-search__button {
  background: var(--am-purple-light);
  color: #070c3c;
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.am-search-bar .wp-block-search__button:hover { opacity: 0.85; }
.am-no-results {
  color: var(--am-muted);
  font-family: 'Inter', sans-serif;
  padding: 3rem 0;
}

/* ── THANK YOU ───────────────────────────────────────────── */
.am-thankyou {
  min-height: calc(100vh - 80px);
  background: #070c3c;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}
@keyframes am-ty-pop {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes am-ty-glow {
  0%, 100% { box-shadow: 0 0 32px rgba(103, 40, 251, 0.4); }
  50%       { box-shadow: 0 0 56px rgba(211, 146, 250, 0.6), 0 0 0 16px rgba(211, 146, 250, 0.08); }
}
.am-thankyou-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6728fb, #d392fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.25rem;
  color: #fff;
  line-height: 1;
  animation: am-ty-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
             am-ty-glow 2.5s ease-in-out 0.6s infinite;
}
.am-thankyou h1 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: #f5f8fe;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.am-thankyou-main {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #bcd3ff;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.am-thankyou-notice {
  background: rgba(103, 40, 251, 0.1);
  border: 1px solid rgba(211, 146, 250, 0.25);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.am-thankyou-notice-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #d392fa;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.am-thankyou-notice-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #8899bb;
  margin: 0;
}
.am-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 2.25rem;
  border-radius: 12px;
  background: #d392fa;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #070c3c !important;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.am-thankyou-btn:hover {
  box-shadow: 0 8px 32px rgba(211, 146, 250, 0.45);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .am-thankyou { padding: 5rem 1.25rem; }
  .am-thankyou-notice { padding: 1.25rem; }
  .am-thankyou-btn { width: 100%; max-width: 360px; }
}

/* ── 404 ─────────────────────────────────────────────────── */
.am-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--am-gradient);
  padding: 6rem 2rem;
  text-align: center;
}
.am-404-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.am-404-code {
  display: block;
  font-family: 'Golos Text', sans-serif;
  font-weight: 900;
  font-size: clamp(7rem, 18vw, 12rem);
  line-height: 1;
  background: linear-gradient(90deg, #284BFB 0%, #7B6DFB 25%, #D392FA 50%, #7B6DFB 75%, #284BFB 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: am-already-shimmer 4s linear infinite;
  letter-spacing: -0.04em;
}
.am-404-title {
  font-family: 'Golos Text', sans-serif !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.am-404-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
}
.am-404-btn-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.875rem 1.75rem !important;
  transition: border-color 0.2s, background 0.2s !important;
}
.am-404-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.am-404 .wp-block-buttons { gap: 0.75rem; margin: 0.5rem 0 0; }
.am-404 .wp-block-button .wp-block-button__link { padding: 0.875rem 1.75rem !important; }

/* ── Page loader ─────────────────────────────────────────────────────────────── */
#am-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070c3c;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#am-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#am-loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(211, 146, 250, 0.2);
  border-top-color: #d392fa;
  border-radius: 50%;
  animation: am-spin 0.75s linear infinite;
}

/* ── Admin bar offset ───────────────────────────────────────────────────────── */
.admin-bar .am-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .am-nav { top: 46px; }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  /* Hero */
  .am-hero-inner { gap: 2.5rem; }
  .am-hero-content { padding-right: 1.5rem; }
  .am-hero h1 { padding-right: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); }
  .am-hero-desc { padding-right: 0; }

  /* Section headings */
  .am-features h2 { font-size: 1.875rem; }
  .am-why h2,
  .am-relevant h2,
  .am-footer-cta h2 { font-size: 2.5rem; }
}

@media (max-width: 900px) {
  /* Hero — single column, centred */
  .am-hero { padding: 7rem 2rem 5rem; }
  .am-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .am-hero-content { padding-right: 0; }
  .am-hero h1 { padding-right: 0; font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .am-hero-desc { padding-right: 0; }
  .am-announcement { margin: 0 auto 1.75rem; }
  .am-hero-form { justify-content: center; max-width: 520px; margin: 0 auto; }
  .am-social-proof-wrap { justify-content: center; }
  .am-hero-image-wrap { display: flex; max-width: 420px; margin: 0 auto; }
  .am-hero-image-wrap img { max-width: 100%; }

  /* Features */
  .am-features h2 { font-size: 1.625rem; }
  .am-features-desc { font-size: 0.95rem; }

  /* Why subscribe — 3 cols → 1 col */
  .am-why-grid { grid-template-columns: 1fr !important; max-width: 560px; margin-left: auto; margin-right: auto; }
  .am-why h2 { font-size: 2rem; }

  /* Relevant */
  .am-relevant h2 { font-size: 2rem; }
  .am-relevant-card { border-radius: 20px; padding: 0; }
  .am-relevant-col { padding: 1.5rem 1.75rem; }
  .am-relevant-list { margin: 1.25rem -1.75rem 0; padding: 1.25rem 1.75rem 0; }
  .am-relevant-card > .wp-block-columns { flex-direction: column; }
  .am-relevant-col:first-child { border-right: none; border-bottom: 1px solid rgba(188, 211, 255, 0.2); }

  /* Issues */
  .am-issues h2 { font-size: 2.25rem; }
  .am-issues-form { flex-direction: column; max-width: 380px; }
  .am-issues-form .am-input-light { width: 100%; }

  /* Footer CTA */
  .am-footer-cta h2 { font-size: 2rem; }

  /* Footer top — stack logo + social */
  .am-footer-top { flex-direction: column !important; align-items: flex-start !important; gap: 1.5rem; margin-bottom: 2.5rem !important; }

  /* Posts grid */
  .am-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .am-section { padding: 3.5rem 1.25rem; }

  /* Hero */
  .am-hero { padding: 5.5rem 1.25rem 4rem; }
  .am-hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .am-hero-form { flex-direction: column; align-items: stretch; max-width: 100%; }
  .am-hero-form .am-input,
  .am-hero-form [type="submit"] { width: 100%; min-width: 0; }
  .am-hero-image-wrap { display: none; }

  /* Features — 1 col on mobile */
  .am-feature-grid.wp-block-columns { flex-wrap: wrap !important; }
  .am-feature-grid .wp-block-column { flex: 1 1 100% !important; min-width: 100% !important; max-width: 100% !important; }
  .am-features h2 { font-size: 1.4rem; }
  .am-feature-card-img { width: calc(100% + 2rem) !important; margin: 1.25rem -1rem -1rem !important; }

  /* Why subscribe */
  .am-why h2 { font-size: 1.75rem; }
  .am-why-grid { max-width: 100%; gap: 1.25rem; }
  .am-why-item { gap: 1.25rem; }
  .am-why-item-top p { font-size: 1rem; }
  .am-why .wp-block-buttons { margin-top: 1.75rem !important; }
  .am-why .wp-block-button.am-btn-primary .wp-block-button__link { width: 100% !important; max-width: 100% !important; height: 52px; font-size: 0.95rem; }

  /* Relevant */
  .am-relevant h2 { font-size: 1.75rem; }
  .am-relevant > .wp-block-group__inner-container > p,
  .am-relevant > p { font-size: 1rem; }
  .am-relevant-card { border-radius: 16px; }
  .am-relevant-col { padding: 1.25rem 1.25rem 1.5rem; }
  .am-relevant-card h3 { font-size: 1.1rem; }
  .am-relevant-list { margin: 1rem -1.25rem 0; padding: 1rem 1.25rem 0; gap: 0.75rem; }
  .am-relevant-list li { font-size: 0.9rem; }

  /* Issues */
  .am-issues h2 { font-size: 1.75rem; }
  .am-issues-form { max-width: 100%; }
  .am-issues-form [type="submit"] { min-width: 0; width: 100%; }
  .am-filter-tabs { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 2rem; margin-bottom: 2rem; }
  .am-filter-search { width: 100%; }
  .am-search-input { width: 100%; box-sizing: border-box; }

  /* Footer CTA */
  .am-footer-cta h2 { font-size: 1.75rem; }
  .am-footer-cta-desc { font-size: 1rem; }
  .am-footer-cta-form { flex-direction: column; align-items: stretch; }

  /* Footer */
  .am-footer-links.wp-block-buttons { flex-direction: column !important; align-items: stretch !important; }
  .am-footer-btn .wp-block-button__link,
  .am-footer-btn--primary .wp-block-button__link { width: 100% !important; box-sizing: border-box; }
  .am-footer-bottom { flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
  .am-footer-legal { text-align: center; }
  .am-footer-legal-links .wp-block-navigation__container { justify-content: center; }

  /* Posts grid */
  .am-query .wp-block-post-template { grid-template-columns: 1fr !important; }

  /* Nav */
  .am-nav-links { display: none !important; }
}

/* ── PAGE / SINGLE content area ──────────────────────────── */
.am-page-content {
  padding: 6rem 2rem 5rem;
}
.am-page-content .wp-block-post-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}
.am-post-meta {
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--am-muted);
}
.am-post-meta .wp-block-post-date,
.am-post-meta .wp-block-post-terms { color: var(--am-muted); }
.am-post-meta .wp-block-post-terms a {
  color: var(--am-purple);
  text-decoration: none;
}
.am-page-content .wp-block-post-featured-image {
  margin-bottom: 2.5rem;
}
.am-page-content .wp-block-post-featured-image img {
  border-radius: var(--am-radius-lg);
  width: 100%;
  height: auto;
}
.am-page-content .wp-block-post-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--am-ink);
}
.am-page-content .wp-block-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.am-page-content .wp-block-post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.am-page-content .wp-block-post-content p { margin: 0 0 1.25rem; }
.am-page-content .wp-block-post-content a { color: var(--am-purple); }
.am-page-content .wp-block-post-content ul,
.am-page-content .wp-block-post-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.am-page-content .wp-block-post-content blockquote {
  border-left: 3px solid var(--am-purple);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--am-muted);
  font-style: italic;
}
.am-page-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--am-border);
  margin: 3rem 0;
}
.am-page-content .wp-block-post-navigation-link a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--am-purple);
  text-decoration: none;
}

