:root {
  --navy: #071c22;
  --navy-2: #0d2c33;
  --ink: #15343a;
  --muted: #63777a;
  --paper: #f5f1e8;
  --paper-2: #ebe5d9;
  --white: #fffefa;
  --line: rgba(21, 52, 58, 0.14);
  --accent: #d8ff55;
  --accent-deep: #9bc51d;
  --teal: #1bb995;
  --teal-soft: #dff7ef;
  --sand: #efb866;
  --shadow: 0 22px 60px rgba(7, 28, 34, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link {
  position: fixed;
  top: -70px;
  right: 18px;
  z-index: 1000;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 9px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  direction: ltr;
}
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 3px 12px rgba(6, 31, 36, .14);
}
.brand > span:last-child { display: grid; line-height: 1.08; }
.brand strong { color: var(--navy); font-size: 16px; font-weight: 900; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.topbar nav { display: flex; justify-content: center; gap: 24px; }
.topbar nav a {
  position: relative;
  color: #4d6669;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.topbar nav a::after {
  position: absolute;
  inset-inline-start: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transition: width .2s ease;
}
.topbar nav a:hover::after { width: 100%; }
.top-actions { display: flex; gap: 8px; }
.button-language { min-width: 43px; padding-inline: 12px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); }
.print-profile-header { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--navy); color: white; }
.button-quiet { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button-accent { background: var(--accent); color: var(--navy); box-shadow: 0 12px 28px rgba(180, 222, 43, .22); }

.section-shell { padding-inline: clamp(22px, 6vw, 96px); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .62fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  min-height: 700px;
  padding-top: 92px;
  padding-bottom: 92px;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -10%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(21, 52, 58, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(21, 52, 58, .025), 0 0 0 180px rgba(21, 52, 58, .018);
  content: "";
}
.eyebrow, .section-kicker {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
.hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.18;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-lead {
  max-width: 710px;
  margin: 24px 0 0;
  color: #526a6e;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.85;
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.hero-actions .button { min-height: 50px; padding-inline: 24px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link span { display: inline-block; margin-right: 5px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }

.decision-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: white;
  box-shadow: 0 30px 80px rgba(7, 28, 34, .22);
  overflow: hidden;
}
.decision-card::after {
  position: absolute;
  top: -80px;
  left: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(216, 255, 85, .08);
  content: "";
}
.decision-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #b7c7c9; font-size: 12px; font-weight: 700; }
.live { display: flex; align-items: center; gap: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(216, 255, 85, .12); }
.decision-card > p:first-of-type { position: relative; z-index: 1; margin: 38px 0 5px; color: #b7c7c9; font-size: 13px; }
.decision-card > strong { position: relative; z-index: 1; display: block; color: var(--accent); font-size: clamp(34px, 4.2vw, 56px); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; }
.decision-card > small { color: #a9bec1; font-size: 12px; }
.decision-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 20px;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, .12);
}
.decision-summary div { padding: 0 12px; border-inline-end: 1px solid rgba(255,255,255,.1); }
.decision-summary div:first-child { padding-right: 0; }
.decision-summary div:last-child { border-inline-end: 0; }
.decision-summary span, .decision-summary b { display: block; }
.decision-summary span { color: #a8babc; font-size: 12px; }
.decision-summary b { margin-top: 3px; font-size: 17px; }
.decision-line { position: relative; z-index: 1; min-height: 46px; margin: 0 !important; color: #d5e0e1 !important; font-size: 13px !important; line-height: 1.75; }

.advantage-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(22px, 6vw, 96px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.advantage-band div { padding: 24px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.advantage-band div:last-child { border-left: 0; }
.advantage-band strong, .advantage-band span { display: block; }
.advantage-band strong { color: var(--accent); font-size: 23px; font-weight: 900; }
.advantage-band span { margin-top: 2px; color: #b7c7c9; font-size: 12px; }

.calculator, .benefits, .references { padding-top: 110px; padding-bottom: 110px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 36px;
}
.section-heading h2, .common-costs h2, .closing h2, .references-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.3;
}
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.input-panel, .results-panel { padding: clamp(25px, 3.4vw, 44px); }
.input-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--white); }
.input-panel-title { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.input-panel-title h3 { margin: 0; font-size: 19px; }
.reset-button { padding: 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 800; }
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field-label label { color: #39565a; font-size: 13px; font-weight: 800; }
.field input[type="number"], .field select, .money-input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fbfaf6;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .money-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 185, 149, .12); }
.field-label { display: flex; justify-content: space-between; align-items: center; }
.field-label output { color: var(--navy); font-size: 17px; font-weight: 900; }
.range-field { padding: 17px 18px 14px; border-radius: 14px; background: #f6f4ed; }
.range-field input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--teal); }
.service-range { background: var(--teal-soft); }
.pricing-policy {
  padding: 18px;
  border: 1px solid rgba(189, 120, 31, .2);
  border-radius: 14px;
  background: #fff9ed;
}
.pricing-policy-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.pricing-policy-head span { color: var(--teal); font-size: 12px; font-weight: 900; }
.pricing-policy-head h4 { margin: 2px 0 0; color: var(--navy); font-size: 15px; }
.pricing-policy-head > strong { max-width: 250px; color: #9a621f; font-size: 12px; line-height: 1.6; text-align: end; }
.pricing-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pricing-tier {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 52, 58, .1);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.pricing-tier span { min-height: 36px; color: #597074; font-size: 11px; font-weight: 800; line-height: 1.55; }
.pricing-tier strong { color: var(--navy); font-size: 24px; line-height: 1; }
.pricing-tier small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.pricing-tier.active { border-color: var(--teal); background: var(--teal-soft); transform: translateY(-2px); }
.pricing-tier.active strong { color: var(--teal); }
.pricing-policy > p { margin: 13px 0 0; color: #6e7f81; font-size: 11px; line-height: 1.75; }
.housing-inputs {
  padding: 18px;
  border: 1px solid rgba(21, 52, 58, .1);
  border-radius: 14px;
  background: #f3efe5;
}
.emiratisation-inputs { padding: 18px; border: 1px solid rgba(189, 120, 31, .18); border-radius: 14px; background: #fff5e4; }
.housing-inputs-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 14px; }
.housing-inputs-head span { color: var(--teal); font-size: 12px; font-weight: 900; }
.housing-inputs-head h4 { margin: 1px 0 0; color: var(--navy); font-size: 15px; }
.housing-inputs-head small { color: var(--muted); font-size: 12px; }
.housing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.range-edges { display: flex; justify-content: space-between; color: #6f8386; font-size: 12px; }
.money-input { display: flex; align-items: center; }
.money-input input { min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; }
.money-input span { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.assumptions { border-top: 1px solid var(--line); padding-top: 6px; }
.assumptions summary { padding: 10px 0; color: var(--teal); cursor: pointer; font-size: 13px; font-weight: 800; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 10px; }

.results-panel { background: var(--navy); color: white; }
.result-hero { padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.result-hero > span { color: #a9bdc0; font-size: 13px; font-weight: 700; }
.result-hero > strong { display: block; margin: 7px 0 0; color: var(--accent); font-size: clamp(38px, 5vw, 60px); font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.result-hero > small { color: #a6b8ba; font-size: 12px; }
.result-hero p { min-height: 25px; margin: 12px 0 0; color: #d8e2e3; font-size: 14px; }
.result-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; background: rgba(255,255,255,.11); }
.result-kpis article { padding: 17px 18px; background: var(--navy); }
.result-kpis span, .result-kpis strong, .result-kpis small { display: block; }
.result-kpis span { color: #a7b8ba; font-size: 13px; }
.result-kpis strong { margin: 4px 0 1px; font-size: 21px; font-weight: 900; }
.result-kpis small { color: #a7b8ba; font-size: 12px; }
.savings-drivers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -4px 0 24px; }
.savings-drivers div { padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
.savings-drivers span, .savings-drivers b { display: block; }
.savings-drivers span { min-height: 38px; color: #a7b9bb; font-size: 12px; line-height: 1.55; }
.savings-drivers b { margin-top: 3px; color: var(--accent); font-size: 16px; }
.composition-head, .composition-row > div:first-child { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.composition-head h3 { margin: 0; font-size: 15px; }
.composition-head span, .composition-row span { color: #a9babc; font-size: 12px; }
.composition-row { margin-top: 16px; }
.composition-row b { font-size: 12px; }
.bar { height: 8px; margin-top: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; direction: ltr; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--sand); transition: width .45s ease; }
.nps-row .bar i { background: var(--accent); }

.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.breakdown-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.breakdown-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.breakdown-title h3 { margin: 6px 0 0; font-size: 19px; }
.breakdown-title > strong { color: var(--navy); font-size: 22px; font-weight: 900; white-space: nowrap; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-direct { background: #f8ead3; color: #9b651a; }
.badge-nps { background: var(--accent); color: var(--navy); }
.fee-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 14px; }
.fee-list > div, .operating-costs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.fee-list span, .operating-costs span { color: #536a6d; font-size: 13px; }
.fee-list b, .operating-costs b { font-size: 13px; white-space: nowrap; }
.fee-list b::after, .operating-costs b::after { content: " د.إ"; color: var(--muted); font-size: 10px; font-weight: 600; }
.operating-costs { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #f4f1e9; }
.nps-card { background: var(--navy); color: white; }
.nps-card .breakdown-title { border-color: rgba(255,255,255,.12); }
.nps-card .breakdown-title > strong, .nps-card h3 { color: white; }
.nps-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 30px 0; text-align: center; }
.nps-price div > span, .nps-price small { display: block; color: #bac9cb; font-size: 12px; }
.nps-price strong { display: block; margin: 4px 0; color: var(--accent); font-size: 32px; font-weight: 900; }
.nps-price .plus { color: #6c8589; font-size: 22px; }
.nps-inclusions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nps-inclusions div { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.07); color: #d7e2e3; font-size: 13px; }
.nps-inclusions i { display: grid; flex: 0 0 auto; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: var(--navy); font-style: normal; font-weight: 900; }
.nps-housing-line { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(216,255,85,.09); font-size: 13px; }
.nps-housing-line span { color: #b9cbcd; }
.nps-housing-line b { color: var(--accent); }
.client-responsibility { margin: 18px 0 0; padding: 13px 15px; border-inline-start: 3px solid var(--accent); background: rgba(216,255,85,.07); color: #c8d6d8; font-size: 13px; }
.client-responsibility b { color: white; }

.cost-detail { margin-top: 24px; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.cost-detail-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.cost-detail-head h3 { margin: 0; color: var(--navy); font-size: 25px; }
.cost-detail-head > div:first-child > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.detail-tabs { display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: var(--paper-2); }
.detail-tabs button { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 800; }
.detail-tabs button.active { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(7,28,34,.14); }
.detail-panel { margin-top: 26px; }
.detail-panel[hidden] { display: none; }
.detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.detail-summary article { padding: 16px 17px; border: 1px solid var(--line); border-radius: 13px; background: #f8f5ee; }
.detail-summary span, .detail-summary strong, .detail-summary small { display: block; }
.detail-summary span { color: var(--muted); font-size: 12px; }
.detail-summary strong { margin: 5px 0 1px; color: var(--navy); font-size: 21px; font-weight: 900; }
.detail-summary small { color: var(--teal-dark); font-size: 12px; }
.detail-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.detail-table { width: 100%; min-width: 760px; border-collapse: collapse; background: white; }
.detail-table th, .detail-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: start; font-size: 13px; }
.detail-table th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }
.detail-table th:first-child, .detail-table td:first-child { position: sticky; inset-inline-start: 0; z-index: 2; background: #fbf9f3; }
.detail-table th:first-child { background: var(--navy); }
.detail-table td:not(:first-child) { white-space: nowrap; font-weight: 700; }
.detail-table .option-direct { color: #a96b18; font-weight: 800; }
.detail-table .option-nps { color: var(--teal-dark); font-weight: 800; }
.detail-table .detail-total td { background: #eef8f4; color: var(--navy); font-weight: 900; }
.detail-table .detail-saving td { background: var(--accent); color: var(--navy); font-weight: 900; }

.risk-section { padding-top: 100px; padding-bottom: 100px; background: #0b3036; color: white; }
.wps-story { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.wps-main-card, .nps-flex-card { border-radius: var(--radius-lg); }
.wps-main-card { padding: 30px; border: 1px solid rgba(255,255,255,.1); background: #071f25; }
.wps-card-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.wps-card-head span { color: var(--sand); font-size: 12px; font-weight: 800; }
.wps-card-head strong { font-size: 17px; }
.wps-timeline { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 26px; }
.wps-timeline > div { position: relative; min-height: 174px; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.1); }
.wps-timeline > div:last-child { border-left: 0; }
.wps-timeline b { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 22px; border: 1px solid rgba(239,184,102,.4); border-radius: 50%; color: var(--sand); font-size: 16px; }
.wps-timeline span, .wps-timeline strong, .wps-timeline small { display: block; }
.wps-timeline strong { color: white; font-size: 12px; }
.wps-timeline small { margin-top: 7px; color: #aabbbd; font-size: 12px; line-height: 1.75; }
.nps-flex-card { padding: 30px; background: var(--accent); color: var(--navy); }
.nps-flex-card h3 { margin: 32px 0 6px; font-size: 20px; }
.nps-flex-card > strong { display: block; font-size: 32px; font-weight: 900; letter-spacing: -.03em; }
.nps-flex-card p { margin: 12px 0 20px; color: rgba(7,28,34,.78); font-size: 13px; line-height: 1.8; }
.nps-flex-card ul { display: grid; gap: 9px; margin: 0; padding: 0 18px; padding-inline-end: 0; font-size: 13px; font-weight: 700; }
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.risk-grid article { padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.045); }
.risk-number { display: block; color: var(--sand); font-size: 28px; font-weight: 900; line-height: 1.2; }
.risk-grid small { color: #afc0c2; font-size: 12px; }
.risk-grid h3 { margin: 24px 0 0; color: #e9f0ef; font-size: 14px; line-height: 1.7; }
.inspection-strip { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-top: 18px; padding: 22px 26px; border: 1px solid rgba(216,255,85,.24); border-radius: 16px; background: rgba(216,255,85,.07); }
.inspection-strip span { color: var(--accent); font-size: 12px; font-weight: 900; }
.inspection-strip h3 { margin: 4px 0 0; color: white; font-size: 15px; line-height: 1.65; }
.inspection-strip p { margin: 0; color: #b9c8ca; font-size: 12px; line-height: 1.8; }
.classification-impact { display: grid; grid-template-columns: 1.25fr auto .8fr; gap: 30px; align-items: center; margin-top: 18px; padding: 25px 28px; border-radius: 16px; background: white; color: var(--navy); }
.classification-impact span { color: var(--teal); font-size: 12px; font-weight: 900; }
.classification-impact h3 { margin: 4px 0 0; font-size: 16px; }
.classification-impact > strong { color: #bd781f; font-size: 27px; font-weight: 900; white-space: nowrap; }
.classification-impact > strong small { display: block; color: var(--muted); font-size: 10px; text-align: center; }
.classification-impact p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.trajectory { padding-top: 100px; padding-bottom: 100px; background: var(--navy); }
.section-heading.light h2, .light .section-kicker { color: white; }
.section-heading.light > p { color: #9fb1b4; }
.chart-card { padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: var(--navy-2); }
.chart-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.chart-legend { display: flex; gap: 24px; color: #c4d0d1; font-size: 12px; }
.chart-legend span { display: flex; gap: 7px; align-items: center; }
.chart-legend i { width: 10px; height: 10px; border-radius: 50%; }
.direct-dot { background: var(--sand); }
.nps-dot { background: var(--accent); }
.chart-head > strong { color: var(--accent); font-size: 14px; }
.chart-wrap { position: relative; height: 340px; direction: ltr; }
#costChart { width: 100%; height: 100%; }
.month-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.month-card { padding: 13px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.month-card span, .month-card strong, .month-card small { display: block; }
.month-card span { color: #afbec0; font-size: 12px; }
.month-card strong { margin: 2px 0; color: white; font-size: 15px; }
.month-card small { color: var(--accent); font-size: 12px; }

.benefit-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-cards article { min-height: 195px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.benefit-cards article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-cards article > span { color: var(--teal); font-size: 12px; font-weight: 900; }
.benefit-cards h3 { margin: 30px 0 10px; font-size: 19px; }
.benefit-cards p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.comparison-table { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: .65fr 1fr 1fr; }
.comparison-row > div { padding: 15px 20px; border-inline-end: 1px solid var(--line); border-top: 1px solid var(--line); color: #536b6e; font-size: 14px; }
.comparison-row > div:last-child { border-inline-end: 0; color: var(--navy); }
.comparison-row > div:first-child { color: var(--ink); font-weight: 800; }
.comparison-head > div { border-top: 0; background: var(--navy); color: white !important; font-size: 13px; font-weight: 800; }
.comparison-row b { color: var(--teal); }

.common-costs {
  display: grid;
  grid-template-columns: .58fr 1.4fr;
  gap: 42px 70px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--paper-2);
}
.common-costs h2 { font-size: 30px; }
.cost-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.cost-tags span { padding: 8px 13px; border: 1px solid rgba(21,52,58,.12); border-radius: 999px; background: rgba(255,255,255,.5); color: #4d6669; font-size: 12px; font-weight: 700; }
.common-costs > p { grid-column: 2; margin: -25px 0 0; color: var(--muted); font-size: 12px; }

.closing { display: flex; justify-content: space-between; gap: 50px; align-items: center; padding-top: 72px; padding-bottom: 72px; background: var(--teal); color: var(--navy); }
.closing h2 { max-width: 850px; color: var(--navy); font-size: clamp(28px, 3.4vw, 44px); }
.light-eyebrow { color: rgba(7,28,34,.7); }
.closing .button { min-width: 160px; }

.references { background: var(--paper); }
.references-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.references-head h2 { font-size: 30px; }
.references-head > p { margin: 0; color: var(--muted); font-size: 11px; }
.source-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.source-links a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); color: #496266; font-size: 12px; font-weight: 700; text-decoration: none; }
.source-links a:hover { border-color: var(--teal); color: var(--teal); }
.reference-method { max-width: 1120px; margin: 18px 0 0; color: #667b7e; font-size: 12px; line-height: 1.9; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 26px clamp(22px, 6vw, 96px); background: var(--navy); color: white; }
.footer-brand .brand-mark { box-shadow: 0 3px 14px rgba(0, 0, 0, .22); }
.footer-brand strong { color: white; }
footer p { margin: 0; color: #91a8aa; font-size: 11px; }
.toast { position: fixed; z-index: 1000; inset-inline-end: 24px; bottom: 24px; padding: 11px 16px; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .topbar nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .decision-card { max-width: 620px; }
  .advantage-band { grid-template-columns: 1fr 1fr; }
  .advantage-band div:nth-child(2) { border-left: 0; }
  .advantage-band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .calculator-grid, .breakdown-grid { grid-template-columns: 1fr; }
  .benefit-cards { grid-template-columns: 1fr 1fr; }
  .wps-story { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .classification-impact { grid-template-columns: 1fr auto; }
  .classification-impact p { grid-column: 1 / -1; }
  .cost-detail-head { align-items: start; flex-direction: column; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .top-actions { gap: 5px; }
  .top-actions .button { min-height: 39px; padding: 8px 10px; font-size: 11px; }
  #copySummary { display: none; }
  .topbar { padding-inline: 12px; }
  .brand small { display: none; }
  .hero { gap: 44px; padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .decision-card { padding: 23px; }
  .decision-summary b { font-size: 14px; }
  .advantage-band { grid-template-columns: 1fr; }
  .advantage-band div { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .calculator, .benefits, .references { padding-top: 78px; padding-bottom: 78px; }
  .section-heading, .references-head { align-items: start; flex-direction: column; gap: 12px; }
  .input-panel { grid-template-columns: 1fr; }
  .field-wide, .input-panel-title { grid-column: auto; }
  .details-grid, .result-kpis, .fee-list, .nps-inclusions, .housing-fields, .savings-drivers, .pricing-tier-grid { grid-template-columns: 1fr; }
  .pricing-policy-head { align-items: start; flex-direction: column; }
  .pricing-policy-head > strong { max-width: none; text-align: start; }
  .pricing-tier span { min-height: 0; }
  .input-panel, .results-panel, .breakdown-card, .cost-detail { padding: 21px; }
  .detail-tabs { width: 100%; }
  .detail-tabs button { flex: 1; padding-inline: 8px; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
  .detail-summary article { padding: 13px; }
  .detail-summary strong { font-size: 18px; }
  .detail-table-wrap { margin-inline: -7px; width: calc(100% + 14px); }
  .nps-price { gap: 10px; }
  .nps-price strong { font-size: 26px; }
  .month-cards { grid-template-columns: 1fr 1fr; }
  .benefit-cards { grid-template-columns: 1fr; }
  .wps-timeline { grid-template-columns: 1fr; }
  .wps-timeline > div { display: grid; grid-template-columns: auto 1fr; gap: 14px; min-height: auto; padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .wps-timeline b { margin: 0; }
  .risk-grid { grid-template-columns: 1fr; }
  .inspection-strip { grid-template-columns: 1fr; gap: 12px; }
  .classification-impact { grid-template-columns: 1fr; }
  .classification-impact p { grid-column: 1; }
  .classification-impact > strong small { text-align: right; }
  .comparison-table { overflow-x: auto; }
  .comparison-row { min-width: 720px; }
  .common-costs { grid-template-columns: 1fr; gap: 24px; }
  .common-costs > p { grid-column: 1; margin: 0; }
  .closing { align-items: flex-start; flex-direction: column; }
  .source-links { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .topbar { grid-template-columns: auto 1fr; }
  .top-actions { justify-content: flex-end; }
  .top-actions .button { padding-inline: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero h1 { font-size: 35px; }
  .section-shell { padding-inline: 16px; }
  .advantage-band { margin-inline: 16px; }
  .decision-summary { grid-template-columns: 1fr 1fr; gap: 12px; }
  .decision-summary div { border: 0; }
  .decision-summary div:last-child { grid-column: 1 / -1; }
  .detail-summary { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { background: white; color: #102a2f; font-family: "Cairo", Tahoma, Arial, sans-serif; font-size: 10.5pt; }
  .topbar, .hero-actions, .reset-button, .toast, .input-panel, .detail-tabs, .closing .button { display: none !important; }
  .print-profile-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 7mm; border-bottom: 1px solid #ccd5d3; }
  .print-profile-header > div:last-child { display: grid; text-align: end; }
  .print-profile-header > div:last-child span { color: #577074; font-size: 9pt; }
  .print-profile-header > div:last-child strong { font-size: 11pt; }
  .section-shell { padding: 9mm 0; }
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10mm; min-height: 0; padding-top: 12mm; padding-bottom: 10mm; page-break-after: auto; }
  .hero::before { display: none; }
  .hero h1 { font-size: 30pt; }
  .hero-lead { font-size: 12pt; }
  .decision-card { padding: 7mm; box-shadow: none; }
  .advantage-band { margin: 0; border-radius: 0; break-inside: avoid; }
  .calculator, .risk-section, .trajectory, .benefits, .references { page-break-before: always; }
  .calculator-grid { display: block; }
  .results-panel { border-radius: 5mm; }
  .breakdown-grid { grid-template-columns: 1fr 1fr; gap: 5mm; }
  .breakdown-card { padding: 5mm; }
  .cost-detail { padding: 6mm; box-shadow: none; }
  .detail-panel, .detail-panel[hidden] { display: block !important; margin-top: 6mm; break-before: auto; }
  .detail-panel + .detail-panel { page-break-before: always; }
  .detail-summary { grid-template-columns: repeat(4, 1fr); }
  .detail-table { min-width: 0; }
  .detail-table th, .detail-table td { padding: 2.6mm 2mm; font-size: 8.5pt; }
  .detail-table th:first-child, .detail-table td:first-child { position: static; }
  .calculator-grid, .breakdown-card, .cost-detail, .chart-card, .benefit-cards article, .comparison-table, .risk-grid article { box-shadow: none; break-inside: avoid; }
  .risk-section, .trajectory, .results-panel, .nps-card, .advantage-band, .detail-table th, .detail-table .detail-saving td { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .chart-wrap { height: 90mm; }
  .benefit-cards { grid-template-columns: 1fr 1fr; }
  .source-links { grid-template-columns: 1fr 1fr; }
  details { display: none; }
  a { text-decoration: none; }
}
