/* klosr.io. Plain CSS on purpose: production has no front-end build step.
   Colours and type come from the Klosr brand kit. */
:root {
    --navy: #0D1B2A;
    --navy-2: #15263B;
    --navy-3: #22364F;
    --blue: #1D5FD1;
    --blue-dark: #1448A3;
    --blue-light: #6E9BEF;
    --mist: #EEF1F5;
    --white: #FFFFFF;
    --ink-2: #3B4A5E;
    --ink-3: #56647A;
    --line: #DCE2EA;
    --on-navy: #F2F5FA;
    --on-navy-2: #C3CCDA;
    --live: #5FD3A0;
    --radius: 20px;
    --gutter: clamp(16px, 4vw, 48px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--mist);
    color: var(--navy);
    font-family: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: fixed; top: 12px; left: 12px; z-index: 60; transform: translateY(-200%); background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 10px; }
.skip:focus { transform: none; }

h1, h2 { font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; max-width: 19em; }
h3 { font-weight: 600; letter-spacing: -.015em; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
    padding: 14px 26px; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 44px; padding: 9px 18px; border-radius: 10px; font-size: 15px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); }
.btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.nav.is-stuck { background: rgba(13, 27, 42, .78); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.nav__logo { flex: none; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: rgba(255, 255, 255, .86); padding: 10px 0; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav__docs { text-decoration: none; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 500; padding: 10px 0; transition: color .2s; }
.nav__docs:hover { color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); min-height: min(100svh, 1000px); display: flex; }
.hero__photo { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 27, 42, .5) 0, rgba(13, 27, 42, 0) 16%),
        linear-gradient(90deg, #0D1B2A 0, #0D1B2A 22%, rgba(13, 27, 42, .72) 36%, rgba(13, 27, 42, 0) 49%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); align-items: end; gap: 40px; padding-block: 132px 64px; }
.hero__copy { align-self: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 500; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.hero h1 { margin-top: 24px; font-size: clamp(46px, 5.6vw, 84px); line-height: 1; }
.hero h1 span { color: var(--blue-light); }
.hero__lead { margin-top: 24px; max-width: 27em; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--on-navy-2); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; color: var(--on-navy-2); }
.langs li { padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; }

.chat {
    justify-self: end; width: min(100%, 400px); border-radius: 22px; overflow: hidden;
    background: rgba(13, 27, 42, .58); border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 70px rgba(13, 27, 42, .45);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.chat__head img { border-radius: 9px; }
.chat__head span { display: flex; flex-direction: column; line-height: 1.3; }
.chat__head strong { font-size: 15px; font-weight: 600; }
.chat__head small { font-size: 12px; color: var(--on-navy-2); }
.chat__body { display: flex; flex-direction: column; gap: 9px; padding: 16px; font-size: 14px; line-height: 1.45; }
.msg { max-width: 84%; padding: 9px 13px; color: var(--navy); }
.msg--in { align-self: flex-end; background: #D9F2D0; border-radius: 14px 14px 4px 14px; }
.msg--out { align-self: flex-start; background: var(--white); border-radius: 14px 14px 14px 4px; }
.msg b { color: var(--blue); font-weight: 600; }
.msg[lang='ar'] { font-family: 'Noto Sans Arabic', sans-serif; }
.chat__note { padding: 0 16px 12px; font-size: 12px; color: var(--on-navy-2); }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section + .section--tight:not(.section--white) { padding-top: 0; }
.eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow--light { color: var(--blue-light); }
.section__lead { margin-top: 20px; max-width: 42em; font-size: 19px; color: var(--ink-2); }
.section--navy .section__lead { color: var(--on-navy-2); }

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { padding-top: 22px; border-top: 2px solid var(--navy); }
.steps__no { font-size: 15px; font-weight: 600; color: var(--blue); }
.steps h3 { margin-top: 12px; font-size: 24px; }
.steps p { margin-top: 8px; color: var(--ink-2); }

.path { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.path li { padding: 8px 14px; border: 1px solid #C7CFDB; border-radius: 999px; color: var(--ink-2); background: var(--white); }
.path .path__end { background: var(--navy); border-color: var(--navy); color: var(--white); }

.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; }
.card p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.card--next { background: transparent; border: 1px dashed #9AA8BC; }
.card--next h3 { margin-top: 0; }

/* Hooks Engine */
.engine { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.features { margin-top: 32px; display: grid; gap: 18px; }
.features li { display: flex; align-items: flex-start; gap: 14px; }
.features p { font-size: 16px; color: var(--on-navy-2); }
.features strong { color: var(--white); font-weight: 600; }
.tag { flex: none; display: inline-block; margin-top: 2px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag--live { background: #1F6F4A; color: #E6F6EE; }
.tag--next { background: var(--blue); color: var(--white); }

.scores { background: var(--white); color: var(--navy); border-radius: 24px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.scores__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.scores__head strong { font-size: 17px; font-weight: 600; }
.scores__head span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-3); }
.score { margin-top: 18px; }
.score__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.score__row b { font-weight: 600; }
.score__row em { font-style: normal; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.score__row em.is-lead { color: #1F6F4A; }
.score__row em.is-low { color: #8A5A12; }
.score i { display: block; position: relative; height: 8px; margin: 8px 0 6px; border-radius: 8px; background: var(--mist); }
.score i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; background: var(--blue); }
.score i.is-mid::after { background: #9DB4DC; }
.score i.is-low::after { background: #CBD6EA; }
.score small { font-size: 12px; color: var(--ink-3); }
.scores__note { margin-top: 18px; font-size: 12px; color: var(--ink-3); }

.tuning {
    margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 48px); border-radius: 24px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
    background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px solid rgba(255, 255, 255, .1);
}
.tuning h3 { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--white); }
.tuning p { margin-top: 14px; color: var(--on-navy-2); }
.loop { display: grid; gap: 10px; }
.loop li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; color: var(--white); font-weight: 500; }
.loop small { font-size: 13px; color: var(--live); font-weight: 600; }
.loop .loop__next { border-style: dashed; border-color: var(--blue-light); }
.loop .loop__next small { color: var(--blue-light); }

.built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.built article { padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--navy); color: var(--on-navy-2); }
.built h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; color: var(--white); }
.built article > p:last-child { margin-top: 12px; }

.pricing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }

/* Waiting list */
.waitlist { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: clamp(80px, 10vw, 140px); }
.waitlist__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .95; }
.waitlist::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 27, 42, .86) 0, rgba(13, 27, 42, .3) 58%, rgba(13, 27, 42, .12) 100%); }
.waitlist__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.waitlist__copy p { margin-top: 18px; max-width: 30em; font-size: 19px; color: var(--on-navy); }
.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 32px); border-radius: 24px; background: var(--white); color: var(--navy); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #C7CFDB; border-radius: 10px; background: #F6F8FB; color: var(--navy); font: inherit; font-size: 16px; }
.field input { min-height: 50px; }
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #66728A; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: var(--white); }
.field [aria-invalid='true'] { border-color: #B3261E; }
.field__error { font-size: 14px; color: #B3261E; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form__fine { font-size: 13px; color: var(--ink-3); text-align: center; }
.form__fine a { color: var(--blue); }
.form--done { text-align: center; justify-items: center; padding-block: 48px; }
.form--done svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #E6F6EE; fill: none; stroke: #1F6F4A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form--done h3 { font-size: 24px; }
.form--done:focus { outline: none; }

.footer { background: var(--navy); color: var(--on-navy-2); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; color: var(--white); }
.footer a:hover { text-decoration: underline; }

/* Privacy */
.legal-top { background: var(--navy); color: var(--white); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.legal-top img { height: 30px; width: auto; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.legal h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; }
.legal__date { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.legal p, .legal ul { margin-top: 10px; color: var(--ink-2); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--blue); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .card.reveal:nth-child(2), .js .features li.reveal:nth-child(2), .js .built .reveal:nth-child(2) { transition-delay: .08s; }
.js .card.reveal:nth-child(3), .js .features li.reveal:nth-child(3) { transition-delay: .16s; }
.js .card.reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }
.msg { animation: rise .5s var(--ease) both; }
.msg:nth-child(1) { animation-delay: .3s; }
.msg:nth-child(2) { animation-delay: .9s; }
.msg:nth-child(3) { animation-delay: 1.5s; }
.msg:nth-child(4) { animation-delay: 2.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
    .nav__links { display: none; }
    .hero { display: block; min-height: 0; }
    .hero__photo { top: auto; bottom: 0; left: 0; width: 100%; height: 620px; object-fit: cover; object-position: 50% 30%; }
    .hero__shade { background: linear-gradient(180deg, #0D1B2A 0, #0D1B2A calc(100% - 620px), rgba(13, 27, 42, .15) calc(100% - 360px), rgba(13, 27, 42, 0) 100%); }
    .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 300px; padding-block: 120px 32px; }
    .chat { justify-self: center; }
    .cards, .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .engine, .tuning, .waitlist__grid { grid-template-columns: minmax(0, 1fr); }
    .waitlist__grid { justify-items: stretch; }
    .waitlist::before { background: rgba(13, 27, 42, .66); }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav__inner { gap: 12px; min-height: 64px; }
    .nav__actions { gap: 16px; }
    .nav__logo img { height: 26px; }
    .hero__grid { gap: 400px; padding-top: 104px; }
    .hero__photo { height: 860px; object-position: 50% 0; }
    .hero__shade { background: linear-gradient(180deg, #0D1B2A 0, #0D1B2A calc(100% - 860px), rgba(13, 27, 42, 0) calc(100% - 700px)); }
    .hero__cta .btn { flex: 1 1 100%; }
    .steps, .built, .cards, .cards--three { grid-template-columns: minmax(0, 1fr); }
    .steps { gap: 24px; margin-top: 40px; }
    .pricing .btn { width: 100%; }
}

/* ------------------------------------------------------------------
   docs.klosr.io: the documentation hub (blueprint v1.0, M3).
   A reference manual beside the panel: Mist around white paper, navy
   ink, Klosr Blue only where something can be clicked. Borders, not
   shadows, except on the screenshots, which sit on the page like the
   panel itself. Every section starts with its path in the panel's menu.
   ------------------------------------------------------------------ */
body.docs { font-size: 16px; line-height: 1.65; background: var(--mist); }
.docs { --paper: #FFFFFF; --rule: rgba(13, 27, 42, .09); --rule-strong: rgba(13, 27, 42, .16); --ink-soft: var(--ink-3); --docs-top: 60px; }

.docs-top { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--on-navy); }
.docs-top__inner { display: flex; align-items: center; gap: 16px; height: var(--docs-top); padding-inline: 24px; max-width: 1480px; margin: 0 auto; }
.docs-top__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.docs-top__brand img { height: 26px; width: auto; }
.docs-top__label { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: 15px; font-weight: 500; color: var(--on-navy-2); letter-spacing: .01em; }
.docs-top__app { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--on-navy); text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; transition: background-color .15s var(--ease); }
.docs-top__app:hover { background: rgba(255, 255, 255, .08); }

.docs-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr) 216px; gap: 0; max-width: 1480px; margin: 0 auto; align-items: start; }

/* Chapters, left */
.docs-nav { position: sticky; top: var(--docs-top); max-height: calc(100vh - var(--docs-top)); overflow-y: auto; padding: 32px 16px 32px 24px; }
.docs-nav__menu > summary { display: none; }
.docs-nav__chapters { display: grid; gap: 2px; }
.docs-nav__chapters > li > a { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.docs-nav__chapters > li > a:hover { background: rgba(13, 27, 42, .05); color: var(--navy); }
.docs-nav__chapters > li.is-current > a { background: var(--paper); color: var(--navy); box-shadow: inset 0 0 0 1px var(--rule); }
.docs-nav__number { font-size: 12px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.docs-nav__sections { display: grid; gap: 1px; margin: 6px 0 10px 37px; padding-left: 12px; border-left: 1px solid var(--rule-strong); }
.docs-nav__sections a { display: block; padding: 4px 8px; font-size: 14px; line-height: 1.45; color: var(--ink-3); text-decoration: none; border-radius: 6px; }
.docs-nav__sections a:hover { color: var(--blue); }

/* The page */
.docs-main { min-width: 0; padding: 32px 24px 64px; }
.docs-article { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 48px 56px 56px; counter-reset: figure; }
.docs-article h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; max-width: 18em; }
.docs-article h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; margin: 0 0 8px; max-width: none; }
.docs-article h3 { font-size: 18px; line-height: 1.35; margin: 32px 0 8px; }
.docs-article p, .docs-article ul, .docs-article ol, .docs-article dl, .docs-article table, .docs-article pre { margin: 0 0 16px; max-width: 46em; }
.docs-article p { text-wrap: pretty; }
.docs-article a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.docs-article a:hover { color: var(--blue-dark); }
.docs-article ul { list-style: disc; padding-left: 22px; }
.docs-article ol { list-style: decimal; padding-left: 22px; }
.docs-article li { margin-bottom: 6px; }
.docs-article li::marker { color: var(--ink-3); }
.docs-article strong { font-weight: 600; color: var(--navy); }
.docs-article code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; background: var(--mist); border-radius: 5px; padding: 2px 6px; }
.docs-article pre { background: var(--navy); color: var(--on-navy); border-radius: 12px; padding: 16px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.docs-article pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.docs-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px !important; }
.docs-lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-top: 16px !important; }

.docs-section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--docs-top) + 16px); }
.docs-section:first-of-type { border-top: 0; margin-top: 24px; padding-top: 16px; }

/* The signature: where the screen is, as the panel's own menu reads */
.docs-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; margin-bottom: 12px !important; }
.docs-path__label { color: var(--ink-3); margin-right: 4px; }
.docs-path__step { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--mist); color: var(--navy); font-weight: 500; }
.docs-path__step + .docs-path__step::before { content: "›"; margin: 0 8px 0 -2px; color: var(--ink-3); font-weight: 400; }
.docs-path__step + .docs-path__step { padding-left: 0; background: none; }

/* Screenshots */
.docs-figure { margin: 24px 0 28px; max-width: none; }
.docs-figure__frame { display: block; border-radius: 12px; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 1px rgba(13, 27, 42, .1), 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px -8px rgba(13, 27, 42, .14); transition: box-shadow .2s var(--ease); }
.docs-figure__frame:hover { box-shadow: 0 0 0 1px rgba(29, 95, 209, .45), 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px -8px rgba(13, 27, 42, .18); }
.docs-figure img { width: 100%; height: auto; }
.docs-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.docs-figure figcaption::before { counter-increment: figure; content: "Figure " attr(data-chapter) "." counter(figure); font-weight: 600; color: var(--ink-2); margin-right: 8px; }

/* Parts of a screen, explained in order */
.docs-parts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px 24px; margin: 0 0 20px; max-width: 46em; }
.docs-parts dt { font-weight: 600; color: var(--navy); }
.docs-parts dd { margin: 0; color: var(--ink-2); }

.docs-note { border-left: 3px solid var(--blue); background: #F4F7FD; border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0; max-width: 46em; }
.docs-note p { margin: 0 !important; color: var(--ink-2); }
.docs-note--warn { border-left-color: #C77700; background: #FFF8EC; }

.docs-article table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.docs-article th, .docs-article td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.docs-article th { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--mist); }

/* Home */
.docs-starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 48px; }
.docs-start { display: grid; gap: 4px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--rule-strong); text-decoration: none; color: var(--navy) !important; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.docs-start:hover { border-color: var(--blue); transform: translateY(-1px); }
.docs-start--tech { background: var(--navy); border-color: var(--navy); color: var(--on-navy) !important; }
.docs-start__kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.docs-start--tech .docs-start__kicker { color: var(--blue-light); }
.docs-start__title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.docs-start__text { font-size: 15px; color: var(--ink-3); }
.docs-start--tech .docs-start__text { color: var(--on-navy-2); }
.docs-home__heading { margin-bottom: 16px !important; }
.docs-chapters { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: none !important; }
.docs-chapters li { margin: 0; border-top: 1px solid var(--rule); }
.docs-chapters a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 8px; padding: 16px 0; text-decoration: none; }
.docs-chapters__number { grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 3px; }
.docs-chapters__title { font-size: 17px; font-weight: 600; color: var(--navy); }
.docs-chapters a:hover .docs-chapters__title { color: var(--blue); }
.docs-chapters__summary { font-size: 15px; color: var(--ink-3); line-height: 1.5; }

/* On this page, right */
.docs-toc { position: sticky; top: var(--docs-top); max-height: calc(100vh - var(--docs-top)); overflow-y: auto; padding: 40px 24px 32px 8px; font-size: 13px; }
.docs-toc__title { font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.docs-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--rule-strong); }
.docs-toc a { display: block; padding: 4px 0 4px 12px; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
.docs-toc a:hover { color: var(--blue); }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); max-width: none !important; }
.docs-pager__link { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--rule-strong); border-radius: 12px; text-decoration: none !important; color: var(--navy) !important; font-weight: 600; }
.docs-pager__link span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.docs-pager__link:hover { border-color: var(--blue); }
.docs-pager__link--next { grid-column: 2; text-align: right; }

.docs-foot { border-top: 1px solid var(--rule); }
.docs-foot__inner { max-width: 1480px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

@media (max-width: 1240px) {
    .docs-shell { grid-template-columns: 256px minmax(0, 1fr); }
    .docs-toc { display: none; }
}

@media (max-width: 880px) {
    .docs-shell { grid-template-columns: minmax(0, 1fr); }
    .docs-nav { position: static; max-height: none; padding: 16px 16px 0; }
    .docs-nav__menu > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; font-weight: 600; font-size: 15px; }
    .docs-nav__menu > summary::-webkit-details-marker { display: none; }
    .docs-nav__menu > summary::after { content: "Chapters ▾"; font-size: 13px; font-weight: 500; color: var(--blue); }
    .docs-nav__menu[open] > summary { margin-bottom: 8px; }
    .docs-nav__menu[open] .docs-nav__chapters { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 8px; }
    .docs-main { padding: 16px 16px 48px; }
    .docs-article { padding: 28px 20px 32px; border-radius: 12px; }
    .docs-article h1 { font-size: 30px; }
    .docs-article h2 { font-size: 22px; }
    .docs-lede { font-size: 17px; }
    .docs-starts, .docs-chapters { grid-template-columns: minmax(0, 1fr); }
    .docs-parts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .docs-parts dd { margin-bottom: 10px; }
    .docs-top__inner { padding-inline: 16px; }
    .docs-pager { grid-template-columns: minmax(0, 1fr); }
    .docs-pager__link--next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-start, .docs-figure__frame, .docs-top__app { transition: none; }
    .docs-start:hover { transform: none; }
}
