/* لقانا — الموقع التعريفي
   الاتجاه: دفء الإسبريسو — خلفية بُنية داكنة للواجهة، أقسام كريمية، نحاسي للتمييز */
:root {
  --bg: #fbf6ef;
  --bg-2: #f3e9dc;
  --dark: #1f1510;
  --dark-2: #2c1f17;
  --surface: #ffffff;
  --text: #2a1d15;
  --muted: #7d6858;
  --line: #e7d8c6;
  --accent: #c0783a;
  --accent-2: #e0a96d;
  --cream: #f6ead9;
  --ok: #4e7d55;
  --r: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px -20px rgba(60, 35, 15, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; color: var(--text);
  background: var(--bg); line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* ------------------------------- أزرار ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; font-family: inherit;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn.lg { padding: 15px 30px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }
.btn.ghost { border-color: currentColor; color: inherit; opacity: .9; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.light { background: var(--cream); color: var(--dark); }
.btn.outline { border-color: var(--cream); color: var(--cream); }
.shine::after {
  content: ''; position: absolute; inset: 0; transform: translateX(120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(120%) skewX(-20deg); } 100% { transform: translateX(-120%) skewX(-20deg); } }

/* ------------------------------- الشريط ------------------------------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; color: var(--cream); transition: background .4s, box-shadow .4s, color .4s; }
.nav.scrolled { background: rgba(251, 246, 239, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); box-shadow: 0 6px 30px -18px rgba(0, 0, 0, .4); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Readex Pro'; font-weight: 700; font-size: 22px; }
.links { display: flex; gap: 26px; margin-inline-start: 20px; font-weight: 500; font-size: 15px; }
.links a { opacity: .85; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.nav-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; }
.burger span { display: block; height: 2px; background: currentColor; margin: 7px 8px; transition: transform .3s; }

/* ------------------------------- الواجهة ------------------------------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #4a2e1d 0%, transparent 60%), var(--dark); color: var(--cream); padding: 140px 0 0; overflow: hidden; }
.hero::before { /* شبكة خفيفة */
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(var(--cream) 1px, transparent 1px), linear-gradient(90deg, var(--cream) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 14s ease-in-out infinite; }
.g1 { width: 420px; height: 420px; background: #c0783a; top: 10%; inset-inline-start: -120px; }
.g2 { width: 360px; height: 360px; background: #7a4a2a; bottom: -80px; inset-inline-end: 10%; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.1); } }

.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding-bottom: 70px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(246, 234, 217, .1); border: 1px solid rgba(246, 234, 217, .2); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 0 #7bd88f; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); margin: 22px 0 18px; letter-spacing: -1px; }
.rotate { display: inline-block; color: var(--accent-2); position: relative; min-width: 4ch; }
.rotate span { display: inline-block; animation: wordIn .7s var(--ease); }
.rotate::after { content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 10px; background: rgba(192, 120, 58, .35); border-radius: 6px; z-index: -1; }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%); filter: blur(6px); } }
.hero .lead { color: rgba(246, 234, 217, .78); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(246, 234, 217, .7); }
.ticks li::before { content: '✓'; color: var(--accent-2); margin-inline-end: 6px; font-weight: 700; }

/* التابلت والطابعة */
.hero-visual { position: relative; height: 470px; }
.tablet {
  position: absolute; inset-inline-start: 0; top: 10px; width: 88%; background: #fff; color: var(--text); border-radius: 26px;
  padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 10px #120c08; transform: rotate(-2deg);
}
.t-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; font-size: 13px; }
.t-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.t-bar b { margin-inline-start: auto; font-family: 'Readex Pro'; }
.t-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.t-item { background: var(--bg); border-radius: 12px; padding: 10px 8px; font-size: 12px; font-weight: 600; border-top: 4px solid var(--c); min-height: 70px; display: flex; flex-direction: column; justify-content: space-between; }
.t-item small { color: var(--muted); font-weight: 500; }
.t-item:nth-child(1) { animation: tap 6s 1s infinite; }
@keyframes tap { 0%, 8%, 100% { transform: none; } 4% { transform: scale(.94); background: var(--cream); } }
.t-cart { background: var(--bg); border-radius: 14px; padding: 10px; font-size: 12px; }
.t-cart .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.t-total { display: flex; justify-content: space-between; font-weight: 700; padding: 8px 0; font-size: 14px; }
.t-send { background: var(--accent); color: #fff; text-align: center; border-radius: 10px; padding: 8px; font-weight: 700; animation: pulse 6s 1.4s infinite; }
@keyframes pulse { 0%, 20%, 100% { box-shadow: none; } 10% { box-shadow: 0 0 0 6px rgba(192, 120, 58, .35); } }

.printer {
  z-index: 3;
  position: absolute; inset-inline-end: -10px; bottom: 0; width: 230px; height: 120px; border-radius: 20px;
  background: linear-gradient(#3a2a20, #24180f); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.p-slot { position: absolute; top: 18px; inset-inline: 22px; height: 8px; border-radius: 4px; background: #0d0805; }
.ticket {
  position: absolute; bottom: calc(100% - 22px); inset-inline: 32px; background: #fffdf8; color: #111; font-size: 12px;
  padding: 12px 12px 18px; border-radius: 4px 4px 0 0; transform-origin: bottom; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .5);
  clip-path: inset(100% 0 0 0); animation: print 6s 1.6s var(--ease) infinite;
}
.ticket::after { content: ''; position: absolute; top: -6px; inset-inline: 0; height: 8px; background: radial-gradient(circle at 5px 0, transparent 5px, #fffdf8 5px) repeat-x; background-size: 10px 8px; }
.ticket b { display: block; text-align: center; font-family: 'Readex Pro'; }
.tk-big { font-family: 'Readex Pro'; font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; }
.tk-line { font-size: 14px; font-weight: 600; }
.tk-line em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: #555; }
.ticket hr { border: 0; border-top: 1px dashed #999; margin: 6px 0; }
@keyframes print {
  0%, 8% { clip-path: inset(100% 0 0 0); transform: translateY(0); }
  40%, 85% { clip-path: inset(0 0 0 0); transform: translateY(0); }
  100% { clip-path: inset(0 0 0 0); transform: translateY(-14px); opacity: 0; }
}

.marquee { position: relative; border-top: 1px solid rgba(246, 234, 217, .12); overflow: hidden; padding: 18px 0; }
.track { display: flex; gap: 50px; width: max-content; animation: marquee 28s linear infinite; font-family: 'Readex Pro'; font-size: 20px; color: rgba(246, 234, 217, .5); }
.track span::before { content: '✦'; color: var(--accent); margin-inline-end: 50px; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ------------------------------- أرقام ------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -1px; padding: 60px 0 20px; }
.stat { text-align: center; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: 'Readex Pro'; font-size: 46px; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* ------------------------------- أقسام ------------------------------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-2); }
.head { text-align: center; margin-bottom: 52px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.card.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #fff, var(--cream)); }
.card.wide { grid-column: span 2; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-tables { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 26px; }
.mini-tables i { aspect-ratio: 1; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: background .6s; }
.mini-tables i.busy { background: #f3d9bf; border-color: var(--accent-2); }
.mini-tables i.res { background: #dbe7f0; border-color: #8fb1c9; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 30px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 10px, transparent 10px 18px); }
.steps li { position: relative; text-align: center; padding: 0 10px; }
.steps b { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--dark); color: var(--cream); font-family: 'Readex Pro'; font-size: 22px; box-shadow: 0 0 0 8px var(--bg-2); position: relative; }
.steps p { color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-inline-start: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.flow { background: var(--dark); border-radius: 28px; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); }
.node { background: var(--dark-2); color: var(--cream); border: 1px solid rgba(246, 234, 217, .15); border-radius: 18px; padding: 14px 22px; font-size: 26px; display: flex; align-items: center; gap: 12px; min-width: 220px; justify-content: center; }
.node span { font-size: 16px; font-weight: 600; }
.node.sm { min-width: 0; flex: 1; }
.node-row { display: flex; gap: 14px; width: 100%; max-width: 360px; }
.wire { width: 2px; height: 56px; background: rgba(246, 234, 217, .15); position: relative; overflow: hidden; }
.wire i { position: absolute; inset-inline: 0; height: 18px; background: var(--accent-2); border-radius: 2px; animation: flowDown 1.6s linear infinite; box-shadow: 0 0 10px var(--accent-2); }
.split-wire { width: 50%; background: none; border-top: 2px solid rgba(246, 234, 217, .15); border-inline: 2px solid rgba(246, 234, 217, .15); height: 40px; margin-top: 0; }
.split-wire i { display: none; }
@keyframes flowDown { from { top: -20px; } to { top: 100%; } }

/* ------------------------------- الباقات ------------------------------- */
.billing { display: flex; justify-content: center; gap: 4px; margin: -20px auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; width: max-content; }
.billing button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--muted); }
.billing button.on { background: var(--dark); color: var(--cream); }
.billing em { font-style: normal; font-size: 12px; color: var(--ok); margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.hot { background: var(--dark); color: var(--cream); border-color: var(--dark); position: relative; transform: scale(1.03); }
.plan.hot:hover { transform: scale(1.03) translateY(-6px); }
.plan.hot .muted, .plan.hot .p-desc { color: rgba(246, 234, 217, .7); }
.badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin: 0; }
.p-desc { color: var(--muted); font-size: 14.5px; min-height: 46px; }
.price { font-family: 'Readex Pro'; font-size: 46px; font-weight: 700; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 500; opacity: .7; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.limits div { background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.plan.hot .limits div { background: rgba(246, 234, 217, .08); }
.limits b { display: block; font-size: 18px; font-family: 'Readex Pro'; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; font-size: 15px; flex: 1; }
.plan ul li::before { content: '✓ '; color: var(--accent-2); font-weight: 700; }

/* ------------------------------- التسجيل ------------------------------- */
.signup { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.signup label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.signup small { font-weight: 400; color: var(--muted); }
.signup input, .signup select {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; width: 100%; color: var(--text);
}
.signup input:focus, .signup select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192, 120, 58, .18); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.signup label { align-content: start; }
.signup .lbl { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-height: 20px; }
.signup .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: -2px; }
.signup .sep { height: 1px; background: var(--line); margin: 4px 0; }
.signup .sub { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg); padding: 5px; border-radius: 16px; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 11px; border-radius: 12px; cursor: pointer; font-size: 16px; transition: background .25s; }
.seg input:checked + span { background: var(--dark); color: var(--cream); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.form-msg { font-size: 15px; text-align: center; }
.form-msg.err { color: #b04a3f; }
.form-ok { text-align: center; padding: 20px 6px; }
.form-ok .big { font-size: 54px; }

/* ------------------------------- الأسئلة ------------------------------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 0 22px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform .3s; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; }

.cta-band { background: radial-gradient(800px 300px at 50% 120%, #7a4a2a, transparent), var(--dark); color: var(--cream); text-align: center; padding: 100px 0; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 52px); }
.cta-band .hero-cta { justify-content: center; }

.foot { background: #160f0b; color: var(--cream); padding: 60px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot .muted { color: rgba(246, 234, 217, .55); }
.foot-links, .foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent-2); }
.copy { border-top: 1px solid rgba(246, 234, 217, .1); margin-top: 40px; padding-top: 20px; font-size: 14px; }

.wa { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px #25d366; animation: waPulse 2.5s infinite; }
.wa svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* ------------------------------- الظهور ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------- الجوال ------------------------------- */
@media (max-width: 980px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 560px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .links { position: fixed; top: 74px; inset-inline: 0; flex-direction: column; background: var(--bg); color: var(--text); padding: 20px; gap: 16px; margin: 0; transform: translateY(-130%); transition: transform .45s var(--ease); box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
  .links.open { transform: none; }
  .burger { display: block; }
  .nav-cta .ghost { display: none; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card.big, .card.wide { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding-top: 110px; }
  .hero-visual { height: 380px; }
  .tablet { width: 100%; }
  .t-body { grid-template-columns: 1fr; }
  .t-cart { display: none; }
  .printer { width: 190px; inset-inline-end: 0; }
  .nav-cta .primary { padding: 9px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticket { clip-path: none; }
}
