/* AIB Digital v2 theme: bridge for the pages that keep their older markup.
   Loaded after site.css and core.css. It repaints the older layouts in the new theme:
   the dark night background with the aurora showing through, DM Sans for reading, big
   Bricolage headlines, lime pill buttons, glass cards and the v2 header and footer.
   Layout (grids, spacing inside components) still comes from site.css. */

/* ---------- tokens: the older variable names, given the v2 palette ---------- */
:root[data-theme="dark"]{
  --bg:#05070e; --bg-2:#0a0f1e;
  --ring-0:rgba(255,255,255,.045); --ring-1:rgba(255,255,255,.03); --ring-2:rgba(255,255,255,.07); --ring-3:rgba(255,255,255,.12); --ring-4:rgba(255,255,255,.18);
  --fg:#f4f6fb; --fg-2:#aeb7cc; --fg-3:#7d88a3;
  --accent:#d4ff4f; --accent-2:#7d9bff; --accent-deep:#bdf02f;
  --accent-glow:rgba(212,255,79,.22); --accent-tint:rgba(212,255,79,.1); --accent-line:rgba(212,255,79,.34); --on-accent:#0b1020;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.16); --line-3:rgba(255,255,255,.3);
  --glass:rgba(15,22,41,.78);
  --ink:#0a0f1e; --ink-2:#0f1629; --ink-3:#141c33; --ink-4:#1c2541;
  --ink-fg:#f4f6fb; --ink-fg-2:#aeb7cc; --ink-fg-3:#7d88a3; --ink-line:rgba(255,255,255,.08); --ink-line-2:rgba(255,255,255,.16); --ink-accent:#d4ff4f; --ink-ochre:#7d9bff;
  --panel:#0a0f1e; --blue-text:#7d9bff; --code-bg:#0a0f1e;
  --sans:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --display:"Bricolage Grotesque","Space Grotesk",system-ui,sans-serif;
  --mono:"JetBrains Mono","Space Mono",ui-monospace,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
  --sh-1:none; --sh-2:0 30px 60px -30px rgba(0,0,0,.8); --sh-3:0 50px 120px -30px rgba(0,0,0,.9);
  --sh-hard:none; --sh-hard-lg:none;
  --max:1280px;
}
html{background:#05070e; scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
body.legacy{background:transparent; color:var(--fg-2); font:400 17px/1.65 var(--sans); overflow-x:clip}
body.legacy ::selection{background:#d4ff4f; color:#0b1020}
.legacy main{padding-top:calc(var(--head) + 14px)}
.legacy .wrap{max-width:calc(1280px + var(--gutter)*2)}

/* the old per-section glows and grids give way to the page-wide aurora */
.legacy .field, .legacy .glow, .legacy main .grain{display:none}
.legacy main > section, .legacy main > section.ink, .legacy main > section.panel, .legacy .sec.alt, .legacy .ink{background:transparent}
.legacy main > section.panel, .legacy .sec.alt, .legacy main > section.sec + .sec.panel{background:rgba(10,15,30,.55); border-block:1px solid var(--line)}
.legacy .sec + .sec:not(.ink):not(.alt){border-top:1px solid var(--line)}

/* ---------- type ---------- */
.legacy h1,.legacy h2,.legacy h3,.legacy h4{font-family:var(--display); color:var(--fg); letter-spacing:-.03em}
.legacy .sec h2, .legacy .ph h1 + .lede + h2{font-size:clamp(34px,4.6vw,66px); font-weight:700; letter-spacing:-.045em; line-height:.98; max-width:18ch}
.legacy h3{font-weight:600}
.legacy .lede{color:var(--fg-2); font-size:clamp(17px,1.45vw,21px); line-height:1.6}
.legacy .sec .intro{color:var(--fg-2)}
.legacy a:not(.btn):not([class]){text-decoration-color:rgba(212,255,79,.5)}

/* page hero: big type like the redesigned pages */
.legacy .ph{position:relative; padding:clamp(70px,9vw,130px) 0 clamp(60px,7vw,100px); overflow:hidden}
.legacy .ph::before{content:""; position:absolute; inset:0; pointer-events:none; z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:72px 72px; -webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%); mask-image:radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%)}
.legacy .ph h1, .legacy .pp-hero h1, .legacy .page-hero h1{font-size:clamp(46px,6.6vw,104px); font-weight:700; letter-spacing:-.05em; line-height:.94; max-width:15ch; color:var(--fg)}
.legacy .art-h1{font-size:clamp(38px,5vw,72px) !important; max-width:22ch !important}
.legacy .ph .lede{color:var(--fg-2)}
.legacy .crumbs{font:500 13px var(--mono); letter-spacing:0; text-transform:none; color:var(--fg-3)}
.legacy .crumbs a{color:var(--fg-2)} .legacy .crumbs a:hover{color:#d4ff4f}
.legacy .crumbs i{background:var(--fg-3)}

/* eyebrow -> the v2 pill label */
.legacy .eyebrow{display:inline-flex; align-items:center; gap:10px; font:500 13px/1 var(--mono); color:var(--fg-2); letter-spacing:.02em; text-transform:none;
  padding:9px 14px 9px 12px; border:1px solid var(--line-2); border-radius:999px; background:rgba(255,255,255,.03); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px)}
.legacy .eyebrow::before{content:"//"; width:auto; height:auto; background:none; color:#d4ff4f; opacity:1}

/* ---------- buttons: lime pill with a white wipe, ghost glass pill ---------- */
.legacy .btn{position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 26px; border-radius:999px; border:1px solid transparent;
  font:600 16px var(--sans); letter-spacing:0; text-decoration:none; overflow:hidden; isolation:isolate; box-shadow:none; transform:none;
  transition:transform .4s var(--ease), background .3s, color .3s, border-color .3s}
.legacy .btn-lg{min-height:58px; padding:0 30px; font-size:16.5px}
.legacy .btn-p, .legacy .ink .btn-p, :root[data-theme="dark"] .legacy .btn-p, .legacy .cband .btn-p, .legacy .btn-primary, .legacy .btn-w{
  background:#d4ff4f !important; color:#0b1020 !important; border:1px solid #d4ff4f !important; box-shadow:0 10px 40px -10px rgba(212,255,79,.5) !important}
.legacy .btn-p::before, .legacy .btn-primary::before, .legacy .btn-w::before{content:""; position:absolute; inset:0; z-index:-1; background:#fff; transform:translateY(101%); transition:transform .5s var(--ease); border-radius:inherit}
.legacy .btn-p:hover, .legacy .btn-primary:hover, .legacy .btn-w:hover, .legacy .cband .btn-p:hover{transform:none !important; box-shadow:0 10px 40px -10px rgba(212,255,79,.6) !important}
.legacy .btn-p:hover::before, .legacy .btn-primary:hover::before, .legacy .btn-w:hover::before{transform:none}
.legacy .btn-s, .legacy .btn-ghost, .legacy .btn-ghost-w{background:rgba(255,255,255,.04) !important; color:var(--fg) !important; border:1px solid var(--line-2) !important; box-shadow:none !important;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px)}
.legacy .btn-s:hover, .legacy .btn-ghost:hover, .legacy .btn-ghost-w:hover{border-color:var(--fg) !important; transform:none !important; box-shadow:none !important}
.legacy .btn:active{transform:translateY(1px) !important}
.legacy .btn svg{transition:transform .5s var(--ease)}
.legacy .btn:hover svg{transform:rotate(-45deg)}

/* ---------- cards: glass ---------- */
.legacy :is(.cb, .plans article, .formcard, .callout, .note, .faq .qa, .prod, .lead-card, .paycard, .lic, .mate, .feed, .fc, .blog-card, .pp-buy, .toc, .table-wrap, .legal > div, .seg, .svc, .chips > *){
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border:1px solid var(--line); box-shadow:none;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px)}
.legacy :is(.cb, .plans article, .formcard, .prod, .lead-card, .paycard, .lic, .blog-card, .pp-buy){border-radius:26px}
.legacy .plans article:hover, .legacy .prod:hover, .legacy .blog-card:hover{border-color:rgba(212,255,79,.45); box-shadow:none; transform:translateY(-4px)}
.legacy .plans article.best, .legacy .cb.hot, .legacy .lic.best{border-color:rgba(212,255,79,.5); background:linear-gradient(180deg, rgba(212,255,79,.09), rgba(255,255,255,.02))}
.legacy .plans article.best::before{background:radial-gradient(circle,rgba(58,99,255,.4),transparent 70%)}
.legacy .plans .best .flag, .legacy .lic .flag{background:rgba(212,255,79,.12); border-color:rgba(212,255,79,.4); color:#d4ff4f}
.legacy .plans li::before, .legacy .feat-list li::before{background:rgba(212,255,79,.14); color:#d4ff4f; border-color:transparent}
.legacy .cb.hot{--fg:#f4f6fb; --fg-2:#aeb7cc; --accent:#d4ff4f; color:#f4f6fb}
.legacy .blog-card .k{color:#d4ff4f}
.legacy .blog-card h3{font-weight:600; font-size:19px}
.legacy .blog-card .img img{transition:transform .9s var(--ease)}
.legacy .blog-card:hover .img img{transform:scale(1.06)}

/* FAQ */
.legacy .faq .qa{border-radius:20px}
.legacy .faq .qa.is-open{border-color:rgba(212,255,79,.35); box-shadow:none}
.legacy .faq .qa-q{font-family:var(--display); color:var(--fg); font-weight:600}
.legacy .faq .qa-q:hover{color:#d4ff4f}
.legacy .faq .qa-q .ico{border-color:var(--line-2); color:var(--fg-2)}
.legacy .faq .qa.is-open .qa-q .ico{border-color:#d4ff4f; color:#d4ff4f}

/* forms */
.legacy input:not([type=checkbox]):not([type=radio]), .legacy select, .legacy textarea{background:rgba(255,255,255,.04) !important; color:var(--fg) !important; border:1px solid var(--line-2) !important; border-radius:14px; font-family:var(--sans)}
.legacy input::placeholder, .legacy textarea::placeholder{color:#6c7791}
.legacy input:focus, .legacy select:focus, .legacy textarea:focus{border-color:#d4ff4f !important; outline:none; box-shadow:0 0 0 3px rgba(212,255,79,.15) !important}
.legacy select option{background:#0f1629; color:#f4f6fb}
.legacy label{color:var(--fg-2)}

/* screenshots and frames get the v2 browser frame look */
.legacy .frame{border-radius:18px; border:1px solid var(--line-2); background:#0d1324; box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 50px 120px -30px rgba(0,0,0,.9), 0 30px 140px -40px rgba(58,99,255,.45)}
.legacy .frame .bar{background:#0f1629; border-bottom:1px solid var(--line)}
.legacy .shots img, .legacy .screens img{border-radius:14px; border:1px solid var(--line)}

/* prose (articles, legal) */
.legacy .prose{color:#c3cad9; font-size:18px}
.legacy .prose h2{font-size:clamp(26px,2.8vw,36px); font-weight:700; letter-spacing:-.035em}
.legacy .prose h3{font-size:22px}
.legacy .prose a{color:#d4ff4f; text-decoration-color:rgba(212,255,79,.45)}
.legacy .prose li::marker{color:#d4ff4f}
.legacy .prose blockquote{border-left-color:#d4ff4f}
.legacy .prose code{background:rgba(255,255,255,.06); border-color:var(--line)}
.legacy .prose pre{background:#0a0f1e; border:1px solid var(--line)}
.legacy .prose th{background:rgba(255,255,255,.05)}
.legacy .art-meta a{color:#d4ff4f}

/* the call-to-action band at the end of a page */
.legacy .cband{border-radius:30px; border:1px solid var(--line); background:radial-gradient(600px circle at 80% 0%, rgba(58,99,255,.3), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)) !important}
.legacy .cband-grid{background:none; border:0; border-radius:0}

/* bits of the old site that were tuned for cream paper */
.legacy .mx-role, .legacy .kicker, .legacy .flag{color:#d4ff4f}
.legacy hr{border-color:var(--line)}
.legacy table{color:var(--fg-2)}
.legacy .amt, .legacy .price{color:var(--fg)}

/* reduced motion */
.rm .legacy *, .rm .legacy *::before, .rm .legacy *::after{transition:none !important}

/* ---------- the shared header: undo site.css's own header bar, its mobile panel
   (visibility:hidden until a .open class this header never sets) and its link underlines ---------- */
.legacy .site-head{background:none !important; border:0 !important; box-shadow:none !important; -webkit-backdrop-filter:none; backdrop-filter:none}
.legacy .site-head nav{visibility:visible; overflow:visible}
.legacy .site-head nav a{border-bottom:0}
.legacy .site-head nav a::after{display:none}
@media (max-width:1020px){ .legacy .site-head nav{max-height:calc(100dvh - 100px); overflow-y:auto} }
.legacy .table-wrap{overflow-x:auto; max-width:100%}
.legacy main :not(pre) > code{overflow-wrap:anywhere}
