/* ============================================================
   AnswerPress · core stylesheet
   Maps brand tokens (--ap-*) onto theme.json's preset variables
   so that any inline style or pattern using brand-kit names
   resolves correctly. This is the keystone that lets the JSX
   prototype's idioms survive into Gutenberg.
   ============================================================ */

:root {
  /* Brand palette */
  --ap-navy:        var(--wp--preset--color--ap-navy, #1E3A5F);
  --ap-navy-900:    var(--wp--preset--color--ap-navy-900, #142841);
  --ap-navy-700:    var(--wp--preset--color--ap-navy-700, #1E3A5F);
  --ap-navy-500:    var(--wp--preset--color--ap-navy-500, #2C547F);
  --ap-navy-300:    var(--wp--preset--color--ap-navy-300, #748BA8);
  --ap-navy-100:    var(--wp--preset--color--ap-navy-100, #D4DCE7);
  --ap-navy-050:    var(--wp--preset--color--ap-navy-050, #EEF1F6);

  --ap-orange:      var(--wp--preset--color--ap-orange, #E66128);
  --ap-orange-700:  var(--wp--preset--color--ap-orange-700, #BF4F1E);
  --ap-orange-500:  var(--wp--preset--color--ap-orange, #E66128);
  --ap-orange-300:  #F2A07A;
  --ap-orange-100:  #FBE4D7;

  --ap-goldenrod:   var(--wp--preset--color--ap-goldenrod, #D4A24C);
  --ap-gold-700:    var(--wp--preset--color--ap-gold-700, #A87E32);
  --ap-gold-500:    var(--wp--preset--color--ap-goldenrod, #D4A24C);
  --ap-gold-300:    #E6C586;
  --ap-gold-100:    #F6E9CB;

  --ap-white:       #FFFFFF;
  --ap-off-white:   var(--wp--preset--color--ap-off-white, #FAFAF7);
  --ap-cream:       var(--wp--preset--color--ap-cream, #F0EBE2);

  /* Semantic foreground / background */
  --fg1:            var(--ap-navy);
  --fg2:            var(--wp--preset--color--ap-fg2, #4A5F7F);
  --fg3:            var(--wp--preset--color--ap-fg3, #7A8AA0);
  --fg-on-dark:     var(--ap-off-white);

  --border-1:       var(--wp--preset--color--ap-border-1, #E4E7EC);
  --border-2:       var(--wp--preset--color--ap-border-2, #C9D1DC);

  /* Type families */
  --font-brand:     var(--wp--preset--font-family--brand, 'Carmen Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --font-mono:      var(--wp--preset--font-family--mono, ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace);

  /* Motion */
  --ease-standard:  cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-emphatic:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast:       120ms;
  --dur-base:       200ms;
  --dur-slow:       360ms;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-brand); color: var(--ap-navy); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ap-orange); color: #fff; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Visually-hidden utility (text only screen readers see) */
.ap-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Generic spinner animation. */
@keyframes apSpin { to { transform: rotate(360deg); } }

/* Skip link: hidden until focused, then floats over the header */
.ap-skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ap-navy);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-standard);
}
.ap-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ap-orange);
  outline-offset: 2px;
}

/* Visible focus indicator on all interactive elements. Use
   :focus-visible so it only appears for keyboard users, not
   on mouse click. Falls back to :focus for older browsers. */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus,
[tabindex]:focus {
  outline: 2px solid var(--ap-orange);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ap-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On dark sections, the orange focus ring still has enough contrast
   against the navy background, but stack a thin white halo for extra
   safety. */
.ap-section--navy a:focus-visible,
.ap-section--navy button:focus-visible,
.ap-hero a:focus-visible,
.ap-hero button:focus-visible,
.ap-footer a:focus-visible {
  outline: 2px solid var(--ap-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85);
}

/* Honor user motion preferences. Disable the marquee-style
   animations (hero workflow ring + pulse, AEO arrow pulse, RUNNING
   dot) and any smooth-scroll behavior. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  .ap-hero-workflow__running .pulse,
  .ap-hero-stage.is-active .ap-hero-stage__num::after,
  .ap-shift-arrow {
    animation: none !important;
  }
  /* Auto-cycling hero stages: stop at the active one. The block's
     view.js also reads this preference and pauses the timer. */
}

/* Stack full-bleed sections flush. Override WP's default 24px blockGap
   for top-level sections in the entry content, otherwise the body's
   white background shows through between sections. */
.entry-content > .ap-section,
.entry-content > .ap-hero,
.wp-block-post-content > .ap-section,
.wp-block-post-content > .ap-hero,
main > .ap-section,
main > .ap-hero {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* The constrained layout adds inner padding to children: kill it for
   our full-bleed sections so they truly span edge to edge. */
.entry-content > .ap-section,
.entry-content > .ap-hero,
.wp-block-post-content > .ap-section,
.wp-block-post-content > .ap-hero {
  max-width: none;
  margin-inline: 0;
}

/* Same fix between <main> and <footer> (and <header>): WordPress's
   default block gap puts 24px between top-level template parts. */
body > main,
body > header,
body > footer,
.wp-site-blocks > main,
.wp-site-blocks > header,
.wp-site-blocks > footer {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* ============================================================
   Type helpers (mirror colors_and_type.css)
   ============================================================ */

.ap-eyebrow {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg3);
  /* Stay block so WP's constrained-layout (max-width + margin:auto)
     centers the eyebrow alongside the H2 instead of leaving it at the
     section's padding edge. inline-block breaks auto margins. */
  display: block;
  margin: 0;
}

.ap-eyebrow.is-light { color: rgba(250, 250, 247, 0.55); }
.ap-eyebrow.is-gold  { color: var(--ap-goldenrod); }

.ap-accent { color: var(--ap-orange); }
.ap-accent-gold { color: var(--ap-goldenrod); }

.ap-lede {
  font-family: var(--font-brand);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg2);
  max-width: 720px;
}

.ap-lede.on-dark { color: rgba(250, 250, 247, 0.8); }

/* ============================================================
   Buttons (CSS-only, used by the .wp-block-button level wrapper)
   ============================================================ */

.wp-block-button.is-style-ap-primary .wp-block-button__link {
  background: var(--ap-orange);
  color: #fff;
  border-radius: 4px;
  padding: 14px 22px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-fast) var(--ease-standard);
}
.wp-block-button.is-style-ap-primary .wp-block-button__link:hover { background: var(--ap-orange-700); color: #fff; }

.wp-block-button.is-style-ap-secondary .wp-block-button__link {
  background: var(--ap-navy);
  color: #fff;
  border-radius: 4px;
  padding: 14px 22px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  border: 0;
}
.wp-block-button.is-style-ap-secondary .wp-block-button__link:hover { background: var(--ap-navy-900); color: #fff; }

.wp-block-button.is-style-ap-tertiary .wp-block-button__link {
  background: transparent;
  color: var(--ap-navy);
  border: 1.5px solid var(--ap-navy);
  border-radius: 4px;
  padding: 12.5px 20.5px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
}
.wp-block-button.is-style-ap-tertiary .wp-block-button__link:hover { background: rgba(30, 58, 95, 0.08); color: var(--ap-navy); }

.wp-block-button.is-style-ap-inverse-outline .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 12.5px 20.5px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
}
.wp-block-button.is-style-ap-inverse-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.12); color: #fff; }

.wp-block-button.is-large .wp-block-button__link { font-size: 16px; padding: 16px 28px; }

/* Inline arrow inside a button (uses ::after for now) */
.wp-block-button.has-arrow .wp-block-button__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   Section helpers
   ============================================================ */

.ap-section { padding: 120px 0; position: relative; scroll-margin-top: 80px; }
/* The hero is its own ID target (#top); make sure it also clears
   the sticky header when navigated to via /#top from another page. */
.ap-hero { scroll-margin-top: 80px; }
/* Sections that need to clip decorative bleed elements opt in.
   We avoid `overflow: hidden` on all sections because it breaks
   `position: sticky` for any descendant (used by the FAQ left
   column). `overflow: clip` clips visually without forcing a new
   scrolling context. */
.ap-section--clip { overflow: clip; }
.ap-section--tight { padding: 96px 0; }
.ap-section--navy { background: var(--ap-navy); color: #fff; }
.ap-section--navy h1, .ap-section--navy h2, .ap-section--navy h3, .ap-section--navy h4 { color: #fff; }
.ap-section--off-white { background: var(--ap-off-white); }
.ap-section--cream { background: var(--ap-cream); }
.ap-section--white { background: #fff; }

.ap-on-dark { color: rgba(250, 250, 247, 0.85); }
.ap-on-dark--meta { color: rgba(250, 250, 247, 0.55); }

/* Cards */
.ap-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 6px rgba(30,58,95,0.04);
}
.ap-card--highlight {
  border-color: rgba(212, 162, 76, 0.4);
  box-shadow: 0 16px 40px rgba(30,58,95,0.10);
}
.ap-card--lift { box-shadow: 0 16px 40px rgba(30,58,95,0.10); transform: translateY(-4px); }

/* Pro tip / editorial callout */
.ap-callout {
  margin-top: 32px;
  padding: 14px 16px;
  background: rgba(212, 162, 76, 0.18);
  border-left: 3px solid var(--ap-goldenrod);
  border-radius: 0 4px 4px 0;
}
.ap-callout--cream {
  background: var(--ap-cream);
  border: 1px solid rgba(212, 162, 76, 0.3);
  border-left: 3px solid var(--ap-goldenrod);
  border-radius: 8px;
  padding: 24px 28px;
}
.ap-callout__label {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6420;
  margin-bottom: 6px;
  display: block;
}

/* Browser chrome wrapper used by screenshot panels */
.ap-browser {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}
.ap-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ap-off-white);
  border-bottom: 1px solid var(--border-1);
}
.ap-browser__bar span.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
.ap-browser__bar span.dot.red    { background: #FF5F57; }
.ap-browser__bar span.dot.yellow { background: #FEBC2E; }
.ap-browser__bar span.dot.green  { background: #28C840; }
.ap-browser__url {
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg3);
}

/* Stat / pricing badge */
.ap-pricing-save {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ap-orange);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Goldenrod left-rule callout for AgenticPress website customers */
.ap-website-cust { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ap-website-cust > .body { flex: 1; min-width: 280px; }

/* Featured pricing tier */
.ap-tier {
  position: relative;
  background: #fff;
  color: var(--ap-navy);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 36px 32px 32px;
  box-shadow: 0 2px 6px rgba(30,58,95,0.05);
  display: flex;
  flex-direction: column;
}
.ap-tier--featured {
  background: var(--ap-navy);
  color: #fff;
  border-color: var(--ap-navy);
  box-shadow: 0 16px 40px rgba(30,58,95,0.18);
  transform: translateY(-8px);
}
.ap-tier--featured h3, .ap-tier--featured .ap-price { color: #fff; }
.ap-tier__name {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 14px;
}
.ap-tier--featured .ap-tier__name { color: rgba(250, 250, 247, 0.6); }
.ap-tier__price {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.025em;
}
.ap-tier__per { font-family: var(--font-brand); font-size: 14px; color: var(--fg3); margin-left: 6px; }
.ap-tier--featured .ap-tier__per { color: rgba(250, 250, 247, 0.6); }
.ap-tier__desc { font-size: 14.5px; line-height: 1.55; color: var(--fg2); margin: 8px 0 24px; }
.ap-tier--featured .ap-tier__desc { color: rgba(250, 250, 247, 0.75); }

.ap-tier__features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.ap-tier__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg2); }
.ap-tier--featured .ap-tier__features li { color: rgba(250, 250, 247, 0.9); }
.ap-tier__features li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 14px; height: 14px; margin-top: 4px;
  background: var(--ap-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ap-tier--featured .ap-tier__features li::before { background: var(--ap-goldenrod); }

/* SEO/AEO comparison (Industry Shift) */
.ap-shift-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ap-shift-arrow {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ap-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: auto;
  box-shadow: 0 16px 40px rgba(230, 97, 40, 0.32);
  animation: apShiftPulse 2.4s ease-in-out infinite;
}
.ap-shift-arrow::before {
  content: '';
  width: 24px; height: 24px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ap-shift-card {
  background: var(--ap-off-white);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 32px 28px;
}
.ap-shift-card.is-now { background: var(--ap-navy); border-color: var(--ap-navy); color: #fff; }
.ap-shift-card .label { font-family: var(--font-brand); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; color: var(--ap-navy); margin-top: 18px; }
.ap-shift-card.is-now .label { color: #fff; }
.ap-shift-card .desc { font-size: 14px; color: var(--fg2); margin: 4px 0 24px; }
.ap-shift-card.is-now .desc { color: rgba(250, 250, 247, 0.7); }
.ap-shift-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-shift-card li { display: flex; gap: 10px; font-size: 14px; }
.ap-shift-card li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--ap-navy-300);
  margin-top: 8px;
  flex-shrink: 0;
}
.ap-shift-card.is-now li::before {
  background: transparent;
  width: 14px; height: 14px;
  margin-top: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: var(--ap-goldenrod);
}
.ap-shift-card .goal {
  margin-top: 28px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
}
.ap-shift-card.is-now .goal {
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-left: 3px solid var(--ap-goldenrod);
  color: rgba(250, 250, 247, 0.7);
}
.ap-shift-card .goal strong { color: var(--ap-navy); }
.ap-shift-card.is-now .goal strong { color: #fff; }

@keyframes apShiftPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(230, 97, 40, 0.32); }
  50% { box-shadow: 0 16px 60px rgba(230, 97, 40, 0.5); }
}

/* Pillar (Purpose section). The cards live in wp:columns, but
   `.wp-block-column` is rendered as `display: block`, which means
   `height: 100%` on a card does nothing and natural heights leak.
   Force the column to act as a flex container so the card can grow
   to fill it, and the dashed PILLAR footer pins to the bottom across
   all three cards regardless of body copy length. */
#purpose .wp-block-column { display: flex; flex-direction: column; }
#purpose .wp-block-column > .ap-pillar { flex: 1; }
.ap-pillar { background: #fff; border: 1px solid var(--border-1); border-radius: 12px; padding: 36px 32px; box-shadow: 0 2px 6px rgba(30,58,95,0.04); position: relative; transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard); display: flex; flex-direction: column; height: 100%; }
.ap-pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,58,95,0.10); }
.ap-pillar__num { position: absolute; top: 24px; right: 24px; font-family: var(--font-brand); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; color: var(--ap-goldenrod); }
.ap-pillar__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--ap-navy-050); color: var(--ap-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: background 240ms, color 240ms; }
.ap-pillar:hover .ap-pillar__icon { background: var(--ap-orange); color: #fff; }
.ap-pillar__divider { margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--border-1); display: flex; align-items: center; gap: 8px; font-family: var(--font-brand); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg3); }
.ap-pillar__divider > :first-child { margin-top: 0; }
.ap-pillar__divider::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--ap-navy-100); flex-shrink: 0; }

/* FAQ left column sticks beside the question list as the user
   scrolls. align-self:flex-start stops the column from stretching
   to the full container height, which would otherwise prevent
   position:sticky from doing anything. */
#faq .wp-block-columns > .wp-block-column:first-child {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

/* FAQ accordion */
.ap-faq details { border-bottom: 1px solid var(--border-1); }
.ap-faq summary { list-style: none; padding: 20px 0; display: flex; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-brand); font-weight: 700; font-size: 17px; letter-spacing: -0.005em; color: var(--ap-navy); line-height: 1.4; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: '+'; margin-left: auto; width: 28px; height: 28px; border-radius: 999px; background: var(--ap-navy-050); color: var(--ap-navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; line-height: 1; flex-shrink: 0; transition: background 200ms, color 200ms; }
.ap-faq details[open] summary::after { content: '−'; background: var(--ap-orange); color: #fff; }
.ap-faq details > p { font-family: var(--font-brand); font-size: 15.5px; line-height: 1.6; color: var(--fg2); margin: 0 0 24px; max-width: 640px; }

/* Hero workflow custom block: rendered by JS */
.ap-hero-workflow {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 16px 40px rgba(30,58,95,0.10);
  overflow: hidden;
  position: relative;
}
.ap-hero-workflow__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-1);
}
.ap-hero-workflow__head .dots { display: flex; align-items: center; gap: 8px; }
.ap-hero-workflow__head .dots span.dot { width: 8px; height: 8px; border-radius: 999px; background: #E4E7EC; display: inline-block; }
.ap-hero-workflow__head .label {
  font-family: var(--font-brand); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg3);
  margin-left: 12px;
}
.ap-hero-workflow__running {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-brand); font-size: 11px; font-weight: 700; color: var(--fg3);
}
.ap-hero-workflow__running .pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--ap-orange); animation: apPulse 1.4s ease-in-out infinite; }
.ap-hero-workflow__rail { display: flex; flex-direction: column; gap: 10px; }
.ap-hero-stage {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.ap-hero-stage.is-active {
  background: rgba(230, 97, 40, 0.06);
  border-color: rgba(230, 97, 40, 0.25);
}
.ap-hero-stage__num {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ap-navy-050); color: var(--fg3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-weight: 800; font-size: 12px;
  position: relative;
}
.ap-hero-stage.is-done .ap-hero-stage__num { background: var(--ap-navy); color: #fff; }
.ap-hero-stage.is-active .ap-hero-stage__num { background: var(--ap-orange); color: #fff; }
.ap-hero-stage.is-active .ap-hero-stage__num::after {
  content: '';
  position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid var(--ap-orange);
  opacity: 0.35;
  animation: apRing 1.4s ease-out infinite;
}
.ap-hero-stage__label { font-family: var(--font-brand); font-weight: 700; font-size: 14px; color: var(--ap-navy); letter-spacing: -0.005em; }
.ap-hero-stage.is-upcoming .ap-hero-stage__label { color: var(--fg3); }
.ap-hero-stage__sub   { font-family: var(--font-brand); font-size: 12px; color: var(--fg3); margin-top: 1px; }
.ap-hero-stage__status { font-family: var(--font-brand); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ap-hero-stage.is-active .ap-hero-stage__status { color: var(--ap-orange); }
.ap-hero-stage.is-done   .ap-hero-stage__status { color: var(--ap-navy-300); }

@keyframes apPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes apRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* HowItWorks horizontal rail */
.ap-how-rail {
  display: flex; gap: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  scrollbar-width: thin; scrollbar-color: var(--ap-navy-100) transparent;
}
.ap-how-rail::-webkit-scrollbar { height: 8px; }
.ap-how-rail::-webkit-scrollbar-track { background: transparent; }
.ap-how-rail::-webkit-scrollbar-thumb { background: var(--ap-navy-100); border-radius: 999px; }
.ap-how-rail::-webkit-scrollbar-thumb:hover { background: var(--ap-navy-300); }

.ap-how-step { flex: 0 0 100vw; scroll-snap-align: center; padding: 0 32px; box-sizing: border-box; display: flex; justify-content: center; }
.ap-how-step__inner {
  width: 100%; max-width: 1240px;
  background: #fff; border: 1px solid var(--border-1); border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  height: 640px; overflow: hidden;
}
.ap-how-step__copy { padding: 40px 40px 40px 44px; display: flex; flex-direction: column; overflow-y: auto; }
.ap-how-step__shot { background: #fff; border-left: 1px solid var(--border-1); padding: 18px; display: flex; flex-direction: column; min-height: 0; }
.ap-how-step__shot-frame { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ap-how-step__step-tag {
  font-family: var(--font-brand); font-weight: 800; font-size: 13px;
  letter-spacing: 0.18em; color: var(--ap-orange);
}
.ap-how-step__title { font-family: var(--font-brand); font-weight: 800; font-size: 30px; letter-spacing: -0.012em; line-height: 1.15; color: var(--ap-navy); margin: 16px 0 0; }
.ap-how-step__lede { font-family: var(--font-brand); font-size: 16px; line-height: 1.6; color: var(--fg2); margin-top: 18px; margin-bottom: 0; }
.ap-how-step__lede + .ap-how-step__lede { margin-top: 14px; font-size: 15px; }
.ap-how-step__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 9px; }
.ap-how-step__list li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-brand); font-size: 14px; color: var(--fg2); line-height: 1.5; }
.ap-how-step__list li::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px; margin-top: 4px; flex-shrink: 0;
  background: var(--ap-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ap-how-controls { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.ap-how-control {
  width: 36px; height: 36px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-2);
  cursor: pointer; color: var(--ap-navy);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.ap-how-control[disabled] { opacity: 0.35; cursor: not-allowed; }
.ap-how-control:hover:not([disabled]) { background: var(--ap-navy-050); }

.ap-how-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.ap-how-pager button {
  background: transparent; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--font-brand); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg3);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.ap-how-pager button.is-active { color: var(--ap-orange); border-color: var(--ap-orange); }

/* Scrollable image inside browser frame */
.ap-shot-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; background: #fff; scrollbar-width: thin; scrollbar-color: var(--ap-navy-100) transparent; }
.ap-shot-scroll img { display: block; width: 100%; height: auto; }

/* Generic two-column 50/50 helper used across most sections */
.ap-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ap-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================================
   BLOG INDEX (/blog/) and archive pages
   ============================================================ */

/* --- Featured hero --- */
.ap-blog-hero {
  background: var(--ap-cream);
  padding: 96px 32px;
}
.ap-blog-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.ap-blog-hero__media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ap-navy-050);
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.18);
  transition: transform 360ms var(--ease-emphatic);
}
.ap-blog-hero__media:hover { transform: translateY(-2px); }
.ap-blog-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ap-blog-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.ap-blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
}
.ap-blog-hero__featured-tag {
  background: var(--ap-goldenrod);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.ap-blog-hero__sep { color: var(--ap-navy-300); }
.ap-blog-hero__cat {
  color: var(--ap-orange);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.ap-blog-hero__cat:hover { color: var(--ap-orange-700); }
.ap-blog-hero__title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ap-navy);
  margin: 0;
}
.ap-blog-hero__title a { color: inherit; text-decoration: none; }
.ap-blog-hero__title a:hover { color: var(--ap-orange); }
.ap-blog-hero__excerpt {
  font-family: var(--font-brand);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0;
  max-width: 540px;
}
.ap-blog-hero__meta {
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--fg3);
  display: flex;
  gap: 8px;
  align-items: center;
}
.ap-blog-hero__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ap-orange);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  transition: background var(--dur-fast);
}
.ap-blog-hero__cta:hover { background: var(--ap-orange-700); color: #fff; }

/* --- Section header above grid --- */
.ap-blog-section__head {
  margin-bottom: 32px;
  max-width: 720px;
}

/* --- Category filter pills --- */
.ap-blog-filter {
  margin: 0 0 40px;
}
.ap-blog-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-blog-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 13px;
  color: var(--ap-navy);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.ap-blog-filter__pill:hover { background: var(--ap-navy-050); color: var(--ap-navy); }
.ap-blog-filter__pill.is-active {
  background: var(--ap-navy);
  color: #fff;
  border-color: var(--ap-navy);
}
.ap-blog-filter__count {
  font-size: 11px;
  font-weight: 700;
  background: var(--ap-navy-050);
  color: var(--ap-navy);
  padding: 1px 6px;
  border-radius: 999px;
}
.ap-blog-filter__pill.is-active .ap-blog-filter__count {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* --- Grid --- */
.ap-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ap-blog-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}
.ap-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,58,95,0.10);
}
.ap-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--ap-navy-050);
  overflow: hidden;
}
.ap-blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms var(--ease-emphatic);
}
.ap-blog-card:hover .ap-blog-card__media img { transform: scale(1.04); }
.ap-blog-card__media-fallback {
  display: block;
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, var(--ap-navy-050) 25%, transparent 25%) -10px 0,
    linear-gradient(225deg, var(--ap-navy-050) 25%, transparent 25%) -10px 0,
    var(--ap-cream);
  background-size: 20px 20px;
}

.ap-blog-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.ap-blog-card__cat {
  align-self: flex-start;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-orange);
  text-decoration: none;
}
.ap-blog-card__cat:hover { color: var(--ap-orange-700); }
.ap-blog-card__title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ap-navy);
  margin: 0;
}
.ap-blog-card__title a { color: inherit; text-decoration: none; }
.ap-blog-card__title a:hover { color: var(--ap-orange); }

.ap-blog-card__excerpt {
  font-family: var(--font-brand);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0;
}

.ap-blog-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ap-blog-card__tags a {
  display: inline-flex;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-navy-300);
  background: var(--ap-navy-050);
  padding: 3px 8px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.ap-blog-card__tags a:hover { background: var(--ap-navy); color: #fff; }

.ap-blog-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  color: var(--ap-orange);
  text-decoration: none;
  margin-top: auto;
  letter-spacing: -0.005em;
}
.ap-blog-card__more svg { transition: transform var(--dur-base) var(--ease-emphatic); }
.ap-blog-card__more:hover svg { transform: translateX(3px); }

.ap-blog-empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--fg3);
  font-family: var(--font-brand);
  font-size: 15px;
}
.ap-blog-empty a { color: var(--ap-orange); font-weight: 700; }

.ap-blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  color: var(--ap-navy);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.ap-blog-pagination .page-numbers:hover { background: var(--ap-navy-050); }
.ap-blog-pagination .page-numbers.current {
  background: var(--ap-navy);
  color: #fff;
  border-color: var(--ap-navy);
}
.ap-blog-pagination .page-numbers.dots { background: transparent; border: 0; color: var(--fg3); }

/* --- Archive page header --- */
.ap-blog-archive__head { margin-bottom: 24px; }

/* ============================================================
   POST DETAIL (single.html)
   ============================================================ */

/* Reading-progress bar */
.ap-reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-standard);
}
.ap-reading-progress.is-visible { opacity: 1; }
.ap-reading-progress__bar {
  display: block;
  height: 100%;
  background: var(--ap-orange);
  transform-origin: left center;
  transform: scaleX(0);
}

/* --- Article hero (cream band) --- */
.ap-post__hero { padding-top: 96px; padding-bottom: 40px; background: var(--ap-cream); }
.ap-post__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--fg3);
  margin-bottom: 24px;
}
.ap-post__breadcrumbs a {
  color: var(--ap-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--dur-fast);
}
.ap-post__breadcrumbs a:hover { color: var(--ap-orange); }
.ap-post__breadcrumbs-sep { color: var(--ap-navy-300); }
.ap-post__breadcrumbs-current { color: var(--fg3); }

.ap-post__meta-top { gap: 12px; align-items: center; margin-bottom: 0; }
.ap-post__meta-top .ap-post__cat,
.ap-post__meta-top .wp-block-post-terms { font-family: var(--font-brand); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ap-orange); }
.ap-post__meta-top .wp-block-post-terms a { color: inherit; text-decoration: none; }
.ap-post__meta-top .wp-block-post-terms a:hover { color: var(--ap-orange-700); }

.ap-post__title { color: var(--ap-navy) !important; }
.ap-post__lede {
  font-family: var(--font-brand) !important;
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--fg2) !important;
  margin-top: 0 !important;
}

.ap-post__byline {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ap-post__byline-avatar img,
.ap-post__byline .avatar {
  width: 48px; height: 48px;
  border-radius: 999px;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(30,58,95,0.10);
}
.ap-post__byline-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 15px;
  color: var(--ap-navy);
  margin: 0;
}
.ap-post__byline-meta { gap: 8px; font-family: var(--font-brand); font-size: 13px; color: var(--fg3); align-items: center; }
.ap-post__byline-meta .wp-block-post-date { color: var(--fg3); }
.ap-post__byline-meta time { color: inherit; }

/* --- Featured band --- */
.ap-post__featured-band { background: var(--ap-cream); }
.ap-post__featured img,
.ap-post__featured-band .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.18);
  display: block;
}

/* --- Two-column body --- */
.ap-post__body { background: #fff; }
.ap-post__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.ap-post__sidebar-col { position: relative; }

/* --- Sidebar (sticky aside) --- */
.ap-post-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.ap-post-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-brand);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.ap-post-sidebar__heading {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg3);
  margin: 0 0 10px;
}
.ap-post-sidebar__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ap-cream);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-gold-700);
  align-self: flex-start;
}

.ap-post-sidebar__toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--border-1); }
.ap-toc__item a {
  display: block;
  padding: 6px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg2);
  text-decoration: none;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.ap-toc__item.is-level-3 a { padding-left: 24px; font-size: 12.5px; }
.ap-toc__item a:hover { color: var(--ap-navy); background: var(--ap-navy-050); }
.ap-toc__item a.is-active {
  color: var(--ap-orange);
  border-color: var(--ap-orange);
  font-weight: 700;
  background: rgba(230, 97, 40, 0.06);
}

.ap-post-sidebar__share-row { display: flex; gap: 8px; }
.ap-share-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--ap-navy);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  position: relative;
}
.ap-share-btn:hover { background: var(--ap-navy); color: #fff; border-color: var(--ap-navy); }
.ap-share-btn--copy { padding: 0; }
.ap-share-btn__icon-done { display: none; }
.ap-share-btn--copy.is-done { background: var(--ap-orange); color: #fff; border-color: var(--ap-orange); }
.ap-share-btn--copy.is-done .ap-share-btn__icon-default { display: none; }
.ap-share-btn--copy.is-done .ap-share-btn__icon-done { display: inline-block; }
.ap-post-sidebar__copied {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ap-gold-700);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ap-post-sidebar__copied[hidden] { display: none; }

/* --- Article body typography --- */
.ap-post__content {
  font-family: var(--font-brand);
  color: var(--fg1);
}
.ap-post__content > * + * { margin-top: 1.4em; }
.ap-post__content p,
.ap-post__content ul,
.ap-post__content ol {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--fg1);
  max-width: 680px;
}
.ap-post__content > p:first-of-type::first-letter {
  font-weight: 800;
  font-size: 4.4em;
  line-height: 0.85;
  float: left;
  padding: 0.06em 0.16em 0 0;
  color: var(--ap-orange);
  font-family: var(--font-brand);
}

.ap-post__content h2 {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ap-navy);
  margin-top: 2.4em;
  scroll-margin-top: 96px;
}
.ap-post__content h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ap-navy);
  margin-top: 2em;
  scroll-margin-top: 96px;
}
.ap-post__content h2 + h3,
.ap-post__content h3 + p { margin-top: 0.6em; }

.ap-post__content a:not(.wp-block-button__link) {
  color: var(--ap-orange);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(230, 97, 40, 0.45);
  transition: text-decoration-color var(--dur-fast), color var(--dur-fast);
}
.ap-post__content a:hover:not(.wp-block-button__link) { color: var(--ap-orange-700); text-decoration-color: var(--ap-orange-700); }

.ap-post__content ul,
.ap-post__content ol { padding-left: 22px; }
.ap-post__content li + li { margin-top: 0.4em; }
.ap-post__content ul li::marker { color: var(--ap-orange); }

.ap-post__content img,
.ap-post__content figure { max-width: 100%; height: auto; border-radius: 10px; }
.ap-post__content figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.ap-post__content figcaption { font-size: 13px; color: var(--fg3); text-align: center; margin-top: 8px; }

.ap-post__content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px 18px 26px;
  border-left: 4px solid var(--ap-goldenrod);
  background: rgba(212, 162, 76, 0.08);
  border-radius: 0 8px 8px 0;
}
.ap-post__content blockquote p {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ap-navy);
  margin: 0;
}
.ap-post__content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ap-gold-700);
  font-style: normal;
}

.ap-post__content pre {
  background: var(--ap-navy);
  color: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}
.ap-post__content code {
  font-family: var(--font-mono);
  background: var(--ap-navy-050);
  color: var(--ap-navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.ap-post__content pre code { background: transparent; color: inherit; padding: 0; }

.ap-post__content hr {
  border: 0;
  height: 1px;
  background: var(--border-1);
  margin: 2.4em auto;
  max-width: 120px;
}

.ap-post__content .wp-block-pullquote {
  border: 0;
  padding: 24px 0;
  margin: 2em 0;
  text-align: center;
}
.ap-post__content .wp-block-pullquote p {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ap-navy);
}

/* "Pro tip" callout convention: any blockquote with class "is-style-tip" */
.ap-post__content .is-style-tip {
  border-left-color: var(--ap-orange);
  background: rgba(230, 97, 40, 0.06);
}
.ap-post__content .is-style-tip p { color: var(--ap-navy); font-weight: 500; font-size: 16px; }

/* --- Tags row --- */
.ap-post__after { background: var(--ap-off-white); }
.ap-post__tags-row { gap: 12px; }
.ap-post__tags-row .wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-post__tags-row .wp-block-post-terms a {
  display: inline-flex;
  font-family: var(--font-brand);
  font-size: 12px; font-weight: 700;
  color: var(--ap-navy-300);
  background: #fff;
  border: 1px solid var(--border-1);
  padding: 5px 12px; border-radius: 999px;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.ap-post__tags-row .wp-block-post-terms a:hover { background: var(--ap-navy); color: #fff; border-color: var(--ap-navy); }

/* --- Author bio card --- */
.ap-author {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 0;
  box-shadow: 0 4px 12px rgba(30,58,95,0.04);
}
.ap-author__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ap-author__avatar,
.ap-author .avatar {
  width: 72px; height: 72px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 3px solid var(--ap-cream);
}
.ap-author__body { display: flex; flex-direction: column; gap: 4px; }
.ap-author__eyebrow { margin-bottom: 4px !important; }
.ap-author__name { font-family: var(--font-brand); font-weight: 800; font-size: 20px; color: var(--ap-navy); margin: 0; }
.ap-author__role { font-family: var(--font-brand); font-size: 13px; color: var(--ap-gold-700); font-weight: 700; letter-spacing: 0.02em; margin: 0; }
.ap-author__bio { font-family: var(--font-brand); font-size: 14.5px; line-height: 1.55; color: var(--fg2); margin: 8px 0 12px; }
.ap-author__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  color: var(--ap-orange);
  text-decoration: none;
}
.ap-author__link:hover { color: var(--ap-orange-700); }
.ap-author__link svg { transition: transform var(--dur-base) var(--ease-emphatic); }
.ap-author__link:hover svg { transform: translateX(3px); }

/* --- Related posts --- */
.ap-related { margin-top: 64px; }
.ap-related__head { margin-bottom: 24px; }
.ap-related__title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  color: var(--ap-navy);
  margin: 8px 0 0;
}

/* --- Final CTA strip on post --- */
.ap-post__cta { background: var(--ap-navy); color: #fff; }
.ap-post__cta .ap-eyebrow.is-light { color: var(--ap-goldenrod) !important; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .ap-post__layout { grid-template-columns: 1fr; gap: 32px; }
  .ap-post-sidebar {
    position: static;
    max-height: none;
    background: var(--ap-cream);
    border-radius: 12px;
    padding: 16px 20px;
  }
  .ap-post-sidebar__inner { max-height: none; padding-right: 0; }
}
@media (max-width: 600px) {
  .ap-post__hero { padding-top: 80px; }
  .ap-post__content > p:first-of-type::first-letter {
    font-size: 3.4em;
  }
  .ap-author__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .ap-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ap-blog-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ap-blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.ap-contact-hero { background: var(--ap-cream); }

.ap-contact-form-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 40px 40px 32px;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.06);
}
.ap-contact-form-card__title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ap-navy);
  margin: 8px 0 12px;
}
.ap-contact-form-card__lede {
  font-family: var(--font-brand);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0 0 28px;
}
.ap-contact-form-card__form { margin-top: 8px; }

/* --- Style Gravity Forms output to match the brand --- */
.ap-contact-form-card .gform_wrapper { font-family: var(--font-brand); }
.ap-contact-form-card .gform_fields {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px !important;
}
.ap-contact-form-card .gfield { grid-column: span 12; }
.ap-contact-form-card .gfield--width-half { grid-column: span 6; }
.ap-contact-form-card .gfield--width-third { grid-column: span 4; }
.ap-contact-form-card .gfield_label,
.ap-contact-form-card legend.gfield_label {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 13px;
  color: var(--ap-navy);
  margin: 0 0 6px;
  padding: 0;
}
/* Remove the default fieldset border that wraps composite fields
   (Name, Address) — looks like a stray rectangle otherwise. */
.ap-contact-form-card fieldset.gfield {
  border: 0;
  padding: 0;
  margin: 0;
}
/* Sub-labels below first/last name etc. */
.ap-contact-form-card .gform-field-label--type-sub-label,
.ap-contact-form-card .ginput_complex label {
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 0;
  display: block;
}
/* Composite fields (Name = First/Last) layout side by side */
.ap-contact-form-card .ginput_complex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ap-contact-form-card .ginput_complex > span { display: flex; flex-direction: column; gap: 4px; }
.ap-contact-form-card .gfield_required,
.ap-contact-form-card .gfield_required_text { color: var(--ap-orange); margin-left: 2px; }

.ap-contact-form-card input[type="text"],
.ap-contact-form-card input[type="email"],
.ap-contact-form-card input[type="tel"],
.ap-contact-form-card input[type="url"],
.ap-contact-form-card input[type="number"],
.ap-contact-form-card select,
.ap-contact-form-card textarea {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: #fff;
  padding: 11px 14px;
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--ap-navy);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.ap-contact-form-card input::placeholder,
.ap-contact-form-card textarea::placeholder { color: var(--fg3); }
.ap-contact-form-card input:focus,
.ap-contact-form-card select:focus,
.ap-contact-form-card textarea:focus {
  border-color: var(--ap-orange);
  box-shadow: 0 0 0 3px rgba(230, 97, 40, 0.15);
}
.ap-contact-form-card textarea { min-height: 140px; resize: vertical; }

.ap-contact-form-card .gform_footer { margin-top: 24px !important; padding-top: 0 !important; }
.ap-contact-form-card .gform_button,
.ap-contact-form-card input[type="submit"] {
  background: var(--ap-navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.ap-contact-form-card .gform_button:hover,
.ap-contact-form-card input[type="submit"]:hover { background: var(--ap-navy-900); }
.ap-contact-form-card .gform_button:active,
.ap-contact-form-card input[type="submit"]:active { transform: translateY(1px); }

/* Validation */
.ap-contact-form-card .gfield_error input,
.ap-contact-form-card .gfield_error select,
.ap-contact-form-card .gfield_error textarea { border-color: #B43B2C; box-shadow: 0 0 0 3px rgba(180, 59, 44, 0.12); }
.ap-contact-form-card .gfield_validation_message,
.ap-contact-form-card .validation_message {
  font-size: 12.5px; color: #B43B2C; margin-top: 4px;
}
.ap-contact-form-card .gform_validation_errors {
  background: #FBEEEC; border: 1px solid #F4C7C0; color: #B43B2C;
  border-radius: 6px; padding: 12px 14px; margin-bottom: 18px;
  font-size: 13.5px;
}

/* Confirmation */
.ap-contact-form-card .gform_confirmation_message {
  background: rgba(212, 162, 76, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.5);
  border-left: 4px solid var(--ap-goldenrod);
  border-radius: 8px;
  padding: 24px 26px;
  font-family: var(--font-brand);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ap-navy);
}

/* --- Info sidebar --- */
.ap-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--ap-off-white);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 32px 28px;
}
.ap-contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ap-contact-info__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-1);
  color: var(--ap-orange);
  display: flex; align-items: center; justify-content: center;
}
.ap-contact-info__label {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
  margin: 0 0 4px;
}
.ap-contact-info__value {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  color: var(--ap-navy);
  text-decoration: none;
  display: inline-block;
  transition: color var(--dur-fast);
}
.ap-contact-info__value:hover { color: var(--ap-orange); }
.ap-contact-info__sub {
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--fg3);
  margin: 4px 0 0;
}
.ap-contact-info__hours {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 13px;
}
.ap-contact-info__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ap-contact-info__hours-row > :first-child { color: var(--fg3); }
.ap-contact-info__hours-row > :last-child { color: var(--ap-navy); font-weight: 600; }

@media (max-width: 860px) {
  .ap-contact-form-card { padding: 28px 22px; }
  .ap-contact-form-card .gform_fields { gap: 14px !important; }
  .ap-contact-form-card .gfield--width-half,
  .ap-contact-form-card .gfield--width-third { grid-column: span 12; }
  .ap-contact-info { padding: 24px 22px; }
}

/* Footer */
.ap-footer { background: var(--wp--preset--color--ap-footer, #0F2238); color: var(--ap-off-white); padding: 72px 0 32px; }
.ap-footer a { color: rgba(250,250,247,0.85); text-decoration: none; }
.ap-footer a:hover { color: var(--ap-orange); }
.ap-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.ap-footer__legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.ap-footer__legal-links a { font-family: var(--font-brand); font-size: 12px; color: rgba(250,250,247,0.5); letter-spacing: 0.04em; text-decoration: none; transition: color var(--dur-fast); }
.ap-footer__legal-links a:hover { color: var(--ap-orange); }
.ap-footer__legal {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(250,250,247,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-brand); font-size: 12px; color: rgba(250,250,247,0.5);
  letter-spacing: 0.04em;
}

/* Sticky header */
.ap-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #E4E7EC;
}

.ap-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ap-header__nav { display: flex; gap: 28px; margin-left: 24px; }
.ap-header__nav a { font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: var(--ap-navy); text-decoration: none; letter-spacing: -0.005em; transition: color var(--dur-fast); }
.ap-header__nav a:hover { color: var(--ap-orange); }
.ap-header__cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .ap-two-col, .ap-three-col, .ap-shift-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .ap-shift-arrow { transform: rotate(90deg); margin: 0 auto; }
  .ap-footer__grid { grid-template-columns: 1fr 1fr; }
  .ap-section { padding: 80px 0; }
  .ap-how-step__inner { grid-template-columns: 1fr; height: auto; }
  .ap-how-step__shot { display: none; }
}
@media (max-width: 760px) {
  .ap-header__nav, .ap-header__cta { display: none; }
  .ap-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   How It Works slideshow (multi-sub-shot steps)
   Stacks images on top of each other; only .is-active is visible.
   First image stays in flow to drive container height.
   ============================================================ */
.ap-shot-slideshow { position: relative; overflow: hidden; }
.ap-shot-slideshow img { transition: opacity 600ms ease-in-out; }
.ap-shot-slideshow img:not(:first-child) { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0; }
.ap-shot-slideshow img:not(:first-child).is-active { opacity: 1; }
.ap-shot-slideshow img:first-child:not(.is-active) { opacity: 0; }
.ap-shot-slideshow img:not(.is-active) { pointer-events: none; }

/* Override: new screenshots include real browser chrome and are sized to fit;
   no auto-scroll or manual scrolling needed within the frame. */
.ap-shot-scroll { overflow: hidden !important; }
.ap-shot-scroll img { width: 100%; height: auto; display: block; }
