:root {
  --bg: #fce8ea;
  --red: #a90f16;
  --ink: #2e1a1c;
  --muted: #7d5f62;
  --line: #f0cfd3;
  --card: #fff;
  --shadow: 0 6px 22px #a90f1614;

  /* type scale */
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-h2: clamp(27px, 7.2vw, 36px);
  --display: "Aref Ruqaa", Tajawal, system-ui, serif;
  --num: Tajawal, system-ui, sans-serif;

  /* spacing */
  --gutter: 20px;
  --section: 52px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--fs-md)/1.75 Tajawal, system-ui, sans-serif;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
b, strong, summary { font-weight: 800; }
h1, h2 { font-family: var(--display); font-weight: 700; color: var(--red); margin: 0; text-align: center; text-wrap: balance; }
h1 { font: 800 clamp(23px, 7.2vw, 44px)/1.4 Tajawal, system-ui, sans-serif; color: var(--ink); }
h1 em { font-style: normal; color: var(--red); }
h2 { font-size: var(--fs-h2); line-height: 1.3; margin-bottom: 20px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); }
.block { padding-top: var(--section); }
.stars { color: #f0a500; unicode-bidi: isolate; }

.topbar { position: sticky; top: 0; z-index: 9; background: var(--red); color: #fff; text-align: center; padding: 7px 12px; font-size: var(--fs-sm); line-height: 1.5; }

/* hero */
.hero { padding-top: 18px; text-align: center; }
.eyebrow { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
/* package cover: 3D hardcover, page edges on the left (Arabic books open from the right) */
.stage { perspective: 1100px; display: grid; justify-items: center; margin: 20px 0 4px; position: relative; }
.stage::after { content: ""; width: 210px; height: 16px; margin-top: 4px; background: radial-gradient(closest-side, #6d070c55, #6d070c00); translate: -14px 0; }
.book { --w: 180px; --d: 27px; width: var(--w); aspect-ratio: 400 / 569; position: relative; transform-style: preserve-3d; transform: rotateY(25deg); }
.book::before {  /* page block */
  content: ""; position: absolute; top: 1.2%; left: 0; width: var(--d); height: 97.6%;
  transform: translateX(calc(var(--d) / -2)) rotateY(-90deg);
  background: linear-gradient(90deg, #0000001a, #0000 18%, #0000 82%, #0000001a), repeating-linear-gradient(90deg, #fffdfb 0 1.5px, #e4d8d6 1.5px 2.5px);
}
.book::after {  /* back board */
  content: ""; position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #6d070c;
  transform: translateZ(calc(var(--d) / -2)); box-shadow: -26px 22px 30px #a90f162e;
}
.cover {
  position: absolute; inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
  font: 700 calc(var(--w) / 20)/1.15 "Aref Ruqaa", var(--display);
  background:
    linear-gradient(105deg, #ffffff30 0%, #ffffff0a 22%, #ffffff00 40%),                 /* gloss */
    linear-gradient(270deg, #00000030 0, #0000 3.5%, #ffffff2e 5.5%, #0000 8%),          /* hinge groove by the spine */
    radial-gradient(85% 55% at 50% 42%, #dd2f38 0%, #b0121a 55%, #7d080e 100%);
}
.cover::before { content: ""; position: absolute; inset: 4% 9.5% 4% 4%; border: 1px solid #ffe3c480; border-radius: 3px; outline: 1px solid #ffe3c42e; outline-offset: 3px; }
.cover > span { position: relative; inset-inline-start: 2.7%; }   /* centre text inside the frame, clear of the hinge */
.cover .brand { font: 800 .8em Tajawal, sans-serif; letter-spacing: .3em; margin-top: 2.7em; color: #ffe3c4; direction: ltr; }
.cover .t1, .cover .t2 { color: #fff8f0; text-shadow: 0 .04em .14em #00000052; white-space: nowrap; }
.cover .t1 { font-size: 5em; line-height: 1.3; margin-top: auto; }
.cover .t2 { font-size: 3.15em; line-height: 1.45; }
.cover .author { font: 800 1.2em/1 Tajawal, sans-serif; color: #ffe3c4; margin-top: 1.1em; display: flex; align-items: center; gap: .7em; }
.cover .author::before, .cover .author::after { content: ""; width: 1.6em; height: 1px; background: #ffe3c4aa; }
.cover .label { margin: auto 0 2.1em; width: 74%; background: #fff8f0; color: var(--red); border-radius: .45em; padding: .65em .3em .55em; font: 800 .98em/1.5 Tajawal, sans-serif; box-shadow: 0 .25em .6em #00000030; }

.sticker {
  position: absolute; top: -12px; left: calc(50% + 52px); width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; rotate: 10deg;
  background: #fff8f0; color: var(--red); border: 2px solid var(--red); outline: 3px solid #fff8f0; box-shadow: 0 6px 16px #a90f1640;
  font-size: 12px; font-weight: 800; line-height: 1.2;
}
.sticker b { display: block; }

.price { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.price .new { font: 800 40px/1 var(--num); color: var(--red); direction: ltr; }
.price .was { display: grid; gap: 5px; justify-items: start; line-height: 1; }
.price s { color: var(--muted); font-size: 18px; direction: ltr; }
.price .was b { background: var(--red); color: #fff; border-radius: 6px; padding: 4px 8px 3px; font-size: var(--fs-xs); }

.cta {
  display: block; width: 100%; max-width: 400px; margin: 0 auto;
  background: var(--red); color: #fff; text-decoration: none; text-align: center;
  font-weight: 800; font-size: 18px; line-height: 1.5; padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 8px 20px #a90f1638;
}
.cta:hover { background: #8c0b11; }
.cta span[aria-hidden] { display: inline-block; margin-inline-start: 4px; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 12px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.assure svg { width: 13px; height: 13px; fill: var(--red); color: var(--red); flex: none; }
.assure svg.line { fill: none; stroke: var(--red); stroke-width: 2; }
.pay { display: flex; justify-content: center; gap: 8px; margin-top: 14px; direction: ltr; }
.pay li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; line-height: 0; }
.pay svg { width: 46px; height: 20px; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; text-align: center; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.numbers div { background: var(--card); border-radius: 14px; padding: 14px 4px 10px; box-shadow: var(--shadow); }
.numbers b { display: block; font: 800 24px/1.2 var(--num); color: var(--red); direction: ltr; }

/* promise */
.sub { text-align: center; color: var(--muted); margin: -10px auto 20px; max-width: 360px; line-height: 1.65; text-wrap: balance; }
.ticks { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; background: var(--card); border-radius: 16px; padding: 18px 18px 18px 16px; box-shadow: var(--shadow); line-height: 1.6; }
.ticks li { padding-inline-start: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--red); font-weight: 800; }
.ticks b { color: var(--red); }

/* reviews */
.slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider blockquote { flex: 0 0 82%; max-width: 340px; margin: 0; background: var(--card); border-radius: 16px; padding: 16px 18px; scroll-snap-align: center; box-shadow: var(--shadow); }
.slider b { color: var(--red); }
.hint { text-align: center; font-size: var(--fs-xs); color: var(--muted); }

.fold summary { cursor: pointer; color: var(--red); font-size: var(--fs-sm); text-align: center; padding: 12px 6px 4px; }
.shots { margin-top: 8px; }
.shots img { border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.after-reviews { margin-top: 20px; }
.fold ol { list-style: decimal; padding-inline-start: 24px; line-height: 1.65; }
.fold li { padding: 5px 0; }

/* package */
.pack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: 0 auto; }
.pack figure { margin: 0; text-align: center; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.pack img { margin-bottom: 8px; aspect-ratio: 3 / 4; object-fit: contain; width: 100%; }
.pack b { display: block; color: var(--ink); font-size: 16px; }
.free { color: var(--red); font-weight: 800; }

/* offer */
.offer .assure { gap: 4px 8px; font-size: 11.5px; }
.offer .assure li { gap: 3px; }
.offer .assure svg { width: 12px; height: 12px; }
.offer { max-width: 440px; margin: 0 auto; background: var(--card); border: 2px solid var(--red); border-radius: 20px; padding: 24px 20px; text-align: center; box-shadow: var(--shadow); }
.deadline { margin-bottom: 18px; font-weight: 800; color: var(--red); }
.boxes { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.boxes span { background: var(--bg); border-radius: 10px; min-width: 60px; padding: 8px 4px 4px; font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; color: var(--muted); }
.boxes b { display: block; font: 800 24px/1.1 var(--num); color: var(--red); }
[data-timer], .boxes b { font-variant-numeric: tabular-nums; }
.topbar b:not(:empty)::before { content: "・ "; font-weight: 500; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; }
.faq p { padding-bottom: 14px; color: var(--muted); }

footer { text-align: center; padding: 40px 16px 24px; font-size: var(--fs-xs); color: var(--muted); }
footer a { color: inherit; }

.sticky {
  position: fixed; inset: auto 0 0; z-index: 10;
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: #fff; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  transition: transform .25s;
}
.sticky.hide { transform: translateY(110%); }
.sticky div { white-space: nowrap; text-align: center; }
.sticky s { color: var(--muted); font-size: var(--fs-sm); direction: ltr; display: inline-block; }
.sticky b { font: 800 23px/1 var(--num); color: var(--red); direction: ltr; display: inline-block; }
.sticky .cta { margin: 0; padding: 10px 14px; font-size: 16px; flex: 1; max-width: 280px; box-shadow: none; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* very small phones */
@media (max-width: 340px) {
  :root { --gutter: 14px; }
  .book { --w: 150px; --d: 22px; }
  .stage::after { width: 176px; }
  .sticker { width: 58px; height: 58px; font-size: 10.5px; left: calc(50% + 42px); }
  .assure { font-size: 11.5px; gap: 4px 8px; }
  .assure li { gap: 3px; }
  .assure svg { width: 12px; height: 12px; }
}

/* tablet / desktop */
@media (min-width: 860px) {
  :root { --section: 80px; --fs-md: 18px; --fs-lg: 23px; }
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .wrap { max-width: 920px; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: center; padding-top: 56px; text-align: start; }
  .hero > * { grid-column: 1; }
  .hero h1 { text-align: start; font-size: clamp(30px, 3.4vw, 40px); text-wrap: wrap; }
  .hero .stage { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
  .hero .book { --w: 300px; --d: 44px; }
  .stage::after { width: 360px; height: 26px; translate: -24px 0; }
  .hero .price { justify-content: flex-start; margin-top: 20px; }
  .hero .cta { margin-inline: 0; }
  .hero .eyebrow { text-align: start; }
  .hero .assure { justify-content: flex-start; }
  .sticker { width: 104px; height: 104px; font-size: 17px; left: calc(50% + 92px); top: -26px; }
  .numbers { max-width: 640px; margin-top: 56px; }
  .numbers b { font-size: 32px; }
  .faq { max-width: 680px; }
  .slider { max-width: 920px; margin: 0 auto; overflow: visible; }
  .slider blockquote { flex: 1; max-width: none; }
  .hint { display: none; }
  .shots { max-width: 680px; }
  .pack ~ .fold { max-width: 680px; margin: 0 auto; }
}
