/* NexAura product pages: Products overview, NexAura HMS, UMAR, PRISM.
   Loads after site.css and uses its tokens. Each page sets its own accent
   through the --pd-* custom properties on <body>. */
.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
  box-sizing: border-box;
}

.product-page {
  --pd-accent: var(--site-color-primary);
  --pd-accent-dark: #1E40AF;
  --pd-accent-soft: #EFF6FF;
  --pd-accent-line: #BFDBFE;
  --pd-hero-ink: #07142F;
  --pd-hero-text: #DBEAFE;
  color: var(--site-text-secondary);
  background-color: var(--site-bg-base);
}

.product-page main {
  overflow-x: clip;
}

.product-page--hms {
  --pd-accent: #0E7C86;
  --pd-accent-dark: #0C6B74;
  --pd-accent-soft: #E6F4F5;
  --pd-accent-line: #B7E0E3;
}

.product-page--umar {
  --pd-accent: #2563EB;
  --pd-accent-dark: #0A2E73;
  --pd-accent-soft: #EAF2FF;
  --pd-accent-line: #BFDBFE;
  --pd-second: #7C3AED;
}

.product-page--prism {
  --pd-accent: #C2410C;
  --pd-accent-dark: #9A3412;
  --pd-accent-soft: #FFF7ED;
  --pd-accent-line: #FED7AA;
  --pd-hero-ink: #1C1207;
  --pd-hero-text: #FFEDD5;
}

/* Shared type */
.pd-kicker {
  margin: 0 0 var(--site-space-3);
  color: var(--pd-accent);
  font-size: var(--site-text-sm);
  font-weight: 700;
  line-height: 1.3;
}

.pd-section {
  padding-block: var(--site-section-padding-y);
}

.pd-section--soft {
  background-color: var(--site-bg-soft);
  border-block: 1px solid var(--site-border-default);
}

.pd-section--tint {
  background-color: var(--pd-accent-soft);
}

.pd-heading {
  max-width: 46rem;
  margin-bottom: var(--site-space-10);
}

.pd-heading h2,
.pd-split__copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.6vw + 1.3rem, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.pd-heading p:not(.pd-kicker),
.pd-split__copy > p:not(.pd-kicker) {
  margin: var(--site-space-4) 0 0;
  font-size: 1.0625rem;
  line-height: 1.68;
  max-width: 40rem;
}

/* Hero */
.pd-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem);
  color: var(--site-color-white);
  background: var(--pd-hero-ink);
}

.pd-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--site-space-10);
  align-items: center;
}

.pd-hero__content {
  min-width: 0;
  max-width: 40rem;
}

.pd-hero__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-space-2);
  margin: 0 0 var(--site-space-5);
  white-space: nowrap;
  font-family: var(--site-font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.pd-hero__name small {
  font-family: var(--site-font-body);
  font-size: var(--site-text-sm);
  font-weight: 500;
  opacity: 0.75;
}

.pd-hero__mark {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--pd-accent);
  color: var(--site-color-white);
  font-size: 0.875rem;
  font-weight: 700;
}

.pd-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.125rem, 2.6vw + 1.4rem, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.pd-hero__summary {
  margin: var(--site-space-6) 0 0;
  color: var(--pd-hero-text);
  font-size: 1.125rem;
  line-height: 1.65;
}

.pd-hero__actions,
.pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--site-space-3);
  margin-top: var(--site-space-8);
}

.pd-hero__note {
  margin: var(--site-space-4) 0 0;
  color: var(--pd-hero-text);
  font-size: var(--site-text-sm);
  opacity: 0.85;
}

.pd-hero__visual {
  min-width: 0;
}

.product-page .site-button--accent {
  background-color: var(--pd-accent);
  color: var(--site-color-white);
  box-shadow: 0 10px 24px -14px var(--pd-accent);
}

.product-page .site-button--accent:hover {
  background-color: var(--pd-accent-dark);
}

.product-page .site-button:focus-visible,
.product-page a:focus-visible,
.product-page summary:focus-visible,
.product-page button:focus-visible {
  outline: var(--site-focus-outline);
  outline-offset: var(--site-focus-ring-offset);
}

.pd-hero .site-button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--site-color-white);
}

.pd-hero .site-button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* HMS hero uses the product's own light clinical canvas */
.product-page--hms .pd-hero {
  color: #0F172A;
  background: #F4F6F9;
  border-bottom: 1px solid #E4E9F0;
}

.product-page--hms .pd-hero__summary,
.product-page--hms .pd-hero__note {
  color: #51617A;
  opacity: 1;
}

.product-page--hms .pd-hero .site-button--ghost {
  border-color: #D5DCE6;
  background: #FFFFFF;
  color: #0F172A;
}

.product-page--hms .pd-hero .site-button--ghost:hover {
  border-color: #94A3B8;
  background: #FFFFFF;
}

.product-page--umar .pd-hero {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.26) 0%, transparent 38%),
    linear-gradient(140deg, #06122B 0%, #0B3479 58%, #151F4F 100%);
}

.product-page--prism .pd-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.26), transparent 24rem),
    linear-gradient(140deg, #1C1207 0%, #3B1D0A 55%, #111827 100%);
}

.product-page--hub .pd-hero {
  background:
    linear-gradient(118deg, rgba(37, 99, 235, 0.28) 0 24%, transparent 24.2%),
    linear-gradient(140deg, #07142F 0%, #0B2A66 60%, #111827 100%);
}

/* Facts strip under the hero */
.pd-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--site-border-default);
  background: var(--site-surface-base);
}

.pd-facts__wrap {
  border-bottom: 1px solid var(--site-border-default);
}

.pd-facts {
  border-bottom: 0;
}

.pd-facts div {
  min-width: 0;
  padding: var(--site-space-5) var(--site-space-4) var(--site-space-5) 0;
}

.pd-facts dt {
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
  font-weight: 600;
}

.pd-facts dd {
  margin: var(--site-space-1) 0 0;
  color: var(--site-text-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* Split: copy beside a screen */
.pd-split {
  display: grid;
  gap: var(--site-space-10);
  align-items: center;
}

.pd-split__copy {
  min-width: 0;
}

.pd-split__visual {
  min-width: 0;
}

.pd-ticks {
  list-style: none;
  margin: var(--site-space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--site-space-3);
}

.pd-ticks li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.55;
}

.pd-ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.38rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--pd-accent);
  border-bottom: 2.5px solid var(--pd-accent);
  transform: rotate(-45deg);
}

.pd-ticks strong {
  color: var(--site-text-primary);
}

/* Feature list: ruled rows, not a wall of cards */
.pd-features {
  display: grid;
  gap: 0 var(--site-space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-features li {
  min-width: 0;
  padding: var(--site-space-5) 0;
  border-top: 1px solid var(--site-border-default);
}

.pd-features h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.pd-features p {
  margin: var(--site-space-2) 0 0;
  line-height: 1.6;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  margin-left: var(--site-space-2);
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--pd-accent-line);
  border-radius: 999px;
  background: var(--pd-accent-soft);
  color: var(--pd-accent-dark);
  font-family: var(--site-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.pd-tag--manual {
  border-color: var(--site-border-strong);
  background: var(--site-surface-base);
  color: var(--site-text-secondary);
}

/* Numbered steps (real sequences only) */
.pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--site-space-6);
  counter-reset: pd-step;
}

.pd-steps li {
  position: relative;
  min-width: 0;
  padding-top: var(--site-space-5);
  border-top: 3px solid var(--pd-accent);
  counter-increment: pd-step;
}

.pd-steps li::before {
  content: counter(pd-step);
  display: block;
  margin-bottom: var(--site-space-2);
  color: var(--pd-accent);
  font-family: var(--site-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.pd-steps h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.pd-steps p {
  margin: var(--site-space-2) 0 0;
  line-height: 1.6;
}

/* Result figure */
.pd-result {
  display: grid;
  gap: var(--site-space-8);
  align-items: center;
}

.pd-result__figure {
  margin: 0;
  color: var(--pd-accent);
  font-family: var(--site-font-heading);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
}

.pd-result__figure small {
  display: block;
  margin-top: var(--site-space-3);
  color: var(--site-text-primary);
  font-family: var(--site-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.pd-result__body h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.pd-result__body p {
  margin: var(--site-space-4) 0 0;
  font-size: 1.0625rem;
  line-height: 1.68;
}

.pd-text-link {
  display: inline-flex;
  margin-top: var(--site-space-5);
  color: var(--pd-accent-dark);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

/* Plans */
.pd-plans {
  display: grid;
  gap: var(--site-space-5);
}

.pd-plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--site-space-6);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-feature);
  background: var(--site-surface-base);
}

.pd-plan--lead {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 1px var(--pd-accent);
}

.pd-plan h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.pd-plan__for {
  margin: var(--site-space-2) 0 0;
  min-height: 3.2em;
  line-height: 1.55;
}

.pd-plan ul {
  list-style: none;
  margin: var(--site-space-5) 0 var(--site-space-6);
  padding: var(--site-space-5) 0 0;
  border-top: 1px solid var(--site-border-default);
  display: grid;
  gap: var(--site-space-3);
}

.pd-plan li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.pd-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2px solid var(--pd-accent);
  border-bottom: 2px solid var(--pd-accent);
  transform: rotate(-45deg);
}

.pd-plan .site-button {
  margin-top: auto;
}

.pd-plans__note {
  margin: var(--site-space-6) 0 0;
  font-size: var(--site-text-sm);
}

/* Roadmap: what exists now is solid; later phases get lighter and dashed */
.pd-roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--site-space-4);
}

.pd-roadmap li {
  min-width: 0;
  padding: var(--site-space-5);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-feature);
  background: var(--site-surface-base);
}

.pd-roadmap__when {
  display: inline-flex;
  margin-bottom: var(--site-space-3);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.pd-roadmap h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.pd-roadmap p {
  margin: var(--site-space-2) 0 0;
  line-height: 1.55;
}

.pd-roadmap__now {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 1px var(--pd-accent);
}

.pd-roadmap__now .pd-roadmap__when {
  background: var(--pd-accent);
  color: var(--site-color-white);
}

.pd-roadmap__next .pd-roadmap__when {
  border: 1px solid var(--pd-accent-line);
  background: var(--pd-accent-soft);
  color: var(--pd-accent-dark);
}

.pd-roadmap__later {
  border-style: dashed;
  border-color: var(--site-border-strong);
  background: transparent;
}

.pd-roadmap__later h3,
.pd-roadmap__later p {
  color: var(--site-text-muted);
}

.pd-roadmap__later .pd-roadmap__when {
  border: 1px dashed var(--site-border-strong);
  color: var(--site-text-muted);
}

/* Product rows on the overview page */
.pd-product {
  display: grid;
  gap: var(--site-space-8);
  align-items: center;
  padding-block: var(--site-space-12);
  border-top: 1px solid var(--site-border-default);
}

.pd-product:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pd-product__copy {
  min-width: 0;
}

.pd-product__sector {
  margin: 0 0 var(--site-space-2);
  color: var(--pd-accent);
  font-size: var(--site-text-sm);
  font-weight: 700;
}

.pd-product h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.6vw + 1.3rem, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.pd-product__line {
  margin: var(--site-space-3) 0 0;
  color: var(--site-text-primary);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
}

.pd-product__copy > p:not([class]) {
  margin: var(--site-space-4) 0 0;
  line-height: 1.65;
}

.pd-product__meta {
  margin: var(--site-space-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--site-space-2) var(--site-space-6);
  font-size: var(--site-text-sm);
}

.pd-product__meta div {
  min-width: 0;
}

.pd-product__meta dt {
  color: var(--site-text-muted);
  font-weight: 600;
}

.pd-product__meta dd {
  margin: 0;
  color: var(--site-text-primary);
  font-weight: 600;
}

.pd-product--hms {
  --pd-accent: #0E7C86;
  --pd-accent-dark: #0C6B74;
  --pd-accent-soft: #E6F4F5;
  --pd-accent-line: #B7E0E3;
}

.pd-product--prism {
  --pd-accent: #C2410C;
  --pd-accent-dark: #9A3412;
  --pd-accent-soft: #FFF7ED;
  --pd-accent-line: #FED7AA;
}

/* Closing call to action */
.pd-cta {
  padding-block: var(--site-section-padding-y);
}

.pd-cta__panel {
  display: grid;
  gap: var(--site-space-8);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--site-radius-feature);
  background: var(--site-surface-dark);
  color: #D1D5DB;
}

.pd-cta__panel h2 {
  margin: 0;
  color: var(--site-color-white);
  font-size: clamp(1.75rem, 1.6vw + 1.3rem, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.pd-cta__panel p {
  margin: var(--site-space-4) 0 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pd-cta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--site-space-3);
  align-content: center;
}

.pd-cta__list li {
  padding-left: var(--site-space-4);
  border-left: 3px solid var(--pd-accent);
  color: var(--site-color-white);
  line-height: 1.5;
}

.pd-cta .site-button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--site-color-white);
}

/* Screen frame shared by the product UI views */
.pd-screen {
  border: 1px solid #D5DCE6;
  border-radius: 0.875rem;
  background: #FFFFFF;
  box-shadow: 0 24px 48px -30px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  color: #0F172A;
  font-family: var(--site-font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pd-screen__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #E4E9F0;
  background: #FAFBFC;
  color: #94A3B8;
  font-size: 0.75rem;
}

.pd-screen__bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #D5DCE6;
}

.pd-screen__bar span {
  margin-left: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-screen__caption {
  margin: var(--site-space-3) 0 0;
  color: var(--site-text-muted);
  font-size: 0.8125rem;
}

.pd-hero .pd-screen__caption {
  color: inherit;
  opacity: 0.7;
}

/* ---- NexAura HMS interface views (tokens mirror the product) ---- */
.hms-ui {
  --h-bg: #F4F6F9;
  --h-surface: #FFFFFF;
  --h-surface-2: #FAFBFC;
  --h-ink: #0F172A;
  --h-ink-2: #51617A;
  --h-ink-3: #94A3B8;
  --h-line: #E4E9F0;
  --h-line-2: #D5DCE6;
  --h-brand: #0E7C86;
  --h-brand-tint: #E6F4F5;
  --h-brand-line: #B7E0E3;
  --h-approved: #047857;
  --h-approved-tint: #ECFDF5;
  --h-approved-line: #A7E3C6;
  --h-draft: #B45309;
  --h-draft-tint: #FFFBEB;
  --h-draft-line: #F1C27D;
  --h-alert: #BE123C;
  --h-alert-tint: #FFF1F2;
  --h-alert-line: #F6C0CB;
  --h-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--h-bg);
}

.hms-ui h4,
.hms-ui p {
  margin: 0;
  font-family: var(--site-font-body);
}

.hms-rail {
  display: none;
  padding: 0.85rem 0.6rem;
  border-right: 1px solid var(--h-line);
  background: var(--h-surface);
}

.hms-rail__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem 0.75rem;
  font-weight: 600;
}

.hms-rail__brand i {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  background: var(--h-brand);
  color: #FFFFFF;
  font-style: normal;
  font-size: 0.8125rem;
}

.hms-rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  color: var(--h-ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.hms-rail a.is-on {
  background: var(--h-brand-tint);
  color: var(--h-brand);
}

.hms-rail b {
  min-width: 1.1rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--h-brand-tint);
  color: var(--h-brand);
  font-size: 0.6875rem;
  line-height: 1.1rem;
  text-align: center;
}

.hms-main {
  min-width: 0;
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.hms-patient {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
}

.hms-patient__av {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 0.7rem;
  background: var(--h-brand);
  color: #FFFFFF;
  font-weight: 600;
}

.hms-patient__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.hms-patient__meta {
  color: var(--h-ink-2);
  font-size: 0.8125rem;
}

.hms-id {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--h-line);
  border-radius: 0.4rem;
  background: var(--h-surface-2);
  color: var(--h-ink-2);
  font-family: var(--h-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.hms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--h-line-2);
  border-radius: 999px;
  background: var(--h-surface-2);
  color: var(--h-ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.hms-badge--ok {
  border-color: var(--h-approved-line);
  background: var(--h-approved-tint);
  color: var(--h-approved);
}

.hms-badge--draft {
  border: 1px dashed var(--h-draft-line);
  background: var(--h-draft-tint);
  color: var(--h-draft);
}

.hms-badge--brand {
  border-color: var(--h-brand-line);
  background: var(--h-brand-tint);
  color: var(--h-brand);
}

.hms-badge--alert {
  border-color: var(--h-alert-line);
  background: var(--h-alert-tint);
  color: var(--h-alert);
}

.hms-dictate {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
}

.hms-dictate__mic {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--h-brand);
}

.hms-dictate__mic::before {
  content: "";
  width: 0.5rem;
  height: 0.85rem;
  border-radius: 0.3rem;
  background: #FFFFFF;
}

.hms-dictate strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hms-dictate small {
  display: block;
  color: var(--h-ink-3);
  font-size: 0.75rem;
}

.hms-wave {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.4rem;
}

.hms-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--h-brand-line);
}

.hms-note {
  border: 1.5px dashed var(--h-draft-line);
  border-radius: 0.75rem;
  background: var(--h-draft-tint);
  overflow: hidden;
}

.hms-note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem 0.2rem;
}

.hms-note__fields {
  display: grid;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem 0.75rem;
}

.hms-note__fields h4 {
  color: var(--h-draft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hms-note__fields p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.hms-note__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px dashed var(--h-draft-line);
}

.hms-note__hint {
  color: var(--h-draft);
  font-size: 0.75rem;
}

.hms-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--h-line-2);
  border-radius: 0.6rem;
  background: #FFFFFF;
  color: var(--h-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.hms-btn--ok {
  border-color: var(--h-approved);
  background: var(--h-approved);
  color: #FFFFFF;
}

.hms-btn--brand {
  border-color: var(--h-brand);
  background: var(--h-brand);
  color: #FFFFFF;
}

.hms-note.is-approved {
  border: 1.5px solid var(--h-approved-line);
  background: var(--h-approved-tint);
}

.hms-note.is-approved .hms-note__fields h4,
.hms-note.is-approved .hms-note__hint {
  color: var(--h-approved);
}

.hms-note.is-approved .hms-note__actions {
  border-top: 1px solid var(--h-approved-line);
}

.hms-note [data-when="approved"],
.hms-note.is-approved [data-when="draft"] {
  display: none;
}

.hms-note.is-approved [data-when="approved"] {
  display: inline-flex;
}

.hms-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--h-brand-line);
  border-radius: 0.75rem;
  background: var(--h-brand-tint);
}

.hms-banner p {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--h-ink-2);
  font-size: 0.8125rem;
}

.hms-banner strong {
  display: block;
  color: var(--h-brand);
  font-weight: 600;
}

.hms-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
}

.hms-timeline li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
}

.hms-timeline li + li {
  border-top: 1px solid var(--h-line);
}

.hms-timeline time {
  color: var(--h-ink-3);
  font-family: var(--h-mono);
  font-size: 0.75rem;
  line-height: 1.6;
}

.hms-timeline strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hms-timeline span {
  display: block;
  color: var(--h-ink-2);
  font-size: 0.8125rem;
}

.hms-timeline em {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
}

.hms-timeline .is-here em {
  background: var(--h-brand-tint);
  color: var(--h-brand);
}

.hms-timeline .is-other em {
  background: #F5F0FF;
  color: #6D28D9;
}

.hms-queue {
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
  overflow: hidden;
}

.hms-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--h-line);
  font-weight: 600;
}

.hms-queue__row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
}

.hms-queue__row + .hms-queue__row {
  border-top: 1px solid var(--h-line);
}

.hms-queue__token {
  color: var(--h-brand);
  font-family: var(--h-mono);
  font-weight: 600;
}

.hms-queue__row strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hms-queue__row small {
  display: block;
  color: var(--h-ink-3);
  font-size: 0.75rem;
}

.hms-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hms-stats div {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
}

.hms-stats b {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
}

.hms-stats span {
  color: var(--h-ink-3);
  font-size: 0.75rem;
}

/* ---- UMAR interface view ---- */
.umar-ui {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: #F7FAFF;
}

.umar-ui__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #DBE5F5;
  border-radius: 0.7rem;
  background: #FFFFFF;
}

.umar-ui__call strong {
  font-size: 0.9375rem;
}

.umar-ui__call span {
  color: #51617A;
  font-size: 0.8125rem;
}

.umar-ui__wave {
  flex: 1 1 8rem;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.8rem;
  min-width: 6rem;
}

.umar-ui__wave i {
  flex: 1;
  max-width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7C3AED, #2563EB);
}

.umar-ui__grid {
  display: grid;
  gap: 0.75rem;
}

.umar-ui__panel {
  min-width: 0;
  border: 1px solid #DBE5F5;
  border-radius: 0.7rem;
  background: #FFFFFF;
}

.umar-ui__panel h4 {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #E4E9F0;
  font-family: var(--site-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.umar-ui__transcript {
  margin: 0;
  padding: 0.6rem 0.8rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.umar-ui__transcript p {
  margin: 0;
}

.umar-ui__transcript b {
  color: #2563EB;
  font-weight: 600;
}

.umar-ui__transcript mark {
  padding: 0 0.15rem;
  border-radius: 0.2rem;
  background: #EDE9FE;
  color: inherit;
}

.umar-ui__rubric {
  list-style: none;
  margin: 0;
  padding: 0;
}

.umar-ui__rubric li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 2.4rem;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
  font-size: 0.8125rem;
}

.umar-ui__rubric li + li {
  border-top: 1px solid #EEF2F7;
}

.umar-ui__meter {
  height: 0.4rem;
  border-radius: 999px;
  background: #E4E9F0;
  overflow: hidden;
}

.umar-ui__meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2563EB;
}

.umar-ui__rubric .is-low .umar-ui__meter i {
  background: #BE123C;
}

.umar-ui__rubric b {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  text-align: right;
}

.umar-ui__rubric .is-low b {
  color: #BE123C;
}

.umar-ui__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid #E4E9F0;
  font-size: 0.8125rem;
}

.umar-ui__flag {
  padding: 0.1rem 0.6rem;
  border: 1px solid #F6C0CB;
  border-radius: 999px;
  background: #FFF1F2;
  color: #BE123C;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- PRISM interface view ---- */
.prism-ui {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: #FFFBF5;
}

.prism-ui__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.prism-ui__head strong {
  font-size: 0.9375rem;
}

.prism-ui__head span {
  color: #78716C;
  font-size: 0.8125rem;
}

.prism-ui__scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.prism-ui__scenario {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #F1E3D0;
  border-radius: 0.7rem;
  background: #FFFFFF;
}

.prism-ui__scenario.is-pick {
  border-color: #C2410C;
  box-shadow: 0 0 0 1px #C2410C;
}

.prism-ui__scenario h4 {
  margin: 0;
  font-family: var(--site-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.prism-ui__scenario p {
  margin: 0.15rem 0 0.6rem;
  color: #78716C;
  font-size: 0.75rem;
}

.prism-ui__scenario dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.prism-ui__scenario dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.prism-ui__scenario dt {
  color: #57534E;
}

.prism-ui__scenario dd {
  margin: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 600;
}

.prism-ui__bar {
  grid-column: 1 / -1;
  height: 0.35rem;
  border-radius: 999px;
  background: #F5EBDD;
  overflow: hidden;
}

.prism-ui__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #EA580C;
}

.prism-ui__bar--down i {
  background: #78716C;
}

.prism-ui__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prism-ui__signals span {
  padding: 0.15rem 0.6rem;
  border: 1px solid #FED7AA;
  border-radius: 999px;
  background: #FFF7ED;
  color: #9A3412;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Layout at wider widths */
@media (min-width: 640px) {
  .pd-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .umar-ui__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hms-ui--rail {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }

  .hms-ui--rail .hms-rail {
    display: block;
  }
}

@media (min-width: 900px) {
  .pd-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-result {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .pd-cta__panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  }
}

@media (min-width: 1024px) {
  .pd-hero__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--site-space-12);
  }

  .pd-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--site-space-16);
  }

  .pd-split--flip .pd-split__copy {
    order: 2;
  }

  .pd-steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-steps--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--site-space-5);
  }

  .pd-roadmap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pd-features--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-product {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--site-space-16);
  }

  .pd-product:nth-of-type(even) .pd-product__copy {
    order: 2;
  }
}

@media (max-width: 479px) {
  .pd-hero__actions .site-button,
  .pd-cta__actions .site-button {
    width: 100%;
  }

  .hms-id {
    margin-left: 0;
  }

  .hms-wave {
    display: none;
  }

  .prism-ui__scenarios {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .site-button {
    transition: none;
  }

  .product-page .site-button:hover {
    transform: none;
  }
}

/* HMS consent view */
.hms-consent {
  padding: 0.8rem;
  border: 1px solid var(--h-line);
  border-radius: 0.75rem;
  background: var(--h-surface);
}

.hms-consent h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.hms-consent p {
  margin-top: 0.25rem;
  color: var(--h-ink-2);
  font-size: 0.8125rem;
}

.hms-otp {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.hms-otp span {
  width: 2.4rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--h-line-2);
  border-radius: 0.6rem;
  font-family: var(--h-mono);
  font-size: 1.25rem;
  font-weight: 600;
}

.hms-otp span:empty {
  border-style: dashed;
}

.hms-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Benefit call-outs: marketing cards for a product's main benefits.
   Colours come from the page's --pd-* product theme. */
.pd-benefits-section {
  background:
    radial-gradient(circle at 88% 0%, var(--pd-accent-soft), transparent 28rem),
    linear-gradient(180deg, var(--site-color-white) 0%, var(--pd-accent-soft) 100%);
  border-block: 1px solid var(--site-border-default);
}

.pd-benefits {
  display: grid;
  gap: var(--site-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--site-space-2);
  overflow: hidden;
  padding: var(--site-space-6);
  border: 1px solid var(--pd-accent-line);
  border-radius: var(--site-radius-standard);
  background-color: var(--site-color-white);
  box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.45);
}

.pd-benefit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--pd-accent);
}

.pd-benefit__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--site-space-2);
  border-radius: 0.75rem;
  background-color: var(--pd-accent-soft);
  color: var(--pd-accent);
}

.pd-benefit__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-benefit__value {
  margin: 0;
  color: var(--pd-accent);
  font-family: var(--site-font-heading);
  font-size: clamp(1.4rem, 0.8vw + 1.15rem, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.pd-benefit h3 {
  margin: 0;
  color: var(--site-text-primary);
  font-family: var(--site-font-heading);
  font-size: 1.125rem;
  line-height: 1.3;
}

.pd-benefit p:not(.pd-benefit__value) {
  margin: 0;
  color: var(--site-text-secondary);
  line-height: 1.6;
}

.pd-benefit__tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.2rem 0.6rem;
  border: 1px dashed var(--pd-accent-line);
  border-radius: 999px;
  color: var(--pd-accent-dark);
  font-size: var(--site-text-xs);
  font-weight: 600;
}

/* Lead benefit: dark card in the product's hero colours. */
.pd-benefit--lead {
  border-color: transparent;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--pd-accent) 45%, transparent), transparent 16rem),
    linear-gradient(145deg, var(--pd-hero-ink) 0%, var(--pd-accent-dark) 100%);
}

.pd-benefit--lead::before {
  background: linear-gradient(90deg, var(--pd-accent), var(--site-color-white));
}

.pd-benefit--lead .pd-benefit__icon {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--site-color-white);
}

.pd-benefit--lead .pd-benefit__value {
  font-size: clamp(2rem, 1.6vw + 1.5rem, 2.75rem);
}

.pd-benefit--lead .pd-benefit__value,
.pd-benefit--lead h3 {
  color: var(--site-color-white);
}

.pd-benefit--lead p:not(.pd-benefit__value) {
  color: rgba(255, 255, 255, 0.82);
}

.pd-benefit--lead .pd-benefit__tag {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--site-color-white);
}

@media (min-width: 640px) {
  .pd-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pd-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-space-5);
  }
}
