:root {
  --bg: #eef7f0;
  --surface: #fbfdf9;
  --surface-2: #d9efdf;
  --text: #2e1d15;
  --muted: #6b5a4e;
  --border: #cfe0d3;
  --line: #2e1d15;
  --accent: #3f7452;
  --accent-hover: #2f5c40;
  --accent-soft: #c7e8d2;
  --on-accent: #2e1d15;
  --btn: #8fb48f;
  --btn-hover: #7ea67e;
  --mint: #7dd3a3;
  --brown: #5a3220;
  --warm: #9a6a2f;
  --warm-soft: #f1dfc0;
  --tan: #d8b27c;
  --shadow: 0 1px 2px rgba(46, 29, 21, 0.05), 0 8px 24px rgba(46, 29, 21, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  color-scheme: light;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section {
  padding-block: 72px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.alt {
  background: var(--surface);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--btn);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--btn-hover);
  color: var(--on-accent);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-select {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  direction: ltr;
}

.currency-select:hover,
.currency-select:focus {
  border-color: var(--accent);
}

.price-note {
  margin: 4px 0 0;
  max-width: 300px;
  font-size: 0.8rem;
}

.cta-band .price-note {
  margin-inline: auto;
}

.lang-toggle {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 6px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-tools {
    margin-top: 14px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 80px 64px;
  background: var(--surface-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-art .ln {
  stroke: var(--line);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hero-art .f-sage { fill: var(--btn); }
.hero-art .f-tan { fill: var(--tan); }
.hero-art .f-paper { fill: var(--surface); }
.hero-art .f-none { fill: none; }
.hero-art .s-sage { stroke: var(--btn); }
.hero-art .s-tan { stroke: var(--tan); }

@media (max-width: 800px) {
  .hero {
    padding-block: 48px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-art {
    max-width: 360px;
  }
}

/* ---------- Cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 5px 5px 0 var(--accent-soft);
}

.product-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.product-card .icon svg {
  width: 30px;
  height: 30px;
}

.icon.green {
  background: var(--accent-soft);
  color: var(--text);
  border: 2px solid var(--line);
}

.icon.warm {
  background: var(--warm-soft);
  color: var(--text);
  border: 2px solid var(--line);
}

.product-card h3 {
  font-size: 1.4rem;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.product-card p.price-note {
  flex: none;
  margin-top: -8px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price {
  font-size: 1.7rem;
  font-weight: 700;
  unicode-bidi: isolate;
}

.product-card .btn-row {
  margin-top: 6px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--line);
  color: #2e1d15;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature .ficon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tan);
  border: 2px solid var(--line);
  color: #2e1d15;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature .ficon svg {
  width: 22px;
  height: 22px;
}

.feature p,
.card p.muted {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding-block: 4px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  padding-bottom: 12px;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-box {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.contact-box .btn-row {
  justify-content: center;
}

.contact-box .email {
  margin-top: 14px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Product page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 22px;
}

html[dir="rtl"] .back-link .arrow {
  transform: scaleX(-1);
}

.buy-card {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--accent-soft);
}

.buy-card .btn-row {
  flex: 1;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .buy-card .btn-row {
    justify-content: stretch;
  }

  .buy-card .btn {
    flex: 1;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.mock {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--accent-soft);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-body {
  padding: 16px;
  font-size: 0.88rem;
}

.mock table {
  width: 100%;
  border-collapse: collapse;
}

.mock th {
  text-align: start;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.mock td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.mock td.file {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.mock .pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  direction: ltr;
}

.mock-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.mock-foot span {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.mock-scroll {
  overflow-x: auto;
}

.mock-svg {
  padding: 22px;
  color: var(--warm);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--accent-soft);
  background: var(--surface);
}

.shot figcaption {
  margin-top: 10px;
  text-align: center;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  text-align: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  width: 40%;
  color: var(--muted);
  font-weight: 500;
}

.cta-band {
  text-align: center;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Legal ---------- */

html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] {
  display: none;
}

.legal {
  max-width: 780px;
}

.legal h2 {
  margin-top: 48px;
  padding-top: 8px;
}

.legal h3 {
  margin-top: 24px;
}

.legal p,
.legal li {
  color: var(--muted);
}

/* ---------- Footer ---------- */

#site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.footer-grid p {
  margin-top: 14px;
  max-width: 420px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding-block: 52px;
  }
}

/* ---------- Brand, plans, discounts ---------- */

.brand .logo {
  width: 32px;
  height: 32px;
}

.product-card .icon {
  background: var(--accent-soft);
  color: var(--text);
}

.product-card .icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-card .price-line {
  display: block;
}

.price .per {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price s {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
}

.save {
  color: var(--accent);
  font-weight: 600;
}

.plan-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  margin: 4px 0 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
}

.section-head .plan-toggle {
  margin-top: 18px;
}

.plan-toggle button {
  font: inherit;
  font-weight: 600;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.plan-toggle button[aria-pressed="true"] {
  background: var(--btn);
  color: #2e1d15;
}

.disc-badge {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warm-soft);
  color: var(--text);
  font-weight: 600;
}

.disc-badge .small {
  font-weight: 400;
  margin-top: 2px;
}

.link-btn {
  font: inherit;
  font-size: 0.9em;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.cta-band .plan-toggle {
  margin-top: 8px;
}

.cta-band .disc-badge {
  display: inline-block;
}

/* ---------- Product page ---------- */

.hero-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 2px solid var(--line);
  color: var(--text);
}

.hero-icon svg,
.hero-icon img {
  width: 40%;
  height: auto;
  max-width: 180px;
}

.shot video,
.shot .yt {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}

.shot .yt {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.shot .yt iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.shot img[data-zoom] {
  cursor: zoom-in;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery.one {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 780px;
  font-size: 1.05rem;
}

.container.narrow {
  max-width: 780px;
}

.files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.files li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.files li > span:nth-child(2) {
  flex: 1;
}

.files .ficon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ---------- Dialog ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(46, 29, 21, 0.55);
}

.modal[hidden] {
  display: none;
}

.modal-box {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-box h2 {
  margin-top: 0;
}

.modal-box.zoom {
  width: min(1400px, 100%);
  padding: 12px;
  text-align: center;
}

.modal-box.zoom img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: var(--radius-sm);
}

.modal-box.zoom .btn {
  margin-top: 10px;
}

.egp-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.egp-amount b {
  font-size: 1.6rem;
}

.steps {
  padding-inline-start: 22px;
}

.steps li {
  margin-bottom: 8px;
}

.pay-methods {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.pay-methods li {
  padding: 8px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pay-methods code {
  font-size: 1rem;
  font-weight: 600;
}
