/* ==========================================================================
   Booklet pages — every page is laid out at 600 x 850 (A5) and scaled with --k
   ========================================================================== */
.pg-wrap { position: absolute; inset: 0; overflow: hidden; }
.pg {
  --ink: #12304a;
  --muted: #5a7488;
  --navy: #0a3a5c;
  --blue: #0b5583;
  --sky: #1f78b4;
  --teal: #12a08f;
  --green: #3fae5a;
  --mint: #85bba2;
  --paper: #fbfcfa;
  --acc: var(--teal);
  --acc-dark: #0b6f63;
  --acc-soft: #e5f4f1;
  --fs: 1;
  position: absolute; top: 0; left: 0;
  width: 600px; height: 850px;
  transform-origin: 0 0; transform: scale(var(--k, 1));
  background: var(--paper); color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px; line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pg * { box-sizing: border-box; }
.pg p { margin: 0; }
.pg img { max-width: none; }
.pg svg { width: auto; height: auto; fill: none; stroke: none; stroke-width: 1; }
.cover .wave { width: 100%; }
.pg[dir="rtl"] { line-height: 1.75; }

/* accents (cycled per product) */
.pg.acc-0 { --acc: #12a08f; --acc-dark: #0b6b60; --acc-soft: #e3f4f0; --acc-2: #85d1bf; }
.pg.acc-1 { --acc: #1f78b4; --acc-dark: #0b4f7d; --acc-soft: #e4eff8; --acc-2: #8fc1e6; }
.pg.acc-2 { --acc: #3fae5a; --acc-dark: #237a3a; --acc-soft: #e7f5ea; --acc-2: #a6dbb2; }
.pg.acc-3 { --acc: #0f6f9e; --acc-dark: #0a3a5c; --acc-soft: #e2edf4; --acc-2: #7fb3d1; }

/* ---------- shared pieces ---------- */
.pg-foot {
  position: absolute; left: 44px; right: 44px; bottom: 22px; height: 30px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .2px;
}
.pg-foot .rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #cfdbe3 20%, #cfdbe3 80%, transparent); }
.pg-foot .num {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--acc); color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.pg-foot.outer-l { flex-direction: row; }
.pg-foot.outer-r { flex-direction: row-reverse; }
.pg-foot .brand { white-space: nowrap; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--acc-dark);
}
.pg[dir="rtl"] .kicker { letter-spacing: 0; font-size: 13px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--acc); }

.blob { position: absolute; pointer-events: none; }
.leaf-mark { position: absolute; pointer-events: none; opacity: .09; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(7px * var(--fs)); }
.checks li {
  position: relative; padding-inline-start: 28px;
  font-size: calc(13.4px * var(--fs)); line-height: 1.55; color: var(--ink);
}
.pg[dir="rtl"] .checks li { font-size: calc(14px * var(--fs)); line-height: 1.7; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .28em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.checks li::after { /* tint the check mark with the accent */
  content: ""; position: absolute; inset-inline-start: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks li::before { background-image: none; }
.checks .sub { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.checks .sub li { padding-inline-start: 18px; font-size: calc(12.8px * var(--fs)); color: #34506a; }
.checks .sub li::before { width: 7px; height: 7px; top: .7em; background: var(--acc); box-shadow: none; }
.checks .sub li::after { display: none; }

.sec-h {
  display: flex; align-items: center; gap: 10px; margin: 0 0 calc(10px * var(--fs));
  font-size: calc(16.5px * var(--fs)); font-weight: 800; color: var(--acc-dark); line-height: 1.3;
}
.sec-h .ico {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--acc); color: #fff;
}
.sec-h .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lead-p { font-size: calc(13.4px * var(--fs)); color: #34506a; margin-bottom: calc(10px * var(--fs)) !important; }

/* ==========================================================================
   Cover
   ========================================================================== */
.pg.cover { background: linear-gradient(160deg, #0d4b75 0%, #0a3a5c 45%, #072a44 100%); color: #fff; }
.cover .rays {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 85% 8%, rgba(31,120,180,.55), transparent 70%),
    radial-gradient(50% 35% at 0% 40%, rgba(18,160,143,.35), transparent 70%);
}
.cover .wave { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; }
.cover .logo-card {
  position: absolute; top: 92px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 34px; padding: 26px 36px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.45);
}
.cover .logo-card img { display: block; width: 190px; height: auto; }
.cover .names { position: absolute; top: 290px; left: 40px; right: 40px; text-align: center; }
.cover .co { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.2px; }
.cover[dir="rtl"] .co { font-size: 32px; letter-spacing: 0; }
.cover .co.small { font-size: 19px; font-weight: 600; opacity: .85; margin-top: 4px; }
.cover .tag { margin-top: 16px !important; font-size: 15.5px; color: #cfe6f2; font-weight: 600; }
.cover .label {
  display: inline-block; margin-top: 26px; padding: 8px 22px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.cover[dir="rtl"] .label { letter-spacing: 0; font-size: 16px; }
.cover .certs {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: #fff; border-radius: 20px; padding: 12px 22px;
  box-shadow: 0 16px 34px -14px rgba(10,58,92,.35);
}
.cover .certs img { display: block; height: 54px; width: auto; }
.cover .site { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 1px; }

/* ==========================================================================
   Intro / welcome
   ========================================================================== */
.pg.intro { background: radial-gradient(80% 60% at 50% 45%, #ffffff, #eef5f2); }
.intro .center { position: absolute; inset: 0 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.intro .intro-leaf { width: 74px; height: 74px; }
.intro .co { font-size: 27px; font-weight: 800; color: var(--blue); line-height: 1.35; }
.intro .quote { font-size: 21px; font-weight: 600; color: #2f4d63; line-height: 1.6; max-width: 420px; }
.intro .quote::before, .intro .quote::after { color: var(--teal); font-weight: 800; }
.intro .quote::before { content: "“"; }
.intro .quote::after { content: "”"; }
.intro[dir="rtl"] .quote::before { content: "«"; }
.intro[dir="rtl"] .quote::after { content: "»"; }
.intro .divider { width: 60px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--green)); }

/* ==========================================================================
   Full-bleed photo pages
   ========================================================================== */
.pg.photo { background: #0a3a5c; color: #fff; }
.photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,68,.05) 30%, rgba(7,42,68,.35) 55%, rgba(7,42,68,.92) 100%); }
.photo .cap { position: absolute; left: 50px; right: 50px; bottom: 74px; }
.photo .cap .kicker { color: #9fe0cf; }
.photo .cap .kicker::before { background: #9fe0cf; }
.photo .cap h3 { margin: 12px 0 0; font-size: 34px; line-height: 1.25; font-weight: 800; }
.photo[dir="rtl"] .cap h3 { line-height: 1.45; }
.photo .badge {
  position: absolute; top: 40px; inset-inline-start: 44px;
  background: #fff; border-radius: 18px; padding: 10px 16px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.photo .badge img { display: block; height: 34px; width: auto; }

/* ==========================================================================
   About pages
   ========================================================================== */
.pg.about { --acc: var(--teal); --acc-dark: #0a3a5c; --acc-soft: #e3f4f0; }
.about .head { position: relative; padding: 58px 50px 0; }
.about .head h2 { margin: 12px 0 0; font-size: 38px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.about[dir="rtl"] .head h2 { line-height: 1.4; }
.about .head .bar { width: 70px; height: 5px; border-radius: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--teal), var(--green)); }
.about .body { position: absolute; top: 205px; left: 50px; right: 50px; bottom: 70px; display: flex; flex-direction: column; gap: calc(12px * var(--fs)); }
.about .body p { font-size: calc(14px * var(--fs)); line-height: 1.7; color: #2b4860; text-align: justify; }
.about[dir="rtl"] .body p { font-size: calc(14.6px * var(--fs)); line-height: 1.85; }
.about .body p.first { font-size: calc(15.5px * var(--fs)); color: var(--ink); font-weight: 600; }
.about .body h4 { margin: calc(4px * var(--fs)) 0 0; font-size: calc(15.5px * var(--fs)); color: var(--navy); font-weight: 800; }
.about .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.about .chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid #d5e6e1; font-size: 12.5px; font-weight: 700; color: var(--navy);
}
.about .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.about .corner { position: absolute; top: -70px; inset-inline-end: -70px; width: 260px; height: 260px; }

.about.with-photo .hero { position: absolute; top: 0; left: 0; right: 0; height: 270px; }
.about.with-photo .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about.with-photo .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,58,92,0) 35%, rgba(251,252,250,1) 100%); }
.about.with-photo .head { padding-top: 205px; }
.about.with-photo .body { top: 330px; }

.grid-checks { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8px * var(--fs)) 16px; }
.grid-checks li { font-size: calc(12.8px * var(--fs)); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  background: #fff; border: 1.5px solid #dbe9e4; border-radius: 16px; padding: 14px 10px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: calc(12px * var(--fs)); font-weight: 700; line-height: 1.35; color: var(--navy);
}
.pg[dir="rtl"] .tile { font-size: calc(12.6px * var(--fs)); }
.tile .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--teal); }
.tile .ti svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats span {
  padding: 7px 14px; border-radius: 999px; font-size: calc(12.6px * var(--fs)); font-weight: 700;
  background: linear-gradient(135deg, #e3f4f0, #e4eff8); color: var(--navy);
}

.mission-card {
  position: relative; border-radius: 22px; padding: 22px 24px 22px; background: #fff;
  border: 1.5px solid #dbe9e4; box-shadow: 0 14px 30px -22px rgba(10,58,92,.35);
}
.mission-card .q { position: absolute; top: -18px; inset-inline-start: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 30px; font-weight: 800; line-height: 1; }
.mission-card .q svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Product index
   ========================================================================== */
.idx { position: absolute; top: 200px; left: 46px; right: 46px; bottom: 66px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; align-content: start; }
.idx a {
  display: flex; align-items: baseline; gap: 8px; padding: 6.5px 4px; border-bottom: 1px dashed #d3e0e7;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: color .2s, background .2s; border-radius: 6px;
}
.pg[dir="rtl"] .idx a { font-size: 14.5px; padding: 5px 4px; }
.idx a:hover { color: var(--teal); background: #eef7f4; }
.idx a .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx a .n { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 800; font-size: 13px; }
.idx a .d { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; align-self: center; }

/* ==========================================================================
   Product pages
   ========================================================================== */
.pg.product .pflow { position: absolute; top: 0; left: 0; right: 0; bottom: 62px; display: flex; flex-direction: column; overflow: hidden; }
.pg.product .hero {
  position: relative; flex-shrink: 0; overflow: hidden;
  padding: 46px 44px calc(22px * var(--fs));
  background: linear-gradient(165deg, var(--acc-soft) 0%, #fff 78%);
}
.product .hero .blob1 { top: -130px; inset-inline-end: -120px; width: 380px; height: 380px; }
.product .hero .blob2 { bottom: -70px; inset-inline-start: -70px; width: 200px; height: 200px; opacity: .5; }
.product .hero-in {
  position: relative; display: grid; min-height: 200px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: center;
}
.product .ttl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product .ttl h2 { margin: 0; font-size: var(--title-size, 40px); font-weight: 800; line-height: 1.12; color: var(--acc-dark); letter-spacing: -.5px; }
.product[dir="rtl"] .ttl h2 { line-height: 1.35; letter-spacing: 0; }
.product .ttl .intro { font-size: calc(13.4px * var(--fs)); line-height: 1.6; color: #34506a; }
.product[dir="rtl"] .ttl .intro { font-size: calc(13.8px * var(--fs)); line-height: 1.75; }
.product .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product .tags span { padding: 3px 12px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 800; direction: ltr; }
/* product shot: every product sits on the same stage (images share one canvas, baseline and baked shadow) */
.product .shot { position: relative; align-self: center; width: calc(100% + 14px); margin-inline-end: -14px; aspect-ratio: 1100 / 790; }
.product .shot .halo {
  position: absolute; left: 50%; top: 46%; width: 104%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 42%, rgba(255,255,255,0) 70%);
}
.product .shot .floor {
  position: absolute; left: 6%; right: 6%; top: 84%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent);
}
.product .shot img { position: relative; display: block; width: 100%; height: auto; }
.product .hero-in.wide { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.product .hero-in.wide .shot { width: 74%; margin: -6px auto -8px; aspect-ratio: 1650 / 560; }
.product .hero-in.wide .shot .halo { width: 80%; aspect-ratio: 3; top: 52%; }

.product .main { flex-shrink: 0; padding: calc(16px * var(--fs)) 44px 0; display: flex; flex-direction: column; gap: calc(14px * var(--fs)); }
.product .bottom { flex-shrink: 0; margin-top: auto; padding: calc(14px * var(--fs)) 44px 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.product .bottom.two { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.dose {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 18px; padding: calc(13px * var(--fs)) 16px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-dark) 100%); color: #fff;
  box-shadow: 0 14px 26px -18px var(--acc-dark);
}
.dose .di { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.dose .di svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dose b { display: block; font-size: calc(12px * var(--fs)); letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.pg[dir="rtl"] .dose b { letter-spacing: 0; font-size: calc(13px * var(--fs)); }
.dose ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; }
.dose li { font-size: calc(13px * var(--fs)); font-weight: 600; line-height: 1.5; }
.facts {
  border-radius: 18px; background: #fff; border: 1.5px solid #e1e9ee; padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 6px; min-height: 0;
}
.facts b { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.pg[dir="rtl"] .facts b { letter-spacing: 0; font-size: 12px; }
.facts img { width: 100%; height: auto; display: block; max-height: var(--th, none); object-fit: contain; object-position: top center; }

/* ==========================================================================
   Back cover
   ========================================================================== */
.pg.back { background: linear-gradient(200deg, #0d4b75 0%, #0a3a5c 50%, #072a44 100%); color: #fff; }
.back .ph { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; width: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.back .ph-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; background: linear-gradient(180deg, #0a3a5c 0%, rgba(10,58,92,.4) 60%, rgba(7,42,68,.85) 100%); }
.back .logo-card { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 28px; padding: 18px 28px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.5); }
.back .logo-card img { display: block; width: 140px; }
.back .co { position: absolute; top: 230px; left: 40px; right: 40px; text-align: center; font-size: 24px; font-weight: 800; line-height: 1.35; }
.back .contact { position: absolute; top: 330px; left: 70px; right: 70px; display: grid; gap: 12px; }
.back .row { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; }
.back .row .ci { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.back .row .ci svg { width: 19px; height: 19px; stroke: #9fe0cf; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back .row .v { direction: ltr; unicode-bidi: isolate; }
.back .qr { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; background: #fff; color: var(--navy); border-radius: 22px; padding: 12px 20px 12px 12px; }
.back[dir="rtl"] .qr { padding: 12px 12px 12px 20px; }
.back .qr img { width: 92px; height: 92px; display: block; border-radius: 8px; }
.back .qr span { font-size: 14px; font-weight: 800; max-width: 150px; line-height: 1.4; }

/* mini pages (contents thumbnails, gate cover) */
.mini { position: relative; width: 100%; aspect-ratio: 600 / 850; overflow: hidden; border-radius: 6px; background: #fff; }
.mini .pg { pointer-events: none; }
