:root {
  --cream: #fff6ec;
  --paper: #fffdf9;
  --ink: #1c1714;
  --muted: #5c534c;
  --line: #eddccb;
  --coral: #e24b3b;
  --coral-dark: #c0372c;
  --teal: #1f7a6e;
  --teal-dark: #165c53;
  --gold: #e2a93b;
  --navy: #1b1464;
  --shadow: 0 10px 30px rgba(28, 23, 20, 0.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Cairo", "Nunito", sans-serif; }
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe1c4 0%, transparent 50%),
    radial-gradient(900px 400px at 110% 0%, #d7efe9 0%, transparent 46%),
    var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--coral-dark); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 800;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.logo img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #fff; }
.nav-links .btn { padding: 8px 14px; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: #fff; text-decoration: none;
  font-weight: 800; border: 0; border-radius: 999px;
  padding: 12px 18px; cursor: pointer; font-family: inherit; font-size: 1rem;
  box-shadow: 0 6px 0 var(--coral-dark);
}
.btn:hover { color: #fff; transform: translateY(1px); box-shadow: 0 5px 0 var(--coral-dark); }
.btn-teal { background: var(--teal); box-shadow: 0 6px 0 var(--teal-dark); }
.btn-ghost {
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 2px var(--line);
}
.btn-ghost:hover { color: var(--ink); }

.hero { padding: 48px 0 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero h1 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 12px;
}
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; max-width: 40rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  transform: rotate(3deg);
}
.hero-art img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(28,23,20,.12));
  background: transparent;
}
.hero-art img:nth-child(2) { transform: rotate(-8deg) translateY(-8px); }
.hero-art img:nth-child(3) { transform: rotate(6deg); }
.hero-art img:nth-child(5) { transform: rotate(-4deg) translateY(6px); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.langs a {
  text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
}

h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em; margin: 0 0 8px;
}
.section { padding: 28px 0 12px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.sub { color: var(--muted); margin: 0; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
}
a.card:hover { border-color: #e0c6ac; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 10px; }
.card-top img { width: 48px; height: 48px; }
.card h3 { margin: 0; font-family: "Fredoka", Nunito, sans-serif; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff6ec; border-radius: 12px; }
.count { font-size: 0.8rem; font-weight: 800; color: var(--teal-dark); }

.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

.offer, .notice, .ad-slot {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
}
.offer {
  background: linear-gradient(135deg, #1b1464, #3d348b);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.offer h2, .offer p { color: #fff; }
.offer p { margin: 6px 0 0; opacity: 0.9; }
.price { font-family: "Fredoka", Nunito, sans-serif; font-size: 1.8rem; margin: 0; }
.price small { font-size: 1rem; opacity: 0.85; font-weight: 700; }

.ad-slot {
  border: 2px dashed #d9c5b0;
  background: repeating-linear-gradient(-45deg, #fff8f0, #fff8f0 8px, #fff3e6 8px, #fff3e6 16px);
  min-height: 90px;
  color: #8a7b70;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid; place-items: center;
}
.ad-slot--300x250 { min-height: 250px; max-width: 300px; margin-inline: auto; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.preview-grid figure { margin: 0; text-align: center; }
.preview-grid img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
}
.preview-grid figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 4px; word-break: break-word; }

.howto-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { margin-top: 0; }
.panel ol { padding-left: 1.2rem; margin: 0; }
html[dir="rtl"] .panel ol { padding-left: 0; padding-right: 1.2rem; }

.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.maker-app {
  display: grid; grid-template-columns: minmax(280px, 512px) 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px;
  box-shadow: var(--shadow);
}
.stage-wrap { background: #1c1714; border-radius: 24px; padding: 16px; }
#stage {
  display: block; width: 100%; height: auto; background:
    linear-gradient(45deg, #2a2420 25%, transparent 25%),
    linear-gradient(-45deg, #2a2420 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2420 75%),
    linear-gradient(-45deg, transparent 75%, #2a2420 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-color: #3a332e;
  border-radius: 12px; cursor: grab; touch-action: none;
}
#stage:active { cursor: grabbing; }
.drop {
  border: 2px dashed #8a7b70; color: #ddd; border-radius: 16px;
  padding: 28px; text-align: center; margin-bottom: 12px; cursor: pointer;
}
.controls { display: grid; gap: 12px; }
.controls label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.controls input[type="text"], .controls input[type="range"], .controls select, .controls input[type="color"] {
  width: 100%; font: inherit;
}
.controls input[type="text"] { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.92rem; }

footer.site {
  margin-top: 48px; padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 10px; }
footer.site a { color: var(--ink); text-decoration: none; font-weight: 700; }

.notice { background: #fff; border: 1px solid var(--line); }

@media (max-width: 800px) {
  .hero, .howto, .howto-detail, .maker-app { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-art { max-width: 360px; }
  .nav-links a { padding: 6px 8px; font-size: 0.85rem; }
}

/* Adsterra labelled banner slots. Reserved height avoids layout shift.
   728x90 is used on desktop and hidden under 760px; 300x250 sits in content. */
.ad-slot{position:static;text-align:center;margin:28px auto 8px;max-width:100%;clear:both;z-index:auto}
.ad-slot .ad-label{display:block;font:11px/1.2 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#666;margin:0 0 8px}
.ad-slot .ad-frame{margin:0 auto;overflow:hidden;max-width:100%}
.ad-slot.ad-728 .ad-frame{width:728px;height:90px;min-height:90px;max-width:100%}
.ad-slot.ad-300 .ad-frame{width:300px;height:250px;min-height:250px}
@media (max-width:759px){
  .ad-slot.ad-728{display:none}
}
