/* KYN Apps website. Colours are tokens, redefined for dark mode (system setting or the visitor's choice). */
@font-face { font-family: "KYN Sans"; src: url(fonts/montserrat-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "KYN Sans"; src: url(fonts/montserrat-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "KYN Serif"; src: url(fonts/cinzel-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "KYN Serif"; src: url(fonts/cinzel-latin-ext.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "KYN Arabic"; src: url(fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "KYN Arabic"; src: url(fonts/plex-arabic-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "KYN Arabic"; src: url(fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "KYN Arabic"; src: url(fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #fbf8f2; --bg2: #f3ede2; --card: #ffffff; --ink: #141311; --muted: #615c52; --line: #e8e0d2;
  --navy: #141311; --navy2: #2b2924; --gold: #a9823f; --gold-l: #e2c58f; --up: #0f8a5f; --accent: #8a6a32;
  --shadow: 0 1px 2px rgba(20, 19, 17, .04), 0 12px 32px -14px rgba(20, 19, 17, .16);
  --radius: 20px; color-scheme: light;
  --serif: "KYN Serif", Georgia, "Times New Roman", serif;
  --font: "KYN Sans", "KYN Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b09; --bg2: #13110e; --card: #19170f; --ink: #f2ede3; --muted: #a8a294; --line: #2b271f;
    --navy: #0c0b09; --navy2: #8a7a5c; --gold: #d6b37a; --up: #34d399; --accent: #d6b37a; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0b09; --bg2: #13110e; --card: #19170f; --ink: #f2ede3; --muted: #a8a294; --line: #2b271f;
  --navy: #0c0b09; --navy2: #8a7a5c; --gold: #d6b37a; --up: #34d399; --accent: #d6b37a; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.7 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow-x: hidden; }
section[lang="ar"] { --font: "KYN Arabic", "KYN Sans", Tahoma, Arial, sans-serif; font-family: var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
section[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.ic { flex: none; }
h1, h2, h3 { font-weight: 700; }
b, strong, .big, .price b, .rows b, td, .legend b, .slider label b { font-variant-numeric: lining-nums tabular-nums; }
section[lang="ar"] h1, section[lang="ar"] h2, section[lang="ar"] h3 { font-weight: 700; letter-spacing: 0 !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.3px; font-size: 18px; }
.logo .lg-light, .logo .lg-dark { flex: none; display: block; }
.logo .lg-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .lg-light { display: none; } :root:not([data-theme="light"]) .logo .lg-dark { display: block; } }
:root[data-theme="dark"] .logo .lg-light { display: none; }
:root[data-theme="dark"] .logo .lg-dark { display: block; }
.lockup { display: flex; flex-direction: column; gap: 6px; }
.lockup .word { display: flex; }
.foot-logo { width: 190px; height: auto; }
.logo small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); line-height: 1; }
.menu { display: flex; gap: 2px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 13px; border-radius: 10px; white-space: nowrap; }
.menu a:hover { color: var(--ink); }
.menu a.on { color: var(--ink); background: var(--bg2); }
.tools-bar { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.tools-bar select, .icon-btn { height: 38px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; padding: 0 10px; cursor: pointer; }
.icon-btn { width: 38px; padding: 0; display: grid; place-items: center; }
@media (max-width: 900px) {
  .top .wrap { gap: 8px 12px; padding-top: 10px; }
  .menu { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin: 0 -6px; }
  .menu::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) { .logo small { display: none; } .tools-bar select { max-width: 112px; padding: 0 6px; } .logo .lg-light, .logo .lg-dark { width: 40px; height: 40px; } }

/* Photo hero */
.hero { position: relative; color: #fff; background: #0d0c0a; overflow: hidden; }
.hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,9,.97) 0%, rgba(12,11,9,.86) 38%, rgba(12,11,9,.35) 70%, rgba(12,11,9,.15) 100%), linear-gradient(0deg, rgba(12,11,9,.7), transparent 40%); }
section[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(12,11,9,.97) 0%, rgba(12,11,9,.86) 38%, rgba(12,11,9,.35) 70%, rgba(12,11,9,.15) 100%), linear-gradient(0deg, rgba(12,11,9,.7), transparent 40%); }
section[dir="rtl"] .hero .bgimg { transform: scaleX(-1); }
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 96px; }
.hero .inner { max-width: 640px; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-l); }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -1.6px; margin: 18px 0 18px; font-weight: 800; }
section[dir="rtl"] .hero h1 { line-height: 1.25; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: #d6cfc1; margin: 0 0 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 600; color: #efe9dd; }
.trust .ic { color: var(--gold-l); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.gold { background: linear-gradient(180deg, #e3c58e, #c9a66b); color: #1a1406; box-shadow: 0 10px 30px -12px rgba(201,166,107,.8); }
.btn.main { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .btn.main { background: #2b2924; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.main { background: #2b2924; } }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
section[dir="rtl"] .btn .ic, section[dir="rtl"] .link .ic { transform: scaleX(-1); }
@media (max-width: 760px) { .hero .wrap { padding-top: 64px; padding-bottom: 60px; } .hero::after { background: linear-gradient(0deg, rgba(12,11,9,.96) 30%, rgba(12,11,9,.55)); } section[dir="rtl"] .hero::after { background: linear-gradient(0deg, rgba(12,11,9,.96) 30%, rgba(12,11,9,.55)); } }

/* Ticker of money facts */
.ticker { background: var(--navy); color: #e6dfd0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.ticker .track { display: flex; width: max-content; animation: slide 80s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { white-space: nowrap; padding: 12px 26px; font-size: 13.5px; font-weight: 500; }
.ticker span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--gold-l); transform: rotate(45deg); margin-inline-end: 12px; vertical-align: 2px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
section[dir="rtl"] .ticker .track { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; flex-wrap: wrap; width: auto; } }

/* Figures band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.stats div { padding: 34px 24px; border-inline-end: 1px solid var(--line); }
.stats div:last-child { border-inline-end: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 58px; font-weight: 500; letter-spacing: 0; line-height: 1; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 55%, var(--gold))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 220px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-inline-end: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stats b { font-size: 46px; } }

/* Sections */
.block { padding: 88px 0; }
.block.tight { padding: 56px 0; }
.block.alt { background: var(--bg2); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.9px; margin: 10px 0 8px; line-height: 1.08; }
.head p { margin: 0; color: var(--muted); max-width: 640px; font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
section[lang="ar"] .eyebrow, section[lang="ar"] .kicker { letter-spacing: 0; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.three { grid-template-columns: 1fr; } .block { padding: 60px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
a.card { text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; display: block; }
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* "What do you want to do" photo cards */
.choice { padding: 0; overflow: hidden; display: flex !important; flex-direction: column; }
.choice .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.choice .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.choice:hover .ph img { transform: scale(1.05); }
.choice .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,11,9,.55), transparent 55%); }
.choice .chip { position: absolute; z-index: 1; bottom: 14px; inset-inline-start: 16px; display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 14.5px; }
.choice .chip img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.choice .tx { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.choice h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.choice p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.choice .link { margin-top: 6px; color: var(--accent); }

/* Markets tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile-ph { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy); color: #fff; }
.tile-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,11,9,.92) 8%, rgba(12,11,9,.15) 60%); }
.tile-ph div { position: absolute; z-index: 1; inset-inline: 16px; bottom: 16px; }
.tile-ph h3 { margin: 0 0 4px; font-size: 17px; }
.tile-ph p { margin: 0; font-size: 13.5px; color: #d3ccbe; line-height: 1.45; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; } .tile-ph { scroll-snap-align: start; aspect-ratio: 4 / 5; } }
.note { font-size: 13px; color: var(--muted); margin: 16px 0 0; display: flex; gap: 8px; align-items: center; }

/* Split: photo + content */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split .photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgba(12,11,9,.5); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Savings estimate */
.calc-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.calc-card h3 { margin: 0 0 14px; font-size: 18px; }
.slider { margin: 14px 0; }
.slider label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 600; }
.slider label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.slider input { width: 100%; accent-color: var(--navy2); }
.big { font-family: var(--serif); font-size: 46px; font-weight: 600; letter-spacing: .5px; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.bar { display: flex; height: 10px; border-radius: 8px; overflow: hidden; background: var(--bg2); margin: 14px 0 10px; }
.bar i { display: block; height: 100%; }
.bar i.a { background: var(--navy2); } .bar i.b { background: var(--gold); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.small { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* Tool tiles and lesson cards */
.tile { display: flex; gap: 16px; align-items: flex-start; }
.tile .ico, .ibox { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 9%, var(--card)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); flex: none; }
.tile h3 { margin: 0 0 3px; font-size: 16.5px; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); }
.lesson-card { display: flex !important; flex-direction: column; gap: 6px; }
.lesson-card h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.3px; }
.lesson-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lesson-card .meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 10px; }

/* Dark photo band */
.band { position: relative; color: #fff; overflow: hidden; background: #0d0c0a; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,9,.55), rgba(12,11,9,.9)); }
.band .wrap { position: relative; z-index: 1; }
.band .head p, .band .muted { color: #cbc4b6; }
.band .eyebrow { color: var(--gold-l); }
.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 24px; backdrop-filter: blur(10px); }
.glass h3 { margin: 14px 0 6px; font-size: 18px; }
.glass p { margin: 0; color: #cbc4b6; font-size: 14.5px; }
.glass .ibox { background: rgba(226,197,143,.12); color: var(--gold-l); border-color: rgba(226,197,143,.25); }
.icons-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.icons-row img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.points .ic { color: var(--gold-l); }

/* Quiz band */
.quiz-band { position: relative; overflow: hidden; border-radius: 28px; padding: 48px; color: #fff; background: #12100c; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.quiz-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.quiz-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,16,12,.96), rgba(18,16,12,.55)); }
.quiz-band > div, .quiz-band > a { position: relative; z-index: 1; }
.quiz-band h2 { margin: 8px 0 8px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -1px; }
.quiz-band p { margin: 0; color: #d3ccbe; max-width: 560px; }
@media (max-width: 640px) { .quiz-band { padding: 30px 24px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 500; font-size: 26px; line-height: .8; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 820px; }

/* Inner page banner */
.banner { position: relative; color: #fff; background: #0d0c0a; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,9,.95), rgba(12,11,9,.6) 60%, rgba(12,11,9,.35)); }
section[dir="rtl"] .banner::after { background: linear-gradient(270deg, rgba(12,11,9,.95), rgba(12,11,9,.6) 60%, rgba(12,11,9,.35)); }
.banner .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 64px; }
.banner h1 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -1.1px; line-height: 1.05; margin: 12px 0 14px; max-width: 820px; }
.banner p { color: #d3ccbe; font-size: 18px; margin: 0; max-width: 700px; }
.banner .eyebrow { color: var(--gold-l); }
.crumbs a { color: #d3ccbe; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -1.2px; line-height: 1.1; margin: 8px 0 10px; }
.page-head p { color: var(--muted); font-size: 17.5px; margin: 0; max-width: 720px; }
.page-head .crumbs a { color: var(--accent); }

/* App page */
.app-id { display: flex; gap: 20px; align-items: center; }
.app-id img { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.app-id h1 { margin: 0; }
.soon { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; font-size: 14px; font-weight: 600; color: #efe9dd; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 9px 14px; border-radius: 12px; }
.feat { display: flex; flex-direction: column; gap: 12px; }
.feat h3 { margin: 0; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
section[lang="ar"] .feat h3 { letter-spacing: 0; }
.feat ul, .plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feat li, .plan li { display: flex; gap: 10px; font-size: 15px; }
.feat li .ic, .plan li .ic { color: var(--accent); margin-top: 2px; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.plan.pro { border: 1.5px solid var(--accent); position: relative; }
.plan h3 { margin: 0 0 12px; font-size: 22px; }
.price-list { display: grid; gap: 8px; margin: 18px 0 4px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); }
.price b { font-family: var(--serif); font-size: 24px; font-weight: 600; direction: ltr; }
.price .best { font-size: 11px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; margin-inline-start: 8px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips a { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.chips a.on { border-color: var(--accent); color: var(--accent); }

/* Calculators page */
.calc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.calc-list { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.calc-list h4 { margin: 16px 10px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); }
.calc-list button { text-align: start; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 10px 12px; border-radius: 11px; color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.calc-list button .ic { color: var(--muted); }
.calc-list button:hover { background: var(--bg2); }
.calc-list button.on { background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); color: var(--accent); }
.calc-list button.on .ic { color: var(--accent); }
.calc-title { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.calc-title h2 { margin: 0; font-size: 26px; letter-spacing: -.6px; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field .in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.field .in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 650; padding: 12px 14px; font-variant-numeric: tabular-nums; outline: none; }
.field .suf { padding: 0 14px; color: var(--muted); font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: inherit; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.result { margin-top: 18px; }
.result .big { color: var(--accent); }
.rows { margin-top: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows div:last-child { border-bottom: 0; }
.rows b { font-variant-numeric: tabular-nums; }
.warn { background: #fef3c7; color: #78350f; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; text-align: end; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: start; }
th { color: var(--muted); font-weight: 650; font-size: 12.5px; }
.plain-btn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 10px 0 0; }
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .calc-list h4 { display: none; }
  .calc-list button { white-space: nowrap; flex: none; }
}

/* Lessons and quiz */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; letter-spacing: -.4px; margin: 34px 0 10px; }
.prose p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.75; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin: 7px 0; font-size: 17.5px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.q p.t { font-weight: 700; margin: 0 0 12px; font-size: 16.5px; }
.opts { display: grid; gap: 8px; }
.opts button { text-align: start; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 12px 15px; font: inherit; font-size: 15px; cursor: pointer; }
.opts button:hover:not(:disabled) { border-color: var(--accent); }
.opts button.ok { border-color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--card)); font-weight: 700; }
.opts button.ko { border-color: #dc2626; background: color-mix(in srgb, #dc2626 10%, var(--card)); }
.opts button:disabled { cursor: default; }
.why { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta img { width: 56px; height: 56px; border-radius: 15px; }
.cta .who { display: flex; gap: 14px; align-items: center; }
.progress { height: 6px; background: var(--bg2); border-radius: 6px; overflow: hidden; margin: 8px 0 18px; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .25s; }

/* Legal pages */
.legal { max-width: 860px; }
.legal h2 { font-size: 19px; margin: 28px 0 6px; }
.legal mark { background: #fde68a; color: #3b2a00; border-radius: 4px; padding: 0 4px; }
.updated { color: var(--muted); font-size: 14px; margin: 0; }

/* Footer */
footer.site { background: #0d0c0a; color: #b2ab9d; padding: 64px 0 28px; }
footer.site a { color: #efe9dd; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: var(--gold-l); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
footer.site p { font-size: 14px; margin: 14px 0 0; max-width: 380px; }
footer.site .logo { display: inline-block; }
footer.site .base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8a8476; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
:root { --ease: cubic-bezier(.2, .75, .15, 1); }

/* Moving from one page to another: the old page fades back, the new one rises in (browsers that support it). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
.top { view-transition-name: site-header; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(2px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }

/* The header slides away while reading down, and comes back when scrolling up or pointing near the top. */
.top { transition: transform .45s var(--ease), background-color .3s, box-shadow .3s; }
.top.away { transform: translateY(-105%); }
.top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.peek { position: fixed; inset: 0 0 auto; height: 26px; z-index: 29; }

/* Menu: a gold line grows under the link you point at; the current page keeps it. */
.menu a { position: relative; transition: color .25s; }
.menu a::after { content: ""; position: absolute; inset-inline: 13px; bottom: 3px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
section[dir="rtl"] .menu a::after { transform-origin: right; }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); }
.menu a.on { background: transparent; }

/* Opening scene: the hero text comes in line by line, the photo settles. */
.hero .inner > * { animation: rise .9s var(--ease) both; }
.hero .inner > :nth-child(2) { animation-delay: .08s; } .hero .inner > :nth-child(3) { animation-delay: .16s; }
.hero .inner > :nth-child(4) { animation-delay: .24s; } .hero .inner > :nth-child(5) { animation-delay: .32s; }
.banner .wrap > * { animation: rise .8s var(--ease) both; }
.banner .wrap > :nth-child(2) { animation-delay: .08s; } .banner .wrap > :nth-child(3) { animation-delay: .16s; } .banner .wrap > :nth-child(4) { animation-delay: .24s; }
.hero .bgimg, .banner > img { animation: settle 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { opacity: 0; scale: 1.12; } }

/* While scrolling: blocks glide in as they arrive, photos drift at their own pace. */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-side { transform: translateX(-46px); }
section[dir="rtl"] .reveal.from-side { transform: translateX(46px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.hero .bgimg[data-parallax], .banner > img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); }

/* Ticker band slows down when pointed at; cards lift with a soft gold glow. */
a.card:hover { box-shadow: 0 24px 48px -28px rgba(20, 19, 17, .45), 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); }
.btn { position: relative; overflow: hidden; }
.btn.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.gold:hover::after { transform: translateX(120%); }

/* Scroll progress: a thin gold line under the header. */
.progress-line { position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); z-index: 40; pointer-events: none; }
section[dir="rtl"] ~ .progress-line, [dir="rtl"] .progress-line { transform-origin: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
  @view-transition { navigation: none; }
}

.app-word { display: block; height: 40px; width: auto; margin-top: 6px; }

.legal .fine { margin: 30px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
