/* AI tool pages (SOP generator). Shared aad-* classes come from the AA Content Types snippet. */
.aat-stack6, .aat-stack12, .aat-stack40 { display: flex; flex-direction: column; }
.aat-stack6 { gap: 6px; } .aat-stack12 { gap: 12px; align-items: flex-start; } .aat-stack40 { gap: 40px; }
.aat-row6, .aat-row8, .aat-row10, .aat-row12 { display: flex; flex-wrap: wrap; align-items: center; }
.aat-row6 { gap: 6px; } .aat-row8 { gap: 8px; justify-content: center; } .aat-row10 { gap: 10px; } .aat-row12 { gap: 12px; }
.aat-h2 { margin: 0; font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; color: var(--fg-1); text-wrap: balance; }
.aat-small { font-size: 13px; color: var(--fg-3); padding-top: 2px; }
.aat-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-1); font-size: 12px; font-weight: 500; white-space: nowrap; align-self: flex-start; }
.aat-pill::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--aat-pill, var(--pop-sky)); }
.aat-pill-sky { --aat-pill: var(--pop-sky); }

/* Hero */
.aat-hero { border-bottom: 1px solid var(--border); font-family: var(--font-sans); color: var(--fg-1); }
.aat-hero-inner { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.aat-hero-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 820px; }
.aat-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-3); }
.aat-crumbs a { color: var(--fg-3); text-decoration: none; }
.aat-crumbs a:hover { color: var(--fg-1); }
.aat-crumb-current { color: var(--fg-1); }
.aat-h1 { margin: 0; font-size: 72px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; color: var(--fg-1); text-wrap: balance; }
.aat-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--fg-2); }
.aat-meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.aat-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.aat-meta-item .aa-icon { color: var(--accent-text); }

/* Tool card */
.aat-tool { display: flex; flex-direction: column; gap: 16px; }
.aat-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg), var(--highlight); overflow: hidden; }
.aat-card-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.aat-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-1); }
.aat-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live, #22C55E); box-shadow: 0 0 0 0 color-mix(in oklab, var(--live, #22C55E) 60%, transparent); animation: aat-pulse 1.8s infinite; }
@keyframes aat-pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.aat-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.aat-form { padding: 24px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--border); margin: 0; }
.aat-field { display: flex; flex-direction: column; gap: 6px; }
.aat-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; color: var(--fg-1); }
.aat-hint { font-weight: 400; color: var(--fg-3); }
.aat-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body .aat-form .aad-input { width: 100%; box-sizing: border-box; font-size: 14px; }
body .aat-form .aat-textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
body .aat-form .aat-select { appearance: auto; }
.aat-form .aad-input.is-invalid { border-color: var(--danger, #E5484D); }
.aat-error { font-size: 12px; color: var(--danger, #E5484D); }
.aat-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 8px; background: var(--bg-inset); border: 1px solid var(--border); }
body .aat-seg button { flex: 1 1 auto; height: 34px; padding: 0 12px; border-radius: 6px; border: 0; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 500; white-space: nowrap; background: transparent; color: var(--fg-3); }
body .aat-seg button:hover { background: transparent; color: var(--fg-1); }
body .aat-seg button[aria-checked="true"] { background: var(--surface-raised); color: var(--fg-1); box-shadow: var(--shadow-sm), var(--highlight); }
.aat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body .aat-generate { width: 100%; height: 52px; font-size: 16px; }
body .aat-generate[disabled] { opacity: 0.6; cursor: wait; }
.aat-note { font-size: 12px; color: var(--fg-3); line-height: 1.5; }

.aat-out { padding: 24px; background: var(--bg-subtle); min-height: 560px; display: flex; flex-direction: column; }
.aat-state { flex: 1; display: flex; flex-direction: column; }
.aat-state[hidden] { display: none; }
.aat-empty { border: 1.5px dashed var(--border-strong); border-radius: 12px; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px; }
.aat-center { align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px; }
.aat-state-icon { width: 48px; height: 48px; border-radius: 12px; color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; }
.aat-danger { background: var(--danger-subtle, rgba(229, 72, 77, 0.15)); color: var(--danger, #E5484D); }
.aat-state-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-1); }
.aat-state-text { font-size: 14px; color: var(--fg-2); max-width: 380px; line-height: 1.55; }
body .aat-action { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-1); cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; }
body .aat-action:hover, body .aat-action:focus { background: var(--bg-inset); color: var(--fg-1); }
body .aat-action-lg { height: 44px; padding: 0 18px; font-size: 14px; }
.aat-loading { gap: 18px; }
.aat-skel { height: 14px; border-radius: 6px; background: var(--bg-inset); animation: aat-shimmer 1.2s ease-in-out infinite alternate; }
.aat-skel:first-of-type { height: 26px; }
.aat-skel-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.aat-skel-step { display: flex; gap: 12px; }
.aat-skel-step div { height: 28px; border-radius: 6px; background: var(--bg-inset); animation: aat-shimmer 1.2s ease-in-out infinite alternate; }
.aat-skel-step div:first-child { width: 28px; flex: none; }
.aat-skel-step div:last-child { flex: 1; }
@keyframes aat-shimmer { from { opacity: 0.5; } to { opacity: 1; } }
.aat-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.aat-result-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg-1); }
.aat-result-in { animation: aat-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes aat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* SOP document (live result + example) */
.aat-doc { display: flex; flex-direction: column; gap: 22px; font-family: var(--font-sans); }
.aat-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aat-doc-grid-1 { grid-template-columns: 1fr; }
.aat-doc-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); padding-bottom: 8px; }
.aat-doc-p { font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.aat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.aat-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.aat-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface); margin: 0; }
.aat-steps li:first-child { border-top: 0; }
.aat-step-n { width: 28px; height: 28px; border-radius: 7px; color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.aat-step-body { display: flex; flex-direction: column; gap: 3px; }
.aat-step-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aat-step-title { font-size: 15px; font-weight: 600; color: var(--fg-1); }
.aat-step-owner { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-3); }
.aat-checks { display: flex; flex-direction: column; gap: 8px; }
.aat-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-1); }
.aat-box { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--border-strong); box-sizing: border-box; }

/* Email capture + toast */
.aat-capture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 20px; align-items: center; padding: 20px 24px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); }
.aat-capture[hidden] { display: none; }
.aat-capture-text { display: flex; gap: 14px; align-items: flex-start; }
.aat-capture-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--pop-pink); color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; }
.aat-capture-title { font-size: 16px; font-weight: 600; color: var(--fg-1); }
.aat-capture-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
body .aat-capture-form .aad-input { flex: 1 1 200px; min-width: 0; height: 40px; font-size: 14px; }
body .aat-capture-form .aad-btn { height: 40px; }
.aat-capture-form .aa-newsletter__status { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--fg-2); }
.aat-toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 2px; max-width: 340px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow-lg); font-family: var(--font-sans); font-size: 13px; color: var(--fg-2); }
.aat-toast[hidden] { display: none; }
.aat-toast strong { font-size: 14px; color: var(--fg-1); }

/* Next step */
.aat-next { padding: 72px 0; font-family: var(--font-sans); }
.aat-next-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow-sm), var(--highlight); }
.aat-next-text { padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.aat-next-title { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; color: var(--fg-1); }
.aat-next-p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: 520px; }
.aat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--fg-1); text-decoration: none; }
.aat-link:hover { color: var(--accent-text); }
.aat-next-flow { background: var(--pop-sky); color: var(--pop-fg); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.aat-flow-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); color: var(--pop-fg); }
.aat-flow-icon { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--pop-fg); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.aat-flow-dark { background: var(--pop-fg); color: #fff; }
.aat-flow-dark .aat-flow-icon { background: var(--accent); color: var(--accent-fg); }
.aat-flow-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.aat-flow-v { font-size: 15px; font-weight: 600; }
.aat-flow-arrow { display: flex; justify-content: center; }

/* How to use */
.aat-how { padding: 72px 0; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-sans); }
.aat-how-grid { gap: 20px; }
.aat-how-item { display: flex; flex-direction: column; gap: 14px; }
.aat-shot { aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.aat-how-n { width: 32px; height: 32px; border-radius: 8px; color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.aat-how-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-1); }
.aat-how-text { font-size: 15px; line-height: 1.6; color: var(--fg-2); }

:root { --aa-lightbulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5' /%3E %3Cpath d='M9 18h6' /%3E %3Cpath d='M10 22h4' /%3E %3C/svg%3E"); }

/* Article extras */
.aat-article .aad-post-prose h2 { font-size: 30px; margin-top: 56px; }
.aat-article .aad-post-prose > .aad-eyebrow:first-child + h2 { margin-top: 12px; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; }
.aad-post-prose .wp-block-table { margin: 20px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.aad-post-prose .wp-block-table table { width: 100%; min-width: 520px; border-collapse: collapse; }
.aad-post-prose .wp-block-table th { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; border: 0; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.aad-post-prose .wp-block-table td { padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--fg-2); border: 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.aad-post-prose .wp-block-table tr:last-child td { border-bottom: 0; }
.aad-post-prose .wp-block-table td:first-child { color: var(--fg-1); font-weight: 600; }
.aad-post-prose .aa-callout-tip::after { -webkit-mask-image: var(--aa-lightbulb); mask-image: var(--aa-lightbulb); }
.aat-example { margin-top: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow-sm), var(--highlight); overflow: hidden; }
.aat-example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.aat-example-title { font-size: 16px; font-weight: 600; color: var(--fg-1); }
.aat-example-body { padding: 20px; }

/* FAQ + more tools */
.aat-faq { padding: 0 0 72px; font-family: var(--font-sans); }
.aat-faq .aad-post-prose details:first-of-type { margin-top: 0; }
.aat-more { padding: 0 0 32px; font-family: var(--font-sans); }
.aat-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.aat-tool-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-xs), var(--highlight); color: var(--fg-1); }
.aat-tool-band { padding: 18px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.aat-tool-band-top { display: flex; justify-content: space-between; align-items: center; color: var(--pop-fg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.aat-mini { background: var(--surface-raised); border-radius: 10px 10px 0 0; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.aat-mini-line { height: 8px; width: 40%; border-radius: 4px; background: var(--border-strong); }
.aat-mini-input { height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.aat-mini-btn { height: 22px; width: 72px; border-radius: 6px; background: var(--accent); align-self: flex-end; }
.aat-tool-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.aat-tool-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aat-tool-name { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.aat-tool-desc { font-size: 14px; line-height: 1.55; color: var(--fg-2); flex: 1; }
.aat-tool-foot { display: flex; justify-content: flex-end; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.aat-tool-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-3); }

@media (max-width: 900px) {
  .aat-h1 { font-size: 44px; }
  .aat-split, .aat-next-card, .aat-capture { grid-template-columns: 1fr; }
  .aat-form { border-right: 0; border-bottom: 1px solid var(--border); }
  .aat-out { min-height: 420px; }
  .aat-doc-grid { grid-template-columns: 1fr; }
  .aat-h2 { font-size: 30px; }
  .aat-next-text { padding: 32px 24px; }
  .aat-next-title { font-size: 26px; }
}
@media (max-width: 480px) {
  .aat-two { grid-template-columns: 1fr; }
  .aat-out, .aat-form { padding: 18px; }
}

/* Hello theme styles every button pink; restore the design's buttons */
body .aat-tool .aad-btn-primary, body .aat-tool .aad-btn-primary:focus { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
body .aat-tool .aad-btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }

/* Keep blog prose styles off the guide eyebrow and the example SOP */
.aad-post-prose > p.aad-eyebrow:first-child { margin: 0; font-size: 12px; line-height: 1.4; color: var(--accent-text); }
.aad-post-prose .aat-steps { padding: 0; gap: 0; font-size: inherit; line-height: inherit; }

/* Tool cards as links + Free Resources row */
a.aat-tool-card { text-decoration: none; transition: transform 160ms, box-shadow 160ms, border-color 160ms; }
a.aat-tool-card:hover { color: var(--fg-1); border-color: var(--border-strong); box-shadow: var(--shadow-md), var(--highlight); transform: translateY(-2px); }
a.aat-tool-card:hover .aat-tool-cta { color: var(--accent-text); }
.aat-tool-live .aat-tool-cta { color: var(--fg-1); }
.aat-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.aat-tools-row .aat-tool-name { font-size: 18px; }
body .aat-form .aat-textarea.aat-textarea-sm { min-height: 64px; }

/* Email tools (follow-up email writer, newsletter generator) */
.aat-mail { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.aat-mail-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.aat-mail-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.aat-mail-v { font-size: 14px; font-weight: 600; color: var(--fg-1); line-height: 1.45; }
.aat-mail-v.aat-mail-muted { font-weight: 400; color: var(--fg-2); }
.aat-mail-body { padding: 18px 16px 4px; font-size: 15px; line-height: 1.65; color: var(--fg-1); }
.aat-mail-body p { margin: 0 0 14px; }
.aat-mail-body a { color: var(--fg-1); text-decoration: underline; word-break: break-all; }
.aat-mail-foot { padding: 0 16px 16px; }
.aat-mail-alts { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.aat-mail-alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--fg-2); }
body .aat-mini-copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--fg-2); cursor: pointer; flex: none; }
body .aat-mini-copy:hover { border-color: var(--border-strong); color: var(--fg-1); background: var(--surface-raised); }

/* "Build your own agent" offer after a result + the keep-a-copy note */
.aat-agent { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); }
.aat-agent[hidden] { display: none; }
.aat-agent-text { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 360px; }
.aat-agent-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--accent); color: var(--accent-fg); display: inline-flex; align-items: center; justify-content: center; }
.aat-agent-icon .aa-icon { background-color: var(--accent-fg); }
.aat-agent-title { font-size: 16px; font-weight: 600; color: var(--fg-1); }
.aat-agent-copy { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin-top: 4px; max-width: 60ch; }
.aat-keep { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--pop-sun) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pop-sun) 40%, transparent); font-size: 13px; line-height: 1.5; color: var(--fg-1); }
.aat-keep .aa-icon { flex: none; margin-top: 3px; }
