body { margin: 0; background: #f5f6fb; }
/* =========================================================
   Enterprise AI Integration page (made-in-bd CMS page)
   All rules are scoped to #ai-page so the site's Bootstrap
   and header/footer CSS cannot change this page.
   ========================================================= */

/* full-width page inside the CMS box */
.cms-content-wrapper { max-width: none !important; width: 100% !important; padding: 0 !important; }
.cms-content-wrapper > main { padding-bottom: 0 !important; }
/* the editor adds an empty <p>&nbsp;</p> before/after the page, which leaves a white strip */
.cms-page-content > p:first-child:not([class]) { display: none !important; }
#ai-page ~ p:not([class]) { display: none !important; }

#ai-page {
  --navy: #0b1026;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --glow: #5ee7f7;
  --violet: #a78bfa;
  --amber: #f5a524;
  --paper: #f5f6fb;
  --ink: #141a33;
  --muted: #5a6380;
  --line: #e2e5f0;
  --tint: #eef0ff;
}

#ai-page, #ai-page * { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

#ai-page {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

#ai-page a { color: inherit; text-decoration: none; }
#ai-page button, #ai-page input, #ai-page select, #ai-page textarea { font: inherit; }
#ai-page button, #ai-page a, #ai-page input, #ai-page select, #ai-page textarea { -webkit-tap-highlight-color: transparent; }
#ai-page a:focus-visible, #ai-page button:focus-visible, #ai-page summary:focus-visible, #ai-page input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

#ai-page .wrap { width: min(1160px, calc(100% - 48px)); margin: auto; }

/* ---------- headings & text (beats Bootstrap) ---------- */
#ai-page h1, #ai-page h2, #ai-page h3, #ai-page p { margin-top: 0; }
#ai-page :is(h1, h2, h3) { color: inherit; font-weight: 750; font-family: inherit; }

#ai-page h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -2.2px;
  margin-bottom: 22px;
}
#ai-page h1 .h1-accent {
  background: linear-gradient(90deg, var(--glow), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#ai-page h2 {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.17;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

#ai-page h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.3px; margin-bottom: 10px; }

#ai-page .eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 12px;
}
#ai-page .hero .eyebrow, #ai-page .dark .eyebrow { color: var(--glow); }

#ai-page .muted { color: var(--muted); }
#ai-page .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- buttons ---------- */
#ai-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
  transition: transform .2s, background .2s;
}
#ai-page .btn:hover { transform: translateY(-2px); background: var(--brand-dark); color: #fff; }
#ai-page .btn:focus { box-shadow: none; }
#ai-page .btn.glow { background: var(--glow); color: var(--navy); }
#ai-page .btn.glow:hover { background: #8ff0fa; color: var(--navy); }
#ai-page .btn.ghost { background: transparent; border-color: #5b6488; color: #fff; }
#ai-page .btn.ghost:hover { background: #ffffff12; }
#ai-page .btn.light { background: #fff; color: var(--brand); border-color: var(--line); }
#ai-page .btn.light:hover { background: var(--tint); color: var(--brand-dark); }

/* ---------- top bar ---------- */
#ai-page .topbar { background: #070b1c; color: #d3d8ee; font-size: 14px; font-weight: 600; }
#ai-page .topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 44px;
  min-height: 46px;
  padding: 8px 0;
}
#ai-page .tb-item { display: inline-flex; align-items: center; gap: 9px; line-height: 1.35; }
#ai-page .tb-link { color: #fff; font-weight: 800; }
#ai-page .tb-link:hover { color: var(--glow); }

/* ---------- Font Awesome icons via ::before ---------- */
#ai-page .tb-item::before,
#ai-page .ico::before,
#ai-page .chat-avatar::before,
#ai-page .src::before,
#ai-page .arch-link::before,
#ai-page .side-ico::before,
#ai-page .clean li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
#ai-page .tb-item::before { color: var(--glow); font-size: 15px; width: 18px; text-align: center; }
#ai-page .tb-lock::before { content: "\f023"; }
#ai-page .tb-plug::before { content: "\f1e6"; }
#ai-page .tb-help::before { content: "\f590"; }

#ai-page .ico-leak::before { content: "\f071"; }
#ai-page .ico-maze::before { content: "\f07c"; }
#ai-page .ico-repeat::before { content: "\f363"; }
#ai-page .ico-flask::before { content: "\f0c3"; }
#ai-page .ico-unlink::before { content: "\f127"; }
#ai-page .ico-question::before { content: "\f059"; }
#ai-page .ico-headset::before { content: "\f590"; }
#ai-page .ico-chart::before { content: "\f201"; }
#ai-page .ico-file::before { content: "\f15c"; }
#ai-page .ico-people::before { content: "\f0c0"; }
#ai-page .ico-gauge::before { content: "\f625"; }
#ai-page .ico-code::before { content: "\f121"; }
#ai-page .ico-brain::before { content: "\f5dc"; }
#ai-page .ico-robot::before { content: "\f544"; }
#ai-page .ico-plug::before { content: "\f1e6"; }
#ai-page .ico-server::before { content: "\f233"; }
#ai-page .ico-gov::before { content: "\f24e"; }
#ai-page .ico-shield::before { content: "\f3ed"; }
#ai-page .ico-key::before { content: "\f084"; }
#ai-page .ico-list::before { content: "\f03a"; }
#ai-page .ico-mask::before { content: "\f070"; }
#ai-page .ico-check::before { content: "\f4fc"; }

#ai-page .ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  font-size: 19px;
  margin-bottom: 16px;
}

/* ---------- header ---------- */
#ai-page header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffed;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
#ai-page nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
#ai-page .brand { font-weight: 850; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
#ai-page .brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
}
#ai-page .brand-name { line-height: 1.15; }
#ai-page .brand-sub { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
#ai-page .chat-example { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #0b1026; background: var(--glow); padding: 2px 7px; border-radius: 5px; }
#ai-page .wa-ghost::before { content: "\f232"; font-family: "Font Awesome 6 Brands"; font-weight: 400; font-size: 17px; }
#ai-page .contact-lines p { margin-bottom: 8px; }
#ai-page .contact-lines a { color: var(--brand); font-weight: 700; }
#ai-page .contact-lines a:hover { text-decoration: underline; }
#ai-page .wa-btn { margin-top: 10px; background: #1f9d55; }
#ai-page .wa-btn:hover { background: #17834a; }
#ai-page .wa-btn::before { content: "\f232"; font-family: "Font Awesome 6 Brands"; font-weight: 400; font-size: 18px; }
#ai-page .mini-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 30px; padding: 22px 26px; border-radius: 18px; background: var(--tint); border: 1px solid #d6d9fb; }
#ai-page .mc-text { margin: 0; font-size: 16px; color: var(--ink); max-width: 600px; }
#ai-page .mc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#ai-page .audit-box { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px 36px; align-items: start; margin-top: 26px; padding: 26px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
#ai-page .ab-head h3 { margin-bottom: 6px; }
#ai-page .ab-head p { margin: 0; color: var(--muted); font-size: 15px; }
#ai-page .ab-list { margin: 0; columns: 2; column-gap: 28px; }
#ai-page .ab-list li { break-inside: avoid; margin: 0 0 10px; }
#ai-page section.stack:not(.white) .stack-col { background: #fff; }
#ai-page .hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; font-size: 14px; color: #c4cae3; }
#ai-page .hf { display: inline-flex; align-items: center; gap: 7px; }
#ai-page .hf::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--glow); font-size: 12px; }
#ai-page .report { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px 36px; align-items: center; margin-top: 30px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 34px #141a330a; }
#ai-page .rp-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8f5800; background: #fdf1dc; padding: 4px 9px; border-radius: 6px; margin-bottom: 10px; }
#ai-page .rp-intro h3 { font-size: 21px; }
#ai-page .rp-intro p { color: var(--muted); font-size: 15px; }
#ai-page .rp-note { font-size: 13px !important; font-style: italic; margin: 0; }
#ai-page .rp-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#ai-page .rp-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
#ai-page .rp-row:last-child { border-bottom: 0; }
#ai-page .rp-row:nth-child(even) { background: var(--paper); }
#ai-page .rp-k { color: var(--muted); }
#ai-page .rp-v { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
#ai-page .rp-v.ok { color: #15803d; }
#ai-page .rp-final { background: var(--tint) !important; }
#ai-page .why-card .ico { margin-bottom: 14px; }
#ai-page .inline-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#ai-page .team-note { margin: 28px 0 0; padding: 24px 28px; background: var(--navy); color: #fff; border-radius: 18px; }
#ai-page .team-note p { font-size: 18px; line-height: 1.55; margin: 0 0 10px; color: #e4e7f6; }
#ai-page .team-note cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--glow); }
#ai-page .mini-dark { background: #ffffff0d; border-color: #ffffff24; }
#ai-page .mini-dark .mc-text { color: #e4e7f6; }
@media (max-width: 900px) { #ai-page .report { grid-template-columns: 1fr; } }
@media (max-width: 560px) { #ai-page .report { padding: 20px; } #ai-page .rp-row { font-size: 13.5px; padding: 10px 12px; } }
#ai-page section#faq:not(.white) details { background: #fff; }
@media (max-width: 900px) { #ai-page .audit-box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { #ai-page .ab-list { columns: 1; } #ai-page .mini-cta { padding: 20px; } #ai-page .mc-actions .btn { width: 100%; } }
#ai-page .links { display: flex; gap: 25px; align-items: center; font-size: 14px; font-weight: 600; }
#ai-page .links a:not(.btn):hover { color: var(--brand); }
#ai-page .links .btn { padding: 10px 18px; font-size: 14px; }
#ai-page .menu { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- hero ---------- */
#ai-page .hero {
  background:
    radial-gradient(ellipse at 88% 10%, #3b2a8a 0, transparent 50%),
    radial-gradient(ellipse at 5% 100%, #0e4b63 0, transparent 42%),
    linear-gradient(125deg, #0b1026, #131a3f);
  color: #fff;
  padding: 86px 0 74px;
}
#ai-page .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
#ai-page .hero-text { color: #c4cae3; font-size: 18px; max-width: 640px; }
#ai-page .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
#ai-page .pills { display: flex; gap: 8px; flex-wrap: wrap; }
#ai-page .pill { font-size: 12px; padding: 6px 11px; border: 1px solid #4d5580; border-radius: 30px; color: #dfe3f6; }

/* chat mock */
#ai-page .chat {
  background: #ffffff0b;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 22px 60px #0004;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
#ai-page .chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #ffffff1c; }
#ai-page .chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  font-size: 15px;
  flex: none;
}
#ai-page .chat-avatar::before { content: "\e2ca"; }
#ai-page .chat-name { font-weight: 700; font-size: 15px; }
#ai-page .chat-status { margin-left: auto; font-size: 12px; color: #8ff0c9; display: inline-flex; align-items: center; gap: 6px; }
#ai-page .chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
#ai-page .msg { display: flex; flex-direction: column; gap: 10px; max-width: 92%; }
#ai-page .msg-text { display: block; font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: 14px; }
#ai-page .msg-user { align-self: flex-end; }
#ai-page .msg-user .msg-text { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
#ai-page .msg-ai .msg-text { background: #ffffff12; border: 1px solid #ffffff1f; color: #e6e9f7; border-bottom-left-radius: 4px; }
#ai-page .hl { color: var(--glow); font-weight: 700; }
#ai-page .sources { display: flex; flex-wrap: wrap; gap: 6px; }
#ai-page .src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #5ee7f714;
  border: 1px solid #5ee7f740;
  color: #bdf5fb;
}
#ai-page .src::before { font-size: 10px; }
#ai-page .src-doc::before { content: "\f15c"; }
#ai-page .src-crm::before { content: "\f2bb"; }
#ai-page .src-erp::before { content: "\f1c0"; }
#ai-page .msg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#ai-page .ma { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px; border: 1px solid #ffffff33; color: #e6e9f7; }
#ai-page .ma-ok { background: var(--glow); border-color: var(--glow); color: var(--navy); }
#ai-page .chat-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid #ffffff1c; }
#ai-page .conn-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #8f97bd; font-weight: 700; margin-right: 4px; }
#ai-page .conn { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: #ffffff10; color: #d4d9f1; }

/* ---------- trust strip ---------- */
#ai-page .trust { background: #fff; border-bottom: 1px solid var(--line); }
#ai-page .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
#ai-page .trust-grid > div { padding: 24px 20px; border-right: 1px solid var(--line); }
#ai-page .trust-grid > div:last-child { border-right: 0; }
#ai-page .trust strong { display: block; font-size: 19px; letter-spacing: -.4px; color: var(--navy); }
#ai-page .trust small { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
#ai-page section { padding: 88px 0; }
#ai-page section.white { background: #fff; }
#ai-page section.dark { background: linear-gradient(135deg, #0b1026, #151b45); color: #fff; }
#ai-page .section-head { max-width: 780px; margin-bottom: 40px; }
#ai-page .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
#ai-page .section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
#ai-page .dark .section-head p:not(.eyebrow) { color: #b6bddb; }

#ai-page .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#ai-page .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

#ai-page .card {
  display: block;
  min-width: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 26px;
  box-shadow: 0 5px 20px #141a3305;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
#ai-page .card:hover { transform: translateY(-3px); border-color: #c9c5f7; box-shadow: 0 12px 30px #141a3312; }
#ai-page .card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
#ai-page .white .card { background: var(--paper); }
#ai-page .card.warn .ico { background: #fdf1dc; color: #b86f00; }

#ai-page .split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
#ai-page .split-wide { grid-template-columns: .8fr 1.2fr; }

#ai-page .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 34px #141a330a;
  min-width: 0;
}

#ai-page .clean { list-style: none; padding: 0; margin: 18px 0 24px; }
#ai-page .clean li { position: relative; padding-left: 28px; margin: 9px 0; font-size: 15px; }
#ai-page .clean li::before { content: "\f00c"; position: absolute; left: 0; top: 4px; color: var(--brand); font-size: 14px; }

/* ---------- use-case tabs ---------- */
#ai-page .uc-tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
#ai-page .usecases.js-tabs .uc-tabs { display: flex; }
#ai-page .uc-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
#ai-page .uc-tab:hover { border-color: #c9c5f7; color: var(--brand); }
#ai-page .uc-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
#ai-page .uc-panels { display: grid; gap: 18px; }
#ai-page .usecases.js-tabs .uc-panel { display: none; }
#ai-page .usecases.js-tabs .uc-panel.active { display: grid; }
#ai-page .uc-panel {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
#ai-page .uc-main { padding: 30px; }
#ai-page .uc-main h3 { font-size: 22px; }
#ai-page .uc-main .clean { margin-bottom: 0; }
#ai-page .uc-main .clean li { font-size: 16px; }
#ai-page .uc-impact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  background: linear-gradient(160deg, #141a3f, #0b1026);
  color: #fff;
}
#ai-page .impact-label { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--glow); margin-bottom: 4px; }
#ai-page .impact {
  display: block;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
}

/* ---------- architecture ---------- */
#ai-page .arch { display: grid; grid-template-columns: 1fr 64px; gap: 14px; min-width: 0; }
#ai-page .arch-main { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
#ai-page .layer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
#ai-page .layer-name { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
#ai-page .chips { display: flex; flex-wrap: wrap; gap: 6px; }
#ai-page .chip { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
#ai-page .l-ai { background: linear-gradient(135deg, var(--brand), #7c3aed); border-color: transparent; }
#ai-page .l-ai .layer-name { color: #dcd8ff; }
#ai-page .l-ai .chip { background: #ffffff1f; border-color: #ffffff33; color: #fff; }
#ai-page .l-int { background: var(--tint); border-color: #d6d9fb; }
#ai-page .l-int .layer-name { color: var(--brand); }
#ai-page .l-data { background: #0b1026; border-color: #0b1026; }
#ai-page .l-data .layer-name { color: var(--glow); }
#ai-page .l-data .chip { background: #ffffff12; border-color: #ffffff26; color: #e4e7f6; }
#ai-page .arch-link { display: block; text-align: center; color: #a3a9c6; font-size: 14px; padding: 5px 0; }
#ai-page .arch-link::before { content: "\f07d"; }
#ai-page .arch-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  background: #fdf1dc;
  border: 1px solid #f6d9a6;
  color: #8f5800;
  padding: 14px 6px;
}
#ai-page .side-ico { font-size: 18px; }
#ai-page .side-ico::before { content: "\f3ed"; }
#ai-page .side-text { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 14px; letter-spacing: .5px; }
#ai-page .side-sub { display: none; font-size: 13px; }

/* ---------- process ---------- */
#ai-page .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#ai-page .step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 22px; }
#ai-page .step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--glow);
  font-weight: 800;
}
#ai-page .step-body { display: flex; flex-direction: column; min-width: 0; }
#ai-page .step-body strong { font-size: 17px; margin-bottom: 4px; }
#ai-page .step-text { color: var(--muted); font-size: 15px; line-height: 1.5; }
#ai-page .step-time { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .8px; }

/* ---------- security ---------- */
#ai-page .sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#ai-page .sec { display: flex; gap: 14px; background: #ffffff0b; border: 1px solid #ffffff1f; border-radius: 16px; padding: 20px; }
#ai-page .sec .ico { margin: 0; background: #5ee7f71c; color: var(--glow); width: 42px; height: 42px; font-size: 17px; }
#ai-page .sec-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
#ai-page .sec-text small { display: block; color: #aeb5d3; font-size: 14px; line-height: 1.5; }

/* ---------- ROI calculator ---------- */
#ai-page .roi { background: linear-gradient(180deg, var(--paper), #eceefe); }
#ai-page .roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
#ai-page .ro { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
#ai-page .ro-wide { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); }
#ai-page .ro-num { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--brand); line-height: 1.2; }
#ai-page .ro-wide .ro-num { color: var(--glow); font-size: 36px; }
#ai-page .ro-label { font-size: 13px; color: var(--muted); font-weight: 600; }
#ai-page .ro-wide .ro-label { color: #b6bddb; }
#ai-page .roi-form { display: flex; flex-direction: column; gap: 18px; }
#ai-page .rf-val { color: var(--brand); }
#ai-page input[type=range] { width: 100%; accent-color: var(--brand); padding: 0; border: 0; }

/* ---------- tech stack ---------- */
#ai-page .stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#ai-page .stack-col { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
#ai-page .stack-head { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; color: var(--brand); }
#ai-page .tags { display: flex; flex-wrap: wrap; gap: 8px; }
#ai-page .t { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--ink); }

/* ---------- pricing ---------- */
#ai-page .plan { display: flex; flex-direction: column; }
#ai-page .plan .clean { flex: 1; }
#ai-page .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
#ai-page .price { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--navy); line-height: 1.2; }
#ai-page .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
#ai-page .plan.featured { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 18px 44px #0b102633; }
#ai-page .plan.featured .tag { color: var(--glow); }
#ai-page .plan.featured .price { color: #fff; }
#ai-page .plan.featured .price small { color: #a2a9c9; }
#ai-page .plan.featured .clean li { color: #d8dcf0; }
#ai-page .plan.featured .clean li::before { color: var(--glow); }

/* ---------- FAQ ---------- */
#ai-page .split:has(.faq) { align-items: start; }
#ai-page .faq { display: flex; flex-direction: column; gap: 10px; }
#ai-page details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
#ai-page summary { cursor: pointer; list-style: none; font-weight: 700; padding: 17px 30px 17px 0; position: relative; }
#ai-page summary::-webkit-details-marker { display: none; }
#ai-page summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--brand); font-weight: 600; }
#ai-page details[open] summary::after { content: "\2212"; }
#ai-page details p { color: var(--muted); font-size: 15px; padding-bottom: 18px; margin: 0; }

/* ---------- forms ---------- */
#ai-page .email-link { color: var(--brand); font-weight: 700; }
#ai-page .email-link:hover { text-decoration: underline; }
#ai-page .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#ai-page .fields .full { grid-column: 1 / -1; }
#ai-page label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
#ai-page input:not([type=range]), #ai-page select, #ai-page textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd3e3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
#ai-page input:not([type=range]):focus, #ai-page select:focus, #ai-page textarea:focus {
  outline: 2px solid #4f46e555;
  border-color: var(--brand);
}
#ai-page textarea { min-height: 125px; resize: vertical; }

/* ---------- page footer ---------- */
#ai-page footer { background: #070b1c; color: #b6bddb; padding: 36px 0; }
#ai-page footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
#ai-page footer a { color: var(--glow); }
#ai-page .page-foot a:hover { text-decoration: underline; }

/* =========================================================
   More products (after the page footer, max 4 cards)
   ========================================================= */
#ai-page .moreproducts { background: var(--paper); padding: 72px 0 40px; border-top: 1px solid var(--line); }
#ai-page .mp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
#ai-page .mp-head h2 { margin: 0; }
#ai-page .mp-all { color: var(--brand); font-weight: 700; font-size: 15px; white-space: nowrap; }
#ai-page .mp-all:hover { text-decoration: underline; }
#ai-page .mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#ai-page .mp-grid > :nth-child(n+5) { display: none; }
#ai-page .mp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 5px 20px #141a3305;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
#ai-page .mp-card:hover { transform: translateY(-4px); border-color: #c9c5f7; box-shadow: 0 12px 32px #141a3314; }
#ai-page .mp-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #eef0f6;
  border-bottom: 1px solid var(--line);
}
#ai-page .mp-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
#ai-page .mp-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
#ai-page .mp-title { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); margin-bottom: 8px; }
#ai-page .mp-text { font-size: 14px; color: var(--muted); flex: 1; }
#ai-page .mp-link { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1050px) {
  #ai-page .grid-4, #ai-page .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ai-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  #ai-page .links {
    display: none;
    position: absolute;
    top: 76px;
    left: -24px;
    right: -24px;
    background: #fff;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px #141a3314;
  }
  #ai-page .links.open { display: flex; }
  #ai-page .menu { display: block; }
  #ai-page .hero-grid, #ai-page .split, #ai-page .split-wide { grid-template-columns: 1fr; gap: 32px; }
  #ai-page .grid, #ai-page .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ai-page .stack-grid { grid-template-columns: 1fr; }
  #ai-page .hero { padding: 60px 0; }
  #ai-page .trust-grid { grid-template-columns: repeat(2, 1fr); }
  #ai-page .trust-grid > div:nth-child(2) { border-right: 0; }
  #ai-page .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  #ai-page section { padding: 68px 0; }
  #ai-page .uc-panel, #ai-page .usecases.js-tabs .uc-panel.active { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  #ai-page .topbar { font-size: 13px; }
  #ai-page .topbar .wrap { gap: 6px 22px; }
  #ai-page .tb-hide-sm { display: none; }
  #ai-page .moreproducts { padding: 56px 0 32px; }
  #ai-page .mp-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* security bar moves under the layers */
  #ai-page .arch { grid-template-columns: 1fr; }
  #ai-page .arch-side { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 14px 16px; gap: 6px 10px; }
  #ai-page .side-text { writing-mode: horizontal-tb; transform: none; }
  #ai-page .side-sub { display: block; width: 100%; }
  /* tabs scroll sideways instead of wrapping into many rows */
  #ai-page .usecases.js-tabs .uc-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; scrollbar-width: none; }
  #ai-page .uc-tab { flex: none; }
}

@media (max-width: 560px) {
  #ai-page .wrap { width: calc(100% - 32px); }
  #ai-page .links { left: -16px; right: -16px; }
  #ai-page section { padding: 54px 0; }
  #ai-page .grid, #ai-page .grid-4, #ai-page .fields, #ai-page .steps, #ai-page .sec-grid, #ai-page .mp-grid { grid-template-columns: 1fr; }
  #ai-page .card, #ai-page .panel { padding: 21px; }
  #ai-page .uc-main, #ai-page .uc-impact { padding: 22px; }
  #ai-page h1 { letter-spacing: -1.4px; }
  #ai-page .trust strong { font-size: 17px; }
  #ai-page .trust-grid > div { padding: 18px 12px; }
  #ai-page .actions .btn { width: 100%; }
  #ai-page .chat { padding: 16px; }
  #ai-page .msg { max-width: 100%; }
  #ai-page .chat-status { display: none; }
  #ai-page .ro-num { font-size: 24px; }
  #ai-page .ro-wide .ro-num { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #ai-page, #ai-page * { transition: none !important; }
}
