/* دليل الذهب الشامل — one product (the ebook), three landing pages on one address (content/products.json →
   GOLD-GUIDE.landingPages). The brand's memorable element is the gold ingot: the mark beside the name, a thin gold
   rule framed like the edge of a bar under the section titles, and the gold buy button. Each landing page has its own
   design on body[data-design]:
   - vault  (LP1, the encyclopedia): black and gold, a double gold frame around the gallery, ingot rules;
   - orbit  (LP2, satellites):     navy and cyan, contour lines and a coordinates tag, like a map screen;
   - field  (LP3, first trip):     sand and terracotta, a ruled field-notebook page with its red margin.
   Colors: content/store.json → theme and each landing page's theme. Loaded after base.css. */

/* Fonts: Noto Kufi Arabic (headings) and IBM Plex Sans Arabic (text), SIL Open Font License (public/fonts/OFL-*.txt). */
@font-face {
  font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/noto-kufi-arabic-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/noto-kufi-arabic-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ── Shared: the ingot ─────────────────────────────────────────────────────────────────────────────────────────── */
:root { --gold-1: #f7d57a; --gold-2: #e0a526; --gold-3: #8a5a12; --shadow: 0 22px 44px -30px rgba(23, 18, 10, 0.6); }
:focus-visible { outline-color: var(--primary); }
.announcement :focus-visible, .tone-deep :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.brand { gap: 0.55rem; letter-spacing: 0; }
.brand::before { content: ""; width: 30px; height: 30px; background: url("/assets/img/mark.svg") center / contain no-repeat; }
.section-title, .page-title, .pdp-title { color: var(--text); }
.section-title { position: relative; padding-bottom: 0.7rem; margin-bottom: 1.1rem; }
/* The ingot rule: a short gold bar with bevelled ends under every section title. */
.section-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 7px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
.section-cta .section-title::after, .section-faq .section-title::after { inset-inline: calc(50% - 32px) auto; }
.section-faq .section-title, .section-cta .section-title { text-align: center; }
.tone-deep .section-title { color: var(--on-deep); }

.btn-cta { font-family: var(--font-heading); font-weight: 800; letter-spacing: 0; border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cta) 82%, #fff), var(--cta) 55%); }
.btn-hero { min-height: 56px; font-size: 1.12rem; }
.pdp-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
.pdp-hook { font-size: 1.28rem; line-height: 1.55; color: var(--primary); }
.pdp-price .price { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); }
.badge { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--text); }
.gallery { background: var(--deep); }
.closing { padding-inline-start: 0.85rem; border-inline-start: 4px solid var(--accent); }
.guarantee { border-color: var(--accent); border-style: solid; box-shadow: var(--shadow); }
.comparison .col-us { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); font-weight: 800; }
.contents li::before, .steps li::before { font-family: var(--font-heading); }
.section-media img { box-shadow: var(--shadow); object-fit: contain; aspect-ratio: 1; background: var(--deep); }

/* ── LP1 · vault — the encyclopedia: black and gold, a double gold frame ────────────────────────────────────────── */
body[data-design="vault"] .site-header { background: var(--deep); border-bottom: 1px solid #3a2c12; }
body[data-design="vault"] .brand { color: var(--gold-1); }
body[data-design="vault"] .site-header::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold-1), var(--gold-2), transparent); }
body[data-design="vault"] .gallery { box-shadow: inset 0 0 0 10px var(--deep), inset 0 0 0 12px rgba(233, 185, 73, 0.55); }
body[data-design="vault"] .contents li::before { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #1b1306; box-shadow: 0 0 0 3px var(--deep); }
body[data-design="vault"] .section-contents { background: var(--deep); color: var(--on-deep); }
body[data-design="vault"] .section-contents .section-title { color: var(--gold-1); }
body[data-design="vault"] .section-contents .section-intro, body[data-design="vault"] .section-contents p { color: #d9c9a3; }
body[data-design="vault"] .section-contents h3 { color: #fff; }
body[data-design="vault"] .benefits .icon { background: var(--deep); color: var(--gold-1); }

/* ── LP2 · orbit — satellites: navy and cyan, contour lines, a coordinates tag ──────────────────────────────────── */
body[data-design="orbit"] .site-header { background: #fff url("/assets/img/contours.svg") center / 600px 300px; }
body[data-design="orbit"] .brand { color: var(--deep); }
body[data-design="orbit"] .announcement { background: linear-gradient(90deg, #0a1a26, #0e3b4d); }
body[data-design="orbit"] .gallery { box-shadow: inset 0 0 0 2px rgba(54, 194, 206, 0.7); }
body[data-design="orbit"] .section-title::after { background: linear-gradient(90deg, var(--accent), var(--primary)); clip-path: none; height: 3px; width: 88px; border-radius: 3px; }
body[data-design="orbit"] .tone-tint { background: var(--tint) url("/assets/img/contours.svg") center / 600px 300px; }
body[data-design="orbit"] .steps li::before { background: var(--deep); color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
body[data-design="orbit"] .steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(1.15rem - 1px); top: 2.6rem; bottom: -0.9rem;
  border-inline-start: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
body[data-design="orbit"] .section-text .section-media img { background: var(--deep); box-shadow: 0 0 0 2px rgba(54, 194, 206, 0.6), var(--shadow); }
body[data-design="orbit"] .benefits .icon { background: var(--deep); color: var(--accent); }
body[data-design="orbit"] .badge { background: var(--deep); color: #bff3f7; }

/* ── LP3 · field — the first trip: sand and terracotta, a ruled notebook page with its red margin ──────────────── */
body[data-design="field"] .site-header { background: var(--surface); border-bottom: 2px solid var(--line); }
body[data-design="field"] .brand { color: var(--primary); }
body[data-design="field"] .tone-tint, body[data-design="field"] .section-steps {
  background: var(--surface) repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--line) 85%, transparent) 31px 32px);
  position: relative; }
body[data-design="field"] .tone-tint::before, body[data-design="field"] .section-steps::before { content: ""; position: absolute; top: 0; bottom: 0;
  inset-inline-start: clamp(8px, 3vw, 40px); width: 2px; background: #e3a07c; }
body[data-design="field"] .section-title::after { background: none; clip-path: none; height: 10px; width: 120px;
  border-bottom: 3px solid var(--accent); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
body[data-design="field"] .steps li::before { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); transform: rotate(-4deg); }
body[data-design="field"] .gallery { background: var(--tint); }
body[data-design="field"] .badge { background: var(--primary); color: #fff; transform: rotate(-1.5deg); }
body[data-design="field"] .benefits .icon { background: var(--surface); color: var(--primary); border: 1.5px dashed var(--primary); }
body[data-design="field"] .closing { border-color: var(--primary); }
body[data-design="field"] .section-media img { background: var(--tint); }

@media (prefers-reduced-motion: no-preference) {
  .section-title::after { transform-origin: right; animation: ingot 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  @keyframes ingot { from { transform: scaleX(0.2); opacity: 0.4; } to { transform: scaleX(1); opacity: 1; } }
}

/* The comparison's two short column titles stay on one line on phones. */
.section-comparison th { white-space: nowrap; }

/* Launch offer: while /sys has a regular price (GOLD-GUIDE-REGULAR, through "includes"), the buy box names both
   prices — the book's regular price struck through, then the price now — and the offer's end date sits above the
   button (content "gift", restyled). Without a regular price, nothing of this shows. */
.pdp-price .compare:not([hidden]) { order: -1; flex-basis: 100%; font-size: 1.05rem; }
.pdp-price .compare:not([hidden])::before { content: "سعر الكتاب: "; display: inline-block; margin-inline-end: 0.3rem; text-decoration: none; font-weight: 600; }
.pdp-price:has(.compare:not([hidden])) .price::before { content: "السعر الآن بعد التخفيض"; display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.pdp-buy .gift { align-items: flex-start; padding: 0.7rem 0.85rem; border-radius: var(--radius); background: var(--tint); border: 1.5px dashed var(--primary); font-size: 0.95rem; line-height: 1.6; }
.pdp-buy .gift .icon { margin-top: 0.2rem; color: var(--primary); }
.pdp-buy .gift .icon { visibility: hidden; position: relative; }
.pdp-buy .gift { position: relative; }
.pdp-buy .gift::before { content: ""; position: absolute; inset-inline-start: 0.85rem; top: 0.9rem; width: 24px; height: 24px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
