:root {
  --bg: #17151a;
  --panel: #201d24;
  --line: #35313b;
  --ink: #ffffff;
  --ink-soft: #a89fa8;
  --brand: #8f1d3c;
  --gold: #e0a83f;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}
header.top {
  /* Mirrors .layout's grid so the mission column starts exactly at the stage's left edge */
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px; align-items: center;
  padding: 22px 28px 4px;
}
@media (max-width: 980px) { header.top { grid-template-columns: 1fr; } }
header.top h1 {
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 26px;
  line-height: 1.2; letter-spacing: .04em; margin: 0; text-transform: uppercase;
}
header.top h1 span { color: var(--gold); }
header.top .mission {
  margin: 0; color: #ffffff; font-size: 15px; line-height: 1.6;
}
.customize-intro {
  margin: 0 0 12px; color: #ffffff; font-size: 14.5px; line-height: 1.5;
}

.layout {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px; padding: 18px 28px 40px; align-items: start;
}
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px;
}
.panel h2 {
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 18px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 12px;
}
.panel + .panel { margin-top: 16px; }

.knob { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.knob:last-child { border-bottom: 0; }
.knob label { color: #ffffff; font-size: 14px; }
.knob input[type="color"] {
  width: 52px; height: 30px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; padding: 2px; cursor: pointer;
}
.knob input[type="range"] { width: 130px; accent-color: var(--brand); }
.knob input[type="text"] {
  width: 190px; background: #17151a; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); padding: 6px 9px; font-family: inherit; font-size: 14px;
}
.knob .val { font-size: 12px; color: #ffffff; min-width: 34px; text-align: right; }

.stagectl { display: flex; align-items: center; gap: 8px; }
.stagectl button {
  width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--line); cursor: pointer;
}
.stagectl button.active { border-color: var(--gold); }

.invite p { margin: 0 0 12px; color: #ffffff; font-size: 14px; line-height: 1.5; }
.invite-field { margin-bottom: 8px; }
.invite-field input {
  width: 100%; background: #17151a; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); padding: 9px 11px; font-family: inherit; font-size: 14px;
}
.invite-field input::placeholder { color: var(--ink-soft); }
.invite-field input:focus { outline: none; border-color: var(--gold); }
.invite button {
  border: 0; border-radius: 8px; background: var(--brand); color: #fff;
  font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .05em;
  padding: 11px 22px; cursor: pointer; font-size: 15px;
}
.invite button:hover { filter: brightness(1.15); }
.invite .invite-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; }

.stage {
  border-radius: 12px; border: 1px solid var(--line);
  padding: 28px clamp(16px, 3vw, 48px) 40px; min-height: 700px;
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(20px, 3vw, 40px); flex-wrap: wrap;
  background: #8d8d8d; transition: background .25s;
  position: sticky; top: 18px;
}
.stage .mountwrap { width: min(480px, 100%); }

/* ---- ATXFlowIQ live-agent panel (opens from the yellow banner) ---- */
.agent-wrap { display: none; width: min(440px, 100%); }
body.agent-open .agent-wrap { display: block; }
.agent-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 8px 8px 8px 14px;
  background: rgba(15, 13, 17, 0.78); border-radius: 8px;
  border-left: 4px solid #f5c33b;
  color: #fff; font-family: Oswald, sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
}
.agent-head button {
  border: 0; background: transparent; color: #fff; font-size: 22px;
  line-height: 1; cursor: pointer; padding: 2px 8px;
}
.agent-head button:hover { color: #f5c33b; }

/* ---- yellow side banner ---- */
.agent-banner {
  position: fixed; right: 0; top: 30%; z-index: 60;
  background: #f5c33b; color: #241c06; border: 0; cursor: pointer;
  border-radius: 16px 0 0 16px; padding: 24px 26px 24px 28px;
  text-align: left; font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: -8px 10px 28px rgba(0, 0, 0, 0.4);
  transform-origin: top right;
  animation: ab-dangle 7s ease-in-out infinite;
  transition: transform .2s ease, background .2s;
}
.agent-banner:hover { animation: none; transform: translateX(-6px); background: #ffd04f; }
.ab-main { display: block; font-weight: 700; font-size: 18px; line-height: 1.4; }
.ab-sub { display: block; margin-top: 14px; font-weight: 500; font-size: 15.5px; line-height: 1.4; }
@keyframes ab-dangle {
  0%, 84%, 100% { transform: rotate(0deg); }
  87% { transform: rotate(-2.6deg); }
  90% { transform: rotate(1.8deg); }
  93% { transform: rotate(-1.1deg); }
  96% { transform: rotate(0.5deg); }
}
@media (max-width: 980px) {
  .agent-banner { top: auto; bottom: 14px; padding: 14px 18px; }
  .ab-main { font-size: 14px; }
  .ab-sub { font-size: 12.5px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-banner { animation: none; }
}

/* ---- ATXFlowIQ site chrome: header/footer matching the main site ---- */
.container {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: 16px; padding-right: 16px;
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  background-color: #eadcc3;
  background-image:
    linear-gradient(rgba(234, 220, 195, 0.84), rgba(234, 220, 195, 0.84)),
    url("/color-assets/c6_sand_candle2.jpeg");
  background-position: center;
  background-size: auto, 95px auto;
  background-repeat: repeat;
  backdrop-filter: blur(12px);
}
.topbar-inner { min-height: 72px; display: flex; align-items: center; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand-icon {
  width: 42px; height: 34px; position: relative; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg width='64' height='50' viewBox='0 0 64 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='25' y='2' width='14' height='14' rx='2' stroke='%23d10c0c' stroke-width='4'/%3E%3Cpath d='M32 16V23' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M32 22L42 32L32 42L22 32L32 22Z' fill='%23d10c0c'/%3E%3Cpath d='M22 32H14C10.7 32 8 34.7 8 38V42' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M42 32H50C53.3 32 56 34.7 56 38V42' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='44' r='6' fill='%23d10c0c'/%3E%3Crect x='50' y='38' width='12' height='12' rx='2' fill='%23d10c0c'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand-text { display: inline-flex; align-items: baseline; line-height: 1; }
.brand-atx, .brand-flow, .brand-iq { font-size: 2rem; font-weight: 800; letter-spacing: 0; }
.brand-atx { color: #111111; }
.brand-flow {
  color: #3b7889;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 -2px 0 rgba(22, 67, 76, 0.34),
    1px 2px 0 rgba(95, 80, 58, 0.22),
    0 4px 6px rgba(20, 58, 66, 0.22);
}
.brand-iq { color: #d10c0c; }
.services-menu { position: relative; margin-left: auto; color: #173f41; }
.services-menu > summary { list-style: none; }
.services-menu > summary::-webkit-details-marker { display: none; }
.services-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 4px 2px 2px;
  border-bottom: 2px solid transparent; color: #173f41;
  cursor: pointer; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 180ms ease, color 180ms ease;
}
.services-trigger:hover,
.services-menu[open] > .services-trigger,
.services-menu.is-current > .services-trigger {
  border-bottom-color: #d10c0c; color: #a50909;
}
.services-trigger:focus-visible {
  outline: 3px solid rgba(59, 120, 137, 0.28);
  outline-offset: 5px; border-radius: 2px;
}
.services-chevron {
  width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 180ms ease;
}
.services-menu[open] .services-chevron,
.services-menu:hover .services-chevron,
.services-menu:focus-within .services-chevron {
  transform: translateY(3px) rotate(225deg);
}
.services-menu::after {
  content: ""; position: absolute; top: 100%; right: 0;
  width: 100%; height: 14px;
}
.services-dropdown {
  position: absolute; top: calc(100% + 11px); right: 0;
  width: 340px; padding: 10px; visibility: hidden;
  border: 1px solid rgba(59, 120, 137, 0.2);
  border-top: 3px solid #3b7889; border-radius: 5px 5px 12px 12px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.97)),
    url("/color-assets/c6_sand_candle2.jpeg");
  background-size: auto, 95px auto;
  box-shadow: 0 18px 38px rgba(23, 63, 65, 0.17), 0 4px 10px rgba(91, 67, 36, 0.08);
  opacity: 0; transform: translateY(-7px); pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.services-menu[open] .services-dropdown,
.services-menu:hover .services-dropdown,
.services-menu:focus-within .services-dropdown {
  visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto;
}
.services-dropdown-label {
  margin: 3px 10px 8px; color: #a06e23;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.service-link {
  position: relative; display: block; padding: 11px 13px;
  border-radius: 7px; color: inherit; text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.service-link + .service-link {
  border-top: 1px solid rgba(23, 63, 65, 0.1);
  border-top-left-radius: 0; border-top-right-radius: 0;
}
.service-link:hover,
.service-link:focus-visible,
.service-link.is-current {
  background: rgba(59, 120, 137, 0.09); color: #0f5155;
  transform: translateX(2px);
}
.service-link:focus-visible {
  outline: 2px solid rgba(59, 120, 137, 0.4); outline-offset: -2px;
}
.service-link.is-current::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 3px;
  width: 3px; border-radius: 2px; background: #d10c0c;
}
.service-link-title, .service-link-copy { display: block; }
.service-link-title {
  color: #183f41; font-size: 0.91rem; font-weight: 700; letter-spacing: -0.01em;
}
.service-link-copy {
  margin-top: 3px; color: #66706f; font-size: 0.76rem; line-height: 1.4;
}
@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1180px); }
  .brand-atx, .brand-flow, .brand-iq { font-size: 1.4rem; }
  .brandmark { gap: 7px; }
  .brand-icon { width: 34px; height: 28px; }
  .topbar-inner { min-height: 62px; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .services-trigger { min-height: 38px; font-size: 0.86rem; }
  .services-dropdown { width: min(340px, calc(100vw - 24px)); }
}
.footer { border-top: 1px solid #35313b; background: #ffffff; margin-top: 8px; }
.footer-inner {
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap;
  color: #667085; font-size: 0.875rem;
}
.footer-copyright { color: inherit; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.875rem; }
.footer-links a { color: #667085; text-decoration: none; }
.footer-links a:hover, .footer-copyright:hover { color: #111111; }
.demo-note {
  margin: 0 0 14px; padding: 10px 14px;
  border-left: 4px solid var(--gold); border-radius: 6px;
  background: rgba(15, 13, 17, 0.78); color: #ffffff;
  font-size: 13px; line-height: 1.5;
}
.demo-note b { color: var(--gold); }
.stage .caption { text-align: center; font-size: 12.5px; margin-top: 14px; }
.stage[data-tone="dark"] .caption { color: #b7b2ba; }
.stage[data-tone="light"] .caption, .stage[data-tone="gray"] .caption { color: #33303a; }
