:root {
  --blue: #0D5AA7;
  --royal-blue: #0D5AA7;
  --gold: #DDAA22;
  --white: #FFFFFF;
  --navy: #071B33;
  --deep: #02143A;
  --green: #008A4E;
  --soft: #F3F6FB;
  --page: #E9EEF6;
  --text: #071B45;
  --ink: #071B33;
  --muted: #5F6F89;
  --border: #E4EAF3;
  --danger: #F25278;
  --line-blue: #4076BF;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --soft-shadow: 0 16px 34px rgba(7, 27, 51, 0.08);
  --card-shadow: 0 10px 26px rgba(13, 90, 167, 0.08);
  --container: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background: #E8EDF5;
}

body.access-locked {
  min-height: 100vh;
  overflow: hidden;
}

body.access-locked .proforma-page,
body.access-locked .preview-modal {
  display: none;
}

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

button,
.preview-box,
.card {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(221, 170, 34, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(7, 27, 51, 0.96), rgba(13, 90, 167, 0.94));
}

body.access-locked .access-gate {
  display: flex;
}

.access-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.access-card img {
  width: 76px;
  margin-bottom: 18px;
}

.access-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.access-card h1 {
  margin: 8px 0 10px;
  color: var(--blue);
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.access-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.access-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.access-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.access-input-row input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 16px;
  color: var(--navy);
  background: #F8FAFE;
  font: inherit;
  outline: none;
}

.access-input-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 90, 167, 0.12);
}

.access-input-row button {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.access-error {
  min-height: 20px;
  display: block;
  margin-top: 12px;
  color: #D70000;
  font-weight: 800;
}

.proforma-page {
  width: 100%;
  max-width: var(--container);
  min-height: 100vh;
  margin: auto;
  padding: 0 16px 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-proforma {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 58px 42px 70px;
  color: var(--white);
  border-radius: 0;
  background:
    radial-gradient(circle at 94% -4%, rgba(221, 170, 34, 0.22) 0 20%, transparent 21%),
    linear-gradient(132deg, #FFFFFF 0 34%, var(--navy) 34.2% 100%);
}

.hero-proforma::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  background: var(--gold);
}

.agency-mark {
  position: absolute;
  top: 42px;
  left: 42px;
  z-index: 2;
  color: #00255E;
}

.agency-mark strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.agency-mark small {
  display: block;
  margin-top: 3px;
  color: #D70000;
  font-size: 10px;
  font-weight: 800;
}

.hero-logo {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin-top: 76px;
  padding: 19px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-copy {
  width: min(560px, 100%);
  min-width: 0;
  padding-top: 20px;
}

.hero-copy span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.9px;
}

.hero-copy h1 {
  margin: 0 0 40px;
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h2 {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.65rem, 3.1vw, 2.55rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  margin: 0 0 16px;
  color: #EEF5FF;
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy b {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.doc-meta {
  position: absolute;
  top: 100px;
  right: 42px;
  display: grid;
  gap: 7px;
  justify-items: end;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.doc-meta span {
  display: block;
  padding: 4px 0;
}

.intro-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  align-items: stretch;
  gap: 18px;
  margin: -42px 0 24px;
}

.proforma-to,
.total-budget {
  min-height: 220px;
  padding: 28px;
}

.card h3 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.proforma-to h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.proforma-to p {
  margin: 9px 0;
  color: #22395F;
  line-height: 1.55;
}

.total-budget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
}

.total-budget h3 {
  color: var(--white);
}

.total-budget h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.total-budget p,
.total-budget small {
  color: #DCE7FF;
  line-height: 1.65;
}

.section-block {
  margin: 24px 0;
  padding: 28px;
}

.section-block h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.section-block > p,
.project-summary p {
  max-width: 1120px;
  margin: 0;
  color: #273C5F;
  font-size: 15px;
  line-height: 1.9;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.stack-grid span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--blue);
  background: #F7FAFF;
  box-shadow: 0 4px 14px rgba(8, 30, 75, 0.04);
  text-align: center;
  font-weight: 900;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head-row h2 {
  margin-bottom: 8px;
}

.section-head-row p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #C7F0D8;
  border-radius: 999px;
  color: #0E9E58;
  background: #EAF8EF;
  cursor: pointer;
  font-weight: 900;
}

.preview-status:hover {
  border-color: #85DFA7;
  background: #DCF7E7;
  box-shadow: 0 10px 20px rgba(14, 158, 88, 0.12);
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-box {
  min-width: 0;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(8, 30, 75, 0.07);
  cursor: pointer;
}

.preview-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(8, 30, 75, 0.12);
}

.preview-frame {
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #F4F7FC;
}

.preview-frame iframe {
  width: 100%;
  height: 230px;
  border: 0;
  background: var(--white);
}

.preview-copy {
  flex: 1;
  padding: 16px;
}

.preview-copy h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.preview-copy p {
  margin: 0;
  color: #334765;
  font-size: 14px;
  line-height: 1.65;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 0;
  background: #071B33;
}

.preview-modal.is-open {
  display: block;
}

.preview-modal-panel {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
}

.preview-modal-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  padding: 18px clamp(16px, 3vw, 34px);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--navy), #0D5AA7);
}

.preview-modal-header span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.preview-modal-header h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.15;
}

.preview-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 20px;
}

.preview-modal-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--border);
  background: #F7FAFF;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.preview-modal-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue);
  background: #FFFFFF;
  cursor: pointer;
  font-weight: 900;
}

.preview-modal-tabs button.active {
  border-color: var(--blue);
  color: #FFFFFF;
  background: var(--blue);
}

.preview-modal-browser {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #E9EEF6;
}

.preview-browser-bar {
  min-height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: #667085;
  background: #FFFFFF;
  font-size: 12px;
}

.preview-browser-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF5F57;
}

.preview-browser-bar i:nth-child(2) {
  background: #FFBD2E;
}

.preview-browser-bar i:nth-child(3) {
  background: #28C840;
}

#fullPreviewFrame {
  width: 100%;
  min-height: 0;
  flex: 1;
  height: 100%;
  border: 0;
  background: #FFFFFF;
}

body.preview-open {
  overflow: hidden;
}

.scope-grid,
.requirements-grid,
.process-grid,
.payment-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

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

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

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

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

.scope-grid article,
.requirements-grid article,
.process-grid article,
.payment-grid article {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #F8FAFE;
  box-shadow: 0 6px 18px rgba(8, 30, 75, 0.04);
}

.scope-grid article,
.requirements-grid article {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.scope-grid h3,
.requirements-grid h3 {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.scope-grid ul {
  margin: 0;
  padding-left: 20px;
}

.scope-grid li {
  margin: 10px 0;
  color: #334765;
  line-height: 1.6;
}

.requirements-grid p {
  margin: 0;
  color: #334765;
  line-height: 1.7;
}

.architecture-block {
  overflow: hidden;
}

.architecture-page {
  width: 100%;
  padding: 24px 0 0;
}

.architecture-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 0 26px;
}

.title-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 20px;
  padding: 24px 38px;
  border: 2px solid rgba(64, 118, 191, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.ksa-logo {
  width: 118px;
  justify-self: center;
}

.title-copy {
  text-align: center;
}

.title-copy h1 {
  margin: 0 0 12px;
  color: #082A72;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.title-copy p {
  margin: 0 0 8px;
  color: #082A72;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
}

.title-copy span {
  color: #082A72;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 800;
}

.flow-arrow {
  position: relative;
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--line-blue);
}

.flow-arrow::after,
.mobile-connector .drop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--line-blue);
  transform: translateX(-50%);
}

.flow-arrow.small {
  height: 30px;
}

.portal-shell {
  padding: 22px 32px 26px;
  border: 2px dashed rgba(13, 90, 167, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 48px;
}

.info-card {
  min-height: 146px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px;
  border: 1.5px solid var(--accent);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.96) 58%);
  box-shadow: var(--card-shadow);
}

.icon-disc {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 42px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 46%, transparent 47%),
    rgba(var(--accent-rgb), 0.15);
}

.info-card h2,
.tech-card h2 {
  margin: 0 0 9px;
  color: #050B2E;
  font-size: 1.3rem;
  line-height: 1.15;
  font-weight: 800;
}

.info-card p,
.tech-card p,
.mobile-card p {
  margin: 0;
  color: #050B2E;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}

.blue {
  --accent: #9FCBFF;
  --accent-rgb: 13, 90, 167;
  --accent-strong: #0D5AA7;
}

.purple {
  --accent: #C8A9F6;
  --accent-rgb: 116, 67, 215;
  --accent-strong: #4625A5;
}

.green {
  --accent: #8FD79B;
  --accent-rgb: 20, 143, 57;
  --accent-strong: #08782D;
}

.pink {
  --accent: #FF9DB8;
  --accent-rgb: 233, 48, 98;
  --accent-strong: #E93062;
}

.gold {
  --accent: #F4CB67;
  --accent-rgb: 221, 170, 34;
  --accent-strong: #F4A400;
}

.teal {
  --accent: #95DDE0;
  --accent-rgb: 12, 138, 143;
  --accent-strong: #087C81;
}

.orange {
  --accent: #F4A35A;
  --accent-rgb: 211, 87, 23;
  --accent-strong: #C84A0F;
}

.stack-flow {
  display: grid;
  justify-items: center;
}

.tech-card {
  width: min(560px, 100%);
  min-height: 104px;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 76px;
  align-items: center;
  padding: 16px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.96) 62%);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.tech-icon {
  justify-self: center;
  color: var(--accent-strong);
  font-size: 58px;
  line-height: 1;
}

.node {
  --accent: #7FD59C;
  --accent-rgb: 20, 143, 57;
  --accent-strong: #2EAF36;
}

.prisma {
  --accent: #B28AF4;
  --accent-rgb: 116, 67, 215;
  --accent-strong: #23262E;
}

.postgres {
  --accent: #83BDFF;
  --accent-rgb: 13, 90, 167;
  --accent-strong: #155987;
}

.redis {
  --accent: #FF9DAF;
  --accent-rgb: 233, 48, 64;
  --accent-strong: #D72432;
}

.prisma-mark {
  width: 44px;
  height: 58px;
  border: 7px solid #23262E;
  border-left-width: 11px;
  border-radius: 4px 4px 8px 8px;
  transform: rotate(17deg) skewY(-11deg);
  background: transparent;
}

.redis-stack {
  position: relative;
  width: 68px;
  height: 58px;
  font-size: 0;
}

.redis-stack span {
  position: absolute;
  left: 8px;
  width: 52px;
  height: 28px;
  border-radius: 7px;
  background: #D72432;
  box-shadow: 0 6px 0 #A8141F;
  transform: skewY(-15deg) rotate(25deg);
}

.redis-stack span:nth-child(1) {
  top: 3px;
}

.redis-stack span:nth-child(2) {
  top: 17px;
  opacity: 0.9;
}

.redis-stack span:nth-child(3) {
  top: 31px;
  opacity: 0.8;
}

.mobile-connector {
  position: relative;
  width: min(820px, calc(100% - 120px));
  height: 72px;
  margin: 0 auto -4px;
}

.mobile-connector .stem,
.mobile-connector .rail,
.mobile-connector .drop {
  position: absolute;
  display: block;
  background: #1B4F92;
}

.mobile-connector .stem {
  top: 0;
  left: 50%;
  width: 2px;
  height: 40px;
  transform: translateX(-50%);
}

.mobile-connector .rail {
  top: 39px;
  right: 0;
  left: 0;
  height: 2px;
}

.mobile-connector .rail::before,
.mobile-connector .rail::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 16px;
  background: #1B4F92;
}

.mobile-connector .rail::before {
  left: 0;
}

.mobile-connector .rail::after {
  right: 0;
}

.mobile-connector .drop {
  top: 39px;
  width: 2px;
  height: 25px;
}

.mobile-connector .drop::after {
  border-top-color: #4076BF;
}

.drop-one {
  left: 0;
}

.drop-two {
  left: 33.33%;
}

.drop-three {
  left: 66.66%;
}

.drop-four {
  right: 0;
}

.mobile-shell {
  padding: 20px 20px 24px;
  border: 1.5px solid rgba(244, 163, 90, 0.46);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 237, 0.58));
  box-shadow: var(--soft-shadow);
}

.mobile-shell > h2 {
  margin: 0 0 20px;
  color: #7D310F;
  font-size: 1.5rem;
  line-height: 1.15;
  text-align: center;
  font-weight: 900;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.mobile-card {
  min-height: 238px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(var(--accent-rgb), 0.09), rgba(255, 255, 255, 0.96) 70%);
  box-shadow: 0 8px 18px rgba(7, 27, 51, 0.06);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 54px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 5px solid var(--accent-strong);
  border-radius: 11px;
  color: var(--accent-strong);
  background: var(--white);
  font-size: 24px;
}

.phone::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 22px;
  height: 7px;
  border-radius: 0 0 5px 5px;
  background: var(--white);
  transform: translateX(-50%);
}

.mobile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-card h3 {
  margin: 8px 0 12px;
  color: var(--accent-strong);
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 900;
}

.mobile-card p {
  font-size: 0.84rem;
  line-height: 1.55;
}

.store-icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 18px;
  color: #343942;
  font-size: 28px;
}

.process-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border-left: 4px solid var(--gold);
  text-align: center;
}

.process-grid b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.process-grid h3 {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.35;
}

.process-grid p {
  margin: 0;
  color: #334765;
  font-size: 13px;
  line-height: 1.6;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
}

.budget-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
}

.budget-table th {
  padding: 14px 16px;
  color: var(--white);
  background: var(--blue);
  text-align: left;
  font-weight: 900;
}

.budget-table th:first-child {
  width: 30%;
}

.budget-table th:nth-child(2) {
  width: 48%;
}

.budget-table th:last-child {
  width: 22%;
  text-align: right;
}

.budget-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  color: #263B5E;
  line-height: 1.55;
  vertical-align: top;
}

.budget-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}

.total-row td {
  color: #041C45;
  background: var(--gold) !important;
  font-size: 19px;
  font-weight: 700;
}

.payment-grid {
  display: flex;
  flex-wrap: wrap;
}

.payment-grid article {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 22px;
  text-align: center;
}

.payment-grid b {
  display: inline-block;
  align-self: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
}

.payment-grid strong {
  display: block;
  margin: 14px 0;
  color: #E0002A;
  font-size: 22px;
  line-height: 1.2;
}

.payment-grid p {
  margin: 0;
  color: #334765;
  line-height: 1.6;
}

.exclusions {
  border-left: 5px solid #E0002A;
}

.proforma-footer {
  margin: 24px 0 0;
  padding: 30px;
  border-radius: 14px 14px 0 0;
  color: var(--white);
  background: var(--navy);
  border-bottom: 8px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.proforma-footer h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 16px;
}

.proforma-footer p {
  margin: 0;
  color: #DDE8FF;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.social-icons span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
}

.proforma-footer button {
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  color: #071B45;
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #BFCDE5;
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero-proforma {
    grid-template-columns: 250px minmax(0, 1fr);
    padding: 52px 42px;
  }

  .doc-meta {
    right: 42px;
  }

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

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

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

@media (max-width: 992px) {
  .proforma-page {
    padding: 0 24px;
  }

  .hero-proforma {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 128px 34px 42px;
  }

  .agency-mark {
    top: 32px;
    left: 34px;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
    justify-self: start;
    align-self: auto;
  }

  .hero-copy {
    padding-top: 0;
  }

  .doc-meta {
    top: 42px;
    right: 34px;
  }

  .intro-cards {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    flex-direction: column;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

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

  .title-card {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 22px 24px;
  }

  .portal-shell {
    padding: 18px;
  }

  .portal-grid {
    gap: 18px;
  }

  .mobile-connector {
    width: min(560px, calc(100% - 80px));
  }

  .mobile-connector .drop-two,
  .mobile-connector .drop-three {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .access-card {
    padding: 26px 20px;
  }

  .access-input-row {
    grid-template-columns: 1fr;
  }

  .proforma-page {
    padding: 0 16px;
  }

  .hero-proforma {
    padding: 116px 24px 34px;
    border-radius: 0 0 22px 22px;
    background:
      radial-gradient(circle at 80% 8%, rgba(221, 170, 34, 0.22), transparent 24%),
      linear-gradient(155deg, #FFFFFF 0 30%, var(--navy) 30% 100%);
  }

  .agency-mark {
    left: 24px;
  }

  .doc-meta {
    position: static;
    justify-self: start;
    justify-items: start;
    margin-top: -6px;
  }

  .intro-cards {
    margin-top: -28px;
  }

  .section-block {
    margin: 24px 0;
    padding: 24px;
  }

  .preview-card-grid,
  .scope-grid,
  .requirements-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .architecture-page {
    padding-top: 18px;
  }

  .architecture-wrap {
    padding-bottom: 14px;
  }

  .title-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px 20px;
    border-radius: 14px;
  }

  .ksa-logo {
    width: 92px;
  }

  .portal-grid,
  .mobile-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
    gap: 16px;
    padding: 16px;
  }

  .icon-disc {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    font-size: 31px;
  }

  .info-card h2,
  .tech-card h2 {
    font-size: 1.1rem;
  }

  .info-card p,
  .tech-card p {
    font-size: 0.94rem;
  }

  .tech-card {
    min-height: auto;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 16px;
    text-align: left;
  }

  .tech-icon {
    font-size: 42px;
  }

  .prisma-mark {
    width: 34px;
    height: 44px;
    border-width: 5px;
    border-left-width: 8px;
  }

  .redis-stack {
    width: 52px;
    height: 44px;
  }

  .redis-stack span {
    left: 5px;
    width: 40px;
    height: 20px;
  }

  .redis-stack span:nth-child(1) {
    top: 2px;
  }

  .redis-stack span:nth-child(2) {
    top: 13px;
  }

  .redis-stack span:nth-child(3) {
    top: 24px;
  }

  .mobile-connector {
    width: 2px;
    height: 40px;
    margin-bottom: 0;
  }

  .mobile-connector .rail,
  .mobile-connector .drop {
    display: none;
  }

  .mobile-connector .stem {
    height: 40px;
  }

  .mobile-connector .stem::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid var(--line-blue);
    transform: translateX(-50%);
  }

  .mobile-shell {
    padding: 16px 14px 18px;
  }

  .mobile-card {
    min-height: 190px;
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .store-icons {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .preview-modal {
    padding: 0;
  }

  .preview-modal-panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .preview-modal-header {
    align-items: flex-start;
    min-height: 70px;
    padding: 14px;
  }

  .preview-modal-header span {
    font-size: 10px;
  }

  .preview-modal-header h2 {
    font-size: 1rem;
  }

  .preview-close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .preview-modal-tabs {
    gap: 8px;
    padding: 10px;
  }

  .preview-modal-tabs button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .preview-browser-bar {
    min-height: 36px;
    flex-basis: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .preview-browser-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .proforma-page {
    padding: 0 12px;
  }

  .hero-proforma {
    padding: 110px 18px 28px;
  }

  .agency-mark {
    top: 26px;
    left: 18px;
  }

  .agency-mark strong {
    max-width: 170px;
    line-height: 1.25;
  }

  .hero-logo {
    width: 116px;
    height: 116px;
  }

  .proforma-to,
  .total-budget,
  .section-block,
  .proforma-footer {
    padding: 20px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .preview-box {
    min-height: 360px;
  }

  .info-card {
    align-items: flex-start;
  }

  .icon-disc {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 25px;
  }

  .mobile-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .phone {
    width: 48px;
    height: 116px;
  }

  .budget-table {
    min-width: 680px;
  }

  .preview-modal-header {
    gap: 10px;
    padding: 12px;
  }

  .preview-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 17px;
  }

  .preview-modal-tabs {
    padding: 8px;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .proforma-page {
    max-width: none;
    padding: 0;
  }

  .card,
  .preview-box {
    box-shadow: none;
  }

  .hero-proforma {
    border-radius: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  button {
    display: none !important;
  }

  .section-block,
  .proforma-footer {
    break-inside: avoid;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
