/* ==========================================================================
   qudratksa.com — Prototype 3 «مرح وجريء» (Bold & Playful, Brilliant-inspired)
   Flat bright fills, thick ink outlines, chunky "pressable" cards and buttons.
   Brand anchors: emerald + brass from the «قدرات السعودية» system; playful accents:
   sun, sky, leaf, grape, coral.
   1 Tokens  2 Base  3 Buttons & chips  4 Header  5 Hero  6 TOC tiles
   7 Sections & cards  8 Grades & calculator  9 Resources  10 Plans
   11 FAQ  12 Band & footer  13 Responsive & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --g950: #05241c; --g900: #073428; --g800: #094434; --g700: #0b533f; --g600: #0f634b;
  --g500: #227559; --g400: #4f957a; --g300: #8bbba5; --g200: #bcd9cb; --g100: #ddece4; --g50: #eff6f2;

  /* Playful accents (Brilliant-like) — always paired with an ink outline. */
  --sun: #ffc83d;   --sun-l: #fff3cc;
  --sky: #5aa7ff;   --sky-l: #e1efff;
  --leaf: #34c27a;  --leaf-l: #dcf6e7;
  --grape: #9b82f7; --grape-l: #ece6ff;
  --coral: #ff8466; --coral-l: #ffe5dd;
  --gold: #d7b871;  --gold-l: #f7edd2;  --gold-d: #856626;

  --ink: #141c18; --text: #2b2e29; --soft: #45443d; --muted: #5d5a51;
  --page: #fbf8f1; --surface: #ffffff; --surface-2: #f4f0e6;
  --ol: #141c18;            /* outline of cards/buttons */
  --sh: #141c18;            /* hard drop shadow */
  --art-ol: #141c18;        /* outline inside illustrations (same in both themes) */
  --art-w: #ffffff;         /* white fill in illustrations */
  --primary: var(--g700); --primary-h: var(--g800); --on-primary: #fff;
  --link: var(--g700);
  --blob: var(--g100);

  --bm-r0: #094434; --bm-r1: #4f957a; --bm-r2: #bcd9cb; --bm-f0: #073428; --bm-f1: #227559; --bm-cap: #bcd9cb;

  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-d: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --bw: 2.5px;
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --lift: 0 5px 0 var(--sh);
  --lift-hi: 0 9px 0 var(--sh);
  --ease: cubic-bezier(.34, 1.56, .64, 1);   /* springy */
  --gutter: 16px; --content: 1180px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6f3ea; --text: #e6e3da; --soft: #cdd5ce; --muted: #a8b3ab;
  --page: #0a1611; --surface: #12251c; --surface-2: #0e1e17;
  --ol: #3e6353; --sh: #020a07;
  --art-w: #f6f3ea;
  --sun-l: #3a3214; --sky-l: #142a45; --leaf-l: #10331f; --grape-l: #261f47; --coral-l: #3d1f17; --gold-l: #352b14;
  --primary: #34c27a; --primary-h: #4fd18e; --on-primary: #05241c;
  --link: #7fd8a8;
  --blob: #123527;
  --bm-r0: #4f957a; --bm-r1: #8bbba5; --bm-r2: #eff6f2; --bm-f0: #227559; --bm-f1: #8bbba5; --bm-cap: #eff6f2;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.75;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--link); }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--sun); color: #141c18; border: var(--bw) solid #141c18; border-radius: var(--r-sm); padding: 8px 14px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Illustration primitives: thick ink outline, flat fills. */
.art * { stroke: var(--art-ol); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.art .nf { fill: none; }
.art .fw { fill: var(--art-w); }
.art .fs { fill: var(--sun); }
.art .fb { fill: var(--sky); }
.art .fg { fill: var(--leaf); }
.art .fc { fill: var(--coral); }
.art .fp { fill: var(--grape); }
.art .fm { fill: #bcd9cb; }
.art .fgold { fill: var(--gold); }
.art .fk { fill: var(--art-ol); }
.art .thick { stroke-width: 4; }
.art .grape { stroke: var(--grape); }
.art .blob { fill: var(--blob); stroke: none; }
.art .cells rect { fill: #ece7da; stroke: none; }
.art text { stroke: none; font-family: var(--font-d); font-weight: 700; }
.art .t-ink { fill: #141c18; font-size: 30px; }
.art .t-txt { fill: var(--ink); font-size: 24px; }
.art .t-ink.big { font-size: 56px; }
.art .t-on { fill: #fff; font-size: 22px; }
.art .dash { stroke-dasharray: 2 9; stroke-width: 4; }

/* 3. Buttons & chips ------------------------------------------------------- */
.btn {
  --b: var(--surface); --c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border: var(--bw) solid var(--ol); border-radius: 16px;
  background: var(--b); color: var(--c); font: 800 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--sh); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); transition-duration: .05s; }
.btn-primary { --b: var(--primary); --c: var(--on-primary); }
.btn-primary:hover { --b: var(--primary-h); }
.btn-lg { min-height: 58px; padding: 12px 26px; font-size: 1.125rem; border-radius: 18px; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; border-radius: 14px; }
.btn .ic { width: 20px; height: 20px; stroke-width: 2.5; }
.btn-lg .ic { transition: transform .2s var(--ease); }
.btn-lg:hover .ic { transform: translateX(-4px); }

.chip-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  border: var(--bw) solid var(--ol); background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 var(--sh); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .15s;
  text-decoration: none; padding: 0;
}
.chip-btn:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 5px 0 var(--sh); }
.chip-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sh); }
.chip-btn.tiktok:hover { background: var(--grape-l); }
.chip-btn.youtube:hover { background: var(--coral-l); }
.theme-toggle:hover { background: var(--sun-l); }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--bw) solid var(--ol);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 50px; height: 36px; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font: 700 1.15rem/1.2 var(--font-d); color: var(--ink); }
.brand-sub { font-size: .82rem; font-weight: 700; color: var(--g600); }
:root[data-theme="dark"] .brand-sub { color: var(--g300); }
.site-nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 12px; border: 2px solid transparent;
  color: var(--soft); font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s, transform .18s var(--ease);
}
.nav-link:hover { background: var(--sun-l); color: var(--ink); transform: translateY(-1px); }
.nav-link.is-current { background: var(--surface); border-color: var(--ol); color: var(--ink); box-shadow: 0 3px 0 var(--sh); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.social { display: flex; gap: 8px; list-style: none; }
.header-cta { display: none; }
.mobile-menu { border-top: var(--bw) solid var(--ol); background: var(--page); }
.mobile-menu ul { list-style: none; display: grid; gap: 8px; padding-block: 14px 18px; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: var(--bw) solid var(--ol); border-radius: 16px;
  background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 var(--sh);
}
.mobile-menu .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--art-ol); }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* 5. Hero ------------------------------------------------------------------ */
.hero { padding-block: 36px 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2px solid var(--ol); border-radius: 999px;
  background: var(--surface); font-weight: 800; font-size: .92rem; color: var(--ink); box-shadow: 0 3px 0 var(--sh);
}
.kicker-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--art-ol); }
.hero h1 { margin-top: 18px; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.7rem); line-height: 1.25; font-weight: 700; }
.hl { position: relative; white-space: nowrap; z-index: 0; display: inline-block; }
.hl::before {
  content: ""; position: absolute; z-index: -1; inset-inline: -.14em; bottom: .02em; height: .5em;
  background: var(--sun); border-radius: .25em; transform: rotate(-1.5deg); box-shadow: 0 .07em 0 var(--art-ol);
}
.nw { white-space: nowrap; }
:root[data-theme="dark"] .hl { color: #141c18; }
:root[data-theme="dark"] .hl::before { height: 1.05em; bottom: .02em; }
.lead { margin-top: 16px; max-width: 34rem; font-size: 1.15rem; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }

.quiz {
  margin-top: 28px; max-width: 34rem; padding: 16px 18px 14px; border: var(--bw) solid var(--ol); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--lift);
}
.quiz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.quiz-tag { padding: 2px 10px; border-radius: 999px; background: var(--grape-l); color: var(--ink); font-size: .82rem; font-weight: 800; border: 2px solid var(--grape); }
.quiz-q { font: 700 1.2rem/1.5 var(--font-d); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.frac { display: inline-grid; text-align: center; line-height: 1; font-size: .95em; }
.frac span:first-child { border-bottom: 2.5px solid currentColor; padding: 0 4px 2px; }
.frac span:last-child { padding-top: 2px; }
.quiz-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.opt {
  min-height: 48px; border: var(--bw) solid var(--ol); border-radius: 14px; background: var(--page); color: var(--ink);
  font: 700 1.25rem/1 var(--font-d); cursor: pointer; box-shadow: 0 3px 0 var(--sh);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .15s;
}
.opt:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--sh); background: var(--sun-l); }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sh); }
.opt.right { background: var(--leaf); color: #05241c; animation: bounce .5s var(--ease); }
.opt.wrong { background: var(--coral-l); animation: shake .4s; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.right) { opacity: .55; }
.quiz-msg { margin-top: 10px; font-size: .95rem; color: var(--muted); font-weight: 500; }
.quiz-msg.ok { color: var(--g600); font-weight: 800; }
:root[data-theme="dark"] .quiz-msg.ok { color: var(--leaf); }
@keyframes bounce { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.hero-art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.art-hero { width: 100%; height: auto; overflow: visible; }
.float { animation: float 6s ease-in-out infinite; transform-box: fill-box; }
.f2 { animation-delay: -2s; } .f3 { animation-delay: -4s; animation-duration: 7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.spin { transform-origin: 140px 168px; transition: transform .6s var(--ease); }
.hero-art:hover .spin { transform: rotate(90deg); }
.bar { transform-box: fill-box; transform-origin: bottom; transition: transform .35s var(--ease); }
.hero-art:hover .b1 { transform: scaleY(1.5); }
.hero-art:hover .b3 { transform: scaleY(1.3); }
.hero-art:hover .b2 { transform: scaleY(.8); }
.pop { transform-box: fill-box; transform-origin: center; animation: pop 3s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }

/* 6. TOC tiles ------------------------------------------------------------- */
.toc { padding-block: 8px 24px; }
.toc-title { font-size: 1.05rem; color: var(--muted); font-family: var(--font); font-weight: 800; margin-bottom: 14px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 128px; height: 100%; padding: 14px;
  border: var(--bw) solid var(--ol); border-radius: var(--r-lg); background: var(--tile); color: var(--ink);
  text-decoration: none; box-shadow: var(--lift); transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.tile:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--lift-hi); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); }
.tile-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; border: var(--bw) solid var(--art-ol);
  background: var(--tile-c); color: #141c18; font: 700 1.1rem/1 var(--font-d);
}
.tile-name { font: 700 1rem/1.4 var(--font-d); }
.tile-ic { position: absolute; inset-inline-end: 12px; top: 14px; opacity: .55; transition: transform .3s var(--ease), opacity .2s; }
.tile:hover .tile-ic { transform: rotate(-12deg) scale(1.2); opacity: 1; }

/* 7. Sections & cards ------------------------------------------------------ */
.section { padding-block: clamp(3.5rem, 2.4rem + 4vw, 6rem); position: relative; }
.tint-sky { background: var(--sky-l); border-block: var(--bw) solid var(--ol); }
.tint-coral { background: var(--coral-l); border-block: var(--bw) solid var(--ol); }
.tint-leaf { background: var(--leaf-l); border-top: var(--bw) solid var(--ol); }
.sec-head { margin-bottom: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--ol);
  background: var(--surface); color: var(--ink); font-weight: 800; font-size: .9rem; box-shadow: 0 3px 0 var(--sh);
}
.eyebrow { padding-inline-start: 5px; }
.eyebrow b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid var(--art-ol); color: #141c18; font: 700 .95rem/1 var(--font-d); }
.eyebrow b .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.sec-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 700; }

.grid { display: grid; gap: 18px; }
.card {
  position: relative; background: var(--surface); border: var(--bw) solid var(--ol); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--lift);
}
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--soft); }
.pop-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pop-card:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }

.stk {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 14px;
  background: var(--s); border: var(--bw) solid var(--art-ol); color: #141c18; box-shadow: 0 3px 0 var(--art-ol);
  transform: rotate(-5deg); transition: transform .35s var(--ease);
}
.stk .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.stk.sm { width: 40px; height: 40px; border-radius: 13px; margin: 0; }
.stk.sm .ic { width: 22px; height: 22px; }
.pop-card:hover .stk, .card:hover > .calc-head .stk, .sections-card:hover .stk { transform: rotate(8deg) scale(1.08); }

.tokens { display: flex; gap: 8px; margin-top: 16px; }
.tok {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--art-ol);
  background: var(--leaf); color: #141c18; font: 700 1.05rem/1 var(--font-d); transition: transform .3s var(--ease);
}
.tok.paper { background: var(--sky); }
.pop-card:hover .tok { transform: translateY(-4px); }
.pop-card:hover .tok:nth-child(2) { transition-delay: .04s; } .pop-card:hover .tok:nth-child(3) { transition-delay: .08s; }
.pop-card:hover .tok:nth-child(4) { transition-delay: .12s; } .pop-card:hover .tok:nth-child(5) { transition-delay: .16s; }
.tok-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.tok-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--art-ol); }
.sw.paper { background: var(--sky); }

.sections-card { margin-top: 18px; }
.sections-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sections-head .stk { margin: 0; }
.sections-head h3 { margin: 0; }
.parts { display: grid; gap: 14px; }
.part { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 2px dashed var(--ol); }
.part.verbal { background: var(--grape-l); }
.part.quant { background: var(--sun-l); }
.part-art { width: 84px; flex: none; transition: transform .35s var(--ease); }
.part:hover .part-art { transform: rotate(-6deg) scale(1.08); }
.part h4 { font-size: 1.15rem; margin-bottom: 2px; }

.sub-head { text-align: center; max-width: 44rem; margin: 64px auto 28px; }
.sub-head h3 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
.sub-head p { margin-top: 10px; color: var(--soft); }
.compare { display: grid; gap: 22px; }
.cmp { padding-top: 26px; }
.cmp.recommended { background: var(--leaf-l); }
.cmp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cmp-art { width: 96px; flex: none; transition: transform .35s var(--ease); }
.cmp:hover .cmp-art { transform: translateY(-4px) rotate(-4deg); }
.cmp-head h4 { font-size: 1.3rem; }
.sticker {
  position: absolute; top: -16px; inset-inline-end: 18px; padding: 6px 14px; border-radius: 12px; border: var(--bw) solid var(--art-ol);
  background: var(--sun); color: #141c18; font-weight: 800; font-size: .9rem; transform: rotate(4deg); box-shadow: 0 3px 0 var(--art-ol);
  transition: transform .3s var(--ease);
}
.cmp:hover .sticker { transform: rotate(-3deg) scale(1.06); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--soft); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 22px; height: 22px; border-radius: 8px;
  border: 2px solid var(--art-ol); background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141c18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.ticks.neutral li::before { background-color: var(--surface-2); background-image: none; border-radius: 50%; width: 16px; height: 16px; top: .45em; inset-inline-start: 3px; }
.verdict { margin-top: 18px; padding: 12px 16px; border-radius: var(--r-md); border: 2px solid var(--ol); background: var(--surface); font-weight: 800; color: var(--ink) !important; }
.verdict.neutral { background: var(--surface-2); font-weight: 700; }

/* 8. Grades & calculator --------------------------------------------------- */
.split { display: grid; gap: 8px; margin-top: 16px; }
.split-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; }
.split-lab { color: var(--muted); }
.split-bar { display: flex; height: 30px; border: 2px solid var(--art-ol); border-radius: 10px; overflow: hidden; }
.split-bar i { display: grid; place-items: center; font-style: normal; color: #141c18; white-space: nowrap; transition: flex-grow .4s var(--ease); }
.split-bar .q { background: var(--sun); border-inline-end: 2px solid var(--art-ol); }
.split-bar .v { background: var(--grape); }
.score-list { list-style: none; display: grid; gap: 12px; margin-top: 4px; color: var(--soft); }
.score-list li { display: flex; gap: 10px; align-items: baseline; }
.pill {
  display: inline-block; flex: none; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--art-ol);
  font: 700 .9rem/1.6 var(--font-d); color: #141c18; direction: ltr; unicode-bidi: isolate;
}
.pill.sun { background: var(--sun); } .pill.sky { background: var(--sky); } .pill.leaf { background: var(--leaf); } .pill.grape { background: var(--grape); }
.when { display: grid; gap: 12px; }
.when .pill { direction: rtl; margin-inline-end: 6px; }
.pull { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sun-l); border: 2px dashed var(--ol); color: var(--ink) !important; font-weight: 700; }

.calc-label { margin-top: 48px; scroll-margin-top: 96px; }
.calc-grid { display: grid; gap: 22px; margin-top: 18px; }
.ranges { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
.r-lab { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .95rem; }
.r-lab strong { font-weight: 700; }
.num { font: 700 1rem var(--font-d); color: var(--ink); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.r-track { position: relative; display: block; height: 22px; margin-top: 6px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--ol); overflow: hidden; }
.r-track i {
  position: absolute; top: 0; bottom: 0; inset-inline-start: calc((var(--a) - 60) / 40 * 100%);
  width: calc((var(--b) - var(--a)) / 40 * 100%); background: var(--c); border-inline: 2px solid var(--art-ol);
  transition: transform .4s var(--ease); transform-origin: center;
}
.ranges li:hover .r-track i { transform: scaleX(1.06); }
.r-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 700 .8rem var(--font-d); color: var(--muted); }

.calc { background: var(--surface); }
.calc-head { display: flex; gap: 14px; align-items: flex-start; }
.calc-head .stk { margin: 0; }
.calc-head h3 { margin-bottom: 2px; }
.calc-body { display: grid; gap: 20px; margin-top: 18px; }
.calc-table { display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; }
.calc-row.head span { font-size: .82rem; font-weight: 800; color: var(--muted); }
.calc-row label { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.calc-row label .sw { background: var(--c); }
.input {
  width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; border: var(--bw) solid var(--ol); border-radius: 14px;
  background: var(--page); color: var(--ink); font: 700 1.1rem/1 var(--font-d); text-align: center;
  box-shadow: inset 0 3px 0 rgb(0 0 0 / 6%); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
  -moz-appearance: textfield;
}
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input::placeholder { color: var(--muted); opacity: .6; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 35%, transparent); transform: translateY(-1px); }
.mix { display: flex; height: 16px; margin-top: 6px; border: 2px solid var(--art-ol); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.mix i { background: var(--c); transition: flex-grow .35s var(--ease); min-width: 0; }
.mix i + i { border-inline-start: 2px solid var(--art-ol); }
.mix-sum { font-size: .85rem; color: var(--muted); font-weight: 700; }
.mix-sum strong { font-family: var(--font-d); direction: ltr; unicode-bidi: isolate; }
.calc-warning { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid #b8412f; background: #fcf0ed; color: #8f2b1f; font-weight: 800; font-size: .92rem; animation: shake .4s; }
.calc-warning[hidden] { display: none; }
.result {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-lg); border: var(--bw) solid var(--art-ol);
  background: var(--g900); color: #fff; box-shadow: 0 4px 0 var(--art-ol);
}
.gauge { width: 104px; height: 104px; flex: none; transform: rotate(-90deg) scaleY(-1); }
.g-track { fill: none; stroke: rgb(255 255 255 / 14%); stroke-width: 14; }
.g-fill.zero { opacity: 0; }
.g-fill { fill: none; stroke: var(--sun); stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.result-text { display: grid; gap: 2px; }
.result-text span { font-weight: 700; color: var(--g200); font-size: .95rem; }
.result output { font: 700 clamp(2.4rem, 2rem + 2vw, 3.2rem)/1.1 var(--font-d); color: var(--sun); direction: ltr; text-align: end; }
.result.bump output { animation: bounce .45s var(--ease); display: inline-block; }
.calc-note { margin-top: 14px; font-size: .88rem; color: var(--muted) !important; }

/* 9. Resources ------------------------------------------------------------- */
.res-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.verbal-bar { margin-top: 48px; }
.res-title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: var(--bw) solid var(--ol); border-radius: 16px; background: var(--surface); box-shadow: 0 3px 0 var(--sh); }
.filter-button {
  border: 0; border-radius: 11px; padding: 8px 14px; background: transparent; color: var(--soft); font: 800 .95rem/1.2 var(--font);
  cursor: pointer; transition: background-color .15s, color .15s, transform .18s var(--ease);
}
.filter-button:hover { background: var(--sun-l); color: var(--ink); }
.filter-button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); transform: scale(1.04); }
.res-grid { display: grid; gap: 18px; }
.res-card { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.res-card:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.res-card[hidden] { display: none; }
.res-card.enter { animation: cardIn .4s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.res-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: var(--bw) solid var(--art-ol);
  background: var(--rc); color: #141c18; box-shadow: 0 3px 0 var(--art-ol); transform: rotate(-5deg); transition: transform .35s var(--ease);
}
.res-ic .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.res-card:hover .res-ic, .res-feature:hover .res-ic { transform: rotate(8deg) scale(1.1); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ol); font-size: .8rem; font-weight: 800; background: var(--surface-2); color: var(--ink); }
.badge.free { background: var(--leaf); border-color: var(--art-ol); color: #141c18; }
.badge.paid { background: var(--gold); border-color: var(--art-ol); color: #141c18; }
.res-card h4, .res-feature h4 { font-size: 1.25rem; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; -webkit-text-stroke: 1px var(--art-ol); }
.desc { flex: 1; }
.price { font-size: .95rem; padding: 6px 12px; border-radius: 12px; background: var(--rl); width: fit-content; }
.res-actions { display: grid; gap: 8px; margin-top: 8px; }
.res-actions .btn { width: 100%; font-size: .95rem; padding-inline: 12px; }
.res-feature { display: grid; gap: 22px; padding: 0; overflow: hidden; }
.rf-main { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.rf-main .btn { width: fit-content; margin-top: 6px; }
.rf-side { padding: 22px; background: var(--grape-l); border-top: var(--bw) solid var(--ol); display: grid; gap: 10px; align-content: start; }
.rf-art { width: 150px; transition: transform .35s var(--ease); }
.res-feature:hover .rf-art { transform: rotate(-4deg) scale(1.05); }
.rf-free { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; }

/* 10. Plans ---------------------------------------------------------------- */
.steps-card h3 { margin-bottom: 18px; }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--soft); }
.step-n {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--art-ol);
  background: var(--c); color: #141c18; font: 700 1.3rem/1 var(--font-d); box-shadow: 0 3px 0 var(--art-ol); transition: transform .3s var(--ease);
}
.steps li:hover .step-n { transform: scale(1.12) rotate(-10deg); }
.steps li > div { padding-top: 8px; }
.mini-split { display: flex; max-width: 320px; height: 26px; margin-top: 8px; border: 2px solid var(--art-ol); border-radius: 9px; overflow: hidden; font-size: .8rem; font-weight: 800; }
.mini-split i { display: grid; place-items: center; font-style: normal; color: #141c18; }
.mini-split i:first-child { background: var(--sun); border-inline-end: 2px solid var(--art-ol); }
.mini-split i:last-child { background: var(--grape); }

.schedule { margin-top: 22px; }
.sched-head { display: grid; gap: 12px; }
.sched-head h3 { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts p { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); border: 2px solid var(--ol); font-size: .92rem; }
.facts .ic { width: 18px; height: 18px; color: var(--ink); }
.phases { display: flex; gap: 8px; margin: 18px 0; }
.phase { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: 16px; border: var(--bw) solid var(--art-ol); color: #141c18; box-shadow: 0 3px 0 var(--art-ol); transition: transform .25s var(--ease); min-width: 0; }
.phase:hover { transform: translateY(-3px); }
.phase b { font-family: var(--font-d); font-size: 1rem; white-space: nowrap; }
.phase span { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.phase.p1 { background: var(--sun); }
.phase.p2 { background: var(--leaf); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--bw) solid var(--ol); border-radius: var(--r-md); overflow: hidden; }
.table th, .table td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 2px solid var(--ol); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table td, .table tbody th { border-inline-start: 2px solid var(--ol); }
.table th:first-child { border-inline-start: 0; }
.table thead th { background: var(--g900); color: #fff; font-size: .95rem; }
.table thead th + th { border-inline-start: 2px solid var(--ol); }
.table tbody th { color: #141c18; width: 24%; font-family: var(--font-d); }
.row-p1 th { background: var(--sun); }
.row-p2 th { background: var(--leaf); }
.table td { color: var(--soft); background: var(--surface); }
.table ul { padding-inline-start: 1.1rem; display: grid; gap: 6px; }
.table li::marker { color: var(--g500); }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--sun-l); border: 2px dashed var(--ol); }

.plans { margin-top: 22px; }
.plan .cal {
  position: relative; display: grid; justify-items: center; width: 84px; padding: 16px 0 8px; margin-bottom: 16px;
  border: var(--bw) solid var(--art-ol); border-radius: 18px; background: var(--art-w); color: #141c18; overflow: hidden;
  box-shadow: 0 4px 0 var(--art-ol); transform: rotate(-4deg); transition: transform .35s var(--ease);
}
.plan .cal-top { position: absolute; inset: 0 0 auto; height: 14px; background: var(--c); border-bottom: var(--bw) solid var(--art-ol); }
.plan .cal b { font: 700 2.2rem/1.1 var(--font-d); margin-top: 4px; }
.plan .cal span:last-child { font-size: .8rem; font-weight: 800; }
.plan:hover .cal { transform: rotate(5deg) translateY(-4px); }

/* 11. FAQ ------------------------------------------------------------------ */
.faq-grid { display: grid; gap: 24px; }
.faq-head { margin: 0; }
.faq-art { width: 180px; margin-top: 22px; transition: transform .4s var(--ease); }
.faq-head:hover .faq-art { transform: rotate(-5deg) scale(1.05); }
.faq-list { display: grid; gap: 12px; }
.qa {
  border: var(--bw) solid var(--ol); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 4px 0 var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.qa:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); }
.qa[open] { background: var(--sun-l); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px;
  cursor: pointer; font: 700 1.08rem/1.5 var(--font-d); color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa-ic {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 11px; border: var(--bw) solid var(--art-ol); background: var(--sun);
  transition: transform .3s var(--ease), background-color .2s;
}
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 14px; height: 3px; border-radius: 3px; background: #141c18; transform: translate(-50%, -50%); }
.qa-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] .qa-ic { transform: rotate(180deg); background: var(--leaf); }
.qa[open] .qa-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-body { padding: 0 18px 18px; color: var(--soft); display: grid; gap: 12px; }
.qa[open] .qa-body { animation: cardIn .3s var(--ease); }
.text-link { font-weight: 800; color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dots { padding-inline-start: 1.2rem; display: grid; gap: 6px; }
.dots li::marker { color: var(--g500); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 2px solid #dc8a35; background: #fdf3e8; color: #7f430c; }
.notice p, .notice strong { color: #7f430c; }
.notice .ic { margin-top: 3px; }
.nimr-toggle { width: fit-content; }
.nimr-toggle .ic { transition: transform .3s var(--ease); }
.nimr-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nimr-details { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 2px dashed var(--ol); background: var(--surface); }
.nimr-details[hidden] { display: none; }
.nimr-details h4 { font-size: 1.05rem; }

/* 12. Band & footer -------------------------------------------------------- */
.band {
  display: flex; gap: 20px; align-items: center; margin-top: 32px; padding: 26px; border-radius: var(--r-xl);
  border: var(--bw) solid var(--art-ol); background: var(--g900); color: #e9f2ec; box-shadow: 0 6px 0 var(--art-ol);
}
.band p { color: #e9f2ec; font-size: 1.1rem; }
.band-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--gold) !important; font-weight: 800; font-size: .98rem !important; }
.band-art { width: 96px; flex: none; animation: pop 4s ease-in-out infinite; }

.site-footer { background: var(--g950); color: #cfe3d8; border-top: var(--bw) solid var(--art-ol); padding-block: 48px 28px; }
.footer-grid { display: grid; gap: 28px; }
.brand.on-ink .brand-name { color: #fff; }
.brand.on-ink .brand-sub { color: var(--gold); }
.f-statement { margin-top: 12px; color: #bcd9cb; max-width: 26rem; }
.f-label { font-weight: 800; color: #fff; margin-bottom: 10px; }
.f-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.f-soc {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: var(--bw) solid #05241c;
  background: #fff; color: #141c18; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #000;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .15s;
}
.f-soc:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 7px 0 #000; }
.f-soc.tiktok:hover { background: var(--grape); }
.f-soc.youtube:hover { background: var(--coral); }
.f-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: #bcd9cb; }
.f-contact a { color: var(--sun); font-weight: 700; }
.f-meta { border-top: 2px dashed rgb(255 255 255 / 18%); padding-top: 20px; font-size: .88rem; color: #9fbfb0; display: grid; gap: 10px; }
.f-meta strong { color: #fff; }
.copy { color: #8bbba5; }

/* 13. Responsive & motion -------------------------------------------------- */
@media (max-width: 479px) {
  .brand-mark { width: 42px; height: 30px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .76rem; }
  .header-inner { gap: 8px; min-height: 64px; }
  .header-tools { gap: 6px; }
  .chip-btn { width: 40px; height: 40px; border-radius: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .quiz-opts { gap: 6px; }
  .split-row { grid-template-columns: 38px 1fr; font-size: .76rem; }
  .calc-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .calc-row label { font-size: .92rem; gap: 6px; }
  .input { padding: 8px 6px; font-size: 1rem; }
  .result { padding: 12px 14px; gap: 12px; }
  .gauge { width: 84px; height: 84px; }
  .phase { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 8px 10px; }
  .band { flex-direction: column; align-items: flex-start; padding: 22px; }
  .band-art { width: 72px; }
  .res-bar .segmented { width: 100%; }
  .filter-button { flex: 1; padding: 8px 6px; font-size: .88rem; }
}
@media (max-width: 767px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table { border: 0; border-radius: 0; overflow: visible; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { margin-bottom: 14px; border: var(--bw) solid var(--ol); border-radius: var(--r-md); overflow: hidden; }
  .table th, .table td { border: 0 !important; }
  .table tbody th { width: 100%; }
  .table td { border-top: 2px solid var(--ol) !important; }
  .table td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--ink); font-size: .9rem; font-weight: 800; }
}
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parts { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res-actions.two { grid-template-columns: 1fr 1fr; }
  .calc-body { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare { grid-template-columns: 1fr 1fr; }
  .res-feature { grid-template-columns: 1.6fr 1fr; gap: 0; }
  .rf-side { border-top: 0; border-inline-start: var(--bw) solid var(--ol); }
  .sched-head { grid-template-columns: 1fr auto; align-items: center; }
  .faq-grid { grid-template-columns: 1fr 1.7fr; align-items: start; }
  .faq-head { position: sticky; top: 100px; }
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .header-tools { margin-inline-start: 8px; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .hero { padding-block: 44px 48px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { min-height: 150px; }
  .res-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .res-actions.two { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1.35fr; align-items: stretch; }
  .calc-body { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .result { flex-direction: column; text-align: center; padding: 22px 16px; }
  .result-text { justify-items: center; }
  .result output { text-align: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .f-meta { grid-column: 1 / -1; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .site-nav .nav-link { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
