/* Kind Purchases — mobile-first Arabic landing */
:root {
  --bg: #0a0b0d;
  --bg-elev: #12141a;
  --bg-soft: #1a1d26;
  --text: #f2f4f7;
  --muted: #9aa3b2;
  --accent: #5ee7ff;
  --accent-dim: rgba(94, 231, 255, 0.14);
  --warm: #e8a04a;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff6b6b;
  --ok: #3dd68c;
  --radius: 14px;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --max: 720px;
  --font: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --sticky-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.25) 0%, rgba(10, 11, 13, 0.55) 42%, rgba(10, 11, 13, 0.96) 88%),
    radial-gradient(ellipse at 50% 20%, rgba(94, 231, 255, 0.12), transparent 55%);
}

.hero__content {
  padding: calc(var(--pad) + 1rem) var(--pad) 2.5rem;
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: fadeUp 0.9s ease-out both;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.65rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 32ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.35), 0 10px 30px rgba(94, 231, 255, 0.18);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--wa {
  background: #1fad5c;
  color: #fff;
}

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

/* —— Sections —— */
section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

#pricing {
  scroll-margin-top: 1rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.section-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Gallery viewer */
.gallery-viewer {
  display: grid;
  gap: 0.75rem;
}

.gallery-stage {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(72vh, 560px);
}

.gallery-main {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  height: min(72vh, 560px);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0f14;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 11, 13, 0.78);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

/* Prev on the right, next on the left — handlers stay on the same buttons */
.gallery-nav--prev {
  right: 0.65rem;
  left: auto;
}

.gallery-nav--next {
  left: 0.65rem;
  right: auto;
}

.gallery-counter {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  left: auto;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
}

.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs button {
  appearance: none;
  border: 2px solid transparent;
  background: var(--bg-soft);
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 64px;
  height: 64px;
  scroll-snap-align: start;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-thumbs button.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  padding: 3rem 0.75rem 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 4.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox__nav--prev {
  right: 0.5rem;
  left: auto;
}

.lightbox__nav--next {
  left: 0.5rem;
  right: auto;
}

body.lightbox-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-stage,
  .gallery-main {
    height: min(75vh, 640px);
    min-height: 480px;
  }

  .gallery-thumbs button {
    flex-basis: 76px;
    height: 76px;
  }
}

/* Video */
.video-shell {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  position: relative;
}

.video-shell video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
}

.video-shell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

.video-placeholder {
  appearance: none;
  border: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #000;
  position: relative;
  display: block;
  cursor: default;
}

.video-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
}

.video-placeholder span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.video-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Overview / lists */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.steps .num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.highlights li {
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: linear-gradient(270deg, var(--bg-elev), transparent);
  color: var(--text);
  font-size: 0.98rem;
}

/* Pricing packs */
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-size: 1rem;
  opacity: 0.85;
}

.price-new {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.45rem;
}

.packs {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.pack {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
}

.pack__body {
  padding: 1.05rem 1.15rem;
}

.pack__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pack__title {
  font-size: 1.1rem;
}

.pack__badge {
  background: var(--warm);
  color: #1a1005;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pack__prices {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.pack__prices .price-new {
  font-size: 1.55rem;
}

.pack__save {
  margin: -0.35rem 0 0.85rem;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.95rem;
}

.pack--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.35), 0 10px 28px rgba(94, 231, 255, 0.12);
  background: linear-gradient(180deg, rgba(94, 231, 255, 0.08), var(--bg-elev));
}

.btn--block {
  width: 100%;
  margin-top: 0.55rem;
}

.pack .btn--block {
  margin-top: 0;
}

.pack-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.85rem 0 0.15rem;
}

.sticky-cta__inner--price {
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  align-items: center;
}

.sticky-price {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}

.sticky-price .price-old {
  font-size: 0.78rem;
}

.sticky-price .price-new {
  font-size: 1.05rem;
}

/* Shipping */
.policy-grid {
  display: grid;
  gap: 0.75rem;
}

.policy {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.policy strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.policy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #07080a;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.site-footer dl {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.site-footer dt {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}

.site-footer dd {
  margin: 0.15rem 0 0;
}

.legal-note {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-top: 1rem;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sticky-cta .btn {
  width: 100%;
  padding: 0.8rem 0.6rem;
  font-size: 0.95rem;
}

.price-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-size: 1rem;
  opacity: 0.85;
}

.price-new {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.45rem;
}

.packs {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.pack {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
}

.pack__body {
  padding: 1.05rem 1.15rem;
}

.pack__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pack__title {
  font-size: 1.1rem;
}

.pack__badge {
  background: var(--warm);
  color: #1a1005;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pack__prices {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.pack__prices .price-new {
  font-size: 1.55rem;
}

.pack__save {
  margin: -0.35rem 0 0.85rem;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.95rem;
}

.pack--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(94, 231, 255, 0.35), 0 10px 28px rgba(94, 231, 255, 0.12);
  background: linear-gradient(180deg, rgba(94, 231, 255, 0.08), var(--bg-elev));
}

.btn--block {
  width: 100%;
  margin-top: 0.55rem;
}

.pack .btn--block {
  margin-top: 0;
}

.pack-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.85rem 0 0.15rem;
}

.sticky-cta__inner--price {
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  align-items: center;
}

.sticky-price {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}

.sticky-price .price-old {
  font-size: 0.78rem;
}

.sticky-price .price-new {
  font-size: 1.05rem;
}

/* Result pages */
.result {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  text-align: center;
}

.result h1 {
  margin: 0 0 0.5rem;
}

.result p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(-6px);
  }
  70% {
    transform: translateX(4px);
  }
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
