/* =============================================================================
   Ads pages (ads.html Plans, ad-copy.html plan builder, ad-plan.html client link)
   Cross Hub brand, the owner's CLEAN rules: cream ground, plum ink, bubblegum primary; white cards with a thin
   plum-tint line; a hard offset shadow ONLY on the one hero card and the primary button; Fraunces only for the one
   display headline (24 px and up); Poppins ~14 px for everything else; status = a dot + a word.
   Feature colours: Lime = live ads / good, Butter = waiting, Lilac = approved / info, Watermelon = needs you.
   ============================================================================= */
:root {
  --ax-cream: #FFF9E9; --ax-cream-2: #FCEBCF; --ax-plum: #5B1A42; --ax-plum-2: #6E3A5A; --ax-plum-3: #855A75;
  --ax-line: rgba(91, 26, 66, .16); --ax-line-2: rgba(91, 26, 66, .09); --ax-white: #FFFFFF;
  --ax-pink: #F9C6D4; --ax-flamingo: #F6AEC2; --ax-butter: #FBF280; --ax-lilac: #C7B6F5; --ax-lime: #B8D94A; --ax-melon: #F6AEC2;
  --ax-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ax-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.ax, .ax * { box-sizing: border-box; }
.ax { font-family: var(--ax-sans); color: var(--ax-plum); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.ax a { color: inherit; }
.ax :focus-visible { outline: 2px solid var(--ax-plum); outline-offset: 2px; border-radius: 8px; }
.ax .tnum, .ax .ax-num { font-variant-numeric: tabular-nums; }
.ax-wrap { max-width: 1120px; margin: 0 auto; padding: 22px 22px 90px; }
.ax-wrap--narrow { max-width: 880px; }

/* page head: title left, the ONE primary action right */
.ax-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 18px; }
.ax-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.ax-eyebrow { font: 600 12px/1.2 var(--ax-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ax-plum-3); margin: 0 0 6px; }
.ax-title { margin: 0; font: 900 34px/1.05 var(--ax-display); font-variation-settings: 'SOFT' 100, 'opsz' 96; letter-spacing: -.01em; color: var(--ax-plum); }
.ax-sub { margin: 6px 0 0; color: var(--ax-plum-2); font-size: 14px; max-width: 64ch; }
.ax-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ax-h2 { margin: 0; font: 600 16px/1.3 var(--ax-sans); color: var(--ax-plum); }
.ax-h3 { margin: 0; font: 600 14px/1.35 var(--ax-sans); color: var(--ax-plum); }
.ax-muted { color: var(--ax-plum-3); }
.ax-small { font-size: 12.5px; }
.ax-label { display: block; font: 600 12px/1.2 var(--ax-sans); color: var(--ax-plum-2); margin: 0 0 6px; }

/* underline tab bar */
.ax-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ax-line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.ax-tabs::-webkit-scrollbar { display: none; }
.ax-tab { appearance: none; border: 0; background: none; padding: 10px 14px 11px; font: 500 14px/1 var(--ax-sans); color: var(--ax-plum-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ax-tab:hover { color: var(--ax-plum); }
.ax-tab[aria-selected="true"] { color: var(--ax-plum); font-weight: 600; border-bottom-color: var(--ax-plum); }
.ax-tab .ax-count { margin-left: 6px; }

/* cards */
.ax-card { background: var(--ax-white); border: 1px solid var(--ax-line); border-radius: 18px; padding: 18px 20px; }
.ax-card + .ax-card, .ax-card + .ax-grid2, .ax-grid2 + .ax-card { margin-top: 14px; }
.ax-card--flush { padding: 0; overflow: hidden; }
.ax-hero { background: var(--ax-plum); color: var(--ax-cream); border-radius: 20px; padding: 20px 22px; border: 2px solid var(--ax-plum); box-shadow: 4px 4px 0 var(--ax-flamingo); }
.ax-hero .ax-muted, .ax-hero .ax-sub { color: rgba(255, 246, 230, .78); }
.ax-hero .ax-kv b { color: var(--ax-cream); }
.ax-sect { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.ax-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ax-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .ax-grid2, .ax-grid3 { grid-template-columns: minmax(0, 1fr); } .ax-title { font-size: 28px; } .ax-wrap { padding: 16px 16px 80px; } }

/* buttons: secondary white with a thin line; the ONE primary is bubblegum with a small hard shadow */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid var(--ax-line); border-radius: 999px;
  background: var(--ax-white); color: var(--ax-plum); font: 600 13px/1 var(--ax-sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ax-btn:hover { border-color: var(--ax-plum-3); background: #FFFCF6; }
.ax-btn:disabled { opacity: .5; cursor: default; }
.ax-btn--primary { background: var(--ax-pink); border: 1.5px solid var(--ax-plum); box-shadow: 3px 3px 0 var(--ax-plum); min-height: 42px; padding: 0 20px; font-size: 14px; }
.ax-btn--primary:hover { background: #FFBCD2; border-color: var(--ax-plum); }
.ax-btn--primary:active { transform: translate(3px, 3px); box-shadow: none; }
.ax-btn--dark { background: var(--ax-plum); color: var(--ax-cream); border-color: var(--ax-plum); }
.ax-btn--dark:hover { background: #4A1536; }
.ax-btn--sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.ax-btn--text { border: 0; background: none; padding: 0 2px; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.ax-btn--text:hover { background: none; }
.ax-btn--danger { color: #9C2347; }

/* status: a dot + a word; chips with a thin outline */
.ax-st { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1.2 var(--ax-sans); white-space: nowrap; }
.ax-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #CBBFC6; box-shadow: 0 0 0 1px rgba(91, 26, 66, .25); }
.ax-dot--grey { background: #D9CFD4; } .ax-dot--butter { background: var(--ax-butter); } .ax-dot--lilac { background: var(--ax-lilac); }
.ax-dot--lime, .ax-dot--green { background: var(--ax-lime); } .ax-dot--melon, .ax-dot--red { background: var(--ax-melon); } .ax-dot--amber { background: var(--ax-butter); }
.ax-dot--pink { background: var(--ax-flamingo); }
.ax-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ax-line); border-radius: 999px; padding: 3px 10px; font: 500 12px/1.4 var(--ax-sans); background: var(--ax-white); white-space: nowrap; }
.ax-chip--soon { border-style: dashed; color: var(--ax-plum-3); }
.ax-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: #F2E8EC; color: var(--ax-plum-2); font: 600 11px/1 var(--ax-sans); }
.ax-info { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--ax-line); align-items: center; justify-content: center; font: 600 10px/1 var(--ax-sans); color: var(--ax-plum-3); cursor: help; vertical-align: 1px; }

/* segmented filter pills + search */
.ax-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.ax-seg { display: inline-flex; border: 1px solid var(--ax-line); border-radius: 999px; background: var(--ax-white); padding: 3px; gap: 2px; flex-wrap: wrap; }
.ax-seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font: 500 13px/1 var(--ax-sans); color: var(--ax-plum-2); cursor: pointer; }
.ax-seg button[aria-pressed="true"] { background: var(--ax-plum); color: var(--ax-cream); }
.ax-search { min-width: 200px; flex: 0 1 260px; padding: 9px 12px 9px 32px; border: 1px solid var(--ax-line); border-radius: 999px; font: 400 13.5px var(--ax-sans); color: var(--ax-plum); outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23855A75' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center/14px; }
.ax-search:focus { border-color: var(--ax-plum-3); }

/* tables: grey header row, thin dividers, numbers right */
.ax-tw { overflow-x: auto; }
.ax-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ax-table th { text-align: left; font: 600 12px/1.2 var(--ax-sans); color: var(--ax-plum-2); background: #FAF3EE; padding: 10px 12px; border-bottom: 1px solid var(--ax-line); white-space: nowrap; }
.ax-table td { padding: 11px 12px; border-bottom: 1px solid var(--ax-line-2); vertical-align: middle; }
.ax-table tr:last-child td { border-bottom: 0; }
.ax-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-table tbody tr.ax-row { cursor: pointer; }
.ax-table tbody tr.ax-row:hover { background: #FFFBF4; }
.ax-table tfoot td { font-weight: 600; background: #FAF3EE; border-top: 1px solid var(--ax-line); }
@media (max-width: 760px) {
  .ax-table--cards thead { display: none; }
  .ax-table--cards, .ax-table--cards tbody, .ax-table--cards tr, .ax-table--cards td { display: block; width: 100%; }
  .ax-table--cards tr { border-bottom: 1px solid var(--ax-line-2); padding: 10px 14px; }
  .ax-table--cards td { border: 0; padding: 3px 0; display: flex; gap: 10px; align-items: center; }
  .ax-table--cards td::before { content: attr(data-l); flex: 0 0 96px; font: 600 11.5px/1.2 var(--ax-sans); color: var(--ax-plum-3); }
  .ax-table--cards td.ax-tdmain::before { display: none; }
  .ax-table--cards td.ax-tdmain { font-weight: 600; }
  .ax-table--cards .r { text-align: left; }
}

/* forms */
.ax-field { margin: 0 0 14px; min-width: 0; }
.ax-input, .ax-select, .ax-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ax-line); border-radius: 12px; background: var(--ax-white); font: 400 14px/1.45 var(--ax-sans); color: var(--ax-plum); outline: none; }
.ax-input:focus, .ax-select:focus, .ax-textarea:focus { border-color: var(--ax-plum-3); box-shadow: 0 0 0 3px rgba(255, 201, 219, .55); }
.ax-textarea { min-height: 78px; resize: vertical; }
.ax-hint { font-size: 12.5px; color: var(--ax-plum-3); margin: 5px 0 0; }
.ax-req::after { content: ' *'; color: #B53A62; }

/* the four steps: Plan, Share, Run, Analyse */
.ax-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; list-style: none; padding: 0; }
.ax-step { border: 1px solid var(--ax-line); border-radius: 14px; padding: 10px 12px; background: var(--ax-white); min-width: 0; }
.ax-step b { display: block; font: 600 13px/1.25 var(--ax-sans); }
.ax-step span { display: block; font-size: 12px; color: var(--ax-plum-3); margin-top: 2px; overflow-wrap: anywhere; }
.ax-step--done { background: #F7FBEA; border-color: rgba(120, 150, 40, .35); }
.ax-step--now { border-color: var(--ax-plum); box-shadow: inset 0 0 0 1px var(--ax-plum); }
@media (max-width: 760px) { .ax-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* key numbers */
.ax-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ax-kpi { border: 1px solid var(--ax-line); border-radius: 14px; padding: 12px 14px; background: var(--ax-white); min-width: 0; }
.ax-kpi b { display: block; font: 600 20px/1.15 var(--ax-sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ax-kpi span { display: block; font-size: 12px; color: var(--ax-plum-3); margin-top: 3px; }
.ax-kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ax-plum-2); }
.ax-kv b { color: var(--ax-plum); font-weight: 600; }

/* notes, empty states, why list */
.ax-note { border: 1px solid var(--ax-line); border-left: 3px solid var(--ax-lilac); border-radius: 12px; padding: 11px 14px; background: var(--ax-white); font-size: 13.5px; }
.ax-note--warn { border-left-color: var(--ax-butter); background: #FFFBEC; }
.ax-note--bad { border-left-color: var(--ax-melon); background: #FFF3F6; }
.ax-note--good { border-left-color: var(--ax-lime); background: #F7FBEA; }
.ax-note b { font-weight: 600; }
.ax-empty { text-align: center; padding: 34px 18px; color: var(--ax-plum-3); font-size: 14px; }
.ax-why { display: grid; gap: 10px; }
.ax-why > div { border-top: 1px solid var(--ax-line-2); padding-top: 10px; }
.ax-why > div:first-child { border-top: 0; padding-top: 0; }
.ax-why b { display: block; font: 600 13px/1.3 var(--ax-sans); margin-bottom: 2px; }
.ax-why p { margin: 0; color: var(--ax-plum-2); font-size: 13.5px; }
.ax-pre { white-space: pre-wrap; font: 400 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #FBF6F1; border: 1px solid var(--ax-line-2); border-radius: 12px; padding: 12px; margin: 0; max-height: 260px; overflow: auto; }
.ax-aud { border: 1px solid var(--ax-line); border-radius: 14px; padding: 12px 14px; background: var(--ax-white); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.ax-aud[aria-pressed="true"] { border-color: var(--ax-plum); box-shadow: inset 0 0 0 1px var(--ax-plum); background: #FFF7FA; }
.ax-aud b { font-weight: 600; }
.ax-skel { background: linear-gradient(90deg, #F3E9E4 25%, #FBF5F0 50%, #F3E9E4 75%); background-size: 200% 100%; animation: axsh 1.3s linear infinite; border-radius: 8px; }
@keyframes axsh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ax-skel { animation: none; } }

/* dialog + toast */
.ax-scrim { position: fixed; inset: 0; background: rgba(42, 13, 31, .42); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ax-dialog { background: var(--ax-white); border-radius: 20px; width: 100%; max-width: 460px; padding: 20px 22px; border: 1.5px solid var(--ax-plum); box-shadow: 4px 4px 0 var(--ax-plum); max-height: calc(100vh - 32px); overflow: auto; }
.ax-dialog h2 { margin: 0 0 6px; font: 600 18px/1.3 var(--ax-sans); }
.ax-dialog .ax-actions { justify-content: flex-end; margin-top: 16px; }
.ax-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(16px); background: var(--ax-plum); color: var(--ax-cream); padding: 10px 18px; border-radius: 999px; font: 500 13.5px var(--ax-sans);
  opacity: 0; pointer-events: none; transition: .2s; z-index: 9500; max-width: calc(100vw - 32px); text-align: center; }
.ax-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ax-hide { display: none !important; }
.ax-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
