/* Align local pilot UI with tiitrust.com (cosmos + glass + tokens). */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #08295a;
  --navy2: #113b72;
  --blue: #146de0;
  --sky: #5da9f6;
  --cyan: #5da9f6;
  --ice: #edf6ff;
  --ice2: #f7fbff;
  --line: #cbdff3;
  --ink: #f0f7ff;
  --text: #dce8f8;
  --muted: #aebed3;
  --text-on-glass: #dce8f8;
  --text-on-glass-strong: #f0f7ff;
  --text-on-glass-muted: #aebed3;
  --text-on-glass-accent: #85c4ff;
  --white: #fff;
  --shadow: 0 18px 55px rgba(8, 41, 90, 0.08);
  --space: #041428;
  --glass-bg: rgba(4, 20, 40, 0.32);
  --glass-bg-strong: rgba(4, 20, 40, 0.42);
  --glass-border: rgba(93, 169, 246, 0.28);
  --glass-blur: blur(20px) saturate(1.2);
}

body {
  color: var(--text);
  background: var(--space);
  line-height: 1.65;
}

body::before {
  display: none;
}

body.cosmos-live {
  background: var(--space);
  background-image: none;
}

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 58% 42%, rgba(133, 196, 255, 0.16) 0, transparent 42%),
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(20, 109, 224, 0.26) 0, transparent 45%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(8, 41, 90, 0.9) 0, transparent 50%),
    linear-gradient(180deg, #03101f 0, #08295a 55%, #041428 100%);
}

.cosmos canvas.cosmos-three-canvas,
.cosmos canvas.cosmos-cycle-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cosmos-three-canvas {
  z-index: 0;
}

.cosmos-cycle-canvas {
  z-index: 1;
}

.statusbar,
.demo-bar {
  position: relative;
  z-index: 60;
  background: rgba(8, 41, 90, 0.82);
  color: #9fd0ff;
  font: 700 11px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(93, 169, 246, 0.25);
  backdrop-filter: blur(10px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(4, 20, 40, 0.32);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-bottom: 1px solid rgba(93, 169, 246, 0.2);
  box-shadow: 0 12px 40px rgba(4, 20, 40, 0.12);
}

.header nav a {
  color: #e8f4ff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(4, 20, 40, 0.35);
}

.header nav a:hover {
  color: #fff;
}

.brand b {
  font: 700 17px "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  color: #fff;
}

.brand small {
  color: #9eb6cc;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: none;
}

.menu {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(93, 169, 246, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: #e8f4ff;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.18s ease;
  content: "";
}

.menu-icon {
  top: 50%;
  margin-top: -1px;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu:focus-visible {
  outline: 3px solid rgba(93, 169, 246, 0.45);
  outline-offset: 2px;
}

.language {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 169, 246, 0.35);
  color: #e8f4ff;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
  z-index: 70;
  max-width: 9rem;
}

button.language.lang-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.48rem 0.65rem;
  font: 700 0.75rem Inter, "Noto Sans Thai", sans-serif;
  border: 1px solid rgba(93, 169, 246, 0.35);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #e8f4ff;
  cursor: pointer;
  box-shadow: none;
}

button.language.lang-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

.lang-switch.open .lang-trigger {
  border-color: rgba(93, 169, 246, 0.55);
  background: rgba(4, 20, 40, 0.48);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(4, 20, 40, 0.72);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 18px 55px rgba(4, 20, 40, 0.4);
}

.lang-menu li {
  margin: 0;
}

.lang-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e8f4ff;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font: 600 0.82rem Inter, "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", sans-serif;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.lang-menu button.is-active {
  background: rgba(20, 109, 224, 0.5);
  color: #fff;
}

.button {
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(20, 109, 224, 0.18);
}

.button:hover {
  background: #0d5fc8;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #e8f4ff;
  border: 1px solid rgba(93, 169, 246, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section .button.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

main,
footer,
.header,
.statusbar {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  color: var(--sky);
  letter-spacing: 0.13em;
}

.hero,
.vision-hero {
  background: transparent;
  min-height: auto;
  padding-top: 4rem;
}

.hero h1,
.vision-hero h1 {
  color: #fff;
  text-shadow: 0 8px 40px rgba(4, 20, 40, 0.45);
}

.hero h1 em,
.vision-hero h1 em {
  color: var(--sky);
}

.hero .lead,
.vision-hero .lead {
  color: #c5dcf0;
}

.trust-statement {
  color: #85c4ff;
  font-family: "Space Grotesk", sans-serif;
}

.hero .micro,
.vision-hero .micro {
  color: #9eb6cc;
  border-left: 3px solid rgba(93, 169, 246, 0.35);
  padding-left: 15px;
}

main > .section:first-child {
  background: transparent;
  border-top: 0;
  color: #c5dcf0;
  padding-top: 2rem;
}

main > .section:first-child h2 {
  color: #fff;
}

main > .section:first-child .eyebrow {
  color: var(--sky);
}

.section {
  background: transparent;
  border-top: 1px solid rgba(93, 169, 246, 0.14);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section h2 {
  color: #f0f7ff;
}

.section-head p,
.section .lead,
.section .micro {
  color: #aebed3;
}

.section .text-link {
  color: #c5dcf0;
  border-bottom-color: rgba(197, 220, 240, 0.55);
}

.section .pricing-footnote {
  color: #9eb6cc;
}

.revenue-bridge,
.subpage-hero {
  color: inherit;
}

footer {
  background: rgba(4, 20, 40, 0.32);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-top: 1px solid rgba(93, 169, 246, 0.22);
  color: #dce8f8;
}

footer a {
  color: #e8f4ff;
}

footer b {
  color: #fff;
}

footer p {
  color: #aebed3;
}

footer small {
  border-top-color: rgba(93, 169, 246, 0.22);
  color: #9eb6cc;
}

.revenue-bridge {
  background: transparent;
}

.revenue-bridge h2,
.revenue-bridge .section-head p {
  color: #fff;
}

.subpage-hero {
  background: transparent;
}

.trust,
.workshop.section,
.assurance.section,
#packages,
#how,
#journey,
#evidence,
#workshop {
  background: transparent;
}

/* Internal component checklist — not shown on public site */
#pilot-source {
  display: none !important;
}

.identity-card,
.path-card,
.step,
.dimensions article,
.process-grid article,
.packages article,
.trust-grid a,
.lead-form,
.upgrade-panel,
.spec-card,
.value-ladder article {
  background: rgba(4, 20, 40, 0.38);
  border: 1px solid rgba(93, 169, 246, 0.28);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 24px 70px rgba(4, 20, 40, 0.22);
}

.step h3,
.process-grid h3,
.packages h3,
.dimensions h3,
.identity-card h3,
.path-card h3,
.trust-grid b,
.upgrade-panel h3 {
  color: #f0f7ff;
}

.step p,
.process-grid p,
.packages p,
.dimensions p,
.identity-card p,
.path-card p,
.trust-grid span,
.upgrade-panel p {
  color: #aebed3;
}

.step ul,
.packages ul,
.identity-card ul,
.path-card ul {
  color: #9eb6cc;
}

.packages .price {
  color: #85c4ff;
}

.upgrade-panel {
  background: rgba(8, 41, 90, 0.42);
}

.upgrade-panel .meter {
  background: rgba(255, 255, 255, 0.12);
}

.upgrade-panel .eyebrow {
  color: var(--sky);
}

.lead-form {
  background: rgba(4, 20, 40, 0.45);
}

.lead-form label {
  color: #dce8f8;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(93, 169, 246, 0.35);
  color: #f0f7ff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lead-form .check {
  color: #c5dcf0;
}

.code-card {
  background: rgba(4, 20, 40, 0.55);
  border: 1px solid rgba(93, 169, 246, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(4, 20, 40, 0.28);
}

.split.section > div > p {
  color: #aebed3;
}

.split.section h2 {
  color: #f0f7ff;
}

.assurance-console {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 70px rgba(4, 20, 40, 0.35);
}

.text-link {
  font-weight: 700;
  color: #c5dcf0;
  border-bottom: 1px solid rgba(197, 220, 240, 0.55);
  text-decoration: none;
}

.hero .text-link,
.vision-hero .text-link {
  color: #e8f4ff;
  border-bottom-color: rgba(232, 244, 255, 0.55);
}

dialog,
dialog#stepDialog {
  background: rgba(4, 20, 40, 0.42);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(93, 169, 246, 0.3);
  color: #dce8f8;
  box-shadow: 0 28px 90px rgba(4, 20, 40, 0.45);
}

dialog::backdrop {
  background: rgba(3, 15, 31, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#dialogContent {
  background: transparent;
}

dialog h2 {
  color: #f0f7ff;
}

dialog p,
dialog .dialog-list,
dialog li {
  color: #aebed3;
}

dialog .dialog-note {
  background: rgba(8, 41, 90, 0.32);
  border: 1px solid rgba(93, 169, 246, 0.22);
  color: #c5dcf0;
}

dialog .dialog-close {
  background: rgba(255, 255, 255, 0.1);
  color: #e8f4ff;
  border: 1px solid rgba(93, 169, 246, 0.25);
}

@media (min-width: 1001px) {
  .header {
    gap: 0.45rem 0.65rem;
    padding: 0 clamp(10px, 1.8vw, 24px);
  }

  .header .brand {
    margin-right: 0;
    flex-shrink: 0;
    max-width: 10.5rem;
  }

  .header .brand b {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }

  .header .brand small {
    font-size: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header nav {
    display: flex !important;
    position: static;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.3rem, 0.85vw, 0.7rem);
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .header nav a {
    white-space: nowrap;
    font-size: clamp(0.78rem, 0.42vw + 0.58rem, 0.92rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .header > .button.small {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: clamp(0.74rem, 0.38vw + 0.54rem, 0.88rem);
    padding: 0.48rem 0.65rem;
    min-height: 36px;
  }

  .header .lang-switch,
  .header .language {
    flex-shrink: 0;
    max-width: 6.25rem;
  }

  .header button.language.lang-trigger {
    font-size: 0.72rem;
    padding: 0.38rem 0.42rem;
    min-height: 40px;
  }
}

@media (min-width: 1001px) and (max-width: 1320px) {
  .header nav a,
  .header > .button.small {
    font-size: 0.76rem;
  }

  .header nav {
    gap: 0.4rem;
  }
}

@media (max-width: 1000px) {
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand lang menu";
    align-items: center;
    gap: 0.45rem 0.55rem;
    flex-wrap: nowrap;
    height: auto;
    min-height: 64px;
    padding: 0.45rem max(4vw, 16px);
    position: sticky;
    z-index: 52;
  }

  .header .brand {
    grid-area: brand;
    margin-right: 0;
    min-width: 0;
    gap: 0.55rem;
  }

  .header .brand b {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .header .brand small {
    display: none;
  }

  .header .lang-switch {
    grid-area: lang;
    order: unset;
    margin-left: 0;
    max-width: 5.75rem;
  }

  .header button.language.lang-trigger {
    font-size: 0.72rem;
    padding: 0.38rem 0.42rem;
    min-height: 40px;
  }

  .menu {
    grid-area: menu;
    display: flex;
    align-items: center;
    justify-content: center;
    order: unset;
    margin-left: 0;
  }

  .header > .button.small {
    display: none;
  }

  .header nav {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    order: unset;
    width: 100%;
    margin: 0;
    padding: 0.35rem max(4vw, 16px) 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 51;
    background: rgba(4, 20, 40, 0.52);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    border: 0;
    border-bottom: 1px solid rgba(93, 169, 246, 0.28);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .header nav.open {
    display: flex !important;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .header nav a {
    color: #e8f4ff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(93, 169, 246, 0.16);
    line-height: 1.35;
  }

  .header nav a:last-child {
    border-bottom: 0;
  }

  main#main > .section:first-of-type {
    padding: 1.35rem max(4vw, 16px) 1.5rem;
  }

  main#main > .section:first-of-type h2,
  .hero h1 {
    font-size: clamp(1.45rem, 6.2vw, 2.05rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .hero.vision-hero,
  .hero {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-height: 0;
    padding: 1.25rem max(4vw, 16px) 2.5rem;
  }

  .section {
    padding: 2.75rem max(4vw, 16px);
  }

  .section h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.95rem);
    line-height: 1.22;
  }

  .lead {
    font-size: 0.98rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  main#main > .section:first-of-type .button {
    width: 100%;
    margin-top: 0.35rem;
  }

  .assurance-console {
    width: 100%;
    margin-top: 0.25rem;
  }

  .decision-row,
  .mini-receipt {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .upgrade-panel {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .upgrade-panel .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .statusbar {
    font-size: 0.58rem;
    line-height: 1.35;
    padding: 0.35rem 0.65rem;
  }

  .header {
    min-height: 58px;
    padding: 0.4rem 0.85rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }
}

.component-matrix-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.component-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: rgba(4, 20, 40, 0.42);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(93, 169, 246, 0.28);
  border-radius: 14px;
  overflow: hidden;
}

.component-matrix th,
.component-matrix td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(93, 169, 246, 0.14);
}

.component-matrix th {
  font: 700 0.72rem Inter, "Noto Sans Thai", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec9f5;
  background: rgba(8, 41, 90, 0.45);
}

.component-matrix tr:last-child td {
  border-bottom: 0;
}

.component-matrix td:first-child {
  width: 2.5rem;
  color: #7eb8f0;
  font-weight: 700;
}

.component-matrix td:nth-child(3) {
  color: #aebed3;
  max-width: 28rem;
}

.component-matrix a {
  color: #d4ecff;
  font-weight: 600;
  text-decoration: none;
}

.component-matrix a:hover {
  color: #fff;
  text-decoration: underline;
}

.component-matrix .status-ok,
.component-matrix .status-partial,
.component-matrix .status-miss {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.component-matrix .status-ok {
  color: #6ee7a8;
}

.component-matrix .status-partial {
  color: #f5d06a;
}

.component-matrix .status-miss {
  color: #f59a9a;
}

.component-matrix-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(8, 41, 90, 0.38);
  border: 1px solid rgba(110, 231, 168, 0.35);
  color: #d8f5e8;
  font-weight: 600;
}

.component-matrix-summary strong {
  color: #6ee7a8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-name-check {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
}

.hero-name-check .hero-search {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 32px rgba(4, 20, 40, 0.2);
}

.hero-name-check .search-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.hero-name-check .search-row input {
  min-width: 0;
  color: #f0f7ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 169, 246, 0.35);
}

.hero-name-check .tii-suffix {
  font: 700 1.05rem Inter, "Noto Sans Thai", sans-serif;
  color: var(--blue, #176bff);
  white-space: nowrap;
}

.hero-result {
  max-width: 36rem;
  margin-top: 0.35rem;
}

.commerce-hero .hero-result {
  color: #dce8f8;
}

@media (max-width: 620px) {
  .hero-name-check .search-row {
    grid-template-columns: 1fr auto;
  }

  .hero-name-check .search-row .tii-suffix {
    grid-column: 1;
    justify-self: start;
    margin-top: -0.25rem;
  }

  .hero-name-check .search-row .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* —— Glass surfaces (panels / div cards; cosmos shows through) —— */
.glass-surface,
.journey-visual,
.search,
.result,
.commerce-console,
.commerce-hero,
.name-check,
.trust,
.sales-flow article,
.tier-grid article,
.policy-list article,
.product-card,
.checkout-layout > div,
.order-summary,
.estimator,
.estimator-result,
.comparison-table,
.page-grid article,
.tier-card,
.mini-search,
.flow > *,
.orbit,
.console-node,
.mini-receipt,
.decision-row,
.mobile-sticky-cta,
.path-card.external,
.commerce-console .sample-name,
.assurance-shell .panel,
.assurance-shell .mode-card,
.assurance-shell .sidebar,
.assurance-shell .workspace > div:not(.sidebar),
body[data-flow] .panel,
body[data-flow] .summary,
body[data-flow] .metric-grid .panel,
body[data-flow] pre,
body[data-flow] .pill,
body[data-flow] .alert,
body[data-flow] .note,
.status-table,
.component-matrix th {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
}

.glass-surface-strong,
.identity-card,
.path-card,
.step,
.dimensions article,
.packages article,
.trust-grid a,
.lead-form,
.upgrade-panel,
.spec-card,
.value-ladder article,
.code-card,
.component-matrix,
.component-matrix-summary {
  background: var(--glass-bg-strong) !important;
}

.search,
.result,
.commerce-console,
.journey-visual,
.mobile-sticky-cta {
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 55px rgba(4, 20, 40, 0.18);
}

.search label,
.result strong,
.result p,
.commerce-console dt,
.commerce-console dd,
.hero-name-check .tii-suffix {
  color: #dce8f8;
}

.search-row input,
.search input,
.mini-search input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(93, 169, 246, 0.35) !important;
  color: #f0f7ff;
}

.result {
  color: #dce8f8;
}

.name-check,
.name-check h2,
.name-check .section-head p,
.name-check .field-help {
  color: #dce8f8;
}

.commerce-console .sample-name {
  color: #fff;
}

body[data-flow] .panel h2,
body[data-flow] .panel label,
body[data-flow] .panel .mini,
body[data-flow] .flow-shell label {
  color: #e8f4ff;
}

body[data-flow] .flow-shell input:not([type="checkbox"]),
body[data-flow] .flow-shell select,
body[data-flow] .flow-shell textarea {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(93, 169, 246, 0.35) !important;
  color: #f0f7ff;
}

body[data-flow] .progress span {
  background: rgba(255, 255, 255, 0.1);
  color: #c5dcf0;
  border: 1px solid rgba(93, 169, 246, 0.22);
}

body[data-flow] .progress .active {
  background: rgba(20, 109, 224, 0.55);
  color: #fff;
}

body[data-flow] .progress .done {
  background: rgba(11, 159, 105, 0.35);
  color: #b8f5d8;
}

.assurance-shell .mode-card,
.assurance-shell .sidebar,
.assurance-shell .panel {
  color: #dce8f8;
}

.assurance-shell .sidebar button {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e8f4ff;
}

.assurance-shell .sidebar button.selected {
  background: rgba(20, 109, 224, 0.55) !important;
  color: #fff;
}

.mobile-sticky-cta {
  background: rgba(4, 20, 40, 0.55) !important;
  border-top-color: var(--glass-border) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.status-table th,
.status-table td {
  color: #c5dcf0;
  border-color: rgba(93, 169, 246, 0.14);
}

.agent-avatar {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--glass-border) !important;
}

/* Readable type on all glass / transparent panels */
main :is(
  .tier-card,
  .tier-grid article,
  .sales-flow article,
  .product-card,
  .policy-list article,
  .checkout-layout,
  .checkout-layout > div,
  .order-summary,
  .estimator,
  .estimator-result,
  .page-grid article,
  .journey-visual,
  .commerce-console,
  .identity-card,
  .path-card,
  .step,
  .dimensions article,
  .packages article,
  .spec-card,
  .value-ladder article,
  .trust-grid a,
  .upgrade-panel,
  .lead-form,
  .code-card,
  .process-grid article,
  .mini-search,
  .search,
  .result,
  .console-node,
  .mini-receipt,
  .decision-row,
  .comparison-table,
  .flow > *
) {
  color: var(--text-on-glass);
}

main :is(
  .tier-card,
  .tier-grid article,
  .sales-flow article,
  .product-card,
  .policy-list article,
  .checkout-layout > div,
  .order-summary,
  .page-grid article,
  .commerce-console,
  .identity-card,
  .path-card,
  .step,
  .dimensions article,
  .packages article,
  .spec-card,
  .value-ladder article,
  .trust-grid a,
  .upgrade-panel,
  .process-grid article
) :is(h1, h2, h3, h4, strong, b) {
  color: var(--text-on-glass-strong) !important;
}

main :is(
  .tier-card,
  .tier-grid article,
  .sales-flow article,
  .product-card,
  .policy-list article,
  .checkout-layout > div,
  .order-summary,
  .page-grid article,
  .commerce-console,
  .identity-card,
  .path-card,
  .step,
  .dimensions article,
  .packages article,
  .spec-card,
  .value-ladder article,
  .process-grid article,
  .mini-search,
  .search,
  .result
) :is(p, li, dt, label, .field-help, .mini, span:not(.chip):not(.button)) {
  color: var(--text-on-glass-muted) !important;
}

main :is(.tier-card, .tier-grid article) :is(h3, .tier-price > span) {
  color: var(--text-on-glass-strong) !important;
}

.tier-price,
.tier-price > span,
.packages .price,
.value-ladder b,
.commerce-console dd,
.sales-flow b {
  color: var(--text-on-glass-accent) !important;
}

.tier-price small,
.commerce-console dt,
.packages small {
  color: var(--text-on-glass-muted) !important;
}

main :is(.tier-card, .tier-grid article) ul,
main :is(.tier-card, .tier-grid article) li {
  color: #c5dcf0 !important;
}

main :is(.tier-card, .glass-surface, .glass-surface-strong) .chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(93, 169, 246, 0.35);
  color: #e8f4ff;
}

main :is(.tier-card, .glass-surface, .glass-surface-strong) .chip.proto {
  background: rgba(20, 109, 224, 0.35);
  color: #fff;
}

main :is(.glass-surface, .glass-surface-strong, .tier-card) a:not(.button):not(.text-link) {
  color: #c5e4ff;
}

.section .micro,
.section .field-help,
footer small {
  color: var(--text-on-glass-muted);
}
