:root {
  --water-0: #f7fcfc;
  --water-1: #edf7f7;
  --water-2: #dceff0;
  --water-3: #c8e5e6;
  --teal-950: #10343b;
  --teal-900: #183b42;
  --teal-800: #1f5359;
  --teal-700: #176b65;
  --teal-600: #278b82;
  --teal-200: #b8dddd;
  --teal-100: #e4f3f3;
  --gold: #f5b22a;
  --gold-deep: #d9940b;
  --gold-soft: #fff4d4;
  --white: #ffffff;
  --muted: #587278;
  --muted-strong: #3b6268;
  --line: rgba(29, 91, 97, 0.16);
  --line-strong: rgba(29, 91, 97, 0.27);
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 18px 55px rgba(20, 83, 89, 0.09);
  --shadow-card: 0 14px 38px rgba(20, 83, 89, 0.11), 0 2px 7px rgba(20, 83, 89, 0.05);
  --shadow-hover: 0 20px 48px rgba(20, 83, 89, 0.16), 0 4px 10px rgba(20, 83, 89, 0.07);
  --body: "IBM Plex Sans Arabic", sans-serif;
  --display: "Cairo", sans-serif;
  --ease: cubic-bezier(.22, .7, .24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: var(--water-1);
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 15%, rgba(255, 255, 255, .92), transparent 26rem),
    radial-gradient(circle at 92% 31%, rgba(201, 233, 234, .52), transparent 30rem),
    linear-gradient(180deg, var(--water-0) 0%, var(--water-1) 48%, #e8f4f4 100%);
  color: var(--teal-900);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:not(:disabled),
a[href],
summary {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="tabpanel"]:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--teal-950);
  font-family: var(--display);
  line-height: 1.35;
}

h1,
h2,
p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
}

code,
.stage-number,
.application-number,
.evidence-kicker {
  font-family: var(--body);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  right: 20px;
  z-index: 40;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  background: var(--teal-950);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(29, 91, 97, .13);
  background: rgba(247, 252, 252, .78);
  box-shadow: 0 8px 30px rgba(29, 91, 97, .05);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  min-height: 44px;
}

.brand img {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(20, 83, 89, .14);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .45px;
  line-height: 1.45;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
}

.site-header nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s var(--ease);
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--teal-700);
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

.header-release {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted-strong);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(39, 139, 130, .12);
}

.hero {
  display: flex;
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
  padding-block: 66px 48px;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .35px;
}

.small-line {
  width: 27px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 178, 42, .1);
}

h1 {
  max-width: 650px;
  color: var(--teal-950);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.4;
}

h1 span {
  background: linear-gradient(transparent 80%, rgba(245, 178, 42, .45) 80%, rgba(245, 178, 42, .45) 94%, transparent 94%);
}

.hero-description {
  max-width: 535px;
  margin-top: 24px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #2a3029;
  box-shadow: 0 9px 20px rgba(217, 148, 11, .2);
}

.button.primary:hover:not(:disabled) {
  border-color: var(--gold-deep);
  background: #f8bc3b;
  box-shadow: 0 13px 26px rgba(217, 148, 11, .26);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .56);
  color: var(--teal-700);
  box-shadow: 0 5px 14px rgba(20, 83, 89, .05);
}

.button.secondary:hover:not(:disabled) {
  border-color: rgba(23, 107, 101, .42);
  background: var(--white);
  color: var(--teal-950);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 11px;
}

.product-stage {
  position: relative;
  width: 440px;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 25px 28px 22px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 19%, rgba(255, 255, 255, .94) 0 4%, transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(221, 243, 243, .68));
  color: var(--teal-900);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.product-stage::before,
.product-stage::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.product-stage::before {
  top: 18%;
  right: -24%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 139, 130, .16) 0 2%, rgba(39, 139, 130, .05) 2.5% 9%, transparent 10% 100%);
  filter: blur(.2px);
  opacity: .8;
}

.product-stage::after {
  right: 9%;
  bottom: -32%;
  width: 67%;
  aspect-ratio: 1;
  border: 1px solid rgba(39, 139, 130, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(39, 139, 130, .035), 0 0 0 44px rgba(39, 139, 130, .025);
}

.product-stage > * {
  position: relative;
  z-index: 1;
}

.stage-top,
.stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.stage-top {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .35px;
}

.stage-number {
  padding: 3px 10px;
  border: 1px solid rgba(23, 107, 101, .24);
  border-radius: 999px;
  color: var(--teal-700);
  font-size: 9px;
}

.phone-preview {
  width: 205px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .94);
  border-radius: 27px;
  background: var(--white);
  box-shadow: 0 25px 45px rgba(16, 52, 59, .2), 0 0 0 1px rgba(23, 107, 101, .1);
  transform: rotate(-4deg);
}

.phone-preview img {
  width: 100%;
  height: auto;
}

.preview-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 250px);
  min-height: 44px;
  margin: 21px auto 0;
  padding: 8px 15px;
  border: 1px solid rgba(23, 107, 101, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 700;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.preview-button:hover {
  border-color: rgba(23, 107, 101, .44);
  background: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.preview-button:active {
  transform: translateY(0) scale(.98);
}

.stage-bottom {
  align-items: flex-end;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(23, 107, 101, .15);
}

.stage-bottom strong {
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
}

.stage-bottom span {
  max-width: 145px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.summary-strip {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-soft);
}

.summary-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  min-height: 88px;
  gap: 14px;
  border-inline-end: 1px solid var(--line);
}

.summary-strip > div:first-child {
  justify-content: flex-start;
  padding-inline-start: 28px;
}

.summary-strip > div:last-child {
  justify-content: flex-end;
  padding-inline-end: 28px;
  border-inline-end: 0;
}

.summary-strip strong {
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
}

.summary-strip span {
  max-width: 80px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.summary-strip .small-stat {
  font-size: 24px;
}

.section {
  padding-block: 88px;
}

.section h2 {
  color: var(--teal-950);
  font-size: clamp(29px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -.8px;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 38px;
}

.section-description {
  max-width: 440px;
  color: var(--muted-strong);
  font-size: 15px;
}

.role-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.role-tabs {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-tab {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: rgba(255, 255, 255, .32);
  color: var(--teal-900);
  text-align: start;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.role-tab:hover {
  border-color: rgba(23, 107, 101, .19);
  background: rgba(255, 255, 255, .68);
  transform: translateY(-1px);
}

.role-tab:active {
  transform: translateY(0) scale(.99);
}

.role-tab.is-selected {
  border-color: rgba(23, 107, 101, .19);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-highlight);
}

.tab-number {
  min-width: 19px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.role-tab.is-selected .tab-number {
  color: var(--teal-700);
}

.role-tab strong,
.role-tab small {
  display: block;
}

.role-tab strong {
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.role-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.tab-arrow {
  margin-inline-start: auto;
  color: var(--teal-700);
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.role-tab:hover .tab-arrow,
.role-tab.is-selected .tab-arrow {
  opacity: 1;
}

.role-tab:hover .tab-arrow {
  transform: translateX(-2px);
}

.tab-note {
  max-width: 290px;
  padding: 11px 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.role-panel {
  min-width: 0;
  padding: 38px 42px 27px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.panel-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(39, 139, 130, .14);
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 700;
}

.panel-heading h3 {
  color: var(--teal-950);
  font-size: 30px;
  font-weight: 800;
}

.panel-heading > p {
  max-width: 530px;
  margin-top: 13px;
  color: var(--muted-strong);
  font-size: 14px;
}

.feature-list {
  margin-top: 27px;
}

.feature-list > div {
  display: flex;
  gap: 18px;
  padding-block: 19px;
  border-top: 1px solid var(--line);
}

.feature-number {
  min-width: 19px;
  padding-top: 4px;
  color: var(--teal-600);
  font-size: 10px;
  font-weight: 700;
}

.feature-list h4 {
  color: var(--teal-950);
  font-size: 16px;
  font-weight: 800;
}

.feature-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.panel-link:hover {
  color: var(--teal-950);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.evidence {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 6%, rgba(255, 255, 255, .72), transparent 25rem),
    linear-gradient(145deg, rgba(220, 239, 240, .78), rgba(237, 247, 247, .38));
  border-block: 1px solid rgba(29, 91, 97, .08);
}

.evidence::before {
  position: absolute;
  top: -12rem;
  left: -7rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(39, 139, 130, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(39, 139, 130, .03), 0 0 0 48px rgba(39, 139, 130, .025);
  content: "";
  pointer-events: none;
}

.evidence .wrap {
  position: relative;
  z-index: 1;
}

.evidence .eyebrow,
.evidence h2,
.evidence h2 span,
.evidence .section-description,
.evidence .test-stat,
.evidence .verification-list,
.evidence .deployment-details,
.evidence .evidence-links,
.evidence .github-note {
  color: var(--teal-900);
}

.evidence h2 span {
  color: var(--teal-700);
}

.evidence-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 65px;
  margin-top: 42px;
}

.test-stat,
.verification-list {
  padding: 25px 28px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 22px;
  background: rgba(255, 255, 255, .54);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .78);
}

.evidence-kicker {
  display: block;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 700;
}

.test-stat > strong {
  display: block;
  margin-top: 7px;
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.25;
}

.test-stat > strong span {
  color: var(--muted-strong);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.test-stat p {
  color: var(--muted-strong);
  font-size: 13px;
}

.test-bar {
  height: 5px;
  margin-block: 22px 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 107, 101, .12);
}

.test-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.test-stat small {
  color: var(--muted);
  font-size: 10px;
}

.verification-list {
  padding-block: 10px;
}

.verification-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-900);
  font-size: 13px;
}

.verification-list > div:last-child {
  border-bottom: 0;
}

.verification-list strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 700;
  text-align: end;
}

.checkmark {
  color: var(--teal-600);
}

.deployment-details {
  margin-top: 34px;
  border-block: 1px solid var(--line-strong);
}

.deployment-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 56px;
  padding-block: 14px;
  color: var(--teal-900);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.deployment-details summary::-webkit-details-marker {
  display: none;
}

.deployment-details summary > span {
  color: var(--teal-700);
  font-size: 19px;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.deployment-details[open] summary > span {
  transform: rotate(45deg);
}

.deployment-content {
  padding-block: 5px 24px;
  color: var(--muted-strong);
  font-size: 13px;
}

.deployment-content > p {
  max-width: 840px;
}

.endpoint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 20px;
}

.endpoint-list code {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 13px;
  border: 1px solid rgba(23, 107, 101, .13);
  border-radius: 9px;
  background: rgba(255, 255, 255, .58);
  color: var(--teal-900);
  font-size: 11px;
}

.endpoint-list span {
  color: var(--teal-700);
}

.asset-record {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
}

.asset-record div {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.asset-record dd {
  margin: 0;
  direction: ltr;
}

.evidence-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.evidence-links a,
.evidence-links .release-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding-inline: 2px;
  color: var(--teal-700);
  font-size: 12px;
}

.evidence-links a:hover {
  color: var(--teal-950);
}

.evidence-links code {
  margin-inline: 8px;
  font-size: 11px;
}

.release-preview {
  margin-top: 17px;
  border: 1px solid rgba(23, 107, 101, .2);
  background: rgba(255, 255, 255, .55);
  color: var(--teal-700);
}

.release-preview:hover {
  border-color: rgba(23, 107, 101, .42);
  background: rgba(255, 255, 255, .88);
}

.github-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.preserved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.preserved .section-description {
  margin-top: 23px;
}

.preserved-list > div {
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}

.preserved-list > div:first-child {
  padding-top: 0;
}

.preserved-list strong {
  color: var(--teal-950);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

.preserved-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.limits {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  padding: 25px 29px;
  border: 1px solid rgba(245, 178, 42, .27);
  border-radius: 20px;
  background: rgba(255, 250, 230, .64);
  box-shadow: var(--shadow-soft);
}

.limits-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold-deep);
  font-family: Georgia, serif;
  line-height: 1;
}

.limits h3 {
  color: var(--teal-950);
  font-size: 17px;
  font-weight: 800;
}

.limits p {
  max-width: 980px;
  margin-top: 9px;
  color: var(--muted-strong);
  font-size: 13px;
}

.application-links {
  display: flex;
  gap: 17px;
  margin-top: 35px;
}

.application-links article {
  min-width: 0;
  flex: 1;
  padding: 28px 25px 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-highlight);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.application-links article:hover {
  border-color: rgba(245, 178, 42, .6);
  box-shadow: var(--shadow-hover), inset 0 1px 0 var(--glass-highlight);
  transform: translateY(-3px);
}

.application-number {
  display: block;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.application-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.application-title h3 {
  color: var(--teal-950);
  font-size: 21px;
  font-weight: 800;
}

.application-title > span {
  color: var(--teal-600);
  font-size: 25px;
}

.application-links p {
  margin-block: 13px 24px;
  color: var(--muted);
  font-size: 12px;
}

.application-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.application-address code {
  color: var(--muted-strong);
  font-size: 11px;
}

.application-address button {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--teal-700);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.application-address button:hover {
  color: var(--teal-950);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reload-note {
  margin-top: 23px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  border-radius: 8px;
}

.site-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--teal-700);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--teal-950);
}

.copy-feedback {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 35;
  max-width: calc(100% - 36px);
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: var(--teal-950);
  color: var(--white);
  box-shadow: var(--shadow-hover);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Native read-only dialogs */
dialog.glass-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 25px;
  background: #f8fdfd;
  color: var(--teal-900);
  box-shadow: 0 28px 90px rgba(7, 52, 59, .27), inset 0 1px 0 rgba(255, 255, 255, .95);
}

dialog.glass-dialog::backdrop {
  background: rgba(10, 57, 63, .62);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .product-stage,
  .role-panel,
  .summary-strip,
  .application-links article,
  dialog.glass-dialog {
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
  }

  dialog.glass-dialog {
    background: rgba(248, 253, 253, .84);
  }

  dialog.glass-dialog::backdrop {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
  }
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-kicker {
  margin-bottom: 5px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 800;
}

.dialog-heading h2 {
  color: var(--teal-950);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: var(--teal-700);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.dialog-close:hover {
  border-color: rgba(23, 107, 101, .35);
  background: var(--white);
  transform: translateY(-1px);
}

.dialog-description {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 14px;
}

.dialog-image {
  width: min(280px, 100%);
  height: auto;
  max-height: min(58vh, 520px);
  margin: 22px auto 0;
  object-fit: contain;
  border: 5px solid var(--white);
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(16, 52, 59, .18), 0 0 0 1px rgba(23, 107, 101, .12);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.dialog-actions .button {
  flex: 1 1 180px;
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.dialog-fact {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
}

.dialog-fact dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dialog-fact dd {
  margin-top: 4px;
  color: var(--teal-950);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.dialog-fact code {
  color: var(--teal-700);
  font-size: 12px;
}

.dialog-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 1050px) {
  .hero {
    gap: 35px;
  }

  .product-stage {
    width: 375px;
  }

  .role-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .role-panel {
    padding: 31px;
  }

  .evidence-layout {
    gap: 38px;
  }

  .preserved {
    gap: 50px;
  }
}

@media (max-width: 780px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 78px;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-block: 13px 4px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-release {
    margin-inline-start: auto;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 21px;
    border-top: 1px solid var(--line);
    font-size: 12px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 35px;
    padding-block: 45px 36px;
  }

  .hero h1 {
    font-size: clamp(35px, 7.5vw, 50px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .hero-footnote {
    margin-top: 20px;
  }

  .product-stage {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .phone-preview {
    width: 195px;
  }

  .summary-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:last-child {
    width: auto;
    min-height: 82px;
    justify-content: flex-start;
    padding: 17px 14px;
    gap: 12px;
  }

  .summary-strip > div:nth-child(2) {
    border-inline-end: 0;
  }

  .summary-strip > div:nth-child(3),
  .summary-strip > div:nth-child(4) {
    border-bottom: 0;
  }

  .summary-strip strong {
    font-size: 33px;
  }

  .section {
    padding-block: 56px;
  }

  .section-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    margin-bottom: 28px;
  }

  .section-description {
    font-size: 14px;
  }

  .role-layout {
    display: block;
  }

  .role-tabs {
    position: static;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 18px;
  }

  .role-tab {
    min-height: 72px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 8px;
    border-color: var(--line);
    text-align: center;
  }

  .role-tab strong {
    font-size: 15px;
  }

  .role-tab small,
  .tab-arrow,
  .tab-note {
    display: none;
  }

  .tab-number {
    font-size: 9px;
  }

  .role-tab.is-selected {
    border-color: rgba(245, 178, 42, .6);
    background: rgba(255, 244, 212, .72);
  }

  .role-panel {
    padding: 27px 23px 22px;
  }

  .panel-heading h3 {
    font-size: 26px;
  }

  .panel-heading > p {
    font-size: 13px;
  }

  .feature-list > div {
    gap: 12px;
    padding-block: 18px;
  }

  .feature-list h4 {
    font-size: 15px;
  }

  .feature-list p {
    font-size: 12px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .evidence-layout {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 30px;
  }

  .test-stat,
  .verification-list {
    padding-inline: 21px;
  }

  .test-stat > strong {
    font-size: 72px;
  }

  .verification-list > div {
    gap: 10px;
    padding-block: 15px;
    font-size: 12px;
  }

  .verification-list strong {
    font-size: 11px;
  }

  .evidence-links {
    flex-direction: column;
    gap: 0;
  }

  .evidence-links a,
  .evidence-links .release-preview {
    flex: auto;
  }

  .github-note {
    margin-top: 10px;
  }

  .endpoint-list {
    gap: 8px;
  }

  .endpoint-list code {
    flex: 1;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 10px;
  }

  .asset-record {
    flex-direction: column;
    gap: 12px;
  }

  .preserved {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .limits {
    gap: 14px;
    padding: 22px;
  }

  .limits h3 {
    font-size: 15px;
  }

  .limits p {
    font-size: 12px;
  }

  .application-links {
    flex-direction: column;
    gap: 12px;
  }

  .application-links article {
    padding: 23px 23px 15px;
  }

  .application-number {
    margin-bottom: 8px;
  }

  .application-links p {
    margin-block: 7px 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  dialog.glass-dialog {
    padding: 23px;
    border-radius: 21px;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .header-release {
    padding-inline: 9px;
    font-size: 10px;
  }

  .site-header nav {
    justify-content: space-between;
    gap: 6px;
  }

  .site-header nav a {
    font-size: 11px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-stage {
    padding-inline: 20px;
  }

  .phone-preview {
    width: 184px;
  }

  .stage-bottom {
    gap: 10px;
  }

  .stage-bottom strong {
    font-size: 13px;
  }

  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:last-child {
    padding-inline: 11px;
    gap: 8px;
  }

  .summary-strip strong {
    font-size: 29px;
  }

  .summary-strip .small-stat {
    font-size: 19px;
  }

  .summary-strip span {
    font-size: 10px;
  }

  .role-tabs {
    gap: 5px;
  }

  .role-tab {
    padding-inline: 4px;
  }

  .role-tab strong {
    font-size: 14px;
  }

  .role-panel {
    padding-inline: 18px;
  }

  .test-stat > strong {
    font-size: 62px;
  }

  .verification-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .verification-list strong {
    text-align: start;
  }

  dialog.glass-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    padding: 19px;
  }

  .dialog-heading {
    gap: 10px;
  }

  .dialog-description {
    font-size: 13px;
  }

  .dialog-actions {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Closed dialogs must stay hidden even when the native element is unsupported. */
dialog.glass-dialog:not([open]) { display: none; }
.endpoint-list code { direction: ltr; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--water-0); }
  .product-stage { background: var(--water-2); }
  .role-panel, .summary-strip, .application-links article,
  .role-tab.is-selected, .test-stat, .verification-list,
  .preview-button, .button.secondary, .release-preview,
  .dialog-fact, .dialog-close { background: var(--white); }
  .limits { background: #fff8e5; }
  dialog.glass-dialog { background: #f8fdfd; }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover:not(:disabled), .button:active:not(:disabled),
  .preview-button:hover, .preview-button:active, .role-tab:hover,
  .role-tab:active, .role-tab:hover .tab-arrow,
  .application-links article:hover, .dialog-close:hover,
  .phone-preview { transform: none; }
}

.role-tabs[role="group"] { display: none; }
.role-layout:not(.tabs-enhanced) { display: flex; flex-direction: column; }
.role-layout:not(.tabs-enhanced) > .role-panel { width: 100%; }
