/* GAIA Atelier — documentation site chrome (docs-only styles; product styles come from ../css/*) */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--gold-300); color: var(--burgundy-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--burgundy-700); color: var(--cream-100); padding: 10px 16px; border-radius: 12px; z-index: 300; }
.skip:focus { top: 12px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; direction: ltr; unicode-bidi: isolate; }
.inl { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; }

/* shell ------------------------------------------------------------------- */
.shell { display: block; }
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 288px; background: var(--surface); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; z-index: 120; transition: transform var(--t-base) var(--ease); }
.side-hd { padding: 20px 20px 14px; display: flex; gap: 12px; align-items: center; }
.side-hd .mark { width: 42px; height: 52px; border-radius: 999px 999px 10px 10px; background: var(--hero); display: grid; place-items: center; overflow: hidden; flex: none; }
.side-hd .mark img { width: 150%; max-width: none; }
.side-hd b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.side-hd small { color: var(--text-3); font-size: 11.5px; }
.search { margin: 0 16px 10px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding-inline: 38px 12px; outline: 0; font-size: 14px; }
.search input:focus { border-color: var(--burgundy-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 30%, transparent); }
.search .ic { position: absolute; inset-inline-start: 12px; top: 12px; color: var(--text-3); }
.side nav { flex: 1; overflow-y: auto; padding: 4px 12px 24px; scrollbar-width: thin; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; position: relative; }
.side nav a .n { width: 24px; font-size: 11px; font-weight: 700; color: var(--text-3); direction: ltr; text-align: center; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: color-mix(in srgb, var(--gold-500) 16%, transparent); color: var(--text); font-weight: 700; }
.side nav a.on::before { content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-500); }
[dir="rtl"] .side nav a.on::before { border-radius: 4px 0 0 4px; }
.side nav a[hidden] { display: none; }
.side-ft { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); display: flex; justify-content: space-between; }
.noresult { padding: 16px; color: var(--text-3); font-size: 13px; }

.main { margin-inline-start: 288px; min-width: 0; }
.topbar2 { position: sticky; top: 0; z-index: 100; height: 64px; display: flex; align-items: center; gap: 10px; padding-inline: 32px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar2 .crumb { flex: 1; min-width: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar2 .crumb b { color: var(--text); font-weight: 700; }
.tb-btn { height: 40px; min-width: 40px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.tb-btn:hover { border-color: var(--gold-500); }
#menuBtn { display: none; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }

/* cover ------------------------------------------------------------------- */
.cover { position: relative; margin: 28px 32px 0; border-radius: 40px; background: var(--hero); color: var(--on-dark); overflow: hidden; min-height: 560px; padding: 64px 56px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--sh-3); isolation: isolate; }
.cover .arch-pattern { position: absolute; inset: 0; z-index: -1; opacity: 1; }
.cover .glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,160,92,.32), transparent); inset-inline-end: -120px; top: -160px; z-index: -1; }
.cover .art { position: absolute; inset-inline-end: 40px; top: 24px; width: 380px; height: 470px; overflow: hidden; border-radius: 999px 999px 24px 24px; border: 1.5px solid rgba(227,201,154,.45); display: grid; place-items: center; z-index: -1; }
.cover .art::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(227,201,154,.18); }
.cover .art img { width: 124%; max-width: none; animation: floaty 7s ease-in-out infinite; }
.cover .eb { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border: 1px solid rgba(227,201,154,.4); border-radius: 100px; font-size: 12.5px; font-weight: 700; color: var(--gold-300); width: fit-content; }
.cover h1 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 92px); line-height: 1.02; font-weight: 600; margin: 20px 0 14px; letter-spacing: -.01em; }
.cover h1 em { font-style: normal; color: var(--gold-300); }
.cover .cover-lead { max-width: 520px; font-size: 18px; color: var(--on-dark-2); }
.cover .stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(227,201,154,.25); }
.cover .stats b { display: block; font-family: var(--font-display); font-size: 34px; color: var(--gold-300); line-height: 1.1; }
.cover .stats span { font-size: 12.5px; color: var(--on-dark-2); }
.cover .ctas { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* sections ---------------------------------------------------------------- */
.sec { padding-block: 84px 12px; }
.sec + .sec { border-top: 1px solid var(--line); margin-top: 72px; }
.sec-hd { margin-bottom: 34px; max-width: 760px; }
.sec-hd .num { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--gold-600); direction: ltr; display: inline-block; }
[data-theme="dark"] .sec-hd .num { color: var(--gold-300); }
.sec-hd h2 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; font-weight: 600; margin: 8px 0 12px; }
.sec-hd p { font-size: 17px; color: var(--text-2); }
.sub { margin: 52px 0 6px; font-family: var(--font-display); font-size: 25px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sub::before { content: ""; width: 10px; height: 14px; border-radius: 99px 99px 2px 2px; background: var(--gold-500); flex: none; }
.sub-p { color: var(--text-2); max-width: 720px; margin-bottom: 18px; }
.p { color: var(--text-2); max-width: 720px; margin-bottom: 14px; }
.p b { color: var(--text); }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.auto-l { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; min-width: 0; }
.dcard h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.dcard p { color: var(--text-2); font-size: 14px; }
.dcard .ico { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--gold-500) 18%, transparent); color: var(--burgundy-700); display: grid; place-items: center; margin-bottom: 14px; }
[data-theme="dark"] .dcard .ico { color: var(--gold-300); }
.principle { position: relative; overflow: hidden; }
.principle .big { position: absolute; inset-inline-end: 16px; top: 4px; font-family: var(--font-display); font-size: 70px; color: color-mix(in srgb, var(--gold-500) 22%, transparent); line-height: 1; }

.spec { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 26px; min-width: 0; }
.spec.surface { background: var(--surface); }
.spec[data-theme="dark"] { background: var(--bg); color: var(--text); }
.spec.pad0 { padding: 0; overflow: hidden; }
.spec-label { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; direction: ltr; }
.spec-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spec-col { display: flex; flex-direction: column; gap: 12px; }
.stage { position: relative; height: 150px; overflow: hidden; border-radius: 18px; background: var(--bg); border: 1px dashed var(--line); }
.cap { font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.pill-note { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: 11.5px; font-weight: 700; color: var(--text-2); }

.code { position: relative; margin-top: 12px; border-radius: 18px; background: #1d0807; color: #f1e0c9; direction: ltr; text-align: left; overflow: hidden; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; font-family: ui-monospace, "SF Mono", Menlo, monospace; tab-size: 2; }
.code .cp { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 11px; border-radius: 9px; background: rgba(250,243,233,.12); color: #f1e0c9; font-size: 11.5px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.code .cp:hover { background: rgba(250,243,233,.22); }
.code .lb { padding: 8px 16px; font-size: 11px; letter-spacing: .1em; color: #b79a82; border-bottom: 1px solid rgba(250,243,233,.1); font-weight: 700; text-transform: uppercase; }

.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
table.t th { text-align: start; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 800; padding: 12px 16px; background: var(--surface-2); white-space: nowrap; }
[lang="ar"] table.t th { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
table.t td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t td.c { text-align: center; }

.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--gold-500) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gold-500) 40%, transparent); margin: 18px 0; color: var(--text); font-size: 14px; }
.callout .ic { color: var(--gold-600); margin-top: 2px; }
.callout.red { background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.red .ic { color: var(--danger); }
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dd > div { border-radius: 20px; padding: 18px; border: 1px solid var(--line); background: var(--surface); position: relative; min-width: 0; }
.dd .do { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); }
.dd .dont { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.dd h5 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.dd .do h5 { color: var(--success); } .dd .dont h5 { color: var(--danger); }
.dd ul li { padding-block: 4px; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; }
.dd ul li::before { content: "•"; color: var(--gold-500); font-weight: 900; }

/* color -------------------------------------------------------------------- */
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.scale button { height: 92px; padding: 8px 6px; display: flex; flex-direction: column; justify-content: flex-end; text-align: start; font-size: 10.5px; font-weight: 700; color: var(--fg); background: var(--bgc); position: relative; transition: transform var(--t-fast); line-height: 1.3; }
.scale button:hover { transform: scale(1.06); z-index: 2; box-shadow: var(--sh-2); border-radius: 8px; }
.scale button small { font-weight: 500; opacity: .8; direction: ltr; display: block; font-size: 9.5px; }
.scale button.base::after { content: "★"; position: absolute; top: 6px; inset-inline-end: 7px; font-size: 11px; }
.swatch { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-align: start; width: 100%; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base); }
.swatch:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.swatch .chipc { direction: ltr; justify-content: flex-start; height: 96px; position: relative; display: flex; align-items: flex-end; padding: 10px 12px; font-weight: 800; font-size: 12px; }
.swatch .info { padding: 10px 12px 12px; font-size: 12px; }
.swatch .info b { display: block; font-size: 13.5px; }
.swatch .info span { display: block; color: var(--text-3); text-align: start; }
.swatch .info .mono { direction: ltr; text-align: start; }
.ratio { display: flex; height: 64px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.ratio > div { display: flex; align-items: flex-end; padding: 8px 10px; font-size: 11.5px; font-weight: 800; }
.cm { border-collapse: separate; border-spacing: 4px; font-size: 12px; width: 100%; min-width: 640px; }
.cm th { font-weight: 700; font-size: 11px; color: var(--text-2); padding: 4px; text-align: center; }
.cm td { text-align: center; padding: 9px 4px; border-radius: 12px; font-weight: 800; font-size: 14px; background: var(--bgc); color: var(--fg); position: relative; direction: ltr; }
.cm td small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.cm td.fail { outline: 2px dashed var(--danger); outline-offset: -3px; }

/* type --------------------------------------------------------------------- */
.type-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.type-row:first-child { border-top: 0; }
.type-row .meta { font-size: 12px; color: var(--text-3); direction: ltr; text-align: start; line-height: 1.5; }
.type-row .meta b { color: var(--text); display: block; font-size: 13px; }
.type-sample { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.face { font-size: clamp(54px, 9vw, 110px); line-height: 1.05; font-weight: 600; }
.glyphs { font-size: 22px; letter-spacing: .08em; word-break: break-all; color: var(--text-2); }

/* layout ------------------------------------------------------------------- */
.sp-row { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.sp-row .bar-sp { height: 18px; border-radius: 5px; background: var(--gold-500); }
.sp-row code { width: 120px; flex: none; }
.rad-box { width: 100%; aspect-ratio: 1; background: var(--surface-2); border: 1.5px solid var(--gold-500); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.elev { height: 110px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line); }
.grid-demo { display: grid; gap: 8px; height: 150px; position: relative; }
.grid-demo i { background: color-mix(in srgb, var(--burgundy-600) 18%, transparent); border-inline: 1px solid color-mix(in srgb, var(--burgundy-600) 35%, transparent); display: grid; place-items: end center; padding-bottom: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--burgundy-600); direction: ltr; }
[data-theme="dark"] .grid-demo i { color: var(--gold-300); background: color-mix(in srgb, var(--gold-500) 18%, transparent); border-color: color-mix(in srgb, var(--gold-500) 40%, transparent); }
.phone-sil { width: 190px; height: 380px; border-radius: 34px; border: 2px solid var(--burgundy-700); position: relative; margin: auto; background: var(--surface); overflow: hidden; }
[data-theme="dark"] .phone-sil { border-color: var(--gold-500); }
.phone-sil .z { position: absolute; inset-inline: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.phone-sil .z1 { top: 0; height: 40px; background: color-mix(in srgb, var(--danger) 14%, transparent); }
.phone-sil .z2 { bottom: 0; height: 50px; background: color-mix(in srgb, var(--danger) 14%, transparent); }
.phone-sil .z3 { top: 40px; bottom: 50px; background: color-mix(in srgb, var(--gold-500) 14%, transparent); }
.phone-sil .z3::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--gold-600); border-radius: 12px; }

/* arch --------------------------------------------------------------------- */
.arch-use { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.arch-use .box { height: 150px; width: 100%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }

/* icons -------------------------------------------------------------------- */
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ic-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 11px; color: var(--text-2); transition: all var(--t-base) var(--ease); }
.ic-cell:hover { border-color: var(--gold-500); color: var(--burgundy-700); transform: translateY(-3px); box-shadow: var(--sh-2); }
[data-theme="dark"] .ic-cell:hover { color: var(--gold-300); }
.ic-cell .ic { width: 28px; height: 28px; }
.ic-keyline { width: 168px; height: 168px; position: relative; }
.ic-keyline svg { width: 100%; height: 100%; }

/* illustration -------------------------------------------------------------- */
.ill { aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; overflow: hidden; position: relative; border: 1px solid var(--line); }
.ill.dark { background: var(--hero); }
.ill.light { background: var(--bg); }
.ill img { width: 86%; }
.tint { width: 86%; aspect-ratio: 1; object-fit: contain; filter: var(--tint-filter); }
.logo-box { height: 220px; border-radius: 24px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); }
.logo-box img { height: 170px; }
.logo-tint { height: 170px; width: auto; filter: var(--tint-filter); }
.logo-tint.gold { filter: var(--tint-gold); }
:root { --tint-filter: brightness(0) invert(9%) sepia(80%) saturate(2600%) hue-rotate(335deg) brightness(.85); --tint-gold: brightness(0) invert(66%) sepia(40%) saturate(560%) hue-rotate(2deg) brightness(.95); }
[data-theme="dark"] { --tint-filter: brightness(0) invert(82%) sepia(30%) saturate(520%) hue-rotate(2deg); }
[data-theme="light"] { --tint-filter: brightness(0) invert(9%) sepia(80%) saturate(2600%) hue-rotate(335deg) brightness(.85); }
.clear { position: relative; padding: 34px; border: 1.5px dashed var(--gold-600); border-radius: 16px; }
.clear::after { content: "x"; position: absolute; top: 8px; inset-inline-start: 14px; font-weight: 800; color: var(--gold-600); font-size: 13px; }

/* components --------------------------------------------------------------- */
.comp { padding-top: 14px; scroll-margin-top: 90px; }
.comp > h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 44px 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.comp > h3 .tagc { font-family: var(--font); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); letter-spacing: .03em; }
.comp > .cdesc { color: var(--text-2); max-width: 720px; margin-bottom: 16px; }
.state-lbl { font-size: 11px; font-weight: 800; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; direction: ltr; text-align: start; }
.anat { counter-reset: a; display: grid; gap: 7px; margin-top: 16px; font-size: 13.5px; color: var(--text-2); }
.anat li { display: flex; gap: 10px; align-items: flex-start; }
.mkn { counter-increment: a; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--burgundy-700); color: var(--cream-100); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.mkn::before { content: counter(a); }
.mk { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500); color: var(--burgundy-900); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 30%, transparent); z-index: 3; }
.btn.loading { pointer-events: none; opacity: .85; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.dis, .input.dis { opacity: .45; pointer-events: none; filter: saturate(.6); }
.otp { display: flex; gap: 8px; direction: ltr; }
.otp i { width: 46px; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 22px; font-family: var(--font-display); }
.otp i.f { border-color: var(--burgundy-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 30%, transparent); }
.dlg { background: var(--surface); border-radius: 28px; padding: 24px; box-shadow: var(--sh-3); border: 1px solid var(--line); max-width: 340px; width: 100%; text-align: center; }
.dlg .lead { margin: 0 auto 12px; width: 52px; height: 52px; border-radius: 50%; }
.dlg h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.dlg p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 16px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; }
.banner.off { background: #2b1a17; color: #f6ece0; }
.banner.warn { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.banner.err { background: color-mix(in srgb, var(--danger) 11%, transparent); color: var(--danger); }
.web-demo { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg); display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 320px; }
.w-side { background: #1a0605; color: #d8bfb2; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.w-side .br { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; color: var(--cream-100); font-family: var(--font-display); font-size: 17px; }
.w-side a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.w-side a.on { background: rgba(201,160,92,.18); color: var(--gold-300); font-weight: 700; }
.w-side small { padding: 10px 10px 2px; font-size: 10px; letter-spacing: .12em; opacity: .6; text-transform: uppercase; }
.w-main { min-width: 0; display: flex; flex-direction: column; }
.w-top { height: 54px; display: flex; align-items: center; gap: 10px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.w-top .sbox { flex: 1; max-width: 280px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; padding-inline: 10px; color: var(--text-3); font-size: 12.5px; }
.w-body { padding: 16px; flex: 1; }
.w-tbl { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 12.5px; }
.w-tbl .h, .w-tbl .r { display: grid; grid-template-columns: 1.4fr 1fr .8fr .7fr; gap: 8px; padding: 10px 14px; align-items: center; }
.w-tbl .h { background: var(--surface-2); font-size: 10.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.w-tbl .r { border-top: 1px solid var(--line); }
.drawer-demo { position: relative; height: 300px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.drawer-demo .scrim2 { position: absolute; inset: 0; background: rgba(26,6,5,.45); }
.drawer-demo .dr { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 62%; background: var(--surface); box-shadow: -20px 0 50px -20px rgba(0,0,0,.5); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.viz { width: 100%; height: auto; display: block; }
.viz text { font-family: var(--font); font-size: 10px; fill: var(--text-3); }
.lc { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* patterns ------------------------------------------------------------------ */
.flow { display: flex; flex-wrap: wrap; gap: 8px 4px; align-items: center; }
.flow .nd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow .arrow { color: var(--gold-600); margin-inline: 2px; }
.who { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.who.cu { background: #e6eefa; color: #2a4f7c; } .who.ad { background: #efe5f7; color: #5a3c85; } .who.th { background: #dff0e7; color: #1f6a4a; } .who.sy { background: var(--surface-2); color: var(--text-2); }
[data-theme="dark"] .who.cu { background: #213652; color: #bcd3f2; } [data-theme="dark"] .who.ad { background: #3a2a52; color: #d9c4f2; } [data-theme="dark"] .who.th { background: #1f4434; color: #b8e6d0; }
.perm { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(46px, 1fr)); font-size: 12.5px; min-width: 520px; }
.perm > * { padding: 10px 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.perm > .l { justify-content: flex-start; padding-inline-start: 14px; font-weight: 600; }
.perm > .hd { border-top: 0; background: var(--surface-2); font-size: 10.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }

/* motion -------------------------------------------------------------------- */
.curve { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.curve > svg { width: 100%; height: 120px; }
.dot-run { position: relative; height: 22px; background: var(--surface-2); border-radius: 11px; margin-top: 10px; direction: ltr; }
.dot-run i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--burgundy-700); }
.dot-run.go i { animation: dotrun 1.4s var(--e) forwards; }
@keyframes dotrun { to { left: calc(100% - 19px); } }
.breathe-demo { width: 150px; height: 150px; border-radius: 50%; margin: auto; background: radial-gradient(circle at 35% 30%, #e3c99a, #c9a05c 60%, #a8803f); animation: breathe 6s ease-in-out infinite; box-shadow: var(--sh-gold); }

/* misc ----------------------------------------------------------------------- */
.feat { display: flex; flex-direction: column; gap: 8px; }
.feat .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.feat .src { font-size: 11.5px; color: var(--text-3); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); direction: ltr; text-align: start; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-list li:last-child { border-bottom: 0; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-item .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; direction: ltr; text-align: start; }
.tl-item ul li { padding-block: 3px; color: var(--text-2); display: flex; gap: 8px; }
.tl-item ul li::before { content: "◆"; color: var(--gold-500); font-size: 9px; margin-top: 7px; }
.dl-card { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: all var(--t-base) var(--ease); }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--gold-500); }
.foot { margin-top: 90px; padding: 40px 32px; border-top: 1px solid var(--line); text-align: center; color: var(--text-3); font-size: 13px; }
.dtoast { position: fixed; bottom: 26px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px); z-index: 400; background: var(--burgundy-800); color: var(--cream-100); padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-3); transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform var(--t-base) var(--ease), opacity var(--t-base), visibility var(--t-base); display: flex; gap: 8px; align-items: center; border: 1px solid rgba(227,201,154,.4); }
.dtoast.show { transform: none; opacity: 1; visibility: visible; }
.rise-demo.go > * { animation: rise var(--t-slow) var(--ease) both; }
.rise-demo.go > *:nth-child(2) { animation-delay: 90ms; } .rise-demo.go > *:nth-child(3) { animation-delay: 180ms; } .rise-demo.go > *:nth-child(4) { animation-delay: 270ms; }

.st-therapist_assigned { --c: var(--st-assigned); }

/* responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover .art { opacity: .35; }
}
@media (max-width: 1023px) {
  .side { transform: translateX(-102%); box-shadow: var(--sh-3); }
  [dir="rtl"] .side { transform: translateX(102%); }
  .side.open { transform: none; }
  .main { margin-inline-start: 0; }
  #menuBtn { display: inline-flex; }
  .topbar2 { padding-inline: 16px; }
  .cover { margin: 16px 16px 0; padding: 40px 26px; min-height: 480px; border-radius: 32px; }
  .wrap { padding-inline: 20px; }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4, .dd { grid-template-columns: minmax(0, 1fr); }
  .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scale button { height: 78px; }
  .type-row { grid-template-columns: 1fr; gap: 8px; }
  .cover .art { display: none; }
  .cover .stats { gap: 24px; }
  .sec { padding-top: 60px; }
  .web-demo { grid-template-columns: 1fr; }
  .w-side { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .crumb { display: none; }
  .cover .ctas .btn { flex: 1 1 100%; }
  .tb-btn .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* source onboarding PNGs carry a faint alpha haze (≈6% opacity checker); cut it so strokes read clean */
img[src*="onboarding"], img[src*="login-svg"], img[src*="otp-"] { filter: url(#cleanArt); }
img.tint[src*="onboarding"], img.tint[src*="login-svg"], img.tint[src*="otp-"] { filter: url(#cleanArt) var(--tint-filter); }
.stage .sheet:not(.show) { box-shadow: none; }
.code pre { max-height: 560px; overflow-y: auto; }
