/* AQTERON REDESIGN V1 — unified public visual system */
:root {
  color-scheme: light;
  --aq-bg: #f2f5f1;
  --aq-paper: #fbfcfa;
  --aq-surface: #ffffff;
  --aq-ink: #10201b;
  --aq-ink-soft: #40524b;
  --aq-muted: #718079;
  --aq-line: #d7e0db;
  --aq-line-strong: #b7c7bf;
  --aq-brand: #0d766c;
  --aq-brand-strong: #075b54;
  --aq-brand-soft: #dceee8;
  --aq-blue: #2c5f79;
  --aq-blue-soft: #dfeaf0;
  --aq-lime: #bfdf61;
  --aq-amber: #d7a24a;
  --aq-red: #b64b3d;
  --aq-night: #0d1c18;
  --aq-shadow-sm: 0 1px 2px rgba(16,32,27,.06), 0 8px 22px rgba(16,32,27,.04);
  --aq-shadow-md: 0 14px 36px rgba(16,32,27,.09);
  --aq-shadow-lg: 0 24px 70px rgba(16,32,27,.14);
  --aq-radius-sm: 10px;
  --aq-radius: 18px;
  --aq-radius-lg: 30px;
  --aq-content: 1220px;
  --aq-ease: cubic-bezier(.2,.8,.2,1);
  --bg: var(--aq-bg);
  --surface: var(--aq-surface);
  --ink: var(--aq-ink);
  --muted: var(--aq-muted);
  --line: var(--aq-line);
  --blue: var(--aq-brand);
  --blue-dark: var(--aq-brand-strong);
  --soft-blue: var(--aq-brand-soft);
  --shadow: var(--aq-shadow-sm);
}

html { scroll-behavior: smooth; }
body,
body.aq-public-shell {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 93% 4%, rgba(13,118,108,.08), transparent 27rem),
    var(--aq-bg);
  color: var(--aq-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.aq-public-shell::before { display: none !important; }
body.aq-public-shell main { min-height: calc(100vh - 160px); }
body.aq-public-shell a { color: inherit; }
body.aq-public-shell button,
body.aq-public-shell input,
body.aq-public-shell select { font: inherit; }

.aq-home-shell { width: min(calc(100% - 40px), var(--aq-content)); margin: 0 auto; }
.eyebrow,
.aq-public-shell .eyebrow {
  margin: 0 0 17px;
  color: var(--aq-brand);
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Header */
.aq-public-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 74px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--aq-content)) / 2));
  border: 0;
  border-bottom: 1px solid rgba(183,199,191,.58);
  background: rgba(242,245,241,.88);
  backdrop-filter: blur(18px) saturate(1.2);
}
.aq-public-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 790;
  letter-spacing: -.025em;
}
.aq-public-shell .brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  overflow: hidden;
  border-radius: 11px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 5px 16px rgba(16,32,27,.16);
}
.aq-public-shell .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.aq-public-shell .topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--aq-ink-soft);
  font-size: 14px;
  font-weight: 650;
}
.aq-public-shell .topnav > a:not(.button) { position: relative; padding: 10px 0; }
.aq-public-shell .topnav > a:not(.button)::after {
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--aq-brand);
  content: "";
  transition: right .22s var(--aq-ease);
}
.aq-public-shell .topnav > a:not(.button):hover::after,
.aq-public-shell .topnav > a[aria-current="page"]::after { right: 0; }
.aq-public-shell .language-switcher,
.aq-public-shell .language-pill {
  min-width: 118px !important;
  min-height: 44px !important;
  border: 1px solid var(--aq-line) !important;
  border-radius: 12px !important;
  background-color: rgba(255,255,255,.74) !important;
  color: var(--aq-ink-soft) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
.aq-public-shell .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--aq-line-strong);
  border-radius: 12px;
  padding: 0 17px;
  background: rgba(255,255,255,.72);
  color: var(--aq-ink);
  font-size: 14px;
  font-weight: 730;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s var(--aq-ease), box-shadow .18s, background .18s, border-color .18s;
}
.aq-public-shell .button:hover { transform: translateY(-1px); box-shadow: var(--aq-shadow-sm); }
.aq-public-shell .button.primary {
  border-color: var(--aq-brand);
  background: var(--aq-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13,118,108,.22);
}
.aq-public-shell .button.primary:hover { border-color: var(--aq-brand-strong); background: var(--aq-brand-strong); }
.aq-public-shell .button.danger { border-color: #e5b7b0; color: var(--aq-red); background: #fff8f7; }
.logout-notice { width: min(calc(100% - 40px), var(--aq-content)); margin: 12px auto 0; }

/* Home hero */
.aq-home-hero { position: relative; overflow: hidden; padding: 76px 0 72px; }
.aq-home-hero::before {
  position: absolute;
  top: -390px;
  right: -250px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,118,108,.16), rgba(13,118,108,0) 67%);
  content: "";
  pointer-events: none;
}
.aq-home-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,.94fr) minmax(520px,1.06fr); gap: 72px; align-items: center; }
.aq-home-hero__copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px,5.3vw,78px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 760;
}
.aq-home-hero__copy h1 em { color: var(--aq-brand); font-style: normal; }
.aq-home-hero__lead { max-width: 620px; margin: 26px 0 0; color: var(--aq-ink-soft); font-size: 19px; line-height: 1.58; }
.aq-public-shell .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; max-width: 620px; margin-top: 31px; }
.aq-public-shell .hero-actions .button { width: 100%; min-height: 50px; padding-inline: 21px; font-size: 14px; }
.aq-home-hero__primary-action { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; max-width: 100%; }
.aq-home-hero__action-hint { display: grid; width: 100%; margin: 0; color: #91a9aa; font-size: 12px; line-height: 1.45; }
.aq-home-hero__action-hint > span { grid-area: 1 / 1; }
.aq-copy-feedback__sizer { visibility: hidden; pointer-events: none; user-select: none; }
.aq-home-hero__action-hint[data-copy-feedback-state="success"] [data-copy-feedback-message] { color: #9ee8bc; font-weight: 700; }
.aq-home-hero__action-hint[data-copy-feedback-state="error"] [data-copy-feedback-message] { color: #ffc4c0; font-weight: 700; }
.aq-role-note { display: flex; align-items: flex-start; gap: 12px; max-width: 620px; margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--aq-line); color: var(--aq-muted); font-size: 13px; }
.aq-role-note p { margin: 0; }
.aq-role-note__icon { flex: 0 0 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--aq-brand-soft); color: var(--aq-brand); }
.aq-role-note__icon svg { width: 18px; height: 18px; }

/* Product preview */
.aq-product-stage { position: relative; min-height: 540px; }
.aq-product-stage__backdrop { position: absolute; inset: 42px 30px 16px; border-radius: 48px; background: linear-gradient(145deg,#dcebe5 0%,#eef2ec 46%,#dce7ea 100%); transform: rotate(1.6deg); }
.aq-product-window { position: absolute; z-index: 2; inset: 0 0 40px 36px; overflow: hidden; border: 1px solid rgba(16,32,27,.14); border-radius: 26px; background: var(--aq-surface); box-shadow: var(--aq-shadow-lg); }
.aq-product-window__bar { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 17px; border-bottom: 1px solid var(--aq-line); background: #f7f9f6; }
.aq-product-window__bar > i { width: 8px; height: 8px; border-radius: 50%; background: #c4cec9; }
.aq-product-window__bar > span { height: 28px; flex: 1; display: flex; align-items: center; margin-left: 12px; padding: 0 12px; border: 1px solid #e0e7e3; border-radius: 9px; color: #85928c; font-size: 11px; }
.aq-product-window__body { display: grid; grid-template-columns: 142px minmax(0,1fr); min-height: 450px; }
.aq-product-sidebar { padding: 22px 15px; border-right: 1px solid var(--aq-line); background: #f7f9f6; }
.aq-product-sidebar__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 12px; font-weight: 800; }
.aq-product-sidebar__brand b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: var(--aq-night); color: #38bdf8; }
.aq-product-sidebar nav { display: grid; gap: 7px; }
.aq-product-sidebar nav span { min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 9px; color: #68766f; font-size: 10px; font-weight: 680; }
.aq-product-sidebar nav span.is-active { background: var(--aq-brand-soft); color: var(--aq-brand-strong); }
.aq-product-sidebar nav svg { width: 14px; height: 14px; }
.aq-product-sidebar nav i { font-style: normal; }
.aq-product-content { padding: 25px; background: #fbfcfa; }
.aq-product-content__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.aq-product-content__heading small { color: var(--aq-muted); font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.aq-product-content__heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.aq-product-content__heading > span { min-height: 34px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 9px; background: var(--aq-brand); color: white; font-size: 9px; font-weight: 800; }
.aq-product-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 19px; }
.aq-product-metrics article { padding: 12px; border: 1px solid var(--aq-line); border-radius: 12px; background: white; }
.aq-product-metrics small { color: var(--aq-muted); font-size: 8px; }
.aq-product-metrics b { display: block; margin-top: 3px; font-size: 17px; }
.aq-product-app-card { position: relative; margin-top: 13px; padding: 15px; border: 1px solid var(--aq-line); border-radius: 15px; background: white; box-shadow: 0 8px 20px rgba(16,32,27,.04); }
.aq-product-app-card__head { display: flex; align-items: center; gap: 11px; }
.aq-product-app-card__icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#d7eee7,#e5eef3); color: var(--aq-brand); font-weight: 850; }
.aq-product-app-card h3 { margin: 0; font-size: 12px; }
.aq-product-app-card p { margin: 2px 0 0; color: var(--aq-muted); font-size: 8px; }
.aq-product-status { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: #e2f3e8; color: #176a45; font-size: 7px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.aq-product-status--ready { background: #eef2dd; color: #607425; }
.aq-product-lifecycle { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 14px; }
.aq-product-lifecycle i { height: 5px; border-radius: 99px; background: #e1e7e3; }
.aq-product-lifecycle i.is-done { background: var(--aq-brand); }
.aq-product-lifecycle i.is-live { background: var(--aq-lime); }
.aq-product-actions { display: flex; gap: 7px; margin-top: 13px; }
.aq-product-actions span { min-height: 26px; display: flex; align-items: center; padding: 0 9px; border: 1px solid var(--aq-line); border-radius: 8px; color: var(--aq-ink-soft); font-size: 8px; font-weight: 750; }
.aq-product-actions span:first-child { border-color: var(--aq-night); background: var(--aq-night); color: white; }
.aq-package-float,
.aq-validation-float { position: absolute; z-index: 4; border: 1px solid rgba(16,32,27,.13); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); box-shadow: 0 18px 42px rgba(16,32,27,.16); }
.aq-package-float { bottom: 18px; left: 0; width: 210px; padding: 15px; border-radius: 16px; }
.aq-package-float > small { color: var(--aq-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.aq-package-float > div { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.aq-package-float > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--aq-blue-soft); color: var(--aq-blue); font-size: 9px; font-weight: 850; }
.aq-package-float p { margin: 0; }
.aq-package-float b { display: block; font-size: 11px; }
.aq-package-float i { display: block; color: var(--aq-muted); font-size: 8px; font-style: normal; }
.aq-validation-float { right: -10px; bottom: 0; width: 245px; padding: 17px; border-radius: 18px; }
.aq-validation-float__head { display: flex; align-items: center; gap: 10px; }
.aq-validation-float__head > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--aq-brand-soft); color: var(--aq-brand); }
.aq-validation-float h3 { margin: 0; font-size: 12px; }
.aq-validation-float p { margin: 1px 0 0; color: var(--aq-muted); font-size: 9px; }
.aq-validation-float ul { display: grid; gap: 6px; margin: 13px 0 0; padding: 0; list-style: none; }
.aq-validation-float li { display: flex; justify-content: space-between; gap: 10px; color: var(--aq-muted); font-size: 8px; }
.aq-validation-float li b { color: var(--aq-brand); }

/* Proof / sections */
.aq-proof-strip { border-block: 1px solid var(--aq-line); background: rgba(251,252,250,.7); }
.aq-proof-grid { min-height: 84px; display: grid; grid-template-columns: 1.45fr repeat(3,1fr); align-items: center; gap: 20px; }
.aq-proof-grid > strong { font-size: 13px; }
.aq-proof-grid > span { min-height: 38px; display: flex; align-items: center; gap: 10px; color: var(--aq-ink-soft); font-size: 12px; font-weight: 650; }
.aq-proof-grid > span::before { display: none; }
.aq-proof-grid svg { width: 18px; height: 18px; color: var(--aq-brand); }
.aq-home-section { padding: 86px 0; }
.aq-home-section--alt { border-block: 1px solid var(--aq-line); background: #e9eee9; }
.aq-section-heading { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 70px; align-items: end; margin-bottom: 38px; }
.aq-section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(36px,4vw,54px); line-height: 1.03; letter-spacing: -.047em; }
.aq-section-heading > p { margin: 0; color: var(--aq-ink-soft); font-size: 17px; line-height: 1.6; }
.aq-path-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.aq-path-grid article { position: relative; min-height: 250px; padding: 24px; overflow: hidden; border: 1px solid var(--aq-line); border-radius: 18px; background: var(--aq-surface); box-shadow: var(--aq-shadow-sm); }
.aq-path-grid article > span { color: #9aa7a1; font-size: 11px; font-weight: 820; letter-spacing: .11em; }
.aq-path-grid article > i { width: 48px; height: 48px; display: grid; place-items: center; margin: 35px 0 20px; border-radius: 14px; background: var(--aq-brand-soft); color: var(--aq-brand); }
.aq-path-grid article > i svg { width: 23px; height: 23px; }
.aq-path-grid h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.aq-path-grid p { margin: 10px 0 0; color: var(--aq-muted); font-size: 14px; line-height: 1.55; }
.aq-home-section__action { display: flex; justify-content: flex-end; margin-top: 24px; }
.aq-capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.aq-capability-grid > article { min-height: 335px; padding: 22px; border: 1px solid var(--aq-line); border-radius: 20px; background: var(--aq-surface); }
.aq-capability-grid h3 { margin: 22px 0 0; font-size: 21px; }
.aq-capability-grid p { margin: 9px 0 0; color: var(--aq-muted); font-size: 14px; line-height: 1.55; }
.aq-capability-grid a { display: inline-flex; margin-top: 18px; color: var(--aq-brand); font-size: 13px; font-weight: 760; }
.aq-capability-visual { height: 155px; overflow: hidden; border-radius: 15px; background: linear-gradient(145deg,#dae9e3,#eef1eb); }
.aq-capability-visual--records { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; padding: 23px; }
.aq-capability-visual--records i { border: 1px solid rgba(13,118,108,.16); border-radius: 11px; background: rgba(255,255,255,.78); }
.aq-capability-visual--mobile { display: grid; place-items: center; }
.aq-capability-visual--mobile > span { width: 72px; height: 128px; display: grid; align-content: center; gap: 8px; padding: 10px; border: 3px solid var(--aq-night); border-radius: 18px; background: white; }
.aq-capability-visual--mobile i { height: 18px; border-radius: 6px; background: var(--aq-brand-soft); }
.aq-capability-visual--versions { position: relative; display: grid; place-items: center; }
.aq-capability-visual--versions span { position: absolute; width: 150px; height: 70px; border: 1px solid var(--aq-line); border-radius: 13px; background: white; box-shadow: var(--aq-shadow-sm); }
.aq-capability-visual--versions span:nth-child(1) { transform: translate(-25px,-22px) rotate(-4deg); opacity: .65; }
.aq-capability-visual--versions span:nth-child(2) { transform: translate(14px,-5px) rotate(2deg); opacity: .82; }
.aq-capability-visual--versions span:nth-child(3) { transform: translate(0,20px); border-color: rgba(13,118,108,.32); }
.aq-final-cta { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; padding: 48px; border-radius: 28px; background: var(--aq-night); color: white; box-shadow: var(--aq-shadow-lg); }
.aq-final-cta h2 { max-width: 750px; margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.03; letter-spacing: -.045em; }
.aq-final-cta p:not(.eyebrow) { max-width: 720px; margin: 15px 0 0; color: #b8c5bf; }
.aq-final-cta .button { border-color: #dce6e1; background: #fff; color: var(--aq-night); }
.aq-site-footer { border-top: 1px solid var(--aq-line); background: #e7ece7; }
.aq-site-footer > div { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--aq-muted); font-size: 13px; }
.aq-site-footer p { margin: 0; }
.aq-site-footer nav { display: flex; gap: 24px; }

/* How it works */
.aq-how-main { min-height: 70vh; }
.aq-page-hero { padding: 78px 0 48px; text-align: center; }
.aq-page-hero h1 { max-width: 940px; margin: 0 auto; font-size: clamp(46px,5.5vw,72px); line-height: .99; letter-spacing: -.06em; }
.aq-page-hero > p:last-child { max-width: 760px; margin: 24px auto 0; color: var(--aq-ink-soft); font-size: 19px; line-height: 1.6; }
.aq-role-map { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: stretch; padding-bottom: 70px; }
.aq-role-map article { padding: 30px; border: 1px solid var(--aq-line); border-radius: 22px; background: var(--aq-surface); box-shadow: var(--aq-shadow-sm); }
.aq-role-map__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 17px; background: var(--aq-brand-soft); color: var(--aq-brand); }
.aq-role-map__icon svg { width: 27px; height: 27px; }
.aq-role-map h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.aq-role-map article > p:last-child { margin: 13px 0 0; color: var(--aq-muted); }
.aq-role-transfer { display: grid; place-items: center; }
.aq-role-transfer span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--aq-line-strong); border-radius: 50%; background: var(--aq-paper); color: var(--aq-brand); font-size: 22px; }
.aq-journey-section { padding: 80px 0; border-block: 1px solid var(--aq-line); background: #e9eee9; }
.aq-journey-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.aq-journey-list li { display: grid; grid-template-columns: 62px minmax(0,1fr) 220px; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--aq-line); border-radius: 19px; background: var(--aq-surface); }
.aq-journey-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--aq-night); color: white; font-size: 13px; font-weight: 850; }
.aq-journey-list h3 { margin: 0; font-size: 22px; }
.aq-journey-list li > div > p:last-child { margin: 8px 0 0; color: var(--aq-muted); font-size: 14px; }
.aq-journey-list aside { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 15px; background: var(--aq-brand-soft); color: var(--aq-brand-strong); }
.aq-journey-list aside i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.72); color: var(--aq-brand); }
.aq-journey-list aside b { font-size: 12px; }
.aq-result-band { padding: 78px 0; background: var(--aq-night); color: white; }
.aq-result-band__grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 70px; align-items: center; }
.aq-result-band h2 { max-width: 760px; margin: 0; font-size: clamp(38px,4.4vw,58px); line-height: 1.02; letter-spacing: -.05em; }
.aq-result-band p:not(.eyebrow) { max-width: 730px; color: #b8c5bf; }
.aq-result-band .button:not(.primary) { border-color: #53645d; background: transparent; color: white; }
.aq-result-visual { display: flex; align-items: center; justify-content: center; gap: 12px; }
.aq-result-visual > span { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #365149; border-radius: 19px; background: #172b25; color: #70c8b8; }
.aq-result-visual > i { width: 26px; height: 2px; background: #4a655c; }

/* Documentation, prompt, install and error routes */
.aq-documentation-page main,
body[data-page="standard-prompt"] main,
.install-guide-main,
body[data-page="error"] main {
  width: min(calc(100% - 40px), 1050px);
  margin: 0 auto;
  padding: 68px 0 90px;
}
.aq-documentation-view,
body[data-page="standard-prompt"] .hero,
.install-guide-hero {
  margin: 0 0 34px;
  padding: 0;
  text-align: left;
  background: transparent;
}
.aq-documentation-view .aq-page-header,
body[data-page="standard-prompt"] .hero,
.install-guide-hero {
  padding: 34px;
  border: 1px solid var(--aq-line);
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--aq-shadow-sm);
}
.aq-documentation-view .aq-page-header h1,
body[data-page="standard-prompt"] .hero h1,
.install-guide-hero h1 {
  margin: 0;
  font-size: clamp(38px,4.8vw,62px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.aq-documentation-view .aq-page-header > p:last-child,
body[data-page="standard-prompt"] .hero > p:last-child,
.install-guide-hero > p:last-child { max-width: 780px; margin: 18px 0 0; color: var(--aq-ink-soft); font-size: 17px; }
.aq-documentation-view .aq-content-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 16px; margin-top: 22px; }
.aq-documentation-view .aq-content-grid > section,
.aq-documentation-view .aq-information-panel,
.aq-documentation-view .aq-process-list > li,
.aq-disclosure-list details,
.prompt-block,
.install-link-card,
.install-guide-section,
.install-unavailable {
  border: 1px solid var(--aq-line);
  border-radius: 18px;
  background: var(--aq-surface);
  box-shadow: var(--aq-shadow-sm);
}
.aq-documentation-view .aq-content-grid > section { padding: 26px; }
.aq-documentation-view h2 { margin-top: 0; }
.aq-check-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.aq-check-list li { position: relative; padding-left: 28px; color: var(--aq-ink-soft); }
.aq-check-list li::before { position: absolute; left: 0; top: 2px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 7px; background: var(--aq-brand-soft); color: var(--aq-brand); font-weight: 850; content: "✓"; }
.aq-documentation-view .aq-process-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: docs-step; }
.aq-documentation-view .aq-process-list > li { min-height: 170px; padding: 24px; }
.aq-documentation-view .aq-process-list > li:last-child { grid-column: 1 / -1; min-height: auto; }
.aq-documentation-view .aq-process-list h2 { font-size: 20px; }
.aq-documentation-view .aq-process-list p { color: var(--aq-muted); }
.aq-disclosure-list { display: grid; gap: 11px; margin-top: 24px; }
.aq-disclosure-list details { padding: 0 22px; }
.aq-disclosure-list summary { padding: 20px 0; font-weight: 760; cursor: pointer; }
.aq-disclosure-list details p { margin: -4px 0 20px; color: var(--aq-muted); }
.aq-documentation-view .aq-action-bar,
body[data-page="standard-prompt"] .aq-action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.prompt-block { padding: 24px; overflow: hidden; }
.prompt-block pre,
.aq-code-block pre { max-height: 520px; overflow: auto; margin: 0; padding: 22px; border-radius: 14px; background: var(--aq-night); color: #e8f2ed; font-size: 13px; line-height: 1.6; }
.install-guide-main { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; align-items: start; }
.install-guide-hero { grid-column: 1 / -1; }
.install-link-card { position: sticky; top: 98px; padding: 22px; }
.install-guide-section { padding: 26px; }
.install-unavailable { padding: 22px; }

/* Responsive navigation support */
.aq-public-shell .aq-mobile-nav-toggle { border-color: var(--aq-line) !important; border-radius: 12px !important; background: rgba(255,255,255,.74) !important; color: var(--aq-ink) !important; }
.aq-public-shell .aq-mobile-navigation-panel { background: var(--aq-paper) !important; color: var(--aq-ink) !important; }

@media (max-width: 1180px) {
  .aq-home-hero__grid { grid-template-columns: 1fr; gap: 55px; }
  .aq-home-hero__copy { text-align: center; }
  .aq-home-hero__copy h1,
  .aq-home-hero__lead,
  .aq-role-note { margin-left: auto; margin-right: auto; }
  .aq-public-shell .hero-actions { justify-content: center; }
  .aq-role-note { text-align: left; }
  .aq-product-stage { width: min(100%,700px); margin: 0 auto; }
  .aq-proof-grid { grid-template-columns: 1fr 1fr; padding-block: 20px; }
  .aq-path-grid { grid-template-columns: 1fr 1fr; }
  .aq-capability-grid { grid-template-columns: 1fr; }
  .aq-capability-grid > article { display: grid; grid-template-columns: 280px minmax(0,1fr); column-gap: 28px; min-height: 210px; }
  .aq-capability-visual { grid-row: 1 / span 4; height: 100%; min-height: 165px; }
}

@media (max-width: 900px) {
  .aq-public-shell .aq-home-hero .hero-actions { grid-template-columns: minmax(0,1fr); }
  .aq-public-shell .topbar { padding: 0 18px; }
  .aq-section-heading { grid-template-columns: 1fr; gap: 16px; }
  .aq-role-map { grid-template-columns: 1fr; gap: 14px; }
  .aq-role-transfer { height: 40px; }
  .aq-role-transfer span { transform: rotate(90deg); }
  .aq-journey-list li { grid-template-columns: 56px minmax(0,1fr); }
  .aq-journey-list aside { grid-column: 1 / -1; }
  .aq-result-band__grid { grid-template-columns: 1fr; }
  .aq-result-visual { justify-content: flex-start; }
  .install-guide-main { grid-template-columns: 1fr; }
  .install-link-card { position: static; }
}

@media (max-width: 680px) {
  .aq-home-shell { width: min(calc(100% - 28px), var(--aq-content)); }
  .aq-public-shell .topbar { min-height: 66px; }
  .aq-public-shell .brand { font-size: 18px; }
  .aq-public-shell .brand-mark { width: 32px; height: 32px; }
  .aq-home-hero { padding: 44px 0 54px; }
  .aq-home-hero__grid { gap: 42px; }
  .aq-home-hero__copy h1 { font-size: clamp(42px,13vw,58px); }
  .aq-home-hero__lead { font-size: 17px; }
  .aq-public-shell .hero-actions { flex-direction: column; }
  .aq-public-shell .hero-actions .button { width: 100%; }
  .aq-role-note { font-size: 12px; }
  .aq-product-stage { min-height: 420px; }
  .aq-product-stage__backdrop { inset: 28px 4px 12px; border-radius: 30px; }
  .aq-product-window { inset: 0 0 48px 0; border-radius: 20px; }
  .aq-product-window__bar { height: 38px; padding: 0 10px; }
  .aq-product-window__bar > span { height: 23px; margin-left: 4px; font-size: 8px; }
  .aq-product-window__body { grid-template-columns: 70px minmax(0,1fr); min-height: 330px; }
  .aq-product-sidebar { padding: 14px 6px; }
  .aq-product-sidebar__brand { justify-content: center; margin-bottom: 17px; }
  .aq-product-sidebar__brand span,
  .aq-product-sidebar nav i { display: none; }
  .aq-product-sidebar nav span { justify-content: center; padding: 0; }
  .aq-product-content { padding: 14px 10px; }
  .aq-product-content__heading h2 { font-size: 16px; }
  .aq-product-content__heading > span { display: none; }
  .aq-product-metrics { gap: 5px; }
  .aq-product-metrics article { padding: 8px; }
  .aq-product-metrics b { font-size: 13px; }
  .aq-product-app-card { padding: 10px; }
  .aq-product-app-card__icon { width: 29px; height: 29px; border-radius: 9px; }
  .aq-product-app-card--secondary { display: none; }
  .aq-package-float { display: none; }
  .aq-validation-float { right: 8px; width: 198px; padding: 12px; }
  .aq-validation-float__head > span { width: 29px; height: 29px; }
  .aq-proof-grid { grid-template-columns: 1fr; gap: 6px; }
  .aq-proof-grid > strong { margin-bottom: 7px; }
  .aq-home-section { padding: 62px 0; }
  .aq-section-heading { margin-bottom: 26px; }
  .aq-section-heading h2 { font-size: 38px; }
  .aq-section-heading > p { font-size: 15px; }
  .aq-path-grid { grid-template-columns: 1fr; }
  .aq-path-grid article { min-height: 210px; }
  .aq-capability-grid > article { display: block; min-height: 0; }
  .aq-capability-visual { height: 160px; }
  .aq-final-cta { grid-template-columns: 1fr; padding: 32px 25px; border-radius: 22px; }
  .aq-final-cta .button { width: 100%; }
  .aq-site-footer > div { align-items: flex-start; flex-direction: column; padding-block: 24px; }
  .aq-site-footer nav { flex-wrap: wrap; gap: 12px 18px; }
  .aq-page-hero { padding: 44px 0 30px; }
  .aq-page-hero h1 { font-size: 42px; }
  .aq-page-hero > p:last-child { font-size: 16px; }
  .aq-role-map { padding-bottom: 48px; }
  .aq-role-map article { padding: 24px; }
  .aq-role-map h2 { font-size: 24px; }
  .aq-journey-section { padding: 55px 0; }
  .aq-journey-list li { grid-template-columns: 48px minmax(0,1fr); gap: 14px; padding: 17px; }
  .aq-journey-number { width: 43px; height: 43px; border-radius: 13px; }
  .aq-journey-list aside { min-height: 70px; }
  .aq-result-band { padding: 58px 0; }
  .aq-result-band h2 { font-size: 38px; }
  .aq-result-visual > span { width: 54px; height: 54px; border-radius: 16px; }
  .aq-documentation-page main,
  body[data-page="standard-prompt"] main,
  .install-guide-main,
  body[data-page="error"] main { width: min(calc(100% - 28px),1050px); padding: 36px 0 60px; }
  .aq-documentation-view .aq-page-header,
  body[data-page="standard-prompt"] .hero,
  .install-guide-hero { padding: 24px; border-radius: 20px; }
  .aq-documentation-view .aq-page-header h1,
  body[data-page="standard-prompt"] .hero h1,
  .install-guide-hero h1 { font-size: 40px; }
  .aq-documentation-view .aq-content-grid,
  .aq-documentation-view .aq-process-list { grid-template-columns: 1fr; }
  .aq-documentation-view .aq-process-list > li:last-child { grid-column: auto; }
  .prompt-block { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Final CTA contrast correction */
.aq-final-cta h2 { color: #ffffff; }
.aq-final-cta .eyebrow { color: #70c8b8; }


/* Final integration corrections */
@media (min-width: 901px) {
  .aq-public-shell .topbar {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  .aq-public-shell .topnav {
    flex-wrap: nowrap !important;
    gap: clamp(12px, 1.35vw, 20px) !important;
    white-space: nowrap;
  }
  .aq-public-shell .topnav .language-switcher,
  .aq-public-shell .topnav .language-pill {
    min-width: 104px !important;
  }
}
.aq-result-band h2 { color: #ffffff !important; }

/* AQTERON REDESIGN V2 — independent critical refinement
   Consolidated in the existing theme file: stronger brand contrast, product-first hierarchy,
   denser mobile flow, and more legible product demonstrations. */
:root {
  --aq-bg: #f4f7f6;
  --aq-paper: #fbfdfc;
  --aq-surface: #ffffff;
  --aq-ink: #0b1c24;
  --aq-ink-soft: #314750;
  --aq-muted: #64777e;
  --aq-line: #d7e2e1;
  --aq-line-strong: #b7cbc8;
  --aq-brand: #008f84;
  --aq-brand-strong: #006f68;
  --aq-brand-soft: #d9f1ec;
  --aq-blue: #2c6fe8;
  --aq-blue-soft: #e5edff;
  --aq-lime: #c9ef62;
  --aq-amber: #e6ac49;
  --aq-red: #c35448;
  --aq-night: #071e28;
  --aq-night-2: #0b2d36;
  --aq-shadow-sm: 0 1px 2px rgba(7,30,40,.06), 0 9px 26px rgba(7,30,40,.055);
  --aq-shadow-md: 0 18px 48px rgba(7,30,40,.12);
  --aq-shadow-lg: 0 32px 90px rgba(7,30,40,.22);
  --aq-radius: 20px;
  --aq-radius-lg: 34px;
}

body,
body.aq-public-shell {
  background:
    radial-gradient(circle at 88% 3%, rgba(0,143,132,.08), transparent 24rem),
    linear-gradient(180deg,#f8faf9 0,#f2f6f4 100%);
}

.aq-public-shell .topbar {
  min-height: 72px;
  border-bottom-color: rgba(133,162,158,.26);
  background: rgba(248,250,249,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.76);
}
.aq-public-shell .brand { min-height: 44px; font-weight: 820; }
.aq-public-shell .topnav { gap: clamp(13px,1.35vw,22px); font-size: 13px; }
.aq-public-shell .topnav .button.primary {
  min-height: 44px;
  padding-inline: 22px;
  border-radius: 11px;
  background: linear-gradient(135deg,var(--aq-brand),#07a99b);
  box-shadow: 0 10px 24px rgba(0,143,132,.23);
}

/* Product-led dark hero */
.aq-home-hero {
  padding: 34px 0 44px;
  background: transparent;
}
.aq-home-hero::before { display: none; }
.aq-home-hero__grid {
  width: min(calc(100% - 40px),1320px);
  min-height: 650px;
  grid-template-columns: minmax(0,.86fr) minmax(560px,1.14fr);
  gap: clamp(42px,5vw,78px);
  padding: clamp(54px,6vw,84px);
  overflow: hidden;
  border: 1px solid rgba(93,207,191,.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 80% 12%,rgba(28,198,179,.24),transparent 25rem),
    radial-gradient(circle at 5% 96%,rgba(44,111,232,.18),transparent 26rem),
    linear-gradient(135deg,#061b25 0%,#0a2b34 58%,#0b3738 100%);
  box-shadow: 0 36px 100px rgba(7,30,40,.24);
}
.aq-home-hero__grid::before,
.aq-home-hero__grid::after {
  position: absolute;
  border: 1px solid rgba(129,235,218,.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.aq-home-hero__grid::before { width: 420px; height: 420px; right: -130px; top: -210px; }
.aq-home-hero__grid::after { width: 280px; height: 280px; left: 38%; bottom: -220px; }
.aq-home-hero__copy { position: relative; z-index: 3; }
.aq-home-hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 0 11px;
  border: 1px solid rgba(113,223,207,.28);
  border-radius: 999px;
  background: rgba(97,213,196,.08);
  color: #79dfcf;
  letter-spacing: .12em;
}
.aq-home-hero__copy h1 {
  max-width: 690px;
  color: #f5fffd;
  font-size: clamp(54px,5.4vw,76px);
  line-height: .96;
  letter-spacing: -.062em;
}
.aq-home-hero__copy h1 em {
  color: #73e2cf;
  background: linear-gradient(90deg,#72e0ce,#c9ef62);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aq-home-hero__lead {
  max-width: 590px;
  margin-top: 27px;
  color: #bed0d1;
  font-size: 18px;
  line-height: 1.6;
}
.aq-public-shell .aq-home-hero .hero-actions { margin-top: 30px; }
.aq-public-shell .aq-home-hero .button {
  min-height: 50px;
  border-color: rgba(207,232,229,.36);
  background: rgba(255,255,255,.07);
  color: #f5fffd;
  backdrop-filter: blur(10px);
}
.aq-public-shell .aq-home-hero .button.primary {
  border-color: #6cdcca;
  background: linear-gradient(135deg,#00a194,#13b6a4);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0,161,148,.28);
}
.aq-role-note {
  max-width: 610px;
  margin-top: 27px;
  padding-top: 19px;
  border-top-color: rgba(196,225,220,.16);
  color: #91a9aa;
}
.aq-role-note__icon { background: rgba(92,213,194,.12); color: #72dfce; }

.aq-product-stage { min-height: 532px; transform: translateY(4px); }
.aq-product-stage__backdrop {
  inset: 28px -10px 7px 22px;
  border: 1px solid rgba(125,225,211,.17);
  border-radius: 40px;
  background:
    radial-gradient(circle at 75% 20%,rgba(115,226,207,.28),transparent 17rem),
    linear-gradient(145deg,rgba(41,104,114,.78),rgba(13,55,64,.42));
  transform: rotate(1.2deg);
}
.aq-product-window {
  inset: 0 22px 58px 14px;
  border-color: rgba(229,248,244,.65);
  border-radius: 24px;
  background: #f9fcfb;
  box-shadow: 0 34px 70px rgba(0,0,0,.28);
}
.aq-product-window__bar { height: 46px; border-bottom-color: #dce8e6; background: #f6faf9; }
.aq-product-window__bar > span { height: 26px; background: #fff; color: #708287; }
.aq-product-window__body { grid-template-columns: 122px minmax(0,1fr); min-height: 390px; }
.aq-product-sidebar { padding: 21px 12px; background: #e9f2ef; }
.aq-product-sidebar nav span { min-height: 36px; padding: 0 9px; border-radius: 9px; }
.aq-product-sidebar nav span.is-active { background: #cfece5; box-shadow: inset 3px 0 0 var(--aq-brand); }
.aq-product-content { padding: 25px 22px; }
.aq-product-content__heading h2 { font-size: 22px; }
.aq-product-content__heading > span { min-height: 33px; padding: 0 12px; background: linear-gradient(135deg,var(--aq-brand),#06a99b); }
.aq-product-metrics { gap: 10px; }
.aq-product-metrics article { min-height: 68px; padding: 12px; border-radius: 12px; }
.aq-product-metrics b { font-size: 20px; }
.aq-product-app-card { margin-top: 15px; padding: 16px; border-radius: 16px; box-shadow: 0 12px 26px rgba(7,30,40,.08); }
.aq-product-app-card::before {
  position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
  border-radius: 16px 0 0 16px; background: linear-gradient(var(--aq-brand),#72dfce); content: "";
}
.aq-product-app-card h3 { font-size: 13px; }
.aq-product-app-card p { font-size: 9px; }
.aq-package-float {
  bottom: 10px; left: -16px; width: 206px;
  border-color: rgba(137,222,209,.45);
  background: rgba(249,253,252,.97);
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
}
.aq-validation-float {
  right: -22px; bottom: -8px; width: 252px;
  border-color: rgba(137,222,209,.45);
  background: rgba(249,253,252,.97);
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
}

/* Process rail immediately after hero */
.aq-proof-strip {
  width: min(calc(100% - 40px),1220px);
  margin: 22px auto 0;
  border: 1px solid var(--aq-line);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--aq-shadow-sm);
}
.aq-proof-grid { min-height: 76px; grid-template-columns: 1.35fr repeat(3,1fr); }
.aq-proof-grid > strong { color: var(--aq-ink); font-size: 14px; }
.aq-proof-grid > span { position: relative; padding-left: 12px; color: var(--aq-ink-soft); }
.aq-proof-grid > span:not(:last-child)::after {
  position: absolute; top: 50%; right: -14px; width: 20px; height: 1px; background: #b9cbc8; content: "";
}

.aq-home-section { padding: 76px 0; }
.aq-home-section--alt { background: #eaf1ef; }
.aq-section-heading { gap: 48px; margin-bottom: 31px; }
.aq-section-heading h2 { font-size: clamp(38px,4vw,55px); }
.aq-path-grid { gap: 0; overflow: hidden; border: 1px solid var(--aq-line); border-radius: 22px; background: var(--aq-surface); box-shadow: var(--aq-shadow-sm); }
.aq-path-grid article {
  min-height: 250px;
  border: 0;
  border-right: 1px solid var(--aq-line);
  border-radius: 0;
  box-shadow: none;
  transition: background .22s var(--aq-ease), transform .22s var(--aq-ease);
}
.aq-path-grid article:last-child { border-right: 0; }
.aq-path-grid article:hover { z-index: 2; background: #f4faf8; transform: translateY(-2px); }
.aq-path-grid article > span { color: var(--aq-brand); }
.aq-path-grid article > i { margin: 29px 0 18px; background: linear-gradient(145deg,#d8f0ea,#e8f3ff); }

.aq-capability-grid { gap: 18px; }
.aq-capability-grid > article {
  min-height: 350px;
  padding: 18px;
  border-radius: 23px;
  box-shadow: 0 14px 36px rgba(7,30,40,.06);
  transition: transform .22s var(--aq-ease), box-shadow .22s var(--aq-ease);
}
.aq-capability-grid > article:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(7,30,40,.11); }
.aq-capability-visual { height: 170px; border: 1px solid rgba(44,111,232,.09); border-radius: 17px; background: linear-gradient(145deg,#dcefeb 0%,#edf2ff 100%); }
.aq-capability-grid > article:nth-child(2) .aq-capability-visual { background: linear-gradient(145deg,#e6f5ef,#e8efff); }
.aq-capability-grid > article:nth-child(3) .aq-capability-visual { background: linear-gradient(145deg,#ecf3e1,#e5f0ef); }
.aq-capability-grid h3 { margin: 20px 5px 0; }
.aq-capability-grid p,
.aq-capability-grid a { margin-left: 5px; margin-right: 5px; }

.aq-final-cta {
  position: relative;
  overflow: hidden;
  padding: 55px;
  border: 1px solid rgba(112,224,207,.22);
  background:
    radial-gradient(circle at 88% 0,rgba(0,169,155,.28),transparent 23rem),
    linear-gradient(135deg,#061c26,#0a3237);
}
.aq-final-cta::after {
  position: absolute; right: 180px; bottom: -125px; width: 320px; height: 230px;
  border: 1px solid rgba(128,231,215,.16); border-radius: 50%; content: "";
}
.aq-final-cta h2 { position: relative; z-index: 1; }
.aq-final-cta .button { position: relative; z-index: 1; min-height: 50px; }
.aq-site-footer { background: #e7eeec; }

/* Supporting routes receive the same more deliberate depth */
.aq-page-hero { padding-top: 68px; }
.aq-page-hero h1 { color: var(--aq-ink); }
.aq-role-map article,
.aq-documentation-view .aq-page-header,
body[data-page="standard-prompt"] .hero,
.install-guide-hero { box-shadow: 0 18px 48px rgba(7,30,40,.07); }
.aq-journey-section { background: #eaf1ef; }
.aq-journey-list li { border-radius: 18px; box-shadow: 0 8px 24px rgba(7,30,40,.045); }
.aq-result-band { background: linear-gradient(135deg,#071e28,#0a3739); }

@media (max-width: 1180px) {
  .aq-home-hero__grid { grid-template-columns: 1fr; min-height: 0; padding: 62px; }
  .aq-home-hero__copy { text-align: left; }
  .aq-home-hero__copy h1,
  .aq-home-hero__lead,
  .aq-role-note { margin-left: 0; margin-right: 0; }
  .aq-public-shell .hero-actions { justify-content: flex-start; }
  .aq-product-stage { width: min(100%,760px); margin-left: auto; margin-right: auto; }
}

@media (max-width: 680px) {
  .aq-home-hero { padding: 14px 0 34px; }
  .aq-home-hero__grid {
    width: calc(100% - 20px);
    gap: 27px;
    padding: 34px 20px 28px;
    border-radius: 26px;
  }
  .aq-home-hero__copy .eyebrow { margin-bottom: 15px; }
  .aq-home-hero__copy h1 { max-width: 340px; font-size: clamp(39px,11.2vw,48px); line-height: .96; }
  .aq-home-hero__lead { margin-top: 19px; font-size: 15px; line-height: 1.52; }
  .aq-public-shell .aq-home-hero .hero-actions { margin-top: 22px; gap: 9px; }
  .aq-home-hero__primary-action { width: 100%; }
  .aq-home-hero__action-hint { width: 100%; max-width: 100%; text-align: left; }
  .aq-public-shell .aq-home-hero .button { min-height: 47px; }
  .aq-role-note { margin-top: 18px; padding-top: 15px; color: #9eb2b2; font-size: 11px; }
  .aq-product-stage { min-height: 345px; }
  .aq-product-stage__backdrop { inset: 20px 0 2px; border-radius: 23px; }
  .aq-product-window { inset: 0 0 38px; border-radius: 18px; }
  .aq-product-window__body { grid-template-columns: 54px minmax(0,1fr); min-height: 270px; }
  .aq-product-sidebar { padding: 12px 4px; }
  .aq-product-content { padding: 12px 9px; }
  .aq-product-content__heading h2 { font-size: 15px; }
  .aq-product-metrics article { min-height: 52px; padding: 7px; }
  .aq-product-metrics b { font-size: 14px; }
  .aq-product-app-card { margin-top: 8px; padding: 9px; }
  .aq-product-app-card h3 { font-size: 10px; }
  .aq-product-actions { display: none; }
  .aq-validation-float { right: 6px; bottom: 0; width: 176px; padding: 10px; }
  .aq-validation-float ul { margin-top: 7px; gap: 3px; }
  .aq-validation-float li { font-size: 7px; }
  .aq-proof-strip { width: calc(100% - 20px); margin-top: 0; border-radius: 16px; }
  .aq-proof-grid { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .aq-proof-grid > strong { margin-bottom: 7px; }
  .aq-proof-grid > span { min-height: 31px; padding-left: 0; }
  .aq-proof-grid > span::after { display: none; }
  .aq-home-section { padding: 52px 0; }
  .aq-section-heading { margin-bottom: 21px; }
  .aq-section-heading h2 { font-size: 34px; }
  .aq-path-grid { display: grid; gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .aq-path-grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 35px 42px minmax(0,1fr);
    column-gap: 10px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--aq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--aq-shadow-sm);
  }
  .aq-path-grid article > span { grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .aq-path-grid article > i { width: 42px; height: 42px; margin: 0; grid-row: 1 / span 2; }
  .aq-path-grid h3 { margin: 0; font-size: 17px; }
  .aq-path-grid p { margin: 4px 0 0; font-size: 12px; line-height: 1.42; }
  .aq-home-section__action { margin-top: 17px; }
  .aq-capability-grid { gap: 11px; }
  .aq-capability-grid > article { padding: 14px; border-radius: 18px; }
  .aq-capability-visual { height: 130px; }
  .aq-capability-grid h3 { margin-top: 16px; font-size: 19px; }
  .aq-capability-grid p { font-size: 13px; }
  .aq-final-cta { padding: 30px 22px; }
  .aq-final-cta h2 { font-size: 33px; }
  .aq-page-hero h1 { font-size: 39px; }
}

/* V2 specificity correction against foundation typography */
.aq-public-shell .aq-home-hero__lead { color: #bed0d1 !important; }
.aq-public-shell .aq-home-hero .aq-role-note p { color: #91a9aa !important; }

/* V2 runtime icon sizing */
.aq-public-shell .button > svg,
.aq-public-shell .button [data-aq-icon] > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}


/* AQTERON REDESIGN V3 — final accessibility and interaction pass */
.aq-public-shell :where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid #2c6fe8 !important;
  outline-offset: 3px;
}
.aq-public-shell .aq-skip-link:focus { z-index: 200; }
@media (prefers-reduced-motion: reduce) {
  .aq-public-shell *, .aq-public-shell *::before, .aq-public-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 680px) {
  .aq-public-shell .button,
  .aq-public-shell .aq-mobile-nav-toggle,
  .aq-public-shell .language-switcher { min-height: 44px !important; padding-block: 10px !important; }
  .aq-public-shell .aq-mobile-navigation-panel {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* AQTERON V3.1 — compact hero and mobile control hardening */
@media (max-width: 340px) {
  .aq-home-hero__copy h1 {
    font-size: 37px;
    letter-spacing: -.055em;
    overflow-wrap: normal;
    word-break: normal;
  }
}
@media (max-width: 680px) {
  .aq-public-shell .language-switcher,
  .aq-public-shell .language-pill { font-size: 16px !important; }
}

/* AQTERON V3.1 — mobile content-link touch areas */
@media (max-width: 680px) {
  .aq-public-shell .aq-capability-grid a,
  .aq-public-shell .aq-site-footer a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
  }
}

/* AQTERON V3.2 — targeted pre-staging visual corrections */
@media (max-width: 1365px) {
  .aq-public-shell .topbar.aq-navigation-open,
  .aq-public-shell .nav.aq-navigation-open {
    z-index: calc(var(--aq-z_index-dialog) + 1);
  }

  .aq-public-shell .aq-navigation-open .aq-mobile-navigation-panel {
    z-index: calc(var(--aq-z_index-dialog) + 1);
    pointer-events: auto;
  }

  .aq-public-shell .aq-mobile-nav-backdrop:not([hidden]) {
    z-index: var(--aq-z_index-overlay);
  }
}

@media (min-width: 1181px) {
  .aq-home-hero {
    padding: 22px 0 28px;
  }

  .aq-home-hero__grid {
    min-height: 0;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    gap: clamp(46px, 4vw, 62px);
    padding: clamp(40px, 3.5vw, 52px);
    align-items: center;
  }

  .aq-home-hero__copy h1 {
    max-width: 520px;
    font-size: clamp(50px, 4.25vw, 62px);
    line-height: .96;
    letter-spacing: -.055em;
  }

  .aq-home-hero__lead {
    max-width: 510px;
    margin-top: 19px;
    font-size: 16px;
    line-height: 1.5;
  }

  .aq-public-shell .aq-home-hero .hero-actions {
    margin-top: 21px;
  }

  .aq-public-shell .aq-home-hero .button {
    min-height: 48px;
  }

  .aq-role-note {
    max-width: 510px;
    margin-top: 18px;
    padding-top: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .aq-product-stage {
    min-height: 468px;
    transform: none;
  }

  .aq-product-stage__backdrop {
    inset: 24px -4px 5px 18px;
  }

  .aq-product-window {
    inset: 0 18px 48px 10px;
  }

  .aq-product-window__body {
    min-height: 344px;
  }

  .aq-package-float {
    bottom: 2px;
    left: -10px;
  }

  .aq-validation-float {
    right: -12px;
    bottom: -4px;
  }
}

@media (min-width: 1181px) and (max-height: 800px) {
  .aq-home-hero { padding-top: 14px; padding-bottom: 20px; }
  .aq-home-hero__grid { padding-top: 34px; padding-bottom: 34px; }
  .aq-home-hero__copy .eyebrow { margin-bottom: 14px; }
  .aq-home-hero__copy h1 { font-size: clamp(47px, 4vw, 56px); }
  .aq-home-hero__lead { margin-top: 15px; font-size: 15px; }
  .aq-public-shell .aq-home-hero .hero-actions { margin-top: 17px; }
  .aq-role-note { margin-top: 14px; padding-top: 12px; }
  .aq-product-stage { min-height: 442px; }
  .aq-product-window__body { min-height: 322px; }
}
/* AQTERON V3.2.1 — contain the narrow public drawer without changing wider layouts. */
@media (max-width: 340px) {
  body.aq-public-shell {
    overflow-x: clip;
  }

  body.aq-public-shell .aq-mobile-navigation-panel {
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
  }
}

/* AQ-HOTFIX-023 — keep the complete localized desktop header inside the viewport. */
@media (min-width: 961px) and (max-width: 1100px) {
  .aq-public-shell .topbar {
    gap: 14px;
    padding-inline: 16px;
  }

  .aq-public-shell .topnav {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap !important;
    justify-content: flex-end;
    gap: 10px 12px !important;
  }

  .aq-public-shell .topnav > a,
  .aq-public-shell .topnav > button,
  .aq-public-shell .topnav > select {
    white-space: nowrap;
  }
}
