/* =====================================================================
   Meta ads audit (/resources/tools/meta-ads-audit/).
   Loaded after home-2026.css. Everything is scoped to main.maa and every class starts with maa-.
   Colors come from the universal 2026 tokens in /css/modules/global/header-2026.css, which are scoped
   to .h26 and flip under body.dark-theme, so the site's theme toggle drives this page.
   ===================================================================== */

/* ---------- local aliases for the site tokens ---------- */
.maa {
  --maa-green: var(--green);
  --maa-tint: var(--green-tint);
  --maa-bg: var(--neutral-100);
  --maa-surface: var(--paper);
  --maa-line: var(--neutral-200);
  --maa-line-strong: var(--neutral-300);
  --maa-muted: var(--neutral-500);
  --maa-text: var(--neutral-700);
  --maa-ink: var(--neutral-900);
  --maa-on-green: #07070F;
  color: var(--maa-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: var(--tracking-body);
}
/* in dark mode neutral-200 sits too close to the surface for hairlines, so step each line up one shade */
body.dark-theme .maa {
  --maa-line: var(--neutral-300);
  --maa-line-strong: color-mix(in srgb, var(--neutral-300) 65%, var(--neutral-500));
}

.maa [hidden] { display: none !important; }
.maa :is(h1, h2, h3, h4) { color: var(--maa-ink); font-weight: 600; letter-spacing: -0.04em; margin: 0; }
.maa p { margin: 0; }
.maa a { color: inherit; }
.maa :is(button, input) { font-family: inherit; letter-spacing: inherit; }
.maa :focus-visible { outline: 2px solid var(--maa-green); outline-offset: 3px; }

/* the shared .h26 section rule adds large padding; panels here control their own spacing */
.maa .maa-panel { padding: 0; }

.maa .maa-wrap { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: calc(68px + 14px + clamp(32px, 5vw, 56px)) 20px 64px; }
@media (max-width: 1080px) { .maa .maa-wrap { padding-top: calc(64px + 10px + clamp(28px, 5vw, 48px)); } }

.maa .maa-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-size: 0.9375rem; color: var(--maa-muted); text-decoration: none; }
.maa .maa-back:hover { color: var(--maa-ink); }
.maa .maa-back svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- buttons ---------- */
.maa .maa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-button); font-weight: 500; font-size: 1rem; line-height: 1.6;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none; margin: 0;
}
.maa .maa-btn-primary { background: var(--maa-green); color: var(--maa-on-green); }
.maa .maa-btn-primary:hover { filter: brightness(1.06); color: var(--maa-on-green); }
.maa .maa-btn-ghost { background: transparent; color: var(--maa-text); border-color: var(--maa-line-strong); }
.maa .maa-btn-ghost:hover { background: var(--maa-surface); color: var(--maa-text); }
.maa .maa-btn[disabled] { opacity: .45; cursor: default; }

/* ---------- intro ---------- */
.maa .maa-intro h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.1; max-width: 16ch; }
.maa .maa-lede { font-size: 1.1875rem; line-height: 1.5; margin-top: 20px; max-width: 36rem; }
.maa .maa-drop {
  margin-top: 36px; border: 1.5px dashed var(--maa-line-strong); border-radius: var(--radius-card); background: var(--maa-surface);
  padding: 36px 24px; text-align: center; transition: border-color .15s ease, background .15s ease;
}
.maa .maa-drop.maa-over { border-color: var(--maa-green); background: var(--maa-tint); }
.maa .maa-drop h2 { font-size: 1.375rem; line-height: 1.3; }
.maa .maa-drop p { margin-top: 6px; color: var(--maa-muted); font-size: 0.9375rem; }
.maa .maa-drop .maa-row { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.maa .maa-err { margin-top: 16px; color: var(--red); font-size: 0.9375rem; min-height: 1.2em; }
.maa .maa-drop .maa-err { color: var(--red); }
.maa .maa-privacy { margin-top: 14px; font-size: 0.875rem; color: var(--maa-muted); display: flex; gap: 8px; justify-content: center; align-items: center; }
.maa .maa-privacy svg { flex: none; }

.maa .maa-steps { margin-top: 20px; background: var(--maa-surface); border: 1px solid var(--maa-line); border-radius: var(--radius-callout); }
.maa .maa-steps summary { cursor: pointer; padding: 16px 20px; font-weight: 500; color: var(--maa-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.maa .maa-steps summary::-webkit-details-marker { display: none; }
.maa .maa-steps summary::after { content: '+'; font-size: 1.25rem; color: var(--maa-muted); }
.maa .maa-steps[open] summary::after { content: '\2212'; }
.maa .maa-steps-body { padding: 0 20px 20px; }
.maa .maa-steps-body ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; }
.maa .maa-steps-body li { margin: 0; }
.maa .maa-steps-body b { color: var(--maa-ink); font-weight: 600; }
.maa .maa-cols-list { margin-top: 14px; font-size: 0.9375rem; }

.maa .maa-checks { margin-top: 48px; border-top: 1px solid var(--maa-line); padding-top: 24px; }
.maa .maa-checks h2 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.02em; margin-bottom: 12px; }
.maa .maa-checks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); font-size: 0.9375rem; }
.maa .maa-checks li { display: flex; gap: 10px; margin: 0; }
.maa .maa-checks li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--maa-green); margin-top: 0.6em; }

/* ---------- results ---------- */
.maa .maa-demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--maa-tint); border-radius: var(--radius-callout); padding: 12px 16px; margin-bottom: 32px; font-size: 0.9375rem; }
.maa .maa-demo-bar b { color: var(--maa-ink); font-weight: 600; }
.maa .maa-demo-bar button { background: none; border: none; padding: 0; color: var(--maa-ink); font-weight: 500; text-decoration: underline; cursor: pointer; font-size: 0.9375rem; }

.maa .maa-r-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.maa .maa-score { position: relative; width: 132px; height: 132px; }
.maa .maa-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.maa .maa-score .maa-track { stroke: var(--maa-line); }
.maa .maa-score .maa-fill { stroke: var(--maa-green); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.5,0,.2,1); }
.maa .maa-score .maa-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.maa .maa-score .maa-num b { display: block; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.05em; color: var(--maa-ink); line-height: 1; }
.maa .maa-score .maa-num small { font-size: 0.8125rem; color: var(--maa-muted); }
.maa .maa-r-head h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; }
.maa .maa-r-head p { margin-top: 10px; }
@media (max-width: 520px) { .maa .maa-r-head { grid-template-columns: 1fr; } .maa .maa-score { width: 112px; height: 112px; } }

.maa .maa-money { margin-top: 32px; background: var(--maa-ink); color: var(--maa-bg); border-radius: var(--radius-card); padding: 28px; }
.maa .maa-money .maa-label { font-size: 0.9375rem; opacity: .8; }
.maa .maa-money .maa-big { font-size: clamp(2.5rem, 9vw, 3.75rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; margin: 6px 0 10px; color: var(--maa-green); }
.maa .maa-money p { max-width: 36rem; font-size: 0.9375rem; opacity: .9; }
.maa .maa-money details { margin-top: 14px; font-size: 0.875rem; }
.maa .maa-money summary { cursor: pointer; text-decoration: underline; opacity: .85; }
.maa .maa-money details p { margin-top: 8px; opacity: .85; }

.maa .maa-tiles { margin-top: 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.maa .maa-tile { background: var(--maa-surface); border: 1px solid var(--maa-line); border-radius: var(--radius-callout); padding: 14px 16px; }
.maa .maa-tile span { display: block; font-size: 0.8125rem; color: var(--maa-muted); }
.maa .maa-tile b { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.04em; color: var(--maa-ink); margin-top: 2px; }

.maa .maa-section-title { font-size: 1.5rem; line-height: 1.35; margin: 48px 0 6px; }
.maa .maa-section-sub { color: var(--maa-muted); margin-bottom: 20px; }

.maa .maa-fcard { background: var(--maa-surface); border: 1px solid var(--maa-line); border-radius: var(--radius-card); padding: 24px; margin-bottom: 16px; }
.maa .maa-fcard-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.maa .maa-sev { font-size: 0.8125rem; font-weight: 500; border-radius: var(--radius-chip); padding: 3px 10px; white-space: nowrap; line-height: 1.6; }
.maa .maa-sev.maa-high { background: var(--maa-green); color: var(--maa-on-green); }
.maa .maa-sev.maa-medium { background: var(--maa-tint); color: var(--maa-ink); }
.maa .maa-sev.maa-low { border: 1px solid var(--maa-line-strong); color: var(--maa-text); }
.maa .maa-fcard h3 { font-size: 1.375rem; line-height: 1.3; margin: 0 0 8px; flex: 1 1 18rem; }
.maa .maa-fcard .maa-what { color: var(--maa-ink); font-weight: 500; }
.maa .maa-fcard .maa-why { margin-top: 8px; }
.maa .maa-fcost { margin-top: 14px; font-size: 0.9375rem; }
.maa .maa-fcost b { color: var(--maa-ink); }
.maa .maa-tbl-wrap { overflow-x: auto; margin-top: 16px; border-top: 1px solid var(--maa-line); }
.maa .maa-tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 26rem; margin: 0; background: none; border: 0; }
.maa .maa-tbl th { text-align: left; font-weight: 500; color: var(--maa-muted); font-size: 0.8125rem; padding: 10px 12px 6px 0; background: none; border: 0; }
.maa .maa-tbl td { padding: 8px 12px 8px 0; border: 0; border-top: 1px solid var(--maa-line); vertical-align: top; background: none; color: var(--maa-text); }
.maa .maa-tbl :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; }
.maa .maa-tbl td small { display: block; color: var(--maa-muted); font-size: 0.8125rem; }
.maa .maa-try { margin-top: 16px; background: var(--maa-tint); border-radius: var(--radius-callout); padding: 14px 16px; }
.maa .maa-try h4 { margin: 0 0 4px; font-size: 0.875rem; line-height: 1.6; letter-spacing: -0.01em; }
.maa .maa-try p { font-size: 0.9375rem; }

.maa .maa-passes { background: var(--maa-surface); border: 1px solid var(--maa-line); border-radius: var(--radius-card); padding: 20px 24px; }
.maa .maa-passes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.maa .maa-passes li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.maa .maa-passes svg { flex: none; margin-top: 0.3em; color: var(--maa-green); }

.maa .maa-cant { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.maa .maa-cant > div { border: 1px solid var(--maa-line); border-radius: var(--radius-callout); padding: 16px; }
.maa .maa-cant h3 { font-size: 1rem; line-height: 1.6; letter-spacing: -0.02em; margin-bottom: 4px; }
.maa .maa-cant p { font-size: 0.9375rem; }

.maa .maa-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius-card); background: var(--maa-surface); border: 1px solid var(--maa-line); }
.maa .maa-cta h2 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 8px; }
.maa .maa-cta > p { margin-bottom: 20px; max-width: 36rem; }
.maa .maa-cta .maa-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- "Send these results to a strategist" form ---------- */
.maa .maa-send { margin-top: 24px; border-top: 1px solid var(--maa-line); padding-top: 20px; }
.maa .maa-send h3 { font-size: 1.125rem; line-height: 1.4; margin-bottom: 4px; letter-spacing: -0.02em; }
.maa .maa-send > p { margin-bottom: 12px; font-size: 0.9375rem; }
.maa .maa-send-row { display: flex; gap: 8px; flex-wrap: wrap; }
.maa .maa-send-row input[type="email"] {
  flex: 1 1 14rem; min-width: 0; width: auto; margin: 0; height: auto; padding: 11px 14px;
  background: var(--maa-bg); color: var(--maa-ink); border: 1px solid var(--maa-line-strong); outline: none;
  border-radius: var(--radius-button); font: 400 1rem/1.6 var(--font); letter-spacing: -0.01em;
}
.maa .maa-send-row input[type="email"]::placeholder { color: var(--maa-muted); }
.maa .maa-send-row input[type="email"]:focus { border-color: var(--maa-green); box-shadow: 0 0 0 3px var(--maa-tint); }
.maa .maa-send-row input[aria-invalid="true"] { border-color: var(--red); }
.maa .maa-form-msg { margin-top: 10px; font-size: 0.9375rem; min-height: 1.6em; }
.maa .maa-form-msg.maa-is-error { color: var(--red); }
.maa .maa-form-msg.maa-is-ok { color: var(--maa-ink); background: var(--maa-tint); border-radius: var(--radius-callout); padding: 14px 16px; }
/* honeypot: off screen for people, still in the form for bots */
.maa .maa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.maa .maa-restart-row { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.maa .maa-note { font-size: 0.8125rem; color: var(--maa-muted); }

/* ---------- written section below the tool ---------- */
.maa .maa-about { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 48px 20px 96px; border-top: 1px solid var(--maa-line); }
.maa .maa-about h2 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 12px; }
.maa .maa-about h3 { font-size: 1.125rem; line-height: 1.4; margin: 28px 0 8px; letter-spacing: -0.02em; }
.maa .maa-about p + p { margin-top: 12px; }
.maa .maa-about ul { margin: 12px 0 0; padding-left: 1.25rem; display: grid; gap: 4px; }
.maa .maa-about li { margin: 0; }
