/* Numerology School (iOS app) pages. Dark, one accent (amber), indigo surfaces. RTL safe: logical properties only. */
:root {
  --bg: #0d0b26;
  --bg-2: #15123a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f5f3ff;
  --muted: #b8b2dc;
  --faint: #8b84b8;
  --primary: #5847e0;
  --primary-2: #a59cff;
  --accent: #f4b33d;
  --accent-ink: #2a1d00;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(5, 3, 25, 0.55);
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
}
@font-face { font-family: "Rubik"; src: url("Rubik-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("Rubik-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.ns-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.ns-wrap--narrow { max-width: 820px; }
.ns-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent);
}
html[lang="he"] .ns-eyebrow, html[lang="ar"] .ns-eyebrow { letter-spacing: 0; }

/* Nav */
.ns-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 38, 0.78);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.ns-nav__in { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.ns-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 17px; white-space: nowrap; }
.ns-brand:hover { text-decoration: none; }
.ns-brand img { border-radius: 9px; }
.ns-nav__links { display: flex; gap: 22px; margin-inline-start: auto; }
.ns-nav__links a { color: var(--muted); font-size: 15px; font-weight: 550; }
.ns-nav__links a:hover, .ns-nav__links a[aria-current] { color: var(--text); text-decoration: none; }
.ns-lang { position: relative; }
.ns-lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
}
.ns-lang summary::-webkit-details-marker { display: none; }
.ns-lang[open] summary, .ns-lang summary:hover { color: var(--text); background: var(--surface); }
.ns-lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px;
  background: #1b1747; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px; box-shadow: var(--shadow); display: grid;
}
.ns-lang__menu a { color: var(--text); padding: 8px 12px; border-radius: 9px; font-size: 15px; }
.ns-lang__menu a:hover { background: var(--surface-2); text-decoration: none; }
.ns-lang__menu a[aria-current] { color: var(--accent); }
@media (max-width: 760px) {
  .ns-nav__links { display: none; }
  .ns-lang { margin-inline-start: auto; }
  .ns-brand span { font-size: 16px; }
}

/* Buttons */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
}
.ns-btn:hover { text-decoration: none; filter: brightness(1.06); }
.ns-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.ns-btn--ghost:hover { background: var(--surface); }
.ns-stores { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ns-final .ns-stores { justify-content: center; }
.ns-store {
  display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.1;
  min-width: 178px; padding: 9px 22px; border-radius: 14px;
  background: #fff; color: #000; text-align: start;
}
.ns-store:hover { text-decoration: none; filter: brightness(.95); }
.ns-store__small { font-size: 12px; font-weight: 500; }
.ns-store__big { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ns-store--soon { background: var(--surface-2); color: var(--text); border: 1px dashed rgba(255,255,255,.28); cursor: default; }
.ns-store--soon .ns-store__small { color: var(--accent); font-weight: 700; }

/* Hero */
.ns-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.ns-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: -1;
  background:
    radial-gradient(520px 320px at 78% 30%, rgba(88, 71, 224, 0.45), transparent 70%),
    radial-gradient(420px 300px at 15% 10%, rgba(244, 179, 61, 0.16), transparent 70%);
}
html[dir="rtl"] .ns-hero::before { transform: scaleX(-1); }
.ns-hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ns-hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800;
  margin: 14px 0 18px;
}
html[lang="he"] .ns-hero h1, html[lang="ar"] .ns-hero h1 { letter-spacing: 0; line-height: 1.15; }
.ns-hero h1 em { font-style: normal; color: var(--accent); }
.ns-hero__lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.ns-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.ns-hero__note { margin-top: 14px; font-size: 14px; color: var(--faint); }
@media (max-width: 900px) {
  .ns-hero { padding-top: 44px; }
  .ns-hero__in { grid-template-columns: 1fr; gap: 40px; }
  .ns-hero__visual { order: 2; }
}

/* Phone frame around a real app screenshot */
.ns-phone {
  position: relative; width: 300px; max-width: 78vw; margin-inline: auto;
  border-radius: 48px; padding: 11px; background: linear-gradient(160deg, #34307a, #12102f);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.16);
}
.ns-phone img { width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 38px; background: #f5f6fa; }
.ns-phone--sm { width: 236px; border-radius: 40px; padding: 9px; }
.ns-phone--sm img { border-radius: 31px; }
.ns-hero__visual { position: relative; }
@media (min-width: 901px) { .ns-hero__visual .ns-phone { margin-inline-start: auto; margin-inline-end: 6%; } }
.ns-float {
  position: absolute; z-index: 3; background: rgba(27, 23, 71, .92); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
}
.ns-float b { color: var(--accent); font-size: 20px; }
.ns-float--a { top: 16%; inset-inline-start: 0; }
.ns-float--b { bottom: 14%; inset-inline-end: 0; }
@media (max-width: 520px) { .ns-float { display: none; } }

/* Screens gallery */
.ns-shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px; margin-inline: -20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.ns-shot { flex: none; scroll-snap-align: center; text-align: center; }
.ns-shot figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }
.ns-shot figcaption span { display: block; font-weight: 400; color: var(--faint); font-size: 13.5px; max-width: 236px; margin: 2px auto 0; }

/* Stats strip */
.ns-stats { padding: 26px 0 10px; }
.ns-stats__in { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ns-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; }
.ns-stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ns-stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .ns-stats__in { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ns-stats__in { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.ns-sec { padding: 84px 0 10px; scroll-margin-top: 70px; }
.ns-sec__head { max-width: 720px; margin-bottom: 36px; }
.ns-sec__head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 800; }
html[lang="he"] .ns-sec__head h2, html[lang="ar"] .ns-sec__head h2 { letter-spacing: 0; line-height: 1.2; }
.ns-sec__head p { color: var(--muted); font-size: 18px; }
.ns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .ns-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ns-grid { grid-template-columns: 1fr; } }
.ns-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.ns-card h3 { font-size: 19px; margin: 16px 0 8px; }
.ns-card p { color: var(--muted); font-size: 15.5px; }
.ns-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(88, 71, 224, .35), rgba(88, 71, 224, .12)); color: #cfc8ff;
}
.ns-icon svg { width: 24px; height: 24px; }
.ns-card--accent .ns-icon { background: linear-gradient(150deg, rgba(244, 179, 61, .35), rgba(244, 179, 61, .1)); color: var(--accent); }

/* Steps */
.ns-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 900px) { .ns-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ns-steps { grid-template-columns: 1fr; } }
.ns-step { position: relative; padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), transparent); border: 1px solid var(--border); }
.ns-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
.ns-step h3 { font-size: 18px; margin-bottom: 6px; }
.ns-step p { color: var(--muted); font-size: 15px; }

/* Courses */
.ns-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 960px) { .ns-courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ns-courses { grid-template-columns: 1fr; } }
.ns-course { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.ns-course__n {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; background: rgba(88, 71, 224, .22); color: #d5cfff;
}
.ns-course b { display: block; font-size: 15.5px; line-height: 1.3; }
.ns-course span { color: var(--faint); font-size: 13px; }
.ns-note { color: var(--faint); font-size: 14px; margin-top: 16px; }

/* Lab chips */
.ns-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .ns-split { grid-template-columns: 1fr; } }
.ns-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chips span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: #e2deff; }
.ns-checks { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.ns-checks li { position: relative; padding-inline-start: 32px; color: var(--muted); }
.ns-checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232a1d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ns-checks li b { color: var(--text); }

/* Client card mock */
.ns-client { background: #f6f4ff; color: #1a1640; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 440px; margin-inline: auto; width: 100%; }
.ns-client__head { display: flex; align-items: center; gap: 12px; }
.ns-client__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #5847e0; color: #fff; font-weight: 800; }
.ns-client__head b { display: block; font-size: 17px; }
.ns-client__head span { font-size: 13px; color: #6b6596; }
.ns-client__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.ns-client__nums div { background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; }
.ns-client__nums b { display: block; font-size: 22px; color: #3f35b8; }
.ns-client__nums span { font-size: 10.5px; color: #6b6596; line-height: 1.2; display: block; }
.ns-client__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.ns-client__row em { font-style: normal; font-weight: 700; color: #3f35b8; }
.ns-client__btns { display: flex; gap: 8px; margin-top: 14px; }
.ns-client__btns span { flex: 1; text-align: center; padding: 9px; border-radius: 10px; background: #5847e0; color: #fff; font-size: 13px; font-weight: 700; }
.ns-client__btns span + span { background: #ebe8ff; color: #3f35b8; }

/* Pricing */
.ns-price {
  max-width: 560px; margin: 0 auto; text-align: center; border-radius: 28px; padding: 40px 32px;
  background: linear-gradient(160deg, rgba(88, 71, 224, .32), rgba(88, 71, 224, .06)); border: 1px solid rgba(155, 140, 255, .4);
}
.ns-price__tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 99px; }
.ns-price__amount { font-size: 56px; font-weight: 850; letter-spacing: -.03em; margin-top: 18px; line-height: 1; }
.ns-price__amount small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ns-price__sub { color: var(--muted); margin-top: 8px; }
.ns-price .ns-checks { text-align: start; max-width: 400px; margin: 26px auto 28px; }
.ns-price__fine { font-size: 13px; color: var(--faint); margin-top: 18px; }

/* FAQ */
.ns-faq { display: grid; gap: 10px; max-width: 860px; }
.ns-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ns-faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.ns-faq details[open] summary::after { content: "\2212"; }
.ns-faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.ns-final { margin: 90px 0 0; padding: 60px 0; text-align: center; background: linear-gradient(180deg, transparent, rgba(88, 71, 224, .18)); }
.ns-final img { margin: 0 auto 18px; border-radius: 26px; box-shadow: var(--shadow); }
.ns-final h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 10px; }
.ns-final p { color: var(--muted); margin-bottom: 26px; }
.ns-final .ns-hero__cta { justify-content: center; }

/* Documents (privacy, terms, support) */
.ns-doc { padding: 56px 0 80px; }
.ns-doc h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 8px; }
html[lang="he"] .ns-doc h1, html[lang="ar"] .ns-doc h1 { letter-spacing: 0; line-height: 1.25; }
.ns-doc__date { color: var(--faint); font-size: 14px; margin-bottom: 24px; }
.ns-doc__intro { font-size: 18.5px; color: var(--text); margin-bottom: 26px; }
.ns-doc__summary { list-style: none; display: grid; gap: 10px; padding: 22px; margin-bottom: 34px; border-radius: var(--radius); background: rgba(244, 179, 61, .08); border: 1px solid rgba(244, 179, 61, .3); }
.ns-doc__summary li { position: relative; padding-inline-start: 28px; }
.ns-doc__summary li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ns-doc__sec { padding: 22px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.ns-doc__sec h2 { font-size: 21px; margin-bottom: 10px; }
.ns-doc__sec p { color: var(--muted); margin-bottom: 10px; }
.ns-doc__sec ul { margin: 6px 0 10px; padding-inline-start: 22px; color: var(--muted); display: grid; gap: 6px; }
.ns-doc__sec strong, .ns-doc__summary strong { color: var(--text); }
.ns-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Footer */
.ns-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; margin-top: 0; background: #0a0920; }
.ns-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.ns-footer__brand p { color: var(--faint); font-size: 14px; margin-top: 8px; max-width: 360px; }
.ns-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.ns-footer__links a { color: var(--muted); font-size: 15px; }
.ns-footer__legal { margin-top: 26px; color: var(--faint); font-size: 12.5px; display: grid; gap: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
