/* Paid Ads page only. */
.a-center { text-align: center; }
.a-page { padding-top: 1px; }
.a-page .s-head { margin-bottom: 18px; }

.a-hero { height: 800px; background: radial-gradient(ellipse at 24% 60%, rgba(135, 40, 212, .65), transparent 48%), linear-gradient(165deg, #12041f, #220a39 60%, #170628); }
.a-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(190, 130, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 130, 255, .07) 1px, transparent 1px); background-size: 46px 46px; }
.a-hero .hero-copy { top: 186px; width: 480px; }
.a-hero .eyebrow { font-size: 21px; }
.a-hero .hero-copy h1 { font-size: 47px; }
.a-hero .lead { width: 440px; margin-bottom: 28px; }
.a-actions { display: flex; align-items: center; gap: 16px; }
.a-actions .btn { height: 56px; }
.a-ghost { display: grid; place-items: center; height: 56px; padding: 0 24px; border-radius: 99px; font-size: 14px; border: 1.5px solid rgba(220, 180, 255, .5); transition: background .25s; }
.a-ghost:hover { background: rgba(170, 100, 235, .25); }
.a-room.hero-art { top: 140px; }
.a-screen { position: absolute; padding: 14px 16px; border-radius: 18px; background: rgba(25, 6, 44, .94); border: 1px solid rgba(195, 135, 245, .4); box-shadow: 0 26px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(150, 60, 230, .28); }
.a-screen p { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e0cbf5; }
.a-screen em { margin-right: auto; padding: 0 8px; border-radius: 99px; font-size: 10px; font-style: normal; color: #6b3d00; background: #ffe7b8; }
.a-radar { left: 40px; top: 10px; width: 280px; height: 345px; }
.a-radar > p { justify-content: center; margin-top: 10px; }
.a-dial { position: relative; width: 230px; height: 230px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #3b0f66, #17042a 72%); }
.a-dial i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; border: 1px solid rgba(200, 145, 255, .35); border-radius: 50%; }
.a-dial i:nth-child(1) { width: 66px; height: 66px; } .a-dial i:nth-child(2) { width: 134px; height: 134px; } .a-dial i:nth-child(3) { width: 202px; height: 202px; }
.a-dial b { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(205, 130, 255, .75), transparent 75deg); }
.anim .a-dial b { animation: spin 4s linear infinite; }
.a-dial u { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.a-dial .p1 { top: 62px; left: 138px; } .a-dial .p2 { top: 144px; left: 70px; } .a-dial .p3 { top: 150px; left: 166px; }
.anim .a-dial u { animation: a-ping 4s ease-in-out infinite; }
.anim .a-dial .p2 { animation-delay: -1.4s; } .anim .a-dial .p3 { animation-delay: -2.7s; }
@keyframes a-ping { 20% { scale: 1.6; } 55% { opacity: .3; } }
.a-radar ul { display: flex; justify-content: center; gap: 8px; margin-top: 12px; list-style: none; }
.a-radar li { padding: 3px 14px; border-radius: 99px; font-size: 11.5px; background: rgba(170, 90, 235, .3); }
.a-trend { left: 340px; top: 34px; width: 300px; height: 168px; }
.a-trend svg { width: 100%; height: 105px; margin-top: 12px; }
.a-trend .area { fill: rgba(165, 70, 230, .3); }
.a-trend .line { fill: none; stroke: #d58cff; stroke-width: 3.5; vector-effect: non-scaling-stroke; }
.anim .a-trend .line { stroke-dasharray: 100; animation: a-draw 3.6s ease-in-out infinite alternate; }
@keyframes a-draw { from { stroke-dashoffset: 100; } 70%, to { stroke-dashoffset: 0; } }
.a-live { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; }
.anim .a-live { animation: c-blink 1.2s steps(1) infinite; }
@keyframes c-blink { 50% { opacity: .2; } }
.a-meters { left: 340px; top: 222px; width: 300px; height: 160px; }
.a-meters > div { height: 11px; margin-top: 11px; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.a-meters i { display: block; height: 100%; width: calc(92% - var(--i) * 15%); border-radius: 9px; background: linear-gradient(90deg, #7b25c4, #d58cff); }
.anim .a-meters i { animation: a-meter 2.8s ease-in-out calc(var(--i) * .16s) infinite alternate; transform-origin: right; }
@keyframes a-meter { from { transform: scaleX(.45); } }
.a-badge { position: absolute; z-index: 3; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 18px; border: 1px solid rgba(235, 205, 255, .65); background: linear-gradient(140deg, #b970fa, #5c1da0); box-shadow: 0 0 28px rgba(171, 85, 246, .65); }
.a-badge svg { width: 38px; height: 38px; }
.a-badge.b1 { left: 6px; top: 345px; } .a-badge.b2 { left: 288px; top: 366px; } .a-badge.b3 { left: 585px; top: 362px; }
.anim .a-badge { animation: pop .8s cubic-bezier(.3, 1.7, .5, 1) backwards, float 5s ease-in-out infinite; }
.anim .a-badge.b1 { animation-delay: 1s, 1.8s; } .anim .a-badge.b2 { animation-delay: 1.2s, 2.4s; } .anim .a-badge.b3 { animation-delay: 1.4s, 3s; }
.anim .a-screen { animation: a-in .9s cubic-bezier(.2, .9, .25, 1) .3s backwards; }
.anim .a-trend { animation-delay: .5s; } .anim .a-meters { animation-delay: .7s; }
@keyframes a-in { from { opacity: 0; translate: 0 60px; scale: .9; } }

/* ===== Ad previews ===== */
.a-preview { padding: 62px 0 56px; }
.a-lab { display: grid; grid-template-columns: 370px 1fr; gap: 26px; margin: 0 40px; }
.a-controls { padding: 24px; border-radius: 26px; background: #fff; box-shadow: 0 20px 44px rgba(80, 25, 135, .14); }
.a-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 24px; }
.a-tabs button { height: 46px; border-radius: 13px; cursor: pointer; font: 600 12.5px Alexandria, sans-serif; color: var(--ink); background: #f6f1fc; border: 1.5px solid #e4d5f2; }
.a-tabs button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.a-controls label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.a-controls input { width: 100%; height: 50px; padding: 0 15px; border-radius: 13px; border: 1.5px solid #e0d1ef; background: #faf7fd; color: var(--ink); font: 400 14px Alexandria, sans-serif; }
.a-controls input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 34, 184, .14); }
.a-count { margin: 6px 0 22px; font-size: 11px; color: #7d6592; }
.a-solid { width: 100%; height: 54px; color: #fff; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.a-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 520px; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #6a1b9a, #26083f 72%); }
.a-ad { position: relative; display: flex; flex-direction: column; width: min(320px, calc(100% - 28px)); overflow: hidden; border-radius: 22px; color: #1f1f28; background: #fff; box-shadow: 0 30px 50px rgba(0, 0, 0, .45); }
.anim .a-ad.swap, .anim .a-explain.swap { animation: a-swap .4s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes a-swap { from { opacity: .2; scale: .9; } }
.d-top { display: flex; align-items: center; gap: 9px; padding: 11px 14px; }
.d-top span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #6a1b9a; }
.d-top svg { width: 19px; height: 19px; }
.d-top b { font-size: 12.5px; }
.d-top small { margin-right: auto; font-size: 10.5px; color: #6b6b76; }
.d-media { position: relative; display: grid; place-items: center; height: 260px; overflow: hidden; padding: 20px; background: linear-gradient(140deg, #8b35d6, #2b0a49); }
.d-media i { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); }
.d-media i:nth-child(1) { width: 150px; height: 150px; left: -40px; top: -40px; } .d-media i:nth-child(2) { width: 230px; height: 230px; right: -80px; bottom: -90px; border-width: 26px; } .d-media i:nth-child(3) { width: 60px; height: 60px; left: 40px; bottom: 30px; background: rgba(255, 209, 102, .85); border: 0; }
.anim .d-media i { animation: float 5s ease-in-out infinite; }
.d-media h4 { position: relative; max-width: 100%; font-size: 25px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; color: #fff; }
.d-text { padding: 12px 15px 4px; }
.d-text h5 { display: none; }
.d-text p { font-size: 12px; line-height: 2; }
.d-cta { margin: 10px 14px 16px; padding: 10px; border-radius: 11px; text-align: center; font-size: 12.5px; font-weight: 600; color: #fff; background: #6a1b9a; }
.a-ad[data-kind="vertical"], .a-ad[data-kind="story"] { width: min(266px, calc(100% - 44px)); height: 470px; color: #fff; background: #2b0a49; }
.a-ad[data-kind="vertical"] .d-media, .a-ad[data-kind="story"] .d-media { position: absolute; inset: 0; height: auto; }
.a-ad[data-kind="vertical"] .d-top, .a-ad[data-kind="story"] .d-top { position: relative; z-index: 1; }
.a-ad[data-kind="vertical"] .d-top small, .a-ad[data-kind="story"] .d-top small { color: #e6d3f8; }
.a-ad[data-kind="vertical"] .d-text, .a-ad[data-kind="story"] .d-text { position: relative; z-index: 1; margin-top: auto; }
.a-ad[data-kind="vertical"] .d-cta, .a-ad[data-kind="story"] .d-cta { position: relative; z-index: 1; color: #2b0a49; background: #fff; }
.a-ad[data-kind="story"] .d-media { background: linear-gradient(160deg, #d2577f, #4a1275 70%); }
.a-ad[data-kind="story"]::before { content: ""; position: absolute; z-index: 2; top: 6px; right: 12px; left: 12px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, .35) 40%, #fff 40%); }
.a-ad[data-kind="search"] { width: min(460px, calc(100% - 20px)); padding: 6px 8px; }
.a-ad[data-kind="search"] .d-media { display: none; }
.a-ad[data-kind="search"] .d-text h5 { display: block; margin-bottom: 4px; font-size: 18px; line-height: 1.7; color: #1a4fb4; overflow-wrap: anywhere; }
.a-ad[data-kind="search"] .d-cta { align-self: flex-start; padding: 8px 22px; }

/* ===== Funnel ===== */
.a-funnel-section { padding: 56px 0 60px; color: #fff; background: radial-gradient(ellipse at 14% 40%, rgba(142, 48, 214, .65), transparent 45%), linear-gradient(110deg, #3a0f63, #1f0834 55%, #2a0846); }
.a-funnel-section .section-tag { color: #c687f5; }
.a-funnel-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; padding: 0 63px; }
.a-funnel { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-funnel button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; width: calc(100% - var(--i) * 13%); height: 72px; padding: 0 34px; text-align: right; cursor: pointer; font-family: Alexandria, sans-serif; color: #fff; background: linear-gradient(90deg, #8b35d6, #4d1285); border: 0; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); transition: filter .25s, scale .25s; }
.a-funnel button:hover { filter: brightness(1.2); }
.a-funnel button[aria-pressed="true"] { scale: 1.05; background: linear-gradient(90deg, #d04be0, #7b25c4); }
.a-funnel svg { width: 30px; height: 30px; }
.a-funnel b { font-size: 16px; }
.a-funnel span { font: 700 20px Alexandria, sans-serif; }
.a-explain { min-height: 280px; padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(210, 165, 255, .3); }
.a-step { font-size: 11.5px; color: #d9a8ff; }
.a-explain h3 { margin: 4px 0 10px; font-size: 24px; }
.a-explain p { font-size: 13.5px; line-height: 2.1; }
.a-explain small { display: block; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid rgba(210, 165, 255, .3); font-size: 11.5px; font-weight: 600; color: #d9a8ff; }

/* ===== Dashboard ===== */
.a-dash-section { padding: 58px 0 20px; }
.a-dash { margin: 0 40px; padding: 24px; border-radius: 28px; background: #fff; box-shadow: 0 22px 50px rgba(80, 25, 135, .15); }
.a-periods { display: flex; gap: 8px; margin-bottom: 18px; }
.a-periods button { height: 38px; padding: 0 20px; border-radius: 99px; cursor: pointer; font: 600 12.5px Alexandria, sans-serif; color: var(--ink); background: #fff; border: 1.5px solid #dcc6f0; }
.a-periods button[aria-pressed="true"] { color: #fff; background: #3b0f4f; border-color: #3b0f4f; }
.a-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; list-style: none; }
.a-kpis li { padding: 14px; text-align: center; border-radius: 16px; background: #f6f1fc; }
.a-kpis b { display: block; font-size: 24px; font-weight: 800; color: var(--violet); }
.a-kpis small { font-size: 12px; color: #55346f; }
.a-charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.a-charts figure { padding: 16px; border-radius: 18px; border: 1px solid #eadff5; }
.a-charts figcaption { margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.a-columns { display: flex; gap: 12px; height: 180px; }
.a-columns div { display: flex; flex: 1; align-items: flex-end; }
.a-columns i { width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(#c97bff, #6a1b9a); }
.a-split { list-style: none; }
.a-split li { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 19px; font-size: 12px; }
.a-split div { height: 12px; overflow: hidden; border-radius: 9px; background: #f1e9f9; }
.a-split i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #6a1b9a, #c97bff); }
.anim .a-charts:not(.play) i { visibility: hidden; }
.anim .a-charts.play .a-columns i { animation: a-col .6s cubic-bezier(.2, .8, .3, 1.15) calc(var(--i) * .09s) backwards; }
.anim .a-charts.play .a-split i { animation: a-bar .6s cubic-bezier(.2, .8, .3, 1.15) calc(var(--i) * .09s) backwards; }
@keyframes a-col { from { height: 0; } }
@keyframes a-bar { from { width: 0; } }

@media (max-width: 899px) {
  .a-hero { height: auto; padding-bottom: 30px; }
  .a-hero .hero-copy { top: auto; width: auto; padding-top: 6px; }
  .a-hero .eyebrow { font-size: 15px; }
  .a-hero .hero-copy h1 { font-size: clamp(28px, 8.4vw, 46px); }
  .a-hero .lead { width: auto; margin-bottom: 20px; }
  .a-actions { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .a-actions .btn, .a-ghost { height: 48px; font-size: 13px; }
  .a-room.hero-art { top: 0; margin-top: 26px; }
  .a-preview { padding: 42px 0 34px; }
  .a-lab { grid-template-columns: minmax(0, 1fr); margin: 0 14px; gap: 14px; }
  .a-controls { padding: 16px; }
  .a-controls input { font-size: 16px; }
  .a-stage { min-height: 520px; }
  .a-funnel-section { padding: 42px 0; }
  .a-funnel-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 16px; }
  .a-funnel button { width: calc(100% - var(--i) * 7%); height: 62px; padding: 0 24px; gap: 8px; grid-template-columns: 26px 1fr auto; }
  .a-funnel button[aria-pressed="true"] { scale: 1.02; } /* the widest bar must stay inside the screen */
  .a-funnel svg { width: 22px; height: 22px; }
  .a-funnel b { font-size: 13px; } .a-funnel span { font-size: 15px; }
  .a-dash-section { padding: 42px 0 10px; }
  .a-dash { margin: 0 12px; padding: 12px; }
  .a-periods { justify-content: center; }
  .a-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .a-kpis b { font-size: 19px; }
  .a-charts { grid-template-columns: minmax(0, 1fr); }
  .a-columns { gap: 6px; height: 150px; }
}

.a-page .s-head { margin-bottom: 32px; }
