/* ============================================================================
   Agent Audit — 2026 Home Redesign
   Dark hero + live hash chain + Coverage marquee + depth sections.
   Layered on top of site.css. Brand navy #1853c5 preserved.
   ========================================================================== */

:root {
  /* === Palette extension === */
  --aa-ink-deep:        #03101c;
  --aa-ink-hero:        #061528;
  --aa-ink-hero-mid:    #0a1c33;
  --aa-ink-card:        #0e2342;
  --aa-ink-line:        rgba(255,255,255,0.08);
  --aa-ink-line-hot:    rgba(102,160,255,0.32);

  --aa-paper:           #f7f3e9;
  --aa-paper-soft:      #ede8d8;

  --aa-brand:           #1853c5;
  --aa-brand-glow:      rgba(24,83,197,0.42);
  --aa-brand-haze:      rgba(24,83,197,0.18);

  --aa-notarise:        #8a6dff;     /* TSA / RFC 3161 moments */
  --aa-notarise-glow:   rgba(138,109,255,0.45);
  --aa-chain-ok:        #5cd9a6;     /* verified, success */
  --aa-amber:           #f0b65a;     /* in-progress, roadmap */

  /* === Type scale === */
  --aa-display-2xl:     clamp(64px, 9.4vw, 132px);
  --aa-display-xl:      clamp(46px, 6.2vw, 96px);
  --aa-display-lg:      clamp(34px, 4.4vw, 64px);
  --aa-eyebrow-track:   0.18em;
  --aa-tight:           -0.045em;

  --aa-h-rhythm:        clamp(120px, 14vh, 200px);
}

/* ============================================================================
   HERO — dark canvas, signature chain animation
   ========================================================================== */

.aa-hero {
  position: relative;
  isolation: isolate;
  background: var(--aa-ink-hero);
  color: #f7f3e9;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 8vh, 100px);
  min-height: calc(100svh - 64px);
}

/* Background layers — gradient + radial glow + noise grain */
.aa-hero::before,
.aa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.aa-hero::before {
  background:
    radial-gradient(800px 600px at 75% 42%, var(--aa-brand-haze) 0%, transparent 60%),
    radial-gradient(1200px 700px at 50% -20%, rgba(140,170,255,0.10) 0%, transparent 65%),
    linear-gradient(180deg, var(--aa-ink-hero) 0%, var(--aa-ink-deep) 100%);
  z-index: -2;
}
.aa-hero::after {
  /* Grain. Small inline SVG noise; opacity tuned low so it reads as paper texture. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: screen;
  z-index: -1;
}

/* Soft horizon line — hairline that signals depth without busying the canvas */
.aa-hero-horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(102,160,255,0.18) 50%, transparent 100%);
  z-index: 0;
}

.aa-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
@media (max-width: 960px) {
  .aa-hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* === Text column === */
.aa-hero-dossier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--aa-eyebrow-track);
  text-transform: uppercase;
  color: rgba(247,243,233,0.62);
  margin-bottom: 28px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--aa-ink-line);
  border-radius: 100px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(4px);
}
.aa-hero-dossier .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aa-chain-ok);
  box-shadow: 0 0 12px var(--aa-chain-ok);
  animation: aa-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes aa-dot-pulse {
  0%,100% { opacity: 0.55; transform: scale(1); }
  50%     { opacity: 1;    transform: scale(1.15); }
}

.aa-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-variation-settings: "opsz" 144, "WONK" 0;
  font-size: var(--aa-display-2xl);
  line-height: 0.94;
  letter-spacing: var(--aa-tight);
  color: #f7f3e9;
  margin: 0 0 28px;
  text-wrap: balance;
}
.aa-hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: #c4d4f5;
  background: linear-gradient(180deg, #ffffff 0%, #b3c6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aa-hero-deck {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(247,243,233,0.78);
  max-width: 30ch;
  margin: 0 0 40px;
}

.aa-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}
.aa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #f7f3e9;
  background: var(--aa-brand);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 12px 28px -10px var(--aa-brand-glow),
    0 0 60px -20px var(--aa-brand-glow);
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1), box-shadow 200ms;
}
.aa-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 16px 36px -10px var(--aa-brand-glow),
    0 0 80px -10px var(--aa-brand-glow);
  text-decoration: none;
  color: #ffffff;
}
.aa-btn-primary .arrow {
  display: inline-block;
  transition: transform 200ms;
}
.aa-btn-primary:hover .arrow { transform: translate(2px, -2px); }

.aa-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(247,243,233,0.85);
  background: transparent;
  border: 1px solid var(--aa-ink-line);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.aa-btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.aa-hero-strap {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(247,243,233,0.55);
  text-transform: uppercase;
}
.aa-hero-strap span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aa-hero-strap span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--aa-chain-ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--aa-chain-ok);
}

/* ============================================================================
   LIVE HASH CHAIN — signature visual
   ========================================================================== */

.aa-chain-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 640px;
}

/* Outer ring — soft halo behind the chain */
.aa-chain-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--aa-brand-haze) 0%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.aa-chain-svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Concentric backdrop rings */
.aa-chain-ring {
  fill: none;
  stroke: rgba(167,192,255,0.10);
  stroke-width: 1;
}
.aa-chain-ring.bold { stroke: rgba(167,192,255,0.16); }

/* Receipt cards — float in from the perimeter and converge */
.aa-receipt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.aa-receipt-card {
  fill: rgba(8,22,42,0.92);
  stroke: var(--aa-ink-line-hot);
  stroke-width: 1;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}
.aa-receipt-title {
  fill: rgba(247,243,233,0.92);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.aa-receipt-hash {
  fill: rgba(167,192,255,0.78);
  font-size: 8.6px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.aa-receipt-meta {
  fill: rgba(247,243,233,0.45);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Chain — connector lines between receipt nodes */
.aa-chain-link {
  stroke: rgba(102,160,255,0.55);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 4 4;
  filter: drop-shadow(0 0 6px var(--aa-brand-haze));
}
.aa-chain-node {
  fill: var(--aa-brand);
  filter: drop-shadow(0 0 10px var(--aa-brand-glow));
}
.aa-chain-node.head {
  fill: #ffffff;
  filter: drop-shadow(0 0 14px #ffffff);
  animation: aa-head-pulse 1.4s ease-in-out infinite;
}
@keyframes aa-head-pulse {
  0%,100% { transform: scale(1);    opacity: 0.95; }
  50%     { transform: scale(1.25); opacity: 1; }
  transform-origin: center;
}

/* TSA notarisation flash — periodic */
.aa-notary-ring {
  fill: none;
  stroke: var(--aa-notarise);
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: center;
  animation: aa-notary-flash 8s ease-in-out infinite;
}
@keyframes aa-notary-flash {
  0%, 75%, 100% { opacity: 0; transform: scale(0.85); }
  82%           { opacity: 0.95; transform: scale(1); }
  92%           { opacity: 0; transform: scale(1.25); }
}
.aa-notary-glyph {
  fill: var(--aa-notarise);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: aa-notary-glyph 8s ease-in-out infinite;
}
@keyframes aa-notary-glyph {
  0%, 78%, 100% { opacity: 0; }
  82%, 90%      { opacity: 0.92; }
}

/* Per-receipt entry animation. Each card has its own delay. */
.aa-receipt {
  opacity: 0;
  transform-origin: center center;
  animation: aa-receipt-flow 8s ease-out infinite;
}
@keyframes aa-receipt-flow {
  0%   { opacity: 0; transform: translate(80px, 0) scale(0.86); }
  18%  { opacity: 1; transform: translate(0,    0) scale(1); }
  88%  { opacity: 1; transform: translate(0,    0) scale(1); }
  100% { opacity: 0; transform: translate(-40px, -20px) scale(0.94); }
}
.aa-receipt:nth-of-type(1) { animation-delay: 0s;   }
.aa-receipt:nth-of-type(2) { animation-delay: 1.4s; }
.aa-receipt:nth-of-type(3) { animation-delay: 2.8s; }
.aa-receipt:nth-of-type(4) { animation-delay: 4.2s; }
.aa-receipt:nth-of-type(5) { animation-delay: 5.6s; }

@media (prefers-reduced-motion: reduce) {
  .aa-receipt,
  .aa-chain-node.head,
  .aa-notary-ring,
  .aa-notary-glyph,
  .aa-hero-dossier .dot { animation: none; }
  .aa-receipt { opacity: 1; transform: none; }
}

/* ============================================================================
   COVERAGE — dark band, two-row marquee, glass chips
   ========================================================================== */

.aa-coverage {
  position: relative;
  background: linear-gradient(180deg, var(--aa-ink-deep) 0%, #04111f 100%);
  color: #f7f3e9;
  padding: clamp(70px, 9vh, 110px) 0;
  overflow: hidden;
  isolation: isolate;
}
.aa-coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 200px at 50% 0%, rgba(24,83,197,0.18) 0%, transparent 70%),
    radial-gradient(700px 200px at 50% 100%, rgba(138,109,255,0.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.aa-coverage-head {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 clamp(20px, 4vw, 56px);
  text-align: center;
}
.aa-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--aa-eyebrow-track);
  text-transform: uppercase;
  color: rgba(247,243,233,0.55);
  margin-bottom: 18px;
}
.aa-coverage h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f7f3e9;
  text-wrap: balance;
}
.aa-coverage h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: #b3c6f0;
}

/* Marquee mechanics — pure CSS infinite scroll, two opposite directions */
.aa-marquee-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.aa-marquee-row {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  width: max-content;
}
.aa-marquee-row.left  { animation: aa-marquee-left  56s linear infinite; }
.aa-marquee-row.right { animation: aa-marquee-right 64s linear infinite; }

@keyframes aa-marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes aa-marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .aa-marquee-row.left, .aa-marquee-row.right { animation: none; }
}

.aa-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(247,243,233,0.86);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
}
.aa-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #ffffff;
  transform: translateY(-1px);
}
.aa-chip svg { flex-shrink: 0; }
.aa-chip .aa-pill {
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(240,182,90,0.18);
  border: 1px solid rgba(240,182,90,0.35);
  color: var(--aa-amber);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================================
   DEPTH-OVERLAP SECTION — tilted browser frames, layered cards
   ========================================================================== */

.aa-depth {
  position: relative;
  background: var(--aa-paper);
  padding: clamp(100px, 14vh, 180px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.aa-depth::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #04111f 0%, transparent 100%);
  opacity: 0.92;
  pointer-events: none;
}

.aa-depth-grid {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
@media (max-width: 900px) {
  .aa-depth-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.aa-depth-copy h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: var(--aa-display-lg);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 22px;
  color: #0a1521;
  text-wrap: balance;
}
.aa-depth-copy h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--aa-brand);
}
.aa-depth-copy p {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: #29384a;
  max-width: 44ch;
  margin: 0 0 20px;
}
.aa-depth-copy .aa-eyebrow {
  color: rgba(10,21,33,0.55);
}

/* Stage that holds the browser frames + receipt card overlap */
.aa-depth-stage {
  position: relative;
  aspect-ratio: 1 / 0.86;
  min-height: 360px;
}
.aa-frame {
  position: absolute;
  background: #0a1521;
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(8,16,28,0.45),
    0 80px 120px -40px rgba(8,16,28,0.35);
  overflow: hidden;
  border: 1px solid rgba(10,21,33,0.06);
}
.aa-frame-chrome {
  height: 32px;
  background: #122236;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(247,243,233,0.45);
}
.aa-frame-chrome .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.aa-frame-chrome .url {
  margin-left: 8px;
}
.aa-frame.primary {
  top: 4%;
  left: 0;
  width: 88%;
  z-index: 2;
  transform: rotate(-1.6deg);
}
.aa-frame.secondary {
  bottom: 0;
  right: 0;
  width: 64%;
  z-index: 3;
  transform: rotate(2.4deg);
}

/* Terminal animation inside primary frame */
.aa-term {
  padding: 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #cad6f0;
  background:
    radial-gradient(420px 240px at 80% 100%, rgba(24,83,197,0.18) 0%, transparent 70%),
    #0a1521;
}
.aa-term .prompt { color: #5cd9a6; }
.aa-term .ok    { color: #5cd9a6; }
.aa-term .dim   { color: rgba(202,214,240,0.55); }
.aa-term .accent { color: #b3c6f0; }
.aa-term .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #b3c6f0;
  margin-left: 2px;
  animation: aa-caret 1.2s steps(1) infinite;
  vertical-align: middle;
}
@keyframes aa-caret {
  50% { opacity: 0; }
}

/* Receipt card (secondary frame) — JSON preview */
.aa-receipt-preview {
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: #cad6f0;
  background: #0a1521;
}
.aa-receipt-preview .k { color: #b3c6f0; }
.aa-receipt-preview .s { color: #e7d9a5; }
.aa-receipt-preview .n { color: #5cd9a6; }
.aa-receipt-preview .brace { color: rgba(202,214,240,0.45); }

/* Floating notarisation badge — pinned over the receipt frame */
.aa-notary-stamp {
  position: absolute;
  bottom: 14%;
  left: -4%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10,21,33,0.92);
  border: 1px solid rgba(138,109,255,0.45);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d2c9ff;
  box-shadow: 0 16px 32px -10px rgba(138,109,255,0.45);
  transform: rotate(-3deg);
}
.aa-notary-stamp .dot {
  width: 8px; height: 8px;
  background: var(--aa-notarise);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--aa-notarise);
}

/* ============================================================================
   SECTION RHYTHM — generic restraint helpers
   ========================================================================== */

.aa-section { padding: var(--aa-h-rhythm) 0; }
.aa-section.light { background: var(--aa-paper); }
.aa-section.deep  { background: var(--aa-ink-deep); color: #f7f3e9; }

.aa-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Reveal on scroll — staggered fade-up */
.aa-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.16,1,0.3,1),
    transform 700ms cubic-bezier(0.16,1,0.3,1);
}
.aa-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .aa-reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   GLOBAL EDITORIAL-PAGE UPGRADES
   ----------------------------------------------------------------------------
   These rules override the existing editorial-* classes used on every
   interior page (about, careers, customers, security, solutions, product,
   contact, signup, welcome, download, the docs/setup pages). The goal is
   that all interior heroes inherit the bigger display type, tighter
   tracking, and more generous whitespace without requiring per-file edits.
   ========================================================================== */

/* Wider, more confident interior hero */
.editorial-page .editorial-hero {
  padding-top: clamp(72px, 10vh, 132px);
  padding-bottom: clamp(56px, 8vh, 96px);
}

/* Display headlines — Fraunces, heavier, tighter */
.editorial-page .editorial-display {
  font-family: 'Fraunces', serif !important;
  font-weight: 800 !important;
  font-variation-settings: "opsz" 144, "WONK" 0;
  font-size: clamp(44px, 6.2vw, 96px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 22px;
  text-wrap: balance;
}
.editorial-page .editorial-display em {
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--aa-brand);
}

/* Deck — slightly bigger, more breathable */
.editorial-page .editorial-deck {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: clamp(18px, 1.6vw, 22px) !important;
  line-height: 1.6 !important;
  max-width: 52ch;
}

/* Dossier badge — pill it up */
.editorial-page .editorial-dossier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(24,83,197,0.06);
  border: 1px solid rgba(24,83,197,0.16);
  margin-bottom: 24px;
}
.editorial-page .editorial-dossier .file {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aa-brand);
}
.editorial-page .editorial-dossier .meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(10,21,33,0.62);
  padding-left: 10px;
  border-left: 1px solid rgba(10,21,33,0.16);
}

/* Breadcrumbs — quieter, more typographic */
.editorial-page .editorial-breadcrumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(10,21,33,0.55);
  margin-bottom: 20px;
}
.editorial-page .editorial-breadcrumbs a {
  color: rgba(10,21,33,0.78);
  text-decoration: none;
}
.editorial-page .editorial-breadcrumbs a:hover {
  color: var(--aa-brand);
  text-decoration: underline;
}
.editorial-page .editorial-breadcrumbs .sep {
  margin: 0 8px;
  color: rgba(10,21,33,0.3);
}
.editorial-page .editorial-breadcrumbs .here {
  color: var(--aa-brand);
  font-weight: 600;
}

/* H2 inside body sections — confident serif.
   Excludes dark sections (cta-band, aa-coverage) — those keep light-on-dark. */
.editorial-page section:not(.cta-band):not(.aa-coverage):not(.aa-hero):not(.aa-coverage-strip) h2,
.editorial-page .section:not(.cta-band):not(.aa-coverage):not(.aa-hero):not(.aa-coverage-strip) h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #0a1521;
  margin: clamp(40px, 5vh, 64px) 0 18px;
  text-wrap: balance;
}
.editorial-page section:not(.cta-band):not(.aa-coverage):not(.aa-hero):not(.aa-coverage-strip) h2 em,
.editorial-page .section:not(.cta-band):not(.aa-coverage):not(.aa-hero):not(.aa-coverage-strip) h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--aa-brand);
}

/* Dark-background sections — restore light text + Fraunces display feel */
.editorial-page .cta-band h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f7f3e9;
  text-wrap: balance;
}
.editorial-page .cta-band h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: #a7c0ff;
}
.editorial-page .cta-band p {
  color: rgba(247,243,233,0.78);
}

/* Card upgrade — soft elevation, no chunky borders */
.editorial-page .card {
  background: #fff;
  border: 1px solid rgba(10,21,33,0.08);
  border-radius: 12px;
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow:
    0 1px 0 rgba(10,21,33,0.03),
    0 8px 22px -10px rgba(10,21,33,0.06);
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.editorial-page .card:hover {
  box-shadow:
    0 1px 0 rgba(10,21,33,0.03),
    0 14px 30px -10px rgba(10,21,33,0.10);
  border-color: rgba(10,21,33,0.14);
  transform: translateY(-1px);
}
.editorial-page .card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.018em;
  color: #0a1521;
  margin: 8px 0 10px;
}

/* Badge */
.editorial-page .badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.editorial-page .badge-brand {
  background: rgba(24,83,197,0.10);
  color: var(--aa-brand);
  border: 1px solid rgba(24,83,197,0.22);
}

/* Editorial CTAs — already exist, just tighten + match the dark hero's family */
.editorial-page .editorial-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.editorial-page .btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #f7f3e9;
  background: #0a1521;
  border: 1px solid #0a1521;
  border-radius: 100px;
  text-decoration: none;
  transition: background 180ms, transform 180ms, box-shadow 180ms;
}
.editorial-page .btn-ink:hover {
  background: #1853c5;
  border-color: #1853c5;
  box-shadow: 0 12px 28px -10px rgba(24,83,197,0.5);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.editorial-page .btn-quill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #0a1521;
  background: transparent;
  border: 1px solid rgba(10,21,33,0.22);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 180ms, background 180ms;
}
.editorial-page .btn-quill:hover {
  border-color: #0a1521;
  background: rgba(10,21,33,0.04);
  text-decoration: none;
}

/* ============================================================================
   REUSABLE COMPONENT — Compact Coverage strip
   For use on interior pages that want the same Coverage marquee feel
   without the full headline + two-row marquee.
   ========================================================================== */

.aa-coverage-strip {
  position: relative;
  background: linear-gradient(180deg, #061528 0%, #04111f 100%);
  color: #f7f3e9;
  padding: clamp(40px, 6vh, 72px) 0;
  overflow: hidden;
  isolation: isolate;
}
.aa-coverage-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 200px at 50% 50%, rgba(24,83,197,0.18) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.aa-coverage-strip .aa-eyebrow {
  text-align: center;
  margin-bottom: 22px;
  color: rgba(247,243,233,0.55);
}

/* ============================================================================
   PRICING PAGE — elevated card grid with brand-glow on featured tier
   Targets existing .pricing-grid / .price-card markup so no HTML changes
   are required beyond the new aa-hero.
   ========================================================================== */

.editorial-page .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  margin: 0 auto 40px;
  padding: 14px 22px;
  max-width: 920px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(10,21,33,0.66);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(10,21,33,0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 22px -10px rgba(10,21,33,0.10);
}

.editorial-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1180px) {
  .editorial-page .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .editorial-page .pricing-grid { grid-template-columns: 1fr; }
}

.editorial-page .price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border: 1px solid rgba(10,21,33,0.09);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(10,21,33,0.04),
    0 18px 40px -28px rgba(10,21,33,0.18);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 240ms ease;
  isolation: isolate;
}
.editorial-page .price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24,83,197,0.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(10,21,33,0.04),
    0 28px 60px -28px rgba(10,21,33,0.24);
}

.editorial-page .price-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #0a1521;
}
.editorial-page .price-card .muted {
  color: rgba(10,21,33,0.58);
  margin: 0 0 18px;
  min-height: 2.4em;
}
.editorial-page .price-card .price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #0a1521;
  margin: 0 0 4px;
}
.editorial-page .price-card .price small {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(10,21,33,0.55);
  margin-left: 4px;
}
.editorial-page .price-card .price-cap {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(10,21,33,0.6);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(10,21,33,0.14);
}
.editorial-page .price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1 1 auto;
}
.editorial-page .price-card ul li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10,21,33,0.82);
  border-bottom: 1px solid rgba(10,21,33,0.05);
}
.editorial-page .price-card ul li:last-child { border-bottom: none; }
.editorial-page .price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #1853c5;
  border-bottom: 1.5px solid #1853c5;
  transform: rotate(-45deg);
}
.editorial-page .price-card ul li .ship,
.editorial-page .price-card ul li .soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: 1px;
}
.editorial-page .price-card ul li .ship {
  background: rgba(92,217,166,0.14);
  color: #1d7a52;
  border: 1px solid rgba(92,217,166,0.35);
}
.editorial-page .price-card ul li .soon {
  background: rgba(240,182,90,0.15);
  color: #8a5a12;
  border: 1px solid rgba(240,182,90,0.38);
}
.editorial-page .price-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Featured (Professional) tier — brand-blue glow + lift */
.editorial-page .price-card.featured {
  background: linear-gradient(180deg, #0d2856 0%, #061a3c 100%);
  border-color: rgba(24,83,197,0.55);
  color: #f7f3e9;
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(24,83,197,0.35),
    0 28px 60px -22px rgba(24,83,197,0.55),
    0 60px 120px -40px rgba(10,21,33,0.5);
}
.editorial-page .price-card.featured::before {
  content: "Most picked";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f3e9;
  background: linear-gradient(180deg, #1853c5 0%, #133f97 100%);
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(24,83,197,0.7);
}
.editorial-page .price-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 200px at 50% 0%, rgba(24,83,197,0.35) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.editorial-page .price-card.featured:hover {
  transform: translateY(-9px);
  border-color: rgba(24,83,197,0.7);
}
.editorial-page .price-card.featured h3,
.editorial-page .price-card.featured .price { color: #f7f3e9; }
.editorial-page .price-card.featured .muted { color: rgba(247,243,233,0.66); }
.editorial-page .price-card.featured .price small { color: rgba(247,243,233,0.55); }
.editorial-page .price-card.featured .price-cap {
  color: rgba(247,243,233,0.72);
  border-bottom-color: rgba(247,243,233,0.18);
}
.editorial-page .price-card.featured ul li {
  color: rgba(247,243,233,0.88);
  border-bottom-color: rgba(247,243,233,0.08);
}
.editorial-page .price-card.featured ul li::before {
  border-color: #8fb3ff;
}
.editorial-page .price-card.featured ul li .ship {
  background: rgba(92,217,166,0.18);
  color: #b8f3d4;
  border-color: rgba(92,217,166,0.4);
}
.editorial-page .price-card.featured ul li .soon {
  background: rgba(240,182,90,0.18);
  color: #ffd99a;
  border-color: rgba(240,182,90,0.42);
}
.editorial-page .price-card.featured .btn-primary {
  background: #f7f3e9;
  color: #0a1521;
  border-color: #f7f3e9;
}
.editorial-page .price-card.featured .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page .price-card,
  .editorial-page .price-card.featured { transition: none; }
  .editorial-page .price-card:hover,
  .editorial-page .price-card.featured:hover { transform: none; }
}

/* ============================================================================
   TRUST BADGE GALLERY — used inside aa-hero on /security/
   ========================================================================== */

.aa-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vh, 40px);
  max-width: 760px;
}

.aa-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247,243,233,0.86);
  background: rgba(247,243,233,0.05);
  border: 1px solid rgba(247,243,233,0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 200ms ease, border-color 200ms ease;
}
.aa-trust-pill:hover {
  background: rgba(247,243,233,0.08);
  border-color: rgba(247,243,233,0.22);
}
.aa-trust-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.aa-trust-pill .dot.ok {
  background: #5cd9a6;
  box-shadow: 0 0 8px rgba(92,217,166,0.6);
}
.aa-trust-pill .dot.pending {
  background: #f0b65a;
  box-shadow: 0 0 8px rgba(240,182,90,0.55);
}

/* ============================================================================
   REUSABLE HERO VISUAL — Animated receipt stack
   Drop into the right column of any aa-hero. Pass per-page content via the
   data-* fields in markup. Cards float up in sequence; the chain dot connector
   pulses; a notarisation badge flashes periodically on the head card.
   ========================================================================== */

.aa-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  padding: 20px 8px 12px;
  isolation: isolate;
}
.aa-stack::before {
  /* soft brand halo behind the stack */
  content: "";
  position: absolute;
  inset: -10% -15%;
  background:
    radial-gradient(closest-side, rgba(24,83,197,0.28) 0%, transparent 70%),
    radial-gradient(closest-side at 70% 80%, rgba(138,109,255,0.22) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.aa-stack::after {
  /* vertical chain link connecting card centres */
  content: "";
  position: absolute;
  left: 38px;
  top: 70px;
  bottom: 70px;
  width: 1px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(102,160,255,0.55) 0 4px,
      transparent 4px 10px
    );
  z-index: 0;
  filter: drop-shadow(0 0 4px rgba(24,83,197,0.45));
}

.aa-stack-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(8,22,42,0.86);
  color: #f7f3e9;
  border: 1px solid rgba(167,192,255,0.18);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 18px 40px -22px rgba(0,0,0,0.7),
    0 0 0 1px rgba(24,83,197,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0;
  transform: translateY(14px);
  animation: aa-stack-rise 9s ease-out infinite;
}
.aa-stack-card:nth-child(1) { animation-delay: 0.2s; }
.aa-stack-card:nth-child(2) { animation-delay: 1.6s; }
.aa-stack-card:nth-child(3) { animation-delay: 3.0s; }
.aa-stack-card:nth-child(4) { animation-delay: 4.4s; }
.aa-stack-card:last-child   { margin-bottom: 0; }

@keyframes aa-stack-rise {
  0%   { opacity: 0; transform: translateY(14px); }
  6%   { opacity: 1; transform: translateY(0); }
  88%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.aa-stack-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aa-brand);
  box-shadow: 0 0 12px rgba(24,83,197,0.7);
  justify-self: center;
}
.aa-stack-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(102,160,255,0.45);
  animation: aa-stack-ping 2.6s ease-out infinite;
}
@keyframes aa-stack-ping {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.aa-stack-body {
  min-width: 0;
}
.aa-stack-type {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,243,233,0.55);
  margin-bottom: 3px;
}
.aa-stack-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(247,243,233,0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-stack-hash {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(167,192,255,0.86);
  white-space: nowrap;
}

/* Head card variant — flashes the RFC 3161 notarisation badge periodically */
.aa-stack-card.head {
  background: linear-gradient(180deg, rgba(13,40,86,0.95) 0%, rgba(6,26,60,0.95) 100%);
  border-color: rgba(138,109,255,0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(138,109,255,0.25),
    0 24px 48px -22px rgba(138,109,255,0.55),
    0 50px 100px -40px rgba(0,0,0,0.75);
}
.aa-stack-card.head .aa-stack-dot {
  background: var(--aa-notarise);
  box-shadow: 0 0 16px rgba(138,109,255,0.85);
}
.aa-stack-card.head .aa-stack-type {
  color: rgba(192,176,255,0.92);
}
.aa-stack-card.head::before {
  content: "RFC 3161";
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 3px 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7f3e9;
  background: linear-gradient(180deg, var(--aa-notarise) 0%, #6b4cff 100%);
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(138,109,255,0.7);
  opacity: 0;
  animation: aa-stack-notarise 9s ease-in-out infinite;
  animation-delay: 4.6s;
}
@keyframes aa-stack-notarise {
  0%, 4%, 100% { opacity: 0; transform: translateY(-4px) scale(0.92); }
  10%, 60%     { opacity: 1; transform: translateY(0) scale(1); }
  80%          { opacity: 0; transform: translateY(0) scale(1); }
}

/* Hover — pause stack animation and lift the focused card forward */
.aa-stack:hover .aa-stack-card { animation-play-state: paused; }
.aa-stack-card {
  cursor: default;
  transition:
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    z-index 0s;
}
.aa-stack-card:hover {
  z-index: 5;
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(167,192,255,0.42);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(24,83,197,0.32),
    0 30px 60px -18px rgba(0,0,0,0.75),
    0 60px 120px -40px rgba(24,83,197,0.5);
}
.aa-stack-card.head:hover {
  border-color: rgba(138,109,255,0.65);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 0 0 1px rgba(138,109,255,0.45),
    0 36px 72px -18px rgba(138,109,255,0.6),
    0 70px 140px -40px rgba(0,0,0,0.8);
}

@media (prefers-reduced-motion: reduce) {
  .aa-stack-card { animation: none; opacity: 1; transform: none; transition: none; }
  .aa-stack-dot::after { animation: none; opacity: 0; }
  .aa-stack-card.head::before { animation: none; opacity: 1; }
  .aa-stack-card:hover { transform: none; }
}

/* Home-page browser frames — lift forward on hover */
.aa-frame {
  cursor: default;
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.aa-frame.primary:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.025);
  z-index: 5;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 40px 80px -20px rgba(8,16,28,0.55),
    0 100px 160px -40px rgba(24,83,197,0.35);
}
.aa-frame.secondary:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  z-index: 6;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 40px 80px -20px rgba(8,16,28,0.55),
    0 100px 160px -40px rgba(24,83,197,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .aa-frame { transition: none; }
  .aa-frame.primary:hover,
  .aa-frame.secondary:hover { transform: rotate(-1.6deg); }
  .aa-frame.secondary:hover { transform: rotate(2.4deg); }
}

/* When using aa-stack inside aa-hero-grid, force two-column layout on desktop */
.aa-hero-grid.has-stack {
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
}
@media (max-width: 960px) {
  .aa-hero-grid.has-stack { grid-template-columns: 1fr; }
  .aa-stack { max-width: 100%; margin: 16px auto 0; }
}

