/* nuqra.app — one stylesheet for every page (from the «الموقع nuqra.app» design on the logo canvas). The font is
   Thmanyah, served from this site (/fonts/thmanyah/fonts.css, copied in at deploy by copy-fonts.mjs; never in git) — no
   third-party request: see the privacy page. No inline styles anywhere: the CSP forbids them. */
:root {
  --navy: #0B3340; --navy-2: #123F4E; --navy-line: #2A5563;
  --ink: #13202A; --ink-2: #3C4A54; --muted: #4A5862; --muted-2: #5B6872;
  --on-navy: #DADDE2; --on-navy-2: #B9C8CD; --on-navy-3: #93AAB2;
  --gold: #D4A437; --gold-text: #8A6A1F;
  --bg: #F1F0EE; --bg-2: #E7EAEB; --card: #FFFFFF; --line: #D5D9DC; --tint: #E3EEF0;
  --story: #2E1E14; --board: #0F6B63;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'thmanyah sans', 'Segoe UI', Tahoma, sans-serif; font-size: 17px; line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 5vw, 80px); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 10; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none;
  border-radius: 14px; padding: 12px 24px; font-size: 17px;
}
.btn:hover { background: #E0B44C; }
.btn.big { padding: 16px 30px; font-size: 19px; min-height: 56px; }
.btn.line { background: transparent; color: var(--navy); border: 2px solid var(--navy); margin-top: auto; }
.btn.line:hover { background: var(--navy); color: #fff; }
.plan.best .btn.line { background: var(--gold); border-color: var(--gold); }
.plan.best .btn.line:hover { background: #E0B44C; color: var(--navy); }
.link-line { color: var(--on-navy); text-decoration: none; border-bottom: 1px solid #5A7A86; padding-bottom: 2px; }
.link-line:hover { color: #fff; border-color: var(--on-navy); }

/* header + hero */
.top { background: var(--navy); color: var(--on-navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.nav-start { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.brand img { width: 108px; }
.nav-end { display: flex; align-items: center; gap: 18px; }
.lang { color: var(--on-navy-3); text-decoration: none; font-size: 15px; padding: 8px 0; }
.lang:hover { color: #fff; }
.nav-links { display: flex; gap: 28px; font-size: 16px; }
.nav-links a { color: var(--on-navy); text-decoration: none; padding: 8px 0; }
.nav-links a:hover { color: #fff; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 60px; align-items: center; padding-top: 50px; padding-bottom: 90px; }
.pill { justify-self: start; display: inline-block; font-size: 14px; color: var(--gold); border: 1px solid var(--navy-line); border-radius: 99px; padding: 6px 14px; }
.hero-text { display: grid; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.35; font-weight: 700; color: #fff; }
.hero p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.8; color: var(--on-navy-2); max-width: 560px; }
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--on-navy-3); }
.hero-art {
  aspect-ratio: 16 / 10; border-radius: 22px; border: 1px solid #22505F;
  background: linear-gradient(135deg, var(--navy-2), #082833);
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hero-art img { width: clamp(64px, 9vw, 104px); }

/* sections */
section { padding: 90px 0; }
section.tight { padding-top: 0; }
.eyebrow { font-size: 15px; color: var(--gold-text); font-weight: 600; }
h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.4; }
.head { display: grid; gap: 10px; margin-bottom: 36px; }
.head p { margin: 0; font-size: 17px; color: var(--muted); }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tool { background: var(--card); border-radius: 22px; padding: 34px; display: grid; gap: 18px; align-content: start; border-top: 6px solid var(--story); }
.tool.board { border-top-color: var(--board); }
.tool-name { display: flex; align-items: center; gap: 16px; }
.tool-name img { width: 64px; }
.tool-name span { font-size: 30px; font-weight: 700; color: var(--story); direction: ltr; }
.tool.board .tool-name span { color: var(--board); }
.tool p { margin: 0; font-size: 19px; line-height: 1.7; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: '◆'; color: var(--gold); font-size: 13px; flex: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { font-size: 19px; font-weight: 600; }
.steps span:last-child { font-size: 15px; color: var(--muted); }

.pricing { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--card); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #D9DCDF; }
.plan.best { border: 2px solid var(--gold); }
.badge { align-self: flex-start; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.plan-name { align-self: flex-start; font-size: 22px; font-weight: 700; direction: ltr; color: var(--story); }
.plan.best .plan-name { color: var(--navy); }
.plan.board .plan-name { color: var(--board); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 44px; font-weight: 700; direction: ltr; }
.price span { font-size: 16px; color: var(--muted-2); }
.offer { align-self: stretch; font-size: 15px; color: var(--navy); background: var(--tint); border-radius: 10px; padding: 8px 12px; }
.small { font-size: 14px; color: var(--muted-2); }
.plans-note { margin: 30px 0 0; font-size: 15px; color: var(--muted); }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq div { background: var(--card); border-radius: 16px; padding: 22px 26px; }
.faq h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.faq p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }

.cta { background: var(--navy); color: var(--on-navy); border-radius: 28px; padding: clamp(32px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 80px; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { margin: 6px 0 0; font-size: 18px; color: var(--on-navy-2); }
.cta .small { color: var(--on-navy-3); margin-top: 10px; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; font-size: 14px; color: var(--muted-2); }
.foot-brand { display: flex; align-items: center; gap: 20px; }
.foot-brand span:first-child { background: var(--navy); border-radius: 12px; padding: 8px 12px; display: flex; }
.foot-brand img { width: 64px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted-2); }
.foot a:hover { color: var(--ink); }

/* legal pages */
.doc-top { background: var(--navy); }
.doc-top .nav { padding-bottom: 22px; }
.doc { max-width: 860px; margin: 0 auto; padding: 56px clamp(16px, 5vw, 40px) 90px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 42px); line-height: 1.35; }
.doc .updated { margin: 0 0 32px; color: var(--muted-2); font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.95; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-inline-start: 24px; }
.doc li { margin-bottom: 6px; }
.doc .lead { background: var(--card); border-radius: 16px; padding: 18px 22px; border-inline-start: 0; }
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.doc th { background: var(--bg-2); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc a { color: #0E5A70; }

/* phones and tablets */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .tools, .faq { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  /* logo and «نزّل» on one row, the section links under them */
  .nav-start { display: contents; }
  .nav-links { order: 3; gap: 18px; font-size: 15px; width: 100%; overflow-x: auto; }
  .hero-art { display: none; }
  .nav { column-gap: 12px; }
  .nav-end { gap: 14px; }
  .nav-end .btn { padding-inline: 16px; font-size: 15px; }
  .brand img { width: 92px; }
  .steps { grid-template-columns: 1fr; }
  .tool, .plan { padding: 24px; }
  .cta { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* home header life (Bara 2026-11-15): lines that draw themselves like a pen on a board, slow drifting frames,
   twinkles, and with a mouse (assets/hero.js) a soft light that follows it plus a little depth. Calm on purpose. */
.top.has-fx { position: relative; overflow: hidden; isolation: isolate; --mx: 0; --my: 0; --gx: 30%; --gy: 40%; }
.top.has-fx::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--gx) var(--gy), rgba(212, 164, 55, 0.11), transparent 62%);
}
.top.has-fx > .wrap { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-fx svg { width: 100%; height: 100%; display: block; }
.fx-far, .fx-mid, .fx-near { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.fx-far { transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -6px)); }
.fx-mid { transform: translate(calc(var(--mx) * -16px), calc(var(--my) * -11px)); }
.fx-near { transform: translate(calc(var(--mx) * -28px), calc(var(--my) * -20px)); }
.hero-fx .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 3.4s cubic-bezier(0.6, 0, 0.2, 1) forwards, fx-breathe 9s ease-in-out 4s infinite; }
.hero-fx .w2 { animation-delay: 0.6s, 4.6s; }
.hero-fx .w3 { animation-delay: 1.2s, 5.2s; }
.hero-fx .w4 { animation-delay: 1.8s, 5.8s; }
.hero-fx .drift { animation: fx-drift 22s ease-in-out infinite alternate; }
.hero-fx .d2 { animation-duration: 26s; animation-delay: -8s; }
.hero-fx .d3 { animation-duration: 18s; animation-delay: -4s; }
.hero-fx .spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fx-twinkle 5s ease-in-out infinite; }
.hero-fx .s2 { animation-delay: 1.1s; } .hero-fx .s3 { animation-delay: 2.3s; } .hero-fx .s4 { animation-delay: 3.2s; }
.hero-fx .s5 { animation-delay: 0.5s; animation-duration: 7s; } .hero-fx .s6 { animation-delay: 2.8s; animation-duration: 6s; }
.hero-fx .pen { opacity: 0.85; }
.top.has-fx .hero-art img { animation: fx-float 7s ease-in-out infinite; }
.top.has-fx .hero-art img + img { animation-delay: -3.5s; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes fx-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(18px, -12px) rotate(1.5deg); } }
@keyframes fx-twinkle { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 0.9; transform: scale(1); } }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-fx .draw { stroke-dashoffset: 0; animation: none; }
  .hero-fx .drift, .hero-fx .spark, .top.has-fx .hero-art img { animation: none; }
  .hero-fx .spark { opacity: 0.6; }
  .hero-fx .pen { display: none; }
  .fx-far, .fx-mid, .fx-near { transition: none; transform: none; }
}

/* buttons and links move like the program's (src/lib/motion.css, Bara 2026-11-15 «زي ادواتنا»): up 2px on hover with
   the same spring, pressed down to 95%; the plan cards and the links answer the mouse too. */
:root { --nq-spring: cubic-bezier(0.34, 1.4, 0.64, 1); --nq-out: cubic-bezier(0.22, 1, 0.36, 1); }
.btn {
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.22s var(--nq-out),
    translate 0.22s var(--nq-spring), scale 0.14s ease-out;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 8px 22px -10px rgba(212, 164, 55, 0.75); }
.btn.line:hover { box-shadow: 0 8px 22px -12px rgba(11, 51, 64, 0.55); }
.btn:active { translate: 0; scale: 0.95; box-shadow: none; }
.plan, .tool { transition: translate 0.3s var(--nq-out), box-shadow 0.3s var(--nq-out); }
.plan:hover, .tool:hover { translate: 0 -4px; box-shadow: 0 18px 40px -26px rgba(11, 51, 64, 0.45); }
.nav-links a, .lang, .link-line, .foot nav a { transition: color 0.18s, border-color 0.18s; }
.nav-links a { background: linear-gradient(var(--gold), var(--gold)) no-repeat 50% 100% / 0 2px; transition: color 0.18s, background-size 0.3s var(--nq-out); }
.nav-links a:hover { background-size: 100% 2px; }
.lang:active, .link-line:active, .nav-links a:active { scale: 0.96; }
@media (prefers-reduced-motion: reduce) {
  .btn, .plan, .tool, .nav-links a { transition: background-color 0.18s, color 0.18s; }
  .btn:hover, .btn:active, .plan:hover, .tool:hover { translate: none; scale: none; }
}
