/* HIKAYETUKUM — حكايتُكُم: brand site (static, mobile first, RTL). Navy, gold and warm neutrals. */

@font-face {
  font-family: 'Amiri';
  src: url('fonts/Amiri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('fonts/NotoNaskhArabic-VF.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-900: #0f1c33;
  --navy-800: #15264a;
  --navy-700: #1f3460;
  --gold-500: #b8955a;
  --gold-400: #cdae74;
  --gold-200: #ead9b4;
  --ivory: #fbf7f0;
  --sand: #f3ebde;
  --sand-deep: #e7dcc9;
  --ink: #1b2333;
  --ink-soft: #4d566a;
  --line: #e2d6c1;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(15, 28, 51, 0.45);
  --font-head: 'Amiri', 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, serif;
  --font-body: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--navy-700);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--gold-500);
}
:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--navy-800);
}
h3 {
  font-size: 1.25rem;
  color: var(--navy-800);
}
p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-200);
  color: var(--navy-900);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}
.section {
  padding: 64px 0;
}
.section--sand {
  background: var(--sand);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40em;
}

/* Placeholders for details not yet decided (shown on purpose until they are filled in). */
.ph {
  background: #fff3c4;
  color: #6b4b00;
  padding: 0 0.3em;
  border-radius: 4px;
  font-weight: 700;
}

/* ───────────── Header ───────────── */
/* The header takes the official logo's own background colour (#f6eeeb), so the logo, a PNG with its
   original background (brand kit: keep it), sits in it naturally. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f6eeeb;
  border-bottom: 1px solid #e3d5cf;
  box-shadow: 0 6px 18px -14px rgba(15, 28, 51, 0.5);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
}
/* The official logo file, unchanged (scaled, never stretched or redrawn). In the header it is centred in
   a small window, so the empty background around the mark falls outside it and the lettering stays
   readable. The whole image, with all its background, is shown in «عن حكايتُكُم». */
.logo {
  position: relative;
  display: block;
  flex: none;
  width: 128px;
  height: 84px;
  overflow: hidden;
  border-radius: 8px;
}
.logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -49%);
}
@media (min-width: 720px) {
  .top__in {
    min-height: 100px;
  }
  .logo {
    width: 156px;
    height: 100px;
  }
  .logo img {
    width: 240px;
  }
}
.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--navy-800);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--gold-500);
}
@media (max-width: 560px) {
  .nav a:not(.nav__key) {
    display: none;
  }
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(205, 174, 116, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--sand);
  padding: 48px 0 56px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.hero__brand {
  margin: 0 0 4px;
  color: var(--gold-400);
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  color: #fff;
  margin-bottom: 0.35em;
}
.hero h1 span {
  color: var(--gold-400);
}
.hero__lead {
  font-size: 1.15rem;
  color: #e4dccd;
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}
.btn--gold:hover {
  color: var(--navy-900);
  filter: brightness(1.05);
}
.btn--line {
  border-color: rgba(234, 217, 180, 0.55);
  color: var(--gold-200);
}
.btn--line:hover {
  color: #fff;
  border-color: #fff;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(205, 174, 116, 0.14);
  color: var(--gold-200);
  font-size: 0.95rem;
}
.hero__book {
  margin: 0;
  justify-self: center;
  width: min(78vw, 360px);
  transform: rotate(-2deg);
}
.hero__book img {
  border-radius: 6px 14px 14px 6px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(205, 174, 116, 0.35);
}
.hero__caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #b9b2a4;
}
@media (min-width: 860px) {
  .hero {
    padding: 72px 0 80px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* ───────────── Digital notice ───────────── */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold-500);
  border-radius: 14px;
  background: #fff;
}
.notice strong {
  color: var(--navy-800);
}
.notice svg {
  flex: none;
  margin-top: 6px;
  color: var(--gold-500);
}

/* ───────────── Features ───────────── */
.features {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* ───────────── Sample pages ───────────── */
.pages {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 260px);
  gap: 16px;
  margin-top: 24px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.pages figure {
  margin: 0;
  scroll-snap-align: start;
}
.pages img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.pages figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.small-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (min-width: 980px) {
  .pages {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

/* ───────────── Steps ───────────── */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px;
  padding-inline-start: 68px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, arabic-indic);
  position: absolute;
  inset-inline-start: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 700;
}
.steps h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* ───────────── Compare (PDF vs backup) ───────────── */
.compare {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}
.compare article {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.compare ul {
  margin: 0;
  padding-inline-start: 1.2em;
  color: var(--ink-soft);
}

/* ───────────── Brand ───────────── */
.brand {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #e4dccd;
}
.brand h2 {
  color: #fff;
}
.brand .eyebrow {
  color: var(--gold-400);
}
.brand__logo {
  margin: 0 auto 32px;
  width: min(100%, 520px);
}
.brand__logo img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.brand__list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .brand__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brand__list li {
  padding: 16px 18px;
  border: 1px solid rgba(205, 174, 116, 0.35);
  border-radius: 14px;
}
.brand__list strong {
  display: block;
  color: var(--gold-200);
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.tag {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--gold-400);
}

/* ───────────── FAQ ───────────── */
.faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--navy-800);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  color: var(--gold-500);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details > div {
  padding: 0 18px 14px;
  color: var(--ink-soft);
}

/* ───────────── Contact & footer ───────────── */
.contact-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.btn--navy {
  background: var(--navy-800);
  color: var(--gold-200);
}
.btn--navy:hover {
  color: #fff;
  background: var(--navy-700);
}
.price {
  color: #fff;
  font-size: 1.05rem;
}
.price-card {
  margin-top: 32px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: #e4dccd;
  box-shadow: var(--shadow);
}
.price-card h3 {
  color: var(--gold-400);
  margin-bottom: 0;
}
.price-card__amount {
  margin: 4px 0 10px;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: #fff;
}
.price-card ul {
  margin: 0 0 12px;
  padding-inline-start: 1.2em;
}
.price-card__soon {
  margin: 0;
  color: var(--gold-200);
  font-size: 0.95rem;
}
.link-off {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contact-card dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}
.contact-card dt {
  font-weight: 700;
  color: var(--navy-800);
}
.contact-card dd {
  margin: 0;
}
.foot {
  background: var(--navy-900);
  color: #b9b2a4;
  padding: 36px 0 28px;
  font-size: 0.95rem;
}
.foot a {
  color: var(--gold-200);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.foot nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ───────────── Policy pages ───────────── */
.doc {
  padding: 40px 0 64px;
}
.doc h1 {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  color: var(--navy-800);
}
.doc h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}
.doc ul {
  padding-inline-start: 1.3em;
}
.draft {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff3c4;
  border: 1px solid #ecd27a;
  color: #5b4000;
}
.doc .meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
