/* Reels Radar — landing page (v1.2). RTL, Arabic.
   Plan: hero = the product's real report as live HTML; then one idea per section:
   timeline, UI zones, Arabic caption, the rules (dark band), steps, prices, questions, close.
   Motion: hero entrance once; one looping playhead in the hero with a pause button; hover/press on every control. */
:root {
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --g-dark: #17131C; --on-dark: #F1EDF4; --on-dark-muted: #B5ADBD; --line-dark: #2F2936;
  --shadow: 0 1px 2px rgba(24, 20, 31, .06), 0 18px 48px -24px rgba(24, 20, 31, .35);
  --sec-pad: clamp(88px, 13vh, 136px);
}
@media (prefers-color-scheme: dark) { :root { --g-dark: #0C0A0F; --line-dark: #262129; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 48px -24px rgba(0,0,0,.8); } }

html { scroll-behavior: auto; scroll-padding-top: var(--nav-h); }
body { font-size: 16px; line-height: 1.75; }
h1, h2, h3 { font-weight: 500; letter-spacing: 0; }
h2 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.3; }
h3 { font-size: 19px; line-height: 1.45; }
.wrap { max-width: 1240px; }

/* Nav: fixed, opaque, one hairline */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--nav-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav .logo { font-size: 18px; }
.nav__links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1.5px no-repeat; transition: background-size var(--m-in, 150ms) var(--ease); }
.nav__links a:hover { background-size: 100% 1.5px; }
.nav__cta { margin-inline-start: 8px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cta { margin-inline-start: auto; } }
@media (max-width: 420px) { .nav .logo span:last-child { display: none; } }

/* Buttons: one filled primary, one outlined secondary; step on hover, press on click */
.btn { min-height: 46px; padding: 10px 22px; border-radius: 12px; font-size: 16px; font-weight: 500; transition: transform var(--m-in, 150ms) var(--ease), background-color 150ms, border-color 150ms; }
.btn--primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn--secondary:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 90ms; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--xl { min-height: 56px; padding: 14px 32px; font-size: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }

/* Hero: alone on the first screen */
.hero { min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 72px)); padding-bottom: clamp(32px, 6vh, 64px); display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; width: 100%; }
.hero h1 { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.28; margin: 14px 0 18px; }
.hero .lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink); max-width: 46ch; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--ink); font-size: 20px; font-weight: 500; margin-inline: 2px; }
@media (max-width: 980px) {
  .hero { min-height: 0; display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* App frame with the live report */
.frame { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); direction: ltr; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame__bar span { margin-left: 10px; font-family: var(--f-data); font-size: 12px; color: var(--muted); }
.report { display: grid; grid-template-columns: minmax(120px, 0.62fr) minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
.report__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.phone-mock, .ph { width: 100%; }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 5px solid var(--ink); background: #2a1d17; }
.scene { position: absolute; inset: 0;
  background:
    radial-gradient(60% 34% at 50% 58%, #e7b57a 0 38%, #c97d43 60%, transparent 61%),
    radial-gradient(70% 40% at 50% 60%, #f3ede3 0 62%, transparent 63%),
    radial-gradient(120% 70% at 50% 100%, #6b3f2a, transparent 70%),
    linear-gradient(180deg, #3a2a22, #1d1512); }
.scene--b { background:
    radial-gradient(28% 16% at 38% 52%, #9cc36a 0 60%, transparent 62%),
    radial-gradient(26% 15% at 62% 56%, #e0574a 0 58%, transparent 60%),
    radial-gradient(64% 36% at 50% 56%, #efe8dc 0 62%, transparent 63%),
    linear-gradient(180deg, #2c3a33, #18201c); }
.z { position: absolute; left: 0; right: 0; background: var(--zone); border: 1px dashed var(--zone-line); display: flex; align-items: center; justify-content: center; }
.z--top { top: 0; height: 12%; }
.z--bot { bottom: 0; height: 21%; }
.z--side { right: 0; left: auto; top: 46%; height: 33%; width: 13%; }
.bad-text { font-family: var(--f-display); color: #fff; font-size: clamp(10px, 1.1vw, 15px); text-shadow: 0 1px 3px rgba(0,0,0,.7); outline: 2px solid var(--warn); outline-offset: 3px; border-radius: 4px; padding: 0 4px; }
.good-text { position: absolute; left: 0; right: 0; top: 20%; text-align: center; font-family: var(--f-display); color: #fff; font-size: clamp(11px, 1.2vw, 16px); text-shadow: 0 1px 3px rgba(0,0,0,.7); }

.verdict { display: flex; align-items: center; gap: 14px; }
.verdict strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.verdict span { font-size: 13px; color: var(--muted); }
.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: var(--line); }
.ring__fg { stroke: var(--crit); stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 9px 12px; border-inline-start: 4px solid var(--sev); font-size: 14px; }
.r em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--sev); }
.r span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r i { font-style: normal; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; background: var(--surface); }
.r.crit { --sev: var(--crit); } .r.warn { --sev: var(--warn); }

.mini-track, .track { position: relative; height: 30px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; }
.seg--crit { background: var(--crit); }
.seg--long { background: var(--warn-soft); border-block: 2px solid var(--warn); top: 4px; bottom: 50%; }
.seg--quiet { background: repeating-linear-gradient(90deg, var(--tip) 0 3px, transparent 3px 6px); top: 50%; opacity: .8; }
.cut { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .3; }
.pin { position: absolute; bottom: 3px; width: 11px; height: 11px; margin-right: -5px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
.playhead { position: absolute; inset: 0; animation: sweep 3.2s linear infinite; pointer-events: none; }
.playhead::after { content: ""; position: absolute; top: -2px; bottom: -2px; right: 0; width: 2px; background: var(--accent); }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.frame.is-paused .playhead { animation-play-state: paused; }
.loop-toggle { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 150ms var(--ease); }
.loop-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.loop-toggle:hover { transform: translateY(-1px); }
.loop-toggle[aria-pressed="true"] svg rect:last-child { display: none; }
.loop-toggle[aria-pressed="true"] svg rect:first-child { x: 9; width: 6; }

/* Sections */
.section { padding-block: var(--sec-pad); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--g-dark); color: var(--on-dark); }
.section--dark .sec-head p, .section--dark .rules span { color: var(--on-dark-muted); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 62ch; }

.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.strip { display: flex; gap: 3px; height: 92px; border-radius: 10px 10px 0 0; overflow: hidden; }
.strip i { flex: 1 1 0; min-width: 0; }
.strip i:nth-child(1) { background: #111; }
.strip i:nth-child(2) { background: linear-gradient(160deg, #3a2a22, #c97d43); }
.strip i:nth-child(3) { background: linear-gradient(200deg, #efe8dc, #c97d43 70%); }
.strip i:nth-child(4) { background: linear-gradient(180deg, #2c3a33, #9cc36a); }
.strip i:nth-child(5) { background: linear-gradient(140deg, #18201c, #e0574a); }
.strip i:nth-child(6) { background: linear-gradient(140deg, #18201c, #e0574a 80%); }
.strip i:nth-child(7) { background: linear-gradient(180deg, #6b3f2a, #f3ede3); }
.strip i:nth-child(8) { background: linear-gradient(200deg, #3a2a22, #e7b57a); }
.strip i:nth-child(9) { background: linear-gradient(160deg, #2c3a33, #efe8dc); }
.strip i:nth-child(10) { background: linear-gradient(180deg, #1d1512, #c97d43); }
.tl-card .track { height: 40px; border-top: 0; border-radius: 0 0 10px 10px; }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; direction: rtl; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__text h2 { margin-bottom: 14px; }
.split__text p { color: var(--muted); font-size: 17px; max-width: 54ch; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 600; margin-inline-end: 10px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; max-width: 440px; margin-inline: auto; }
.ph { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ph .screen { width: 100%; }
.ph .tag { align-self: center; }
.tag { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--good { background: var(--good-soft); color: var(--good); }
@media (max-width: 420px) { .pair { gap: 14px; } }

.caption-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.cap-line { font-size: 17px; line-height: 2.1; }
.flag { border-bottom: 2.5px solid var(--sev); padding-bottom: 2px; background: color-mix(in srgb, var(--sev) 12%, transparent); border-radius: 4px 4px 0 0; padding-inline: 3px; }
.flag--crit { --sev: var(--crit); } .flag--warn { --sev: var(--warn); }
.cap-notes { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.cap-notes li { padding-inline-start: 14px; border-inline-start: 3px solid var(--sev); }
.cap-notes b { color: var(--ink); font-weight: 500; }
.cap-notes .crit { --sev: var(--crit); } .cap-notes .warn { --sev: var(--warn); }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; }
.rules li { background: var(--g-dark); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.rules b { font-family: var(--f-display); font-weight: 500; font-size: 18px; color: var(--on-dark); }
.rules span { font-size: 15px; }
@media (max-width: 860px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.privacy { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 16px; color: var(--on-dark); }
.privacy svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--f-data); font-weight: 500; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--bg); display: flex; flex-direction: column; gap: 16px; }
.plan--pro { border: 2px solid var(--accent); background: var(--surface); }
.plan .price { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.plan .price small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; flex: 1; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 600; margin-inline-end: 10px; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—"; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { margin: 0; display: flex; flex-direction: column; }
.faq > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.faq > div:first-child { padding-top: 0; }
.faq dt { font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.faq dd { margin: 0; color: var(--muted); }

.closing { background: var(--surface); border-top: 1px solid var(--line); }
.closing .wrap { padding-block: var(--sec-pad) 32px; display: flex; flex-direction: column; gap: 72px; }
.close h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 10px; }
.close p { color: var(--muted); margin-bottom: 26px; font-size: 17px; }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--muted); }
.legal .logo { font-size: 16px; }
@media (max-width: 560px) { .close .btn { width: 100%; } }

/* Hero entrance, once on load */
.enter { animation: rise .8s var(--ease-enter) both; }
.e1 { animation-delay: .05s; } .e2 { animation-delay: .15s; } .e3 { animation-delay: .3s; } .e4 { animation-delay: .42s; } .e5 { animation-delay: .52s; } .e6 { animation-delay: .35s; animation-duration: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
  .playhead { animation: none; }
  .loop-toggle { display: none; }
}

/* One section per screen on desktop: each section fills the screen, its content centred in it. */
@media (min-width: 1024px) and (min-height: 700px) {
  .section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .section > .wrap { width: 100%; }
}
@media (max-width: 560px) {
  .report { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .report .phone-mock { display: none; }
}
