:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --paper: #ece6da;
  --paper-dim: #bdb6a8;
  --muted: #8a867e;
  --gold: #c2a46a;
  --gold-light: #e2cc9a;
  --gold-deep: #8a7140;
  --line: rgba(194, 164, 106, 0.24);
  --line-soft: rgba(236, 230, 218, 0.09);

  --serif: "Amiri", Georgia, serif;
  --sans: "Tajawal", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(194, 164, 106, 0.08), transparent 45%),
    radial-gradient(ellipse at 10% 70%, rgba(236, 230, 218, 0.04), transparent 50%),
    var(--ink);
}

/* ---------- SHARED ---------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 500;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: min(90px, 18vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::after {
  background: linear-gradient(-90deg, transparent, var(--gold));
}

.ornament svg {
  width: 22px;
  height: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #171206;
  box-shadow: 0 10px 30px -12px rgba(194, 164, 106, 0.6);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(194, 164, 106, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
}

.btn-ghost:hover {
  background: rgba(194, 164, 106, 0.1);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.4;
  margin-bottom: 18px;
}

/* ---------- NAV ---------- */

nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--paper);
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--gold-light);
}

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-text .eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.book-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(80px, 13vw, 150px);
  line-height: 1.15;
  color: var(--paper);
  text-shadow: 0 0 60px rgba(236, 230, 218, 0.12);
}

.author {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.author span {
  color: var(--muted);
  font-size: 18px;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 36px;
  padding-right: 18px;
  border-right: 2px solid var(--gold);
}

.tagline em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
}

.price-tag strong {
  font-size: 44px;
  line-height: 1;
}

.price-tag small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.hero-meta strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  margin-left: 4px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 90s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 14%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 14px 3px rgba(236, 230, 218, 0.6);
}

.orbit-2 {
  width: 115%;
  border-style: dashed;
  border-color: rgba(236, 230, 218, 0.08);
  animation-duration: 140s;
  animation-direction: reverse;
}

.orbit-2::after {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.frame {
  position: relative;
  width: min(400px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 4px 4px;
  background: rgba(11, 11, 12, 0.6);
}

.frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 999px 999px 2px 2px;
  filter: grayscale(0.35) contrast(1.05);
}

.frame-badge {
  position: absolute;
  bottom: 28px;
  right: -26px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold);
  text-align: center;
  font-family: var(--serif);
  line-height: 1.1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}

.frame-badge strong {
  display: block;
  font-size: 34px;
  color: var(--gold-light);
}

.frame-badge span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--paper-dim);
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

/* ---------- BACK COVER BAND ---------- */

.warning-band {
  padding: 100px 0;
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(194, 164, 106, 0.04), transparent);
  text-align: center;
}

.warning-band .eyebrow {
  display: block;
  margin-bottom: 26px;
}

.warning-band blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.9;
  max-width: 860px;
  margin: 0 auto 26px;
}

.warning-band blockquote em {
  font-style: normal;
  color: var(--gold-light);
}

.signature {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
}

/* ---------- ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  z-index: -1;
}

.about-text .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-text p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 2;
  color: var(--paper-dim);
  margin-bottom: 18px;
}

.about-text p strong {
  color: var(--paper);
  font-weight: 400;
}

.about-text .from-book {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  margin-top: 6px;
}

/* ---------- QUOTES ---------- */

.quotes {
  columns: 3;
  column-gap: 20px;
}

.q {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 34px 30px 26px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.q:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.q::before {
  content: "”";
  position: absolute;
  top: 6px;
  left: 20px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.q p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.q.big p {
  font-size: 27px;
}

.q footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.q footer span:first-child {
  color: var(--gold);
}

/* ---------- CONTENTS ---------- */

.contents {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 54px 56px;
  position: relative;
}

.contents::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.toc {
  list-style: none;
  columns: 2;
  column-gap: 60px;
}

.toc li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--paper-dim);
  transition: color 0.2s;
}

.toc li:hover {
  color: var(--gold-light);
}

.toc li::after {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted rgba(236, 230, 218, 0.22);
  transform: translateY(-5px);
}

.toc li span {
  order: 3;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  direction: ltr;
}

.toc-note {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- AUTHOR ---------- */

.author-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}

.dedication-mark {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  position: relative;
}

.dedication-mark svg {
  width: 58%;
  height: 58%;
}

.dedication-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line-soft);
  border-radius: 50%;
}

.author-box h3 {
  font-family: var(--serif);
  font-size: 36px;
  margin-bottom: 4px;
}

.author-box .role {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 20px;
  display: block;
}

.author-box p {
  color: var(--paper-dim);
  font-size: 17px;
  margin-bottom: 16px;
}

.dedication {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.9;
  padding: 18px 22px;
  border-right: 2px solid var(--gold);
  background: rgba(194, 164, 106, 0.05);
  margin-top: 8px;
}

.dedication small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  border: 1px solid var(--line-soft);
}

.fact {
  padding: 22px 18px;
  text-align: center;
}

.fact + .fact {
  border-right: 1px solid var(--line-soft);
}

.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
}

.fact strong.isbn {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2.3;
}

.fact span {
  font-size: 13px;
  color: var(--muted);
}

.credits {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- OFFER ---------- */

.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 100%, rgba(194, 164, 106, 0.1), transparent 50%),
    var(--ink-2);
}

.offer-price {
  padding: 50px 46px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.big-price {
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
  color: var(--gold-light);
  margin: 10px 0 6px;
}

.big-price sup {
  font-size: 44px;
  vertical-align: top;
  position: relative;
  top: 14px;
  margin-left: 4px;
}

.offer-price p {
  color: var(--muted);
  margin-bottom: 30px;
}

.offer-list {
  padding: 46px;
  list-style: none;
}

.offer-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.offer-list li:last-child {
  border-bottom: none;
}

.offer-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  color: var(--gold);
}

.offer-list strong {
  display: block;
  font-size: 17px;
}

.offer-list span {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- PURCHASE ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-light);
  background: var(--ink);
}

.step strong {
  display: block;
  font-size: 16px;
}

.step span {
  font-size: 14px;
  color: var(--muted);
}

.payment-box {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}

.payment-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.box-label {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 18px;
  position: relative;
}

.payment-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}

.payment-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 11, 12, 0.6);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  text-align: right;
  font-family: var(--sans);
}

.payment-choice:hover {
  border-color: var(--line);
}

.payment-choice.active {
  border-color: var(--gold);
  background: rgba(194, 164, 106, 0.08);
}

.radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: scale(0);
  transition: transform 0.2s;
}

.payment-choice.active .radio::after {
  transform: scale(1);
}

.payment-choice strong {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}

.payment-choice small {
  color: var(--muted);
  font-size: 14px;
}

.payment-details {
  display: none;
  margin-top: 18px;
  padding: 28px;
  background: rgba(11, 11, 12, 0.7);
  border: 1px solid var(--line-soft);
  border-right: 2px solid var(--gold);
  animation: reveal 0.4s ease;
  position: relative;
}

.payment-details.active {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.payment-details h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.payment-details p {
  color: var(--paper-dim);
  font-size: 15px;
  margin-bottom: 10px;
}

.important {
  color: var(--paper);
  font-weight: 700;
}

.copy-box {
  display: flex;
  gap: 8px;
  margin: 10px 0 16px;
}

.copy-box input {
  flex: 1;
  min-width: 0;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
}

.copy-btn {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(194, 164, 106, 0.12);
}

.warning {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(194, 164, 106, 0.07);
  color: var(--paper-dim);
  font-size: 14px;
}

.warning svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--gold);
}

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 36px 0 30px;
}

.form {
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--paper-dim);
}

label small {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(11, 11, 12, 0.8);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #5c5953;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 164, 106, 0.12);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c2a46a' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

select option {
  background: var(--ink-2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  margin-top: 6px;
  padding: 17px;
  font-size: 17px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.secure-note svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.success {
  display: none;
  margin-top: 24px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--gold);
  background: rgba(194, 164, 106, 0.08);
  animation: reveal 0.5s ease;
  position: relative;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  color: var(--gold-light);
}

.success h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.success p {
  color: var(--paper-dim);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq details:first-child {
  border-top: 1px solid var(--line-soft);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 21px;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--gold-light);
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  padding: 0 0 24px;
  font-size: 16px;
  max-width: 640px;
}

/* ---------- FINAL ---------- */

.final {
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 720px;
  height: 720px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 164, 106, 0.12), transparent 60%);
  z-index: -1;
}

.final .eyebrow {
  display: block;
  margin: 22px 0 10px;
}

.final h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 18px;
}

.final h2 em {
  font-style: normal;
  color: var(--gold-light);
}

.final p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 36px;
}

/* ---------- FOOTER ---------- */

.site-footer {
  text-align: center;
  padding: 50px 0 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}

.site-footer .logo {
  justify-content: center;
  margin-bottom: 10px;
}

.copyright {
  margin-bottom: 8px;
  color: var(--paper-dim);
  font-size: 14px;
}

/* ---------- TOAST ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  translate: -50% 20px;
  padding: 12px 26px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, translate 0.3s;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* ---------- REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .quotes {
    columns: 2;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-text .eyebrow,
  .hero-cta,
  .hero-meta {
    justify-content: center;
  }

  .tagline {
    margin-inline: auto;
    border-right: none;
    padding-right: 0;
  }

  .hero-visual {
    order: -1;
  }

  .frame {
    width: min(300px, 78%);
  }

  .frame-badge {
    right: -14px;
    width: 88px;
    height: 88px;
  }

  .frame-badge strong {
    font-size: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-photo {
    width: min(420px, 88%);
    margin-inline: auto;
  }

  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .dedication-mark {
    width: 160px;
    margin-inline: auto;
  }

  .dedication {
    text-align: right;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-right: none;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .offer {
    grid-template-columns: 1fr;
  }

  .offer-price {
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .logo {
    font-size: 22px;
  }

  section {
    padding: 80px 0;
  }

  .quotes {
    columns: 1;
  }

  .q.big p {
    font-size: 23px;
  }

  .contents {
    padding: 36px 24px;
  }

  .toc {
    columns: 1;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .payment-buttons,
  .form-row {
    grid-template-columns: 1fr;
  }

  .payment-box {
    padding: 26px 18px;
  }

  .payment-details {
    padding: 22px 18px;
  }

  .copy-box {
    flex-direction: column;
  }

  .copy-btn {
    height: 46px;
  }

  .copy-box input {
    font-size: 12px;
  }

  .offer-list,
  .offer-price {
    padding: 36px 24px;
  }

  .big-price {
    font-size: 88px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================================================
   الإضافات: الحركة، رفع الوصل، الشريط السفلي، الريسبونسيف
   ===================================================== */

[hidden] {
  display: none !important;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.hero {
  min-height: 100svh;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- شريط تقدم القراءة ---------- */

.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 60;
  transform-origin: right;
  transform: scaleX(0);
  background: linear-gradient(-90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 12px rgba(226, 204, 154, 0.6);
  pointer-events: none;
}

/* ---------- دخول العنوان ---------- */

.js .book-title {
  animation: inkIn 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@keyframes inkIn {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(24px) scale(0.96);
  }
  60% {
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* ---------- ظهور النص كلمة كلمة ---------- */

.js [data-words] .w {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.35em);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.7s ease;
  transition-delay: calc(var(--i) * 45ms);
}

.js [data-words].in .w {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------- عقرب الساعة في الشعار ---------- */

.mark-hand {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: spin 40s linear infinite;
}

.dedication-mark .mark-hand {
  animation-duration: 12s;
}

.logo:hover .mark-hand {
  animation-duration: 3s;
}

/* ---------- لمعة الأزرار ---------- */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(120%);
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0%,
  65% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(-120%);
  }
}

/* ---------- خطوط الزخرفة تنمو ---------- */

.js .ornament::before,
.js .ornament::after {
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.js .ornament::before {
  transform-origin: left;
}

.js .ornament::after {
  transform-origin: right;
}

.js .in .ornament::before,
.js .in .ornament::after,
.js .ornament.in::before,
.js .ornament.in::after {
  transform: scaleX(1);
}

/* ---------- إطار الصورة ثلاثي الأبعاد ---------- */

.hero-visual {
  perspective: 1200px;
}

.frame {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* ---------- بطاقات الاقتباس ---------- */

.q {
  overflow: hidden;
}

.q::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(194, 164, 106, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.q:hover::after {
  opacity: 1;
}

.q:hover {
  box-shadow: inset 0 2px 0 var(--gold);
}

/* ---------- الفهرس يظهر بالتتابع ---------- */

.js .toc li {
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    color 0.2s;
  transition-delay: calc(var(--i) * 35ms), calc(var(--i) * 35ms), 0s;
}

.js .contents.in .toc li {
  opacity: 1;
  transform: none;
}

/* ---------- رفع الوصل ---------- */

.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px;
  border: 1px dashed rgba(194, 164, 106, 0.45);
  background: rgba(11, 11, 12, 0.6);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--gold);
  background: rgba(194, 164, 106, 0.06);
}

.dropzone.dragover {
  border-style: solid;
  border-color: var(--gold-light);
  background: rgba(194, 164, 106, 0.12);
  transform: scale(1.01);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--line);
  cursor: default;
  animation: reveal 0.4s ease;
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.dz-empty svg {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--gold);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-5px);
  }
}

.dz-empty strong {
  display: block;
  font-size: 16px;
  color: var(--paper);
}

.dz-empty span {
  font-size: 13px;
  color: var(--muted);
}

.dz-touch {
  display: none;
}

@media (hover: none) {
  .dz-desktop {
    display: none;
  }

  .dz-touch {
    display: inline;
  }
}

.dz-file {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: right;
}

.dz-thumb,
.dz-pdf {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.dz-thumb {
  object-fit: cover;
}

.dz-pdf {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.dz-meta {
  flex: 1;
  min-width: 0;
}

.dz-meta strong {
  display: block;
  font-size: 15px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}

.dz-meta span {
  font-size: 13px;
  color: var(--gold);
}

.dz-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line-soft);
  color: var(--paper-dim);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.dz-remove:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: #e3907f;
  animation: reveal 0.3s ease;
}

.field-error:empty {
  display: none;
}

.invalid input,
.invalid select,
.invalid .dropzone {
  border-color: #c4695a !important;
}

.invalid {
  animation: shake 0.4s ease;
}

@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.submit-button .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 18, 6, 0.3);
  border-top-color: #171206;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.loading .spinner {
  display: inline-block;
}

.submit-button.loading {
  pointer-events: none;
  opacity: 0.85;
}

.copy-btn.done {
  background: var(--gold);
  color: #171206;
}

/* ---------- رسالة النجاح ---------- */

.success.show {
  display: block;
}

.success-icon circle,
.success-icon path {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
}

.success-icon path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.success.show .success-icon circle {
  animation: draw 0.8s ease forwards;
}

.success.show .success-icon path {
  animation: draw 0.5s ease 0.6s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.success-mail {
  margin-top: 10px;
  color: var(--gold-light) !important;
  unicode-bidi: plaintext;
}

.success .btn {
  margin-top: 20px;
}

/* ---------- شريط الشراء السفلي للموبايل ---------- */

.sticky-cta {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  padding-right: 16px;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(160%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticky-cta.show {
  transform: none;
}

.sticky-cta strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}

.sticky-cta span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- الريسبونسيف ---------- */

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-grid {
    gap: 44px;
  }

  .frame {
    width: min(350px, 100%);
  }

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .sticky-cta {
    display: flex;
  }

  .site-footer {
    padding-bottom: 120px;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .warning-band {
    padding: 80px 0;
  }
}

@media (max-width: 650px) {
  .steps {
    gap: 16px;
    max-width: 340px;
    margin-inline: auto;
    margin-bottom: 30px;
  }

  .step {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: right;
    padding: 0;
  }

  .step-num {
    grid-row: span 2;
    margin: 0;
  }

  .final {
    padding: 90px 0;
  }

  .hero-meta {
    gap: 8px 20px;
  }

  .frame-badge {
    right: -6px;
    bottom: 18px;
  }

  .q {
    padding: 30px 22px 22px;
  }

  .about-text p {
    font-size: 19px;
  }

  .dedication {
    font-size: 19px;
    padding: 16px;
  }

  .facts strong {
    font-size: 22px;
  }

  .dropzone {
    min-height: 120px;
    padding: 18px;
  }

  .dz-remove {
    padding: 6px 10px;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

@media (max-width: 380px) {
  .book-title {
    font-size: 66px;
  }

  .logo {
    font-size: 19px;
  }

  .logo svg {
    width: 24px;
    height: 24px;
  }

  .nav-links .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
  }

  .btn {
    padding: 14px 24px;
  }

  .hero-cta {
    gap: 14px;
  }

  .price-tag strong {
    font-size: 36px;
  }

  .big-price {
    font-size: 72px;
  }

  .payment-choice {
    padding: 16px;
  }

  .fact {
    padding: 18px 8px;
  }

  .fact strong.isbn {
    font-size: 12px;
  }

  .dz-thumb,
  .dz-pdf {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-words] .w,
  .js .toc li {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .js .ornament::before,
  .js .ornament::after {
    transform: scaleX(1);
  }

  .success-icon circle,
  .success-icon path {
    stroke-dashoffset: 0;
  }
}

/* ---------- تعديلات أخيرة ---------- */

.hero-text .eyebrow {
  margin-bottom: 46px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 92px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-text .eyebrow {
    margin-bottom: 34px;
  }

  .frame {
    width: min(250px, 64%);
  }
}
