/* موقع دان — ألوان الهوية (src/ui/brand.tsx): كحلي · أزرق ملكي · أزرق فاتح · ضباب.
   الخط: Arial للعناوين والنص (موجود في الأجهزة نفسها — ما يتحمّل من برا). Tahoma احتياط للعربي على ويندوز القديم.
   الشي المميز: بطاقة تجربة الحجز في الأعلى، ولوحة الأسعار مثل قائمة أسعار صالون الحلاقة. الباقي هادي. */

:root {
  --navy: #0e1e45;
  --royal: #2457e6;
  --royal-ink: #1b45bd;
  --sky: #7fa2ff;
  --mist: #eef2ff;
  --line: #d5def5;
  --ink: #0e1e45;
  --muted: #4f5f86;
  --wa: #13804a;
  --font-body: Arial, Tahoma, sans-serif;
  --font-display: Arial, Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--royal-ink);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 700px) {
  .wrap {
    padding-inline: 28px;
  }
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

section[id] {
  scroll-margin-top: 76px;
}

/* ───────── الأزرار ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font: 700 17px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.btn .ico {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-royal {
  background: var(--royal);
  color: #fff;
}

.btn-royal:hover {
  background: var(--royal-ink);
}

.btn-sky {
  min-height: 42px;
  padding: 0 16px;
  background: var(--sky);
  color: var(--navy);
  font-size: 16px;
}

.btn-sky:hover {
  background: #a3bcff;
}

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0f6a3d;
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

/* ───────── الرأس ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--royal);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.main-nav {
  display: none;
  gap: 2px;
  margin-inline-start: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-cta {
  margin-inline-start: auto;
}

@media (min-width: 980px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    margin-inline-start: 8px;
  }
}

/* ───────── الواجهة ───────── */
.hero {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-inner {
  display: grid;
  gap: 44px;
  padding-block: 44px 64px;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 8vw, 4.9rem);
  line-height: 1.2;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

.hero-salons {
  color: var(--sky);
  font-weight: 700;
  text-underline-offset: 7px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.facts li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 10px;
  border-radius: 1px;
  background: var(--sky);
  vertical-align: middle;
  transform: rotate(45deg);
}

.hero-demo {
  display: flex;
  justify-content: center;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    padding-block: 76px 100px;
  }

  .hero-demo {
    justify-content: flex-end;
  }
}

/* ───────── بطاقة تجربة الحجز ───────── */
.ticket {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 70px -24px rgba(2, 8, 28, 0.75);
}

@media (min-width: 700px) {
  .ticket {
    transform: rotate(-1.5deg);
  }
}

/* حافة بخطوط عمود الحلاق — بألوان دان */
.ticket-pole {
  height: 12px;
  border-radius: 26px 26px 0 0;
  background: repeating-linear-gradient(-45deg, var(--royal) 0 9px, #fff 9px 18px, var(--sky) 18px 27px, #fff 27px 36px);
}

.ticket-body {
  padding: 18px 22px 20px;
}

.ticket-tag {
  color: var(--royal);
  font-size: 14px;
  font-weight: 700;
}

.salon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.salon-mark {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--navy);
}

.salon-text {
  min-width: 0;
}

.salon-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.salon-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rating {
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.rating span {
  color: #d99100;
}

.group {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.group legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 6px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
}

.option::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
}

.option-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.option-price {
  font-size: 15px;
  font-weight: 700;
}

.option:has(input:checked) {
  background: #f5f8ff;
  box-shadow: inset 0 0 0 2px var(--royal);
}

.option:has(input:checked)::before {
  box-shadow: inset 0 0 0 5px var(--royal);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.chip:has(input:checked) {
  background: var(--royal);
  box-shadow: none;
  color: #fff;
}

.chip.is-taken {
  background: #f6f7fb;
  color: #8a96b5;
  cursor: not-allowed;
}

.chip.is-taken small {
  font-size: 12px;
}

/* الاختيار نفسه زر راديو حقيقي فوق الملصق (لوحة المفاتيح وقارئ الشاشة يشتغلون عادي) */
.option input,
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.option:has(input:focus-visible),
.chip:has(input:focus-visible) {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* كعب التذكرة: خط مخرّم ونصف دائرتين */
.stub {
  position: relative;
  padding: 18px 22px 20px;
  border-top: 2px dashed var(--line);
  border-radius: 0 0 26px 26px;
  background: var(--mist);
}

.stub::before,
.stub::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
}

.stub::before {
  inset-inline-start: -12px;
}

.stub::after {
  inset-inline-end: -12px;
}

.stub-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stub-plan[hidden],
.stub-done[hidden] {
  display: none;
}

.stub-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stub-ok {
  color: var(--wa);
}

.stub-ok::before {
  content: '✓ ';
}

.stub-when {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.stub-what {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.stub-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--royal-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .ticket.is-done .stub-done {
    animation: stamp 0.35s ease-out;
  }

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

/* ───────── الأقسام ───────── */
.section {
  padding-block: 72px;
}

.section h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
}

@media (min-width: 980px) {
  .section {
    padding-block: 104px;
  }
}

/* كيف تحجز — خطوات فعلية بالترتيب */
.steps {
  display: grid;
  gap: 30px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step-n {
  display: block;
  color: var(--royal);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.steps h3 {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 20px;
}

.steps p {
  max-width: 30em;
  margin-top: 6px;
  color: var(--muted);
}

.note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
  }
}

/* لأصحاب الصوالين */
.salons {
  background: var(--mist);
}

.salons-inner {
  display: grid;
  gap: 40px;
}

.salons-copy p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--muted);
}

.salons-copy .trial {
  color: var(--navy);
  font-size: 18px;
}

.trial strong {
  color: var(--royal-ink);
}

.salons-copy .btn {
  margin-top: 26px;
}

.salons-copy .small {
  font-size: 15px;
}

.features {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  column-gap: 36px;
}

.features li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.features .ico {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 4px;
  color: var(--royal);
}

.features h3 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.features p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .salons-inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 64px;
  }
}

/* الباقات — لوحة أسعار */
.plans-inner {
  display: grid;
  gap: 40px;
}

.plans-copy > p {
  margin-top: 16px;
  color: var(--muted);
}

.terms {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.terms li::marker {
  color: var(--royal);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-weight: 700;
}

.board {
  padding: 26px 22px 22px;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 26px 50px -26px rgba(14, 30, 69, 0.6);
  color: #fff;
}

.board-title {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sky);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.board-rows {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.board-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.board-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.board-dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 3px dotted rgba(255, 255, 255, 0.32);
  transform: translateY(-7px);
}

.board-price {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  white-space: nowrap;
}

.board-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.board-month {
  color: var(--sky);
}

.is-best .board-name,
.is-best .board-price {
  color: var(--sky);
}

.board-foot {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 700px) {
  .board {
    padding: 34px 36px 26px;
  }
}

@media (min-width: 980px) {
  .plans-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
}

/* الأسئلة */
.faq .wrap {
  max-width: 880px;
}

.faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--royal);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  max-width: 46em;
  padding-bottom: 20px;
  color: var(--muted);
}

.faq details a {
  font-weight: 700;
}

/* تواصل معنا */
.contact {
  background: var(--mist);
}

.contact-inner {
  text-align: center;
}

.contact p {
  margin-top: 10px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ───────── التذييل ───────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: grid;
  gap: 28px;
  padding-block: 48px;
  font-size: 16px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--sky);
  font-family: var(--font-display);
  font-size: 18px;
}

.footer-links,
.footer-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* ───────── صفحات السياسات ───────── */
.legal {
  max-width: 860px;
  padding-block: 40px 76px;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: 16px;
  background: var(--mist);
}

.policy-tabs a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.policy-tabs a[aria-current='page'] {
  background: var(--royal);
  color: #fff;
}

.policy {
  margin-top: 28px;
}

.policy h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
}

.updated {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.draft {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff6e5;
  color: #7a4b00;
  font-size: 15px;
}

.intro {
  margin-top: 20px;
}

.policy section {
  margin-top: 32px;
}

.policy h2 {
  font-size: 21px;
}

.policy section p,
.policy li {
  font-size: 17px;
  line-height: 1.95;
}

.policy section p + p {
  margin-top: 8px;
}

.policy ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-inline-start: 22px;
}

.policy li::marker {
  color: var(--royal);
}

.plans-table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.plans-table th,
.plans-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.plans-table th {
  background: var(--mist);
  color: var(--muted);
  font-size: 14px;
}

/* 404 */
.notfound {
  padding-block: 96px;
  text-align: center;
}

.notfound p {
  margin: 12px 0 24px;
  color: var(--muted);
}

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