/* Shared look for the content pages (word lists, guides). Mirrors the landing page tokens. */
:root {
  --bg: #050a1c;
  --panel: #0e1630;
  --line: rgba(255,255,255,.1);
  --fg: #eef2fb;
  --muted: #a5b0c9;
  --gold: #fcc419;
  --blue: #38bdf8;
  --violet: #818cf8;
  --font-display: 'Rubik', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Heebo', 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(129,140,248,.18), transparent 60%),
    radial-gradient(50rem 30rem at 0% 30%, rgba(56,189,248,.10), transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  direction: rtl;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
[hidden] { display: none !important; }
button, input, textarea, select { font-family: inherit; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5,10,28,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 980px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font: 900 17px var(--font-display); white-space: nowrap; }
.brand img { border-radius: 7px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-10deg) scale(1.15); }
.topbar nav { display: flex; gap: 4px; margin-inline-start: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--fg); background: rgba(255,255,255,.08); }
.nav-cta { background: var(--gold); color: #1a1102; text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; transition: transform .15s; }
.nav-cta:hover { transform: translateY(-1px); }
.topbar a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 860px) {
  .topbar-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .brand span { font-size: 15px; }
  .nav-cta { margin-inline-start: auto; padding: 6px 14px; font-size: 14px; }
  .topbar nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { font-size: 14px; padding: 5px 10px; }
}

/* page */
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px 72px; display: flex; flex-direction: column; gap: 56px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-head { display: grid; gap: 14px; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.page-head h1 {
  font-size: clamp(34px, 6vw, 54px); font-weight: 900; line-height: 1.1;
  background: linear-gradient(180deg, #fff 30%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.lede strong { color: var(--fg); }
section { scroll-margin-top: 90px; }
section > h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 900; margin-bottom: 14px; }
section > p { color: var(--muted); max-width: 64ch; }
section > p + p { margin-top: 12px; }
section > p strong { color: var(--fg); }

/* word lists */
.cats { display: grid; gap: 16px; }
.cat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cat-head h3 { font-size: 20px; }
.cat-head h3 small { font: 500 14px var(--font-body); color: var(--muted); margin-inline-start: 6px; }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 15px; }
.copy { flex: none; font: 700 14px var(--font-body); color: var(--gold); background: rgba(252,196,25,.1); border: 1px solid rgba(252,196,25,.4); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: transform .12s, background .2s; }
.copy:hover { background: rgba(252,196,25,.18); }
.copy:active { transform: scale(.94); }
.copy.done { color: #86efac; border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.12); }
.copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.cat .more { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 15px; text-decoration: none; }
.cat .more:hover { text-decoration: underline; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics a { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 15px; transition: border-color .2s, color .2s; }
.topics a:hover { border-color: var(--gold); color: var(--gold); }

/* steps / tips */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 20px 16px 20px; padding-inline-start: 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(252,196,25,.14); color: var(--gold); font: 900 16px var(--font-display); }
.steps li b { color: var(--fg); display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid2 > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.grid2 h3 { font-size: 19px; margin-bottom: 4px; }
.grid2 p { color: var(--muted); font-size: 16px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

/* faq */
.faq details { border-top: 1px solid var(--line); padding-block: 14px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 18px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--gold); font-size: 20px; transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(252,196,25,.15); }
.faq summary:hover { color: var(--gold); }
.faq details p { color: var(--muted); margin-top: 8px; }

/* cta */
.cta { text-align: center; padding: 36px 24px; border-radius: 24px; background: linear-gradient(160deg, #1b2550, #0c1330); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; }
.cta h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; }
.cta p { color: var(--muted); max-width: 52ch; }
.btn { display: inline-block; margin-top: 8px; padding: 11px 26px; border-radius: 999px; background: var(--gold); color: #1a1102; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .15s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .2s, transform .15s; }
.related a:hover { border-color: var(--gold); transform: translateY(-2px); }
.related a span { color: var(--muted); font-size: 14px; }
@media (max-width: 680px) { .related { grid-template-columns: 1fr; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: rgba(5,10,28,.6); }
.foot-bottom { max-width: 980px; margin: 0 auto; padding: 22px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--muted); font-size: 14px; }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--gold); }
.foot-bottom .to-top { margin-inline-start: auto; }
@media (max-width: 600px) { .foot-bottom { flex-direction: column; align-items: flex-start; } .foot-bottom .to-top { margin: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copy, .btn, .related a, .nav-cta, .faq summary::after { transition: none; }
}
