/* Sahtain main hero — matched to sahtain.sa (.sahtain-d01-hero)
   Use px (Zid root font is often ~12px; rem would shrink type). */

:root {
  --sahtain-blue: #3f9ae5;
}

/* Pull hero under floating header */
body.sahtain-header-active:has(.sahtain-d01-hero) .sahtain-header-spacer {
  display: none;
}

.sahtain-d01-hero,
.sahtain-d01-hero * ,
.sahtain-d01-hero *::before,
.sahtain-d01-hero *::after {
  box-sizing: border-box;
}

.sahtain-d01-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #07111d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #0b2340;
  width: 100%;
  max-width: none;
}

.d01-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -8;
  background-color: #07111d;
  background-image: var(--d01-bg-desktop, none);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: auto;
}

.d01-hero-bg-img {
  display: none;
}

.sahtain-d01-hero.is-empty-bg .d01-hero-bg {
  background-image: none;
}

.d01-hero-light {
  position: absolute;
  inset: 0;
  z-index: -6;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 38%, rgba(163, 213, 244, 0.08), transparent 448px),
    linear-gradient(90deg, rgba(4, 15, 28, 0) 0%, rgba(4, 15, 28, 0.04) 40%, rgba(3, 14, 27, 0.22) 62%, rgba(3, 14, 27, 0.38) 100%);
}

.d01-hero-grain {
  position: absolute;
  inset: 0;
  z-index: -5;
  opacity: 0.024;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.d01-hero-inner {
  /* LTR flex so flex-end pins copy to the RIGHT (bottle stays left) — matches sahtain.sa */
  width: min(1480px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  direction: ltr;
}

.d01-hero-copy {
  width: min(650px, 43vw);
  margin: 0;
  padding: clamp(18px, 2vw, 28px);
  position: relative;
  z-index: 8;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.28) 0 2px 18px;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .d01-hero-copy,
html[lang="en"] .d01-hero-copy,
body.ltr .d01-hero-copy {
  direction: ltr !important;
  text-align: left !important;
}

.d01-hero-copy > * {
  position: relative;
  z-index: 2;
}

.d01-hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--d01-kicker-color, rgba(255, 255, 255, 0.9));
  font-size: var(--d01-kicker-size, 14.72px);
  font-weight: 900;
  line-height: var(--d01-kicker-lh, 1.2);
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html[dir="ltr"] .d01-hero-kicker,
html[lang="en"] .d01-hero-kicker,
body.ltr .d01-hero-kicker {
  flex-direction: row !important;
}

.d01-hero-kicker::after {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.d01-hero-title {
  margin: 0;
  color: var(--d01-title-color, #fff) !important;
  font-family: inherit !important;
  font-size: clamp(calc(var(--d01-title-size, 108.8px) * 0.5294117647), 5.5vw, var(--d01-title-size, 108.8px)) !important;
  line-height: var(--d01-title-lh, 1.06) !important;
  letter-spacing: -0.02em;
  font-weight: 900 !important;
  max-width: 10ch !important;
  width: auto;
  text-wrap: balance;
  text-align: inherit;
}

.d01-hero-title span {
  display: block;
  margin-top: 0.03em;
  max-width: 10ch;
}

.d01-hero-desc {
  width: min(590px, 100%);
  margin: 24px 0 27px;
  color: var(--d01-desc-color, rgba(255, 255, 255, 0.76));
  font-size: clamp(calc(var(--d01-desc-size, 18.88px) * 0.8474576271), 1.18vw, var(--d01-desc-size, 18.88px));
  line-height: var(--d01-desc-lh, 1.9);
  max-width: 36ch;
  font-weight: 400;
}

.d01-hero-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
}

.d01-hero-btn {
  min-width: 180px;
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 900;
  font-size: var(--d01-btn-size, 16px);
  line-height: var(--d01-btn-lh, 1.2);
  transition: 0.24s;
  border: 0;
  cursor: pointer;
}

.d01-hero-btn.primary {
  background: var(--sahtain-blue);
  color: var(--d01-btn-color, #fff) !important;
  box-shadow: rgba(8, 103, 185, 0.2) 0 14px 32px;
}

.d01-hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: rgba(8, 103, 185, 0.27) 0 19px 40px;
  color: var(--d01-btn-color, #fff) !important;
}

.d01-hero-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: var(--d01-btn-color, #fff) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.d01-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  color: var(--d01-btn-color, #fff) !important;
}

.d01-hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.d01-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-width: 0;
  color: #fff;
}

.d01-benefit:first-child {
  padding-inline-start: 0;
}

.d01-benefit + .d01-benefit {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
}

.d01-benefit-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
}

.d01-benefit-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.d01-benefit strong {
  display: block;
  font-size: var(--d01-benefit-title-size, 13.76px);
  margin-bottom: 2px;
  font-weight: 900;
  color: var(--d01-benefit-title-color, #fff);
  line-height: var(--d01-benefit-title-lh, 1.2);
}

.d01-benefit span {
  display: block;
  color: var(--d01-benefit-desc-color, rgba(255, 255, 255, 0.62));
  font-size: var(--d01-benefit-desc-size, 10.72px);
  line-height: var(--d01-benefit-desc-lh, 1.4);
  font-weight: 400;
}

/* Trust rail */
.d01-trust-rail {
  position: absolute;
  z-index: 12;
  right: 50%;
  bottom: 24px;
  translate: 50% 0;
  width: min(1400px, calc(100% - 70px));
  min-height: 98px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(24px) saturate(120%) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(120%) brightness(1.04);
  box-shadow:
    rgba(0, 10, 24, 0.24) 0 24px 70px,
    rgba(255, 255, 255, 0.18) 0 1px 0 inset;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.45fr;
  align-items: center;
}

.d01-trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  min-width: 0;
}

.d01-trust-item + .d01-trust-item {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 0;
}

html[lang="en"] .d01-trust-item + .d01-trust-item,
html[dir="ltr"] .d01-trust-item + .d01-trust-item {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.d01-trust-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.d01-trust-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.d01-trust-item strong {
  display: block;
  color: #fff;
  font-size: 14.72px;
  font-weight: 900;
  margin-bottom: 2px;
}

.d01-trust-item span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11.36px;
  white-space: nowrap;
}

.d01-payment-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 0;
  direction: ltr;
  color: #fff;
}

html[lang="en"] .d01-payment-strip,
html[dir="ltr"] .d01-payment-strip {
  margin-right: 0 !important;
  margin-left: auto !important;
  border-right: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding-right: 0 !important;
  padding-left: 24px !important;
}

.d01-pay-logo {
  font-family: Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0.92;
}

.d01-pay-logo.visa { font-size: 23.2px; }
.d01-pay-logo.mc { font-size: 12.32px; }
.d01-pay-logo.mada { font-size: 15.2px; }
.d01-pay-logo.apple {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.d01-pay-apple-icon {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
}
.d01-pay-apple-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}
.d01-pay-logo.tabby { font-size: 15.2px; letter-spacing: -0.02em; }
.d01-pay-logo.tamara { font-size: 15.2px; letter-spacing: -0.02em; }

/* Reveal */
.d01-hero-copy,
.d01-trust-rail {
  opacity: 0;
  transform: translateY(20px);
}

.is-ready .d01-hero-copy {
  animation: sahtainHeroReveal 0.78s cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

.is-ready .d01-trust-rail {
  animation: sahtainHeroReveal 0.72s cubic-bezier(0.2, 0.78, 0.2, 1) 0.12s forwards;
}

@keyframes sahtainHeroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* EN overrides when html lang is en */
html[lang="en"] .d01-hero-inner {
  direction: ltr !important;
}

html[lang="en"] .d01-hero-copy {
  direction: ltr !important;
  text-align: left !important;
}

html[lang="en"] .d01-hero-kicker {
  direction: ltr !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
}

html[lang="en"] .d01-hero-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  margin-right: 8px;
}

html[lang="en"] .d01-hero-kicker::after {
  display: none !important;
}

html[lang="en"] .d01-hero-title {
  letter-spacing: -0.025em;
  max-width: 14ch !important;
  font-size: clamp(calc(var(--d01-title-size, 108.8px) * 0.3529411765), 4.2vw, calc(var(--d01-title-size, 108.8px) * 0.6764705882)) !important;
  line-height: calc(var(--d01-title-lh, 1.06) * 1.0566037736) !important;
  text-align: left !important;
}

html[lang="en"] .d01-hero-desc {
  text-align: left !important;
  max-width: 44ch !important;
  font-size: calc(var(--d01-desc-size, 18.88px) * 0.8898305085) !important;
  line-height: calc(var(--d01-desc-lh, 1.9) * 0.9210526316) !important;
}

html[lang="en"] .d01-hero-actions {
  justify-content: flex-start !important;
  direction: ltr !important;
}

html[lang="en"] .d01-hero-benefits,
html[lang="en"] .d01-trust-rail {
  direction: ltr !important;
}

html[lang="en"] .d01-trust-item {
  flex-direction: row !important;
  text-align: left !important;
}

html[lang="en"] .d01-benefit {
  flex-direction: row !important;
  text-align: left !important;
  padding: 0 14px !important;
}

html[lang="en"] .d01-benefit:first-child {
  padding-left: 0 !important;
  padding-right: 14px !important;
}

html[lang="en"] .d01-benefit + .d01-benefit {
  border-right: none !important;
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* Tablet */
@media (max-width: 1050px) {
  .d01-hero-inner {
    padding-top: 124px;
    padding-bottom: 48px;
    align-items: flex-start;
  }

  .d01-hero-copy {
    width: min(620px, 56vw);
    margin-top: 5vh;
  }

  .d01-hero-title {
    font-size: clamp(calc(var(--d01-title-size, 108.8px) * 0.4852941176), 7vw, calc(var(--d01-title-size, 108.8px) * 0.7941176471));
  }

  .d01-trust-rail {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }

  .d01-payment-strip {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 0 0;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .sahtain-d01-hero {
    min-height: auto;
    padding: 0 0 14px;
    background: #07111d;
  }

  .d01-hero-bg {
    position: relative;
    inset: auto;
    z-index: 0;
    height: auto;
    min-height: 0;
    background-image: none;
    background-color: #07111d;
    transform: none;
  }

  .d01-hero-bg-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .d01-hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 17, 29, 0), #07111d);
  }

  .d01-hero-light {
    display: none;
  }

  .d01-hero-grain {
    opacity: 0.018;
  }

  .d01-hero-inner {
    width: min(calc(100% - 24px), 1480px);
    min-height: auto;
    padding: 24px 0 0;
    display: block;
  }

  .d01-hero-copy {
    width: 100%;
    margin: 0;
    padding: 0 10px;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.35) 0 2px 18px;
  }

  .d01-hero-kicker {
    justify-content: center;
    color: var(--d01-kicker-color, rgba(255, 255, 255, 0.86));
    font-size: var(--d01-kicker-size-m, 12.48px);
    line-height: var(--d01-kicker-lh-m, 1.2);
    margin-bottom: 13px;
  }

  .d01-hero-title {
    max-width: 11.5ch;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--d01-title-size-m, 57.6px) !important;
    line-height: var(--d01-title-lh-m, 1.16) !important;
    letter-spacing: 0;
  }

  html[lang="en"] .d01-hero-title {
    font-size: calc(var(--d01-title-size-m, 57.6px) * 0.6666666667) !important;
    line-height: calc(var(--d01-title-lh-m, 1.16) * 0.9655172414) !important;
  }

  .d01-hero-desc {
    max-width: 31ch;
    margin: 20px auto 22px;
    color: var(--d01-desc-color, rgba(255, 255, 255, 0.72));
    font-size: var(--d01-desc-size-m, 14.72px);
    line-height: var(--d01-desc-lh-m, 1.78);
  }

  html[lang="en"] .d01-hero-desc {
    font-size: calc(var(--d01-desc-size-m, 14.72px) * 1.1413043478) !important;
    line-height: calc(var(--d01-desc-lh-m, 1.78) * 0.9831460674) !important;
  }

  .d01-hero-actions {
    justify-content: center;
    gap: 10px;
  }

  .d01-hero-btn {
    min-width: 0;
    flex: 1 1 145px;
    min-height: 50px;
    padding: 0 16px;
    font-size: var(--d01-btn-size-m, 13.92px);
    line-height: var(--d01-btn-lh-m, 1.2);
  }

  .d01-hero-benefits {
    margin-top: 30px;
    padding-top: 21px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .d01-benefit {
    display: block;
    text-align: center;
    padding: 0 6px;
  }

  .d01-benefit + .d01-benefit {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
  }

  .d01-benefit-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
  }

  .d01-benefit-icon svg {
    width: 24px;
    height: 24px;
  }

  .d01-benefit strong {
    font-size: var(--d01-benefit-title-size-m, 11.52px);
    line-height: var(--d01-benefit-title-lh-m, 1.2);
  }

  .d01-benefit span {
    font-size: var(--d01-benefit-desc-size-m, 9.44px);
    line-height: var(--d01-benefit-desc-lh-m, 1.4);
  }

  .d01-trust-rail {
    position: relative;
    right: auto;
    bottom: auto;
    translate: none;
    width: calc(100% - 24px);
    margin: 34px auto 0;
    min-height: 0;
    padding: 15px 10px;
    border-radius: 23px;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
    background: rgba(255, 255, 255, 0.067);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(118%);
    -webkit-backdrop-filter: blur(22px) saturate(118%);
    box-shadow:
      rgba(0, 0, 0, 0.3) 0 20px 55px,
      rgba(255, 255, 255, 0.14) 0 1px 0 inset;
  }

  .d01-trust-item {
    display: block;
    text-align: center;
    padding: 0 6px;
  }

  .d01-trust-item + .d01-trust-item {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
  }

  .d01-trust-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
  }

  .d01-trust-icon svg {
    width: 26px;
    height: 26px;
  }

  .d01-trust-item strong {
    font-size: 11.2px;
  }

  .d01-trust-item span {
    white-space: normal;
    font-size: 9.44px;
    line-height: 1.4;
  }

  .d01-payment-strip {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 11px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    gap: 11px;
  }

  .d01-pay-logo.visa { font-size: 17.28px; }
  .d01-pay-logo.mc { font-size: 9.92px; }
  .d01-pay-logo.mada { font-size: 12.16px; }
  .d01-pay-logo.apple { font-size: 12.8px; gap: 2px; }
  .d01-pay-apple-icon { width: 11px; height: 13px; }
  .d01-pay-logo.tabby { font-size: 12.16px; }
  .d01-pay-logo.tamara { font-size: 12.16px; }
}

@media (max-width: 430px) {
  .d01-hero-title {
    font-size: var(--d01-title-size-m, 57.6px) !important;
  }

  .d01-payment-strip {
    gap: 8px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .d01-hero-copy,
  .d01-trust-rail,
  .is-ready .d01-hero-copy,
  .is-ready .d01-trust-rail {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .d01-hero-btn,
  .d01-hero-btn.primary:hover,
  .d01-hero-btn.secondary:hover {
    transition: none;
    transform: none;
  }
}
