@import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  --page: #f4f0e8;
  --paper: #fffdfa;
  --paper-soft: #f8f5ef;
  --ink: #24211d;
  --muted: #746e65;
  --brown: #7b624d;
  --brown-dark: #624b39;
  --brown-light: #e8dfd3;
  --line: rgba(80, 62, 44, 0.1);
  --shadow: 0 9px 28px rgba(68, 52, 36, 0.075);
  --shadow-hover: 0 17px 38px rgba(68, 52, 36, 0.13);
  --radius: 7px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.8), rgba(244, 240, 232, 0.92)),
    url("images/ambient-portraits.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Tajawal", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: "Tajawal", Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(123, 98, 77, 0.42);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  flex: 0 0 auto;
}

.brand-mark {
  width: 35px;
  height: 32px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.06);
}

.brand-word {
  color: #302a24;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1;
}

.brand sup {
  position: relative;
  top: -0.55em;
  margin-left: 3px;
  color: var(--brown);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.disclosure-link {
  color: #817a70;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.disclosure-link:hover {
  color: var(--brown-dark);
}

.hero {
  min-height: 390px;
  padding-block: 40px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(450px, 0.96fr);
  align-items: center;
  gap: 34px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #24211d;
  font-size: clamp(34px, 3.15vw, 48px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -1.2px;
}

.hero-subtitle {
  max-width: 690px;
  margin: 0 0 21px;
  color: #625d56;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
}

.hero-benefits {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #36312c;
  font-size: 14px;
  font-weight: 700;
}

.check {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  border-radius: 50%;
  color: var(--brown-dark);
  background: #ded5c9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.updated {
  margin: 21px 0 0;
  color: #514b43;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/*
 * The map is constrained to this stage.
 * .hero-note is a following flow element, never positioned over this stage.
 */
.collage-stage {
  position: relative;
  width: 100%;
  height: 292px;
  flex: 0 0 292px;
  isolation: isolate;
}

.world-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
}

.polaroid {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 8px 8px 25px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 20px rgba(44, 35, 28, 0.19);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.45s ease;
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d8cfc4;
}

.polaroid-one {
  top: 88px;
  left: 0;
  width: 178px;
  height: 157px;
  transform: rotate(8deg);
}

.polaroid-two {
  top: 18px;
  left: 30%;
  width: 215px;
  height: 183px;
  transform: rotate(-8deg);
}

.polaroid-three {
  top: 43px;
  right: 0;
  width: 192px;
  height: 207px;
  transform: rotate(8deg);
}

.polaroid-one:hover {
  transform: rotate(3deg) translateY(-9px) scale(1.035);
  box-shadow: 0 20px 30px rgba(44, 35, 28, 0.24);
}

.polaroid-two:hover {
  transform: rotate(-3deg) translateY(-9px) scale(1.035);
  box-shadow: 0 20px 30px rgba(44, 35, 28, 0.24);
}

.polaroid-three:hover {
  transform: rotate(3deg) translateY(-9px) scale(1.035);
  box-shadow: 0 20px 30px rgba(44, 35, 28, 0.24);
}

.hero-note {
  position: relative;
  z-index: 4;
  width: max-content;
  max-width: 100%;
  min-height: 58px;
  margin: 12px auto 0;
  padding: 4px 12px;
  color: #79624f;
  background: rgba(244, 240, 232, 0.5);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.hero-note > span {
  display: block;
  transform: rotate(-4deg);
}

.hero-note small {
  display: block;
  font-size: 17px;
}

.rankings {
  display: grid;
  gap: 14px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 238px;
  align-items: center;
  gap: 28px;
  min-width: 0;
  padding: 27px 29px;
  overflow: hidden;
  border: 1px solid rgba(91, 72, 52, 0.055);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.975);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 98, 77, 0.18);
  box-shadow: var(--shadow-hover);
}

.rank-brand {
  min-width: 0;
  text-align: center;
}

.brand-emblem {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.3s ease;
}

.brand-emblem:hover {
  transform: scale(1.035);
}

.brand-emblem--dark {
  background: #252221;
}

.brand-emblem img {
  width: auto;
  max-width: 145px;
  height: 56px;
  object-fit: contain;
}

.rank-brand-name {
  display: block;
  color: #25211d;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.rank-info {
  min-width: 0;
}

.rank-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #3c3630;
  background: #f0ede7;
  font-size: 14px;
  font-weight: 800;
}

.rank-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 17px;
  padding: 0;
  list-style: none;
}

.features li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #47413b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.features .check {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex-basis: 14px;
  font-size: 9px;
}

.rank-description {
  margin: 0;
  color: #6e675f;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 14px;
  line-height: 1.85;
}

.rank-action {
  min-width: 0;
}

.score-box {
  padding: 14px 15px 12px;
  border-radius: 8px;
  background: #f8f6f1;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: rtl;
}

.score-number {
  min-width: 55px;
  color: #211e1a;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  text-align: center;
}

.score-track {
  height: 8px;
  display: flex;
  justify-content: flex-start;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 1px;
  background: #e5dfd5;
  direction: rtl;
}

.score-fill {
  display: block;
  width: var(--score);
  height: 100%;
  background: #765d47;
  transform-origin: right center;
  transition: filter 0.25s ease;
}

.rank-card:hover .score-fill {
  filter: brightness(1.12);
}

.score-max {
  color: #39342e;
  font-size: 11px;
  font-weight: 700;
}

.score-label {
  display: block;
  margin-top: 8px;
  color: #5f584f;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.offer-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 13px 20px;
  border: 1px solid var(--brown);
  border-radius: 7px;
  color: #fff;
  background: var(--brown);
  box-shadow: 0 5px 11px rgba(80, 57, 39, 0.12);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.offer-button:hover {
  transform: translateY(-2px);
  border-color: var(--brown-dark);
  background: var(--brown-dark);
  box-shadow: 0 9px 18px rgba(80, 57, 39, 0.2);
}

.premium-banner {
  position: relative;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 34px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background-image: url("images/premium-eyes-643f5f.png");
  background-position: center 30%;
  background-size: cover;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.premium-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(25, 20, 16, 0.3),
    rgba(25, 20, 16, 0.93)
  );
}

.premium-copy {
  min-width: 0;
}

.premium-copy h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.4;
}

.premium-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 13px;
  font-weight: 500;
}

.premium-button {
  min-width: 182px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 0 0 auto;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: #37312b;
  background: #f7f3ec;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.premium-button:hover {
  transform: translateX(-4px);
  background: #fff;
}

.faq-section {
  padding-top: 53px;
}

.section-title {
  margin: 0 0 25px;
  color: #2c2823;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(91, 72, 52, 0.06);
  border-radius: 6px;
  background: rgba(255, 253, 250, 0.97);
  box-shadow: 0 5px 17px rgba(68, 52, 36, 0.045);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(123, 98, 77, 0.18);
  box-shadow: 0 9px 22px rgba(68, 52, 36, 0.075);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 23px;
  color: #403a34;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-left: 1.5px solid #4c453e;
  border-bottom: 1.5px solid #4c453e;
  transform: rotate(-45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(135deg) translate(-2px, -1px);
}

.faq-answer {
  padding: 0 23px 21px;
  color: #686158;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 15px;
  line-height: 1.95;
}

.faq-answer p {
  margin: 0;
}

.seo-content {
  margin-top: 46px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(91, 72, 52, 0.07);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.seo-content h2,
.seo-content h3 {
  color: #302b26;
  scroll-margin-top: 24px;
}

.seo-content h2 {
  margin: 38px 0 15px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.55;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  margin: 27px 0 11px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.seo-content p {
  margin: 0 0 17px;
  color: #5f5850;
  font-family: "Noto Naskh Arabic", "Tajawal", serif;
  font-size: 16px;
  line-height: 2;
}

.seo-content strong {
  color: #39332d;
  font-weight: 700;
}

.seo-content a {
  color: var(--brown-dark);
  font-family: "Tajawal", Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(123, 98, 77, 0.35);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.seo-content a:hover {
  color: #33261c;
}

.seo-content ul,
.seo-content ol {
  margin: 0 0 22px;
  padding-inline-start: 25px;
  color: #5f5850;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 16px;
  line-height: 1.95;
}

.seo-content li {
  margin-bottom: 7px;
  padding-inline-start: 4px;
}

.seo-content li::marker {
  color: var(--brown);
}

.table-wrap {
  width: 100%;
  margin: 22px 0 27px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 710px;
  border-collapse: collapse;
  color: #585149;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap th {
  color: #37312b;
  background: #f1ece4;
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.legal-hero {
  padding-block: 56px 33px;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0 0 13px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.4;
}

.legal-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.legal-content {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-link {
  direction: ltr;
  unicode-bidi: embed;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(91, 72, 52, 0.1);
}

.footer-inner {
  padding-block: 27px 31px;
}

.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-main {
  margin-bottom: 17px;
}

.footer-main .brand-word {
  font-size: 20px;
}

.footer-main .brand-mark {
  width: 31px;
}

.copyright {
  margin: 0;
  color: #8a8278;
  font-size: 11px;
  text-align: left;
}

.footer-bottom {
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 23px;
}

.footer-links a,
.support-link {
  color: #746c62;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.support-link:hover {
  color: var(--brown-dark);
}

.support-link {
  direction: ltr;
  unicode-bidi: embed;
  white-space: nowrap;
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 25px;
  }

  .rank-card {
    grid-template-columns: 145px minmax(0, 1fr) 210px;
    gap: 22px;
    padding: 24px;
  }

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

@media (max-width: 940px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 31px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .rank-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.7fr);
    align-items: center;
    gap: 18px;
  }

  .offer-button {
    margin-top: 0;
  }

  .premium-banner {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .header-inner {
    min-height: 75px;
  }

  .brand-word {
    font-size: 20px;
  }

  .brand-mark {
    width: 31px;
  }

  .disclosure-link {
    max-width: 100px;
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
  }

  .hero {
    min-height: 0;
    padding-block: 29px 25px;
    gap: 26px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(29px, 8.8vw, 38px);
    letter-spacing: -0.6px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-benefits li {
    font-size: 13px;
  }

  .collage-stage {
    height: 242px;
    flex-basis: 242px;
  }

  .polaroid {
    padding: 6px 6px 18px;
  }

  .polaroid-one {
    top: 78px;
    width: 122px;
    height: 117px;
  }

  .polaroid-two {
    top: 20px;
    left: 27%;
    width: 157px;
    height: 139px;
  }

  .polaroid-three {
    top: 42px;
    width: 130px;
    height: 157px;
  }

  .hero-note {
    margin-top: 12px;
    font-size: 18px;
  }

  .hero-note small {
    font-size: 15px;
  }

  .rank-card {
    grid-template-columns: 1fr;
    gap: 21px;
    padding: 22px 19px;
  }

  .rank-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-align: right;
  }

  .brand-emblem {
    width: 145px;
    min-height: 65px;
    margin: 0;
  }

  .brand-emblem img {
    max-width: 125px;
    height: 47px;
  }

  .rank-heading {
    margin-bottom: 14px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .features li {
    font-size: 12px;
  }

  .rank-description {
    font-size: 14px;
  }

  .rank-action {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .offer-button {
    margin-top: 13px;
  }

  .premium-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    padding: 25px 21px;
    background-position: 38% center;
  }

  .premium-copy h2 {
    font-size: 21px;
  }

  .premium-button {
    width: 100%;
  }

  .faq-section {
    padding-top: 39px;
  }

  .section-title {
    font-size: 26px;
  }

  .faq-item summary {
    padding: 17px 18px;
    font-size: 13px;
  }

  .faq-answer {
    padding: 0 18px 19px;
    font-size: 14px;
  }

  .seo-content {
    margin-top: 34px;
    padding: 25px 19px;
  }

  .seo-content h2 {
    margin-top: 31px;
    font-size: 23px;
  }

  .seo-content h3 {
    font-size: 19px;
  }

  .seo-content p,
  .seo-content ul,
  .seo-content ol {
    font-size: 15px;
  }

  .legal-hero {
    padding-block: 37px 25px;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .copyright {
    text-align: right;
  }

  .footer-links {
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
