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

/* حيّاك (المنصة): ليلي دافي، وكهرماني للقهوة */
:root {
  --bg: #fbf7ef;
  --bg2: #f3ecdf;
  --card: #ffffff;
  --ink: #1c2321;
  --muted: #5f6b67;
  --line: #e8e0d1;
  --night: #0f3a35;
  --night2: #0a2b27;
  --amber: #f0a43a;
  --amber-soft: rgba(240, 164, 58, .16);
  --teal: #1f8a78;
  --teal-soft: rgba(31, 138, 120, .1);
  --danger: #c4513f;
  --font: 'Tajawal', system-ui, sans-serif;
  --num: 'Barlow Condensed', 'Tajawal', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 24px 60px -28px rgba(15, 58, 53, .45);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15.5px; cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.amber { background: var(--amber); color: var(--night2); box-shadow: 0 12px 28px -12px rgba(240, 164, 58, .8); }
.btn.amber:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn.dark { background: var(--night); color: #fff; }
.btn.line { background: var(--card); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* الشريط */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--night) 88%, transparent); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.5px; }
.mark i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--amber); color: var(--night2); font-style: normal; font-size: 19px; }
.top nav { display: flex; gap: 20px; margin-inline-start: auto; font-size: 14.5px; font-weight: 700; opacity: .85; }
.top nav a:hover { opacity: 1; color: var(--amber); }
.top .btn { padding: 9px 18px; font-size: 14px; }

/* الواجهة */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(240, 164, 58, .22), transparent 60%), linear-gradient(180deg, var(--night), var(--night2)); color: #fff; padding: 64px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; color: var(--amber); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.15; font-weight: 900; margin: 18px 0 16px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 18px; opacity: .82; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .proof { display: flex; gap: 22px; margin-top: 30px; font-size: 13.5px; opacity: .75; flex-wrap: wrap; }
.hero .proof b { font-family: var(--num); font-size: 26px; color: #fff; display: block; line-height: 1; opacity: 1; }

/* جوال في الواجهة */
.phone { position: relative; width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 42px; background: #0b1412; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(-3deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-10px); } }
.screen { height: 100%; border-radius: 32px; background: var(--bg); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; }
.scr-head { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: 18px; color: var(--night); }
.scr-head span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.scr-card { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .3); }
.scr-card small { color: var(--muted); font-size: 11.5px; display: block; }
.scr-card b { font-size: 14px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.stamps i.on { border: 0; background: var(--amber); animation: pop .5s var(--spring) both; animation-delay: calc(var(--d) * 140ms + .6s); }
@keyframes pop { from { transform: scale(0); } }
.plate { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; font-family: var(--num); font-size: 20px; letter-spacing: 2px; }
.arrive { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--night); color: #fff; text-align: center; font-weight: 800; font-size: 15px; position: relative; overflow: hidden; }
.arrive::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); transform: translateX(100%); animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(-100%); } }
.toast { position: absolute; inset-inline-start: -30px; top: 22%; background: var(--card); color: var(--ink); border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; transform: rotate(3deg); animation: toastIn .6s var(--spring) 1.4s both; }
.toast.two { inset-inline-start: auto; inset-inline-end: 0; top: 62%; animation-delay: 2.2s; }
@keyframes toastIn { from { opacity: 0; transform: rotate(3deg) translateY(14px) scale(.9); } }

/* الأقسام */
section.block { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.25; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); font-size: 16.5px; margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; transition: transform .25s var(--spring), box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--amber-soft); margin-bottom: 14px; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14.5px; }
.feat .pro { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 800; color: var(--teal); background: var(--teal-soft); padding: 3px 9px; border-radius: 999px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; border-radius: 24px; background: var(--night); color: #fff; overflow: hidden; }
.step::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-end: 16px; top: -8px; font-family: var(--num); font-size: 96px; color: rgba(255, 255, 255, .07); }
.step h3 { font-size: 18px; margin-bottom: 6px; color: var(--amber); }
.step p { opacity: .8; font-size: 14.5px; }

.pricing { background: var(--bg2); }
.cycle { display: flex; justify-content: center; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); gap: 2px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--night); color: #fff; }
.seg em { font-style: normal; color: var(--amber); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 18px; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: var(--night); color: #fff; border-color: var(--night); box-shadow: var(--shadow); }
.plan.pro .muted { color: rgba(255, 255, 255, .7); }
.plan .tag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--amber); color: var(--night2); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.muted { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--num); font-size: 52px; line-height: 1; }
.plan.pro .price b { color: var(--amber); }
.price small { font-size: 14px; opacity: .7; }
.plan ul { list-style: none; display: grid; gap: 8px; flex: 1; font-size: 14.5px; }
.plan li::before { content: '✓'; font-weight: 900; color: var(--teal); margin-inline-end: 10px; }
.plan.pro li::before { color: var(--amber); }
.plan .btn { width: 100%; }
.trial-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.cta { padding: 0 0 84px; }
.cta .box { border-radius: 32px; padding: 48px 32px; text-align: center; color: #fff; background: radial-gradient(600px 240px at 50% 0, rgba(240, 164, 58, .3), transparent 70%), var(--night); }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; margin-bottom: 10px; }
.cta p { opacity: .8; margin-bottom: 24px; }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin-top: 20px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 600px) {
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .hero { padding: 40px 0 70px; }
  .features, .steps { grid-template-columns: 1fr; }
  .toast { inset-inline-start: -6px; } .toast.two { inset-inline-end: -6px; }
  section.block { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* التسجيل */
.start { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.start-form { padding: 40px max(24px, 6vw); display: flex; flex-direction: column; gap: 22px; }
.start-form .mark { color: var(--night); }
.start-form h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; line-height: 1.25; }
.start-form > p { color: var(--muted); margin-top: -12px; }
.fs { border: 0; display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: opacity .3s; }
.fs legend { float: right; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.fs legend i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 14px; background: var(--amber-soft); color: #9a5f0c; }
.fs.done legend i { background: var(--teal); color: #fff; }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.fld small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.fld input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fld input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.fld input.bad { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slug-box { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); direction: ltr; transition: border-color .2s; }
.slug-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.slug-box input { border: 0; border-radius: 0; background: none; box-shadow: none !important; min-width: 0; }
.slug-box span { display: grid; place-items: center; padding: 0 12px; background: var(--bg2); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.hint { font-size: 13px; font-weight: 700; min-height: 1.4em; }
.hint.ok { color: var(--teal); }
.hint.bad { color: var(--danger); }
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; }
.otp-row .btn { padding: 10px 16px; font-size: 14px; flex: none; }
.otp-code { letter-spacing: 8px; text-align: center; font-family: var(--num); font-size: 22px !important; }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 800; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.errs { padding: 12px 16px; border-radius: 14px; background: rgba(196, 81, 63, .1); color: var(--danger); font-weight: 700; font-size: 14px; }
.start-side { position: sticky; top: 0; height: 100vh; background: radial-gradient(500px 300px at 70% 10%, rgba(240, 164, 58, .25), transparent 70%), var(--night); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.url-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 20px; }
.url-card small { opacity: .7; font-size: 13px; }
.url-card b { display: block; direction: ltr; text-align: left; font-size: 19px; margin-top: 6px; color: var(--amber); overflow-wrap: anywhere; }
.url-card .shop { font-size: 26px; font-weight: 900; margin-top: 12px; }
.perks { list-style: none; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; opacity: .9; }
.perks li i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-style: normal; }
@media (max-width: 900px) {
  .start { grid-template-columns: 1fr; }
  .start-side { position: static; height: auto; order: -1; padding: 28px 20px; }
  .perks { display: none; }
  .row2 { grid-template-columns: 1fr; }
}
