/* ==========================================================================
   Faheem — shared stylesheet for generated pages (/learn, /blog)
   Design tokens mirror index.html so generated pages match the landing page.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #0b7f3e;
  --green-dim: #086530;
  --green-vivid:#25D366;
  --dark:      #f0f4f8;
  --surface:   #ffffff;
  --card:      #f8fafc;
  --border:    rgba(0,0,0,.1);
  --border-h:  rgba(37,211,102,.4);
  --text:      #111827;
  --muted:     #6b7280;
  --radius:    16px;
}

[data-theme="dark"] {
  --green:     #25D366;
  --green-dim: #1aab52;
  --dark:      #080810;
  --surface:   #0e0e1a;
  --card:      #13131f;
  --border:    rgba(255,255,255,.07);
  --border-h:  rgba(37,211,102,.35);
  --text:      #eaeaea;
  --muted:     #6b7280;
}

html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
[dir="ltr"] body { font-family: 'Inter', sans-serif; }

/* ── NAV (shared with landing) ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(240,244,248,.86);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] nav { background: rgba(8,8,16,.78); }
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem 2rem;
}
.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-dark  { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .logo-dark  { display: block; }
[data-theme="dark"] .logo-light { display: none; }

.nav-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2.1rem; }
.nav-link {
  position: relative; color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  padding: .45rem 0; transition: color .18s;
}
.nav-link::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--green);
  transform: scaleX(0); transition: transform .22s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--green); }

.nav-right { flex: 0 0 auto; display: flex; align-items: center; gap: .7rem; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg-btn {
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: .78rem; font-weight: 700; line-height: 1;
  padding: .48rem .72rem; transition: color .18s, background .18s; min-width: 38px;
}
.seg-btn + .seg-btn { border-inline-start: 1px solid var(--border); }
.seg-btn:hover { color: var(--green); background: rgba(37,211,102,.08); }
.seg-btn svg { width: 15px; height: 15px; }
.seg-btn .ico-sun  { display: none; }
.seg-btn .ico-moon { display: block; }
[data-theme="dark"] .seg-btn .ico-sun  { display: block; }
[data-theme="dark"] .seg-btn .ico-moon { display: none; }
.nav-cta {
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .86rem; padding: .58rem 1.35rem; border-radius: 10px;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dim); transform: translateY(-1px); }

.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 36px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; padding: 0;
}
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background .18s; }
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 2px;
  background: var(--text); border-radius: 2px; transition: transform .22s;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top: 5px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { transform: translateY(5px) rotate(45deg); }
.nav-burger.is-open span::after  { transform: translateY(-5px) rotate(-45deg); }

.nav-drawer { display: none; border-top: 1px solid var(--border); padding: .4rem 1.2rem .9rem; }
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block; padding: .8rem .3rem; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.is-active { color: var(--green); }
.nav-drawer .drawer-cta {
  margin-top: .8rem; background: var(--green); color: #fff; text-align: center;
  border-radius: 10px; font-weight: 700; border-bottom: none;
}

/* ── LAYOUT ── */
.shell { max-width: 1180px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.page-head { margin-bottom: 2.5rem; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--green); margin-bottom: .5rem; }
h1.page-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.3; margin-bottom: .8rem; }
.page-sub { color: var(--muted); font-size: 1rem; max-width: 680px; }

/* ── LEARN: sidebar + content ── */
.learn-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2.5rem; align-items: start; }
.sidebar {
  position: sticky; top: 84px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1rem; max-height: calc(100vh - 110px); overflow-y: auto;
}
.sidebar-title { font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 0 .5rem .7rem; }
.track-group { margin-bottom: 1.1rem; }
.track-group:last-child { margin-bottom: 0; }
.track-name {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 800; color: var(--text);
  padding: .5rem; border-radius: 8px; margin-bottom: .2rem;
}
.track-num {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 6px;
  background: rgba(37,211,102,.12); color: var(--green);
  font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lesson-list { list-style: none; border-inline-start: 1px solid var(--border); margin-inline-start: 1.1rem; padding-inline-start: .35rem; }
.lesson-list a {
  display: block; padding: .42rem .6rem; border-radius: 7px;
  color: var(--muted); text-decoration: none; font-size: .84rem; line-height: 1.5;
  transition: background .15s, color .15s;
}
.lesson-list a:hover { background: rgba(37,211,102,.07); color: var(--text); }
.lesson-list a.is-current { background: rgba(37,211,102,.12); color: var(--green); font-weight: 700; }
.sidebar-empty { color: var(--muted); font-size: .82rem; padding: .5rem; }

/* ── ARTICLE / LESSON BODY ── */
.content-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 1.8rem; }
.chip { background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.2); color: var(--green); border-radius: 7px; padding: .18rem .6rem; font-size: .75rem; font-weight: 700; }

.prose { font-size: .97rem; line-height: 2; color: var(--text); }
.prose h2 { font-size: 1.28rem; font-weight: 900; margin: 2.2rem 0 .8rem; line-height: 1.4; }
.prose h3 { font-size: 1.06rem; font-weight: 800; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-inline-start: 1.4rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { font-weight: 800; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: rgba(37,211,102,.08); color: var(--green); border-radius: 5px; padding: .1rem .38rem; font-size: .88em; font-family: ui-monospace, monospace; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .88rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: start; }
.prose th { background: rgba(37,211,102,.06); font-weight: 800; color: var(--green); }
.prose blockquote {
  border-inline-start: 3px solid var(--green); background: rgba(37,211,102,.05);
  border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; margin: 0 0 1.3rem; color: var(--muted);
}
[dir="ltr"] .prose blockquote { border-radius: 10px 0 0 10px; }
.callout {
  background: rgba(37,211,102,.06); border: 1px dashed rgba(37,211,102,.35);
  border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1.4rem;
}
.callout strong { color: var(--green); }

/* ── PREV / NEXT ── */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .95rem 1.1rem; text-decoration: none; transition: border-color .2s;
}
.pager a:hover { border-color: var(--border-h); }
.pager .dir { font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: .2rem; display: block; }
.pager .ttl { font-size: .89rem; color: var(--text); font-weight: 700; }
.pager .next { text-align: end; }

/* ── CARD GRID (blog index / learn hub) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; transition: border-color .25s, transform .2s;
}
.post-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.post-card h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; line-height: 1.5; }
.post-card p { font-size: .86rem; color: var(--muted); line-height: 1.7; flex: 1; }
.post-date { font-size: .74rem; color: var(--muted); margin-top: .9rem; }

.track-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.track-card h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; }
.track-card > p { font-size: .89rem; color: var(--muted); margin-bottom: 1.1rem; }
.track-card ol { list-style: none; counter-reset: l; }
.track-card ol li { counter-increment: l; margin-bottom: .4rem; }
.track-card ol a {
  display: flex; align-items: baseline; gap: .6rem; padding: .55rem .7rem;
  border-radius: 9px; text-decoration: none; color: var(--text); font-size: .89rem;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s;
}
.track-card ol a:hover { border-color: var(--border-h); color: var(--green); }
.track-card ol a::before { content: counter(l); color: var(--green); font-weight: 800; font-size: .78rem; flex: 0 0 auto; }
.track-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

/* ── PRICING ── */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: start; }
.shell.is-wide { max-width: 1320px; }
.plan-price.is-custom { font-size: 1.55rem; color: var(--green); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem 1.6rem;
}
.plan.is-featured { border-color: rgba(37,211,102,.45); box-shadow: 0 16px 44px rgba(0,0,0,.10); }
[data-theme="dark"] .plan.is-featured { box-shadow: 0 16px 44px rgba(0,0,0,.45); }
.plan-badge {
  position: absolute; top: -11px; inset-inline-start: 1.6rem;
  background: var(--green); color: #fff; font-size: .7rem; font-weight: 800;
  border-radius: 999px; padding: .22rem .8rem;
}
.plan h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: .25rem; }
.plan-tag { font-size: .85rem; color: var(--green); font-weight: 700; margin-bottom: 1.1rem; }
.plan-price { font-size: 2.6rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; }
.plan-price .cur { font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.plan-price .per { font-size: .78rem; font-weight: 600; color: var(--muted); margin-inline-start: .35rem; }
.plan-desc { font-size: .88rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
.plan-feats { list-style: none; margin-bottom: 1.6rem; flex: 1; }
.plan-feats li { font-size: .87rem; padding: .42rem 0; display: flex; gap: .55rem; align-items: flex-start; }
.plan-feats li::before { content: '✓'; color: var(--green); font-weight: 900; flex: 0 0 auto; }
.plan-cta {
  display: block; text-align: center; background: transparent; color: var(--green);
  border: 1px solid var(--green); border-radius: 11px; padding: .72rem 1rem;
  font-weight: 800; font-size: .9rem; text-decoration: none; transition: all .2s;
}
.plan-cta:hover { background: var(--green); color: #fff; }
.plan.is-featured .plan-cta { background: var(--green); color: #fff; }
.plan.is-featured .plan-cta:hover { background: var(--green-dim); }

/* user-count stepper */
.users-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 0 .5rem; border-top: 1px solid var(--border); }
.users-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: .3rem; }
.step-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.05rem; font-weight: 700;
  cursor: pointer; line-height: 1; transition: all .15s; font-family: inherit;
}
.step-btn:hover { border-color: var(--green); color: var(--green); }
.users-input {
  width: 54px; height: 30px; text-align: center; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: .9rem; font-weight: 800;
}
.users-input::-webkit-outer-spin-button, .users-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.users-input { -moz-appearance: textfield; }
.plan-total { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.plan-total strong { font-size: 1.15rem; font-weight: 900; color: var(--green); }

/* order modal */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,16,.55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.9rem 1.7rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}
.modal-box h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: .4rem; }
.modal-x { position: absolute; top: .7rem; inset-inline-end: .9rem; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; font-family: inherit; }
.modal-x:hover { color: var(--green); }
.ord-summary { font-size: .84rem; color: var(--green); font-weight: 700; background: rgba(37,211,102,.08); border-radius: 9px; padding: .55rem .8rem; margin-bottom: 1.2rem; }
.modal-box label { display: block; margin-bottom: .85rem; }
.modal-box label span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.modal-box input, .modal-box textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: .62rem .8rem; color: var(--text); font-family: inherit; font-size: .9rem; resize: vertical;
}
.modal-box input:focus, .modal-box textarea:focus { outline: none; border-color: var(--green); }
.modal-submit {
  width: 100%; background: var(--green); color: #fff; border: none; border-radius: 11px;
  padding: .78rem; font-family: inherit; font-size: .93rem; font-weight: 800; cursor: pointer;
  transition: background .2s; margin-top: .3rem;
}
.modal-submit:hover:not(:disabled) { background: var(--green-dim); }
.modal-submit:disabled { opacity: .65; cursor: default; }
.form-err { color: #dc2626; font-size: .82rem; font-weight: 600; margin-bottom: .6rem; }
.form-hint { color: var(--muted); font-size: .78rem; text-align: center; margin-top: .8rem; }
.ord-done { text-align: center; padding: 1rem 0 .3rem; }
.ord-check { width: 52px; height: 52px; border-radius: 50%; background: rgba(37,211,102,.13); color: var(--green); font-size: 1.6rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.ord-done h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: .4rem; }
.ord-done p { color: var(--muted); font-size: .88rem; margin-bottom: 1.3rem; }

/* order basket */
.plan.is-picked { border-color: rgba(37,211,102,.45); }
.order-panel {
  max-width: 560px; margin: 2.4rem auto 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem;
}
.op-head { font-size: .78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.op-empty { color: var(--muted); font-size: .88rem; line-height: 1.8; margin-bottom: 1.2rem; }
.op-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.op-line:last-child { border-bottom: none; }
.op-line strong { font-weight: 800; color: var(--text); white-space: nowrap; }
.op-line.is-sum { border-top: 1px solid var(--border); border-bottom: none; margin-top: .3rem; padding-top: .7rem; font-weight: 800; }
.op-line.is-sum strong { color: var(--green); }
.op-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.op-total strong { font-size: 1.5rem; font-weight: 900; color: var(--green); }
.op-cta {
  width: 100%; margin-top: 1.3rem; background: var(--green); color: #fff; border: none;
  border-radius: 12px; padding: .82rem; font-family: inherit; font-size: .95rem;
  font-weight: 800; cursor: pointer; transition: background .2s;
}
.op-cta:hover:not(:disabled) { background: var(--green-dim); }
.op-cta:disabled { opacity: .45; cursor: not-allowed; }
.op-guarantee { color: var(--muted); font-size: .8rem; line-height: 1.7; text-align: center; margin-top: .8rem; }
.form-guarantee { color: var(--green); font-size: .79rem; line-height: 1.7; text-align: center; margin-top: .5rem; font-weight: 600; }
.ord-summary .op-line { font-size: .85rem; }

.pr-actions { text-align: center; margin-top: 2.6rem; }
.btn-compare {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 800; font-size: .95rem; padding: .85rem 2rem; border-radius: 12px;
  transition: background .2s, transform .15s;
}
.btn-compare:hover { background: var(--green-dim); transform: translateY(-2px); }
.pr-note { color: var(--muted); font-size: .82rem; margin-top: 1.1rem; }
.pr-note a { color: var(--green); text-decoration: none; font-weight: 700; }

/* ── COMPARISON MATRIX ── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp-table th, .cmp-table td { padding: .85rem 1.1rem; text-align: center; font-size: .87rem; border-bottom: 1px solid var(--border); }
.cmp-table thead th { position: sticky; top: 0; background: var(--card); z-index: 2; }
.cmp-table .corner, .cmp-table .feat-cell { text-align: start; }
.cmp-table .feat-cell { color: var(--text); font-weight: 600; }
.cmp-table .corner { color: var(--muted); font-size: .8rem; font-weight: 700; }
.ch-name { display: block; font-size: .95rem; font-weight: 900; color: var(--text); }
.ch-price { display: block; font-size: .78rem; color: var(--green); font-weight: 800; margin-top: .15rem; }
.cmp-table tr.grp td { background: rgba(37,211,102,.07); color: var(--green); font-weight: 800; text-align: start; font-size: .82rem; letter-spacing: .3px; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.p-yes { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(37,211,102,.13); color: var(--green); font-size: .88rem; font-weight: 800; }
.p-no { color: var(--muted); opacity: .45; }
.p-partial { display: inline-block; font-size: .74rem; font-weight: 700; color: #b06d00; background: rgba(245,158,11,.13); border-radius: 6px; padding: .2rem .55rem; }
[data-theme="dark"] .p-partial { color: #f59e0b; }

.empty-state { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 4rem; }
.foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 3rem 2rem 2.2rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
}
.foot-brand .logo-img { height: 34px; margin-bottom: .9rem; }
.foot-brand p { color: var(--muted); font-size: .87rem; line-height: 1.8; max-width: 320px; }
.foot-col h4 { font-size: .78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.foot-col a { display: block; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; padding: .32rem 0; transition: color .18s; }
.foot-col a:hover { color: var(--green); }
.foot-bar {
  border-top: 1px solid var(--border);
  max-width: 1180px; margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}
.foot-bar p { color: var(--muted); font-size: .82rem; }
.foot-bar a { color: var(--green); text-decoration: none; font-weight: 700; }
@media (max-width: 780px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.2rem 1.4rem 1.8rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bar { padding: 1rem 1.4rem; }
}

@media (max-width: 980px) {
  .learn-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .track-stack { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 880px) {
  .nav-inner { padding: .7rem 1.2rem; gap: .8rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-right { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .shell { padding: 1.8rem 1.2rem 3.5rem; }
  .content-card { padding: 1.5rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PARTNERS — borrows the landing page's visual language (glow, badge,
   icon tiles, gradient CTA panel) so it doesn't read as a bare form page.
   ========================================================================== */

@keyframes p-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

.p-hero { position: relative; text-align: center; padding: .5rem 0 3.6rem; }
.p-hero::before {
  content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: min(760px, 100%); height: 430px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37,211,102,.15) 0%, transparent 70%);
}
.p-hero > * { position: relative; }
.p-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(37,211,102,.1); color: var(--green); border: 1px solid rgba(37,211,102,.25);
  border-radius: 999px; padding: .35rem 1rem; font-size: .8rem; font-weight: 700; margin-bottom: 1.4rem;
}
.p-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: p-pulse 2s infinite; }
.p-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.25; margin-bottom: 1rem; }
.p-hero h1 .accent { color: var(--green); }
.p-hero .p-lead { color: var(--muted); font-size: 1.02rem; max-width: 620px; margin: 0 auto 2.1rem; line-height: 1.8; }
.p-cta {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--green); color: #fff;
  padding: .85rem 1.9rem; border-radius: 12px; font-size: .97rem; font-weight: 800;
  text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s;
}
.p-cta:hover { background: var(--green-dim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.25); }

/* ── the two tracks ── */
.ptracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: 4rem; }
.ptrack {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.1rem 1.8rem; transition: border-color .25s, transform .2s, box-shadow .2s;
}
.ptrack:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.ptrack-ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.ptrack-ico svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ptrack h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: .45rem; }
.ptrack > p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1.3rem; }
.ptrack ul { list-style: none; display: grid; gap: .55rem; }
.ptrack li { position: relative; padding-inline-start: 1.5rem; font-size: .87rem; line-height: 1.65; }
.ptrack li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 900; }

/* ── how it works ── */
.p-sect-title { text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; margin-bottom: 2rem; }
.psteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 4rem; }
.pstep { text-align: center; padding: 1.4rem 1.1rem; }
.pstep-n {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.22); color: var(--green); font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem;
}
.pstep h4 { font-size: .97rem; font-weight: 800; margin-bottom: .35rem; }
.pstep p { color: var(--muted); font-size: .85rem; line-height: 1.65; }

/* ── the form panel ── */
.pform-wrap {
  position: relative; overflow: hidden; max-width: 820px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(37,211,102,.06), rgba(37,211,102,.015));
  border: 1px solid rgba(37,211,102,.18); border-radius: 24px; padding: 3rem 2.6rem 2.6rem;
}
.pform-wrap::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: min(660px, 100%); height: 350px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37,211,102,.15) 0%, transparent 70%);
}
.pform-wrap > * { position: relative; }
.pform-head { text-align: center; margin-bottom: 2.1rem; }
.pform-head h2 { font-size: 1.45rem; font-weight: 900; margin-bottom: .5rem; }
.pform-lead { color: var(--muted); font-size: .92rem; max-width: 480px; margin: 0 auto; line-height: 1.7; }

.ptype { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.8rem; }
.ptype input { position: absolute; opacity: 0; pointer-events: none; }
.ptype label {
  display: block; cursor: pointer; position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.ptype label:hover { border-color: var(--border-h); transform: translateY(-1px); }
.ptype input:checked + label { border-color: var(--green); background: rgba(37,211,102,.07); }
.ptype input:checked + label::after {
  content: '✓'; position: absolute; top: .75rem; inset-inline-end: .9rem;
  width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.ptype input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.ptype strong { display: block; font-size: .97rem; font-weight: 800; margin-bottom: .2rem; padding-inline-end: 1.6rem; }
.ptype span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.55; }

.pform label.f { display: block; margin-bottom: 1.05rem; }
.pform label.f > span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.pform input, .pform textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: .75rem .9rem; color: var(--text); font-family: inherit; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.pform input:focus, .pform textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,211,102,.12); }
.pform input::placeholder, .pform textarea::placeholder { color: var(--muted); opacity: .6; }
.pform textarea { resize: vertical; min-height: 84px; }
.pform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pform-agent[hidden] { display: none; }
/* Honeypot: off-canvas positioning is not RTL-safe, so clip it in place. */
.pform .hp { position: absolute; width: 0; height: 0; padding: 0; border: 0;
  overflow: hidden; opacity: 0; pointer-events: none; }
.pform-submit {
  width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px;
  padding: 1rem; font-family: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s; margin-top: .5rem;
}
.pform-submit:hover:not(:disabled) { background: var(--green-dim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.25); }
.pform-submit:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

@media (max-width: 880px) {
  .ptracks { grid-template-columns: 1fr; }
  .psteps { grid-template-columns: 1fr; gap: .4rem; }
  .pstep { padding: 1rem; }
}
@media (max-width: 640px) {
  .p-hero { padding-bottom: 2.6rem; }
  .pform-wrap { padding: 2rem 1.3rem 1.8rem; border-radius: 18px; }
  .ptype { grid-template-columns: 1fr; }
  .pform-row { grid-template-columns: 1fr; }
}

/* ── partner terms ── */
.pterms { margin: .4rem 0 1.3rem; }
.pterms-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem 1rem; margin-bottom: .9rem;
}
.pterms-box > summary {
  cursor: pointer; font-size: .87rem; font-weight: 700; color: var(--green);
  list-style: none; display: flex; align-items: center; gap: .45rem;
}
.pterms-box > summary::-webkit-details-marker { display: none; }
.pterms-box > summary::before { content: '+'; font-weight: 900; font-size: 1rem; line-height: 1; }
.pterms-box[open] > summary::before { content: '−'; }
.pterms-list { margin: 1rem 0 0; padding-inline-start: 1.3rem; display: grid; gap: .7rem; }
.pterms-list li { font-size: .84rem; line-height: 1.75; color: var(--muted); }
.pterms-list li strong { color: var(--text); font-weight: 800; }
.pterms-ver { margin-top: 1rem; font-size: .76rem; color: var(--muted); opacity: .8; }

.pterms-agree { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.pterms-agree input {
  width: 18px; height: 18px; flex: 0 0 auto; margin-top: .18rem;
  accent-color: var(--green); cursor: pointer;
}
.pterms-agree span { font-size: .87rem; line-height: 1.7; }
.pterms-agree strong { font-weight: 800; }

/* ── partner FAQ — same accordion language as the terms box ── */
.pfaq-title { margin-top: 4rem; }
.pfaq { max-width: 820px; margin: 0 auto; display: grid; gap: .7rem; }
.pfaq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.05rem 1.2rem; transition: border-color .2s;
}
.pfaq-item:hover { border-color: var(--border-h); }
.pfaq-item > summary {
  cursor: pointer; font-size: .95rem; font-weight: 800; color: var(--text);
  list-style: none; display: flex; align-items: flex-start; gap: .6rem;
}
.pfaq-item > summary::-webkit-details-marker { display: none; }
.pfaq-item > summary::before {
  content: '+'; color: var(--green); font-weight: 900; font-size: 1.05rem;
  line-height: 1.5; flex: 0 0 auto;
}
.pfaq-item[open] > summary::before { content: '−'; }
.pfaq-item[open] > summary { color: var(--green); }
.pfaq-item > p {
  margin: .7rem 0 0; padding-inline-start: 1.3rem;
  font-size: .89rem; line-height: 1.85; color: var(--muted);
}
.pfaq-item > p a { color: var(--green); text-decoration: none; font-weight: 700; }
.pfaq-item > p a:hover { text-decoration: underline; }
