/* gbt.chat – design "Paper": cream paper, ink text, terracotta accent, serif display + Inter.
   Tokens and fonts: tokens.css. Prefix "pa-" (site), "xp-" (cross-promo, block between promo:start and promo:end,
   extracted to promo.css for the chat page by build.mjs). Breakpoints: 1100 (nav → sheet), 900, 720 (phones). */

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); hanging-punctuation: first; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.62 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
html.pa-locked, html.pa-locked body { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.pa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pa-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); text-decoration: none; }
.pa-skip:focus { top: 10px; }
.pa-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pa-narrow { max-width: 780px; }
.pa-fill { flex: 1 1 auto; }
.pa-muted { color: var(--muted); }
.pa-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pa-logo-co { stroke: none; }
[dir="rtl"] .pa-flip { transform: scaleX(-1); }
.pa-h3 { font: 600 1.3rem/1.25 var(--font-serif); letter-spacing: -.005em; margin-bottom: 8px; }
.pa-id { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font: 500 .78rem/1.5 var(--font-mono); letter-spacing: 0; vertical-align: middle; white-space: nowrap; }

/* ---------------------------------------------------------------- buttons, chips, tags, tiles, seals */
.pa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.pa-btn .pa-i { width: 18px; height: 18px; }
.pa-btn--ink { background: var(--accent); color: var(--on-accent); }
.pa-btn--ink:hover { background: var(--accent-hover); color: var(--on-accent); }
.pa-btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.pa-btn--ghost:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--text); }
.pa-btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.pa-btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.pa-btn--block { display: flex; width: 100%; }
.pa-btn.pa-done { border-color: var(--success); color: var(--success); }
.pa-icbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--radius-pill); background: none; color: var(--text-2); }
.pa-icbtn:hover, .pa-pop.is-open > .pa-icbtn { background: var(--surface-2); color: var(--text); }
.pa-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2); font-size: .88rem; font-weight: 500; }
.pa-chip .pa-i { width: 17px; height: 17px; }
.pa-chip:hover { border-color: var(--border-2); color: var(--text); }
.pa-chip[aria-pressed="true"] { background: var(--brand-wash); border-color: var(--brand); color: var(--link); }
.pa-chev { width: 15px; height: 15px; transition: transform .15s var(--ease); }
[aria-expanded="true"] > .pa-chev { transform: rotate(180deg); }
.pa-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-2); font-size: .78rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.pa-tag .pa-i { width: 14px; height: 14px; }
.pa-tag--app { background: var(--brand-wash); color: var(--link); }
.pa-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pa-tile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); }
.pa-tile .pa-i { width: 22px; height: 22px; }
.pa-tile--sm { width: 34px; height: 34px; border-radius: 10px; }
.pa-tile--sm .pa-i { width: 18px; height: 18px; }
.pa-tile--lg { width: 60px; height: 60px; border-radius: 16px; }
.pa-tile--lg .pa-i { width: 28px; height: 28px; }
.pa-tint--blue { background: var(--tint-blue-bg); color: var(--tint-blue); }
.pa-tint--rose { background: var(--tint-rose-bg); color: var(--tint-rose); }
.pa-tint--clay { background: var(--tint-clay-bg); color: var(--tint-clay); }
.pa-tint--green { background: var(--tint-green-bg); color: var(--tint-green); }
.pa-seal { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); }
.pa-seal .pa-i { width: 22px; height: 22px; }
.pa-seal--sm { width: 30px; height: 30px; }
.pa-seal--sm .pa-i { width: 16px; height: 16px; }
.pa-seal--lg { width: 52px; height: 52px; }
.pa-seal--lg .pa-i { width: 28px; height: 28px; }
.pa-seal--xl { width: 72px; height: 72px; box-shadow: var(--shadow-paper); }
.pa-seal--xl .pa-i { width: 38px; height: 38px; }
.pa-mark--sm { width: 20px; height: 20px; }
.pa-mark--xl { width: 56px; height: 56px; }
.pa-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; }
.pa-pill .pa-i { inline-size: 15px; block-size: 15px; color: var(--brand); }
.pa-pill:hover { border-color: var(--brand); color: var(--text); }
.pa-pill.pa-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.pa-pill--more { color: var(--link); }
.pa-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pa-more { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.pa-more .pa-i { width: 17px; height: 17px; transition: transform .15s var(--ease); }
.pa-more:hover { color: var(--text); }
.pa-more:hover .pa-i { transform: translateX(3px); }
[dir="rtl"] .pa-more:hover .pa-i { transform: scaleX(-1) translateX(3px); }

/* ---------------------------------------------------------------- header */
.pa-top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pa-top.is-raised { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(80, 60, 30, .05); }
.pa-top-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.pa-logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--text); text-decoration: none; }
.pa-logo:hover { color: var(--text); }
.pa-word { font: 600 1.32rem/1 var(--font-serif); letter-spacing: -.01em; }
.pa-word-dot { color: var(--brand); }
.pa-nav { flex: 1 1 auto; min-width: 0; }
.pa-nav-list { display: flex; align-items: center; gap: 0 2px; margin: 0; padding: 0; list-style: none; }
.pa-nav-a { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-2); font-size: .93rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.pa-nav-a:hover, .pa-drop.is-open > .pa-nav-a { background: var(--surface-2); color: var(--text); }
.pa-nav-a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.pa-top-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.pa-top-cta { margin-inline-start: 6px; min-height: 40px; padding: 0 18px; }
.pa-burger { display: none; }
.pa-langs-code { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* popovers */
.pa-pop { position: relative; }
.pa-pop-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50; min-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lift); }
.pa-pop-panel.is-flip { inset-inline-end: auto; inset-inline-start: 0; }
.pa-themes-panel button, .pa-pick-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: .92rem; text-align: start; text-decoration: none; }
.pa-themes-panel button:hover, .pa-pick-o:hover { background: var(--surface-2); color: var(--text); }
.pa-themes-panel [aria-checked="true"] { color: var(--link); font-weight: 600; }
.pa-i-moon, [data-theme="dark"] .pa-i-sun { display: none; }
[data-theme="dark"] .pa-i-moon { display: block; }
.pa-langs-panel { width: 280px; padding: 0; overflow: hidden; }
.pa-langs-find { display: flex; align-items: center; gap: 8px; margin: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--muted); }
.pa-langs-find input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; outline: none; color: var(--text); }
.pa-langs-list { max-height: min(360px, 56vh); margin: 0; padding: 0 8px 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.pa-langs-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem; }
.pa-langs-list a:hover, .pa-langs-list a:focus-visible { background: var(--surface-2); }
.pa-langs-list small { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.pa-langs-list [aria-current] { color: var(--link); font-weight: 600; }
.pa-langs-list .pa-i { width: 16px; height: 16px; }
.pa-langs--up .pa-pop-panel { top: auto; bottom: calc(100% + 8px); }

/* nav drop-downs */
.pa-drop { position: relative; }
.pa-drop-panel { inset-inline-end: auto; inset-inline-start: -8px; padding: 10px; border-radius: 18px; }
.pa-drop-panel::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.pa-drop--models { width: 560px; }
.pa-drop--tools { width: 640px; }
.pa-drop--compare, .pa-drop--for { width: 470px; }
.pa-drop-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.pa-drop-side { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pa-drop-k { margin: 2px 0 6px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pa-menu, .pa-menu-links { margin: 0; padding: 0; list-style: none; }
.pa-menu--2 { display: grid; grid-template-columns: 1fr 1fr; }
.pa-menu--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.pa-menu-a, .pa-menu-t { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: .91rem; }
.pa-menu-a:hover, .pa-menu-t:hover, .pa-menu-a:focus-visible, .pa-menu-t:focus-visible { background: var(--surface-2); color: var(--text); }
.pa-menu-a strong { display: block; font-weight: 600; }
.pa-menu-a small { display: block; color: var(--muted); font-size: .8rem; }
.pa-menu-l { display: block; padding: 7px 0; color: var(--text); font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--border); }
.pa-menu-links li:last-child .pa-menu-l { border-bottom: 0; }
.pa-menu-l:hover { color: var(--link); }
.pa-drop-all { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; padding: 9px 10px 4px; border-top: 1px solid var(--border); color: var(--link); font-size: .86rem; font-weight: 600; text-decoration: none; }
.pa-drop-all .pa-i { width: 16px; height: 16px; }

/* phone sheet: a cream drawer over the page */
.pa-sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--drawer); }
.pa-sheet-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); }
.pa-sheet-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.pa-sheet-ask { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--radius-composer); background: var(--surface); box-shadow: var(--shadow-composer); color: var(--text); font-weight: 600; text-decoration: none; }
.pa-sheet-ask span { flex: 1; }
.pa-sheet-ask .pa-i:first-child { color: var(--brand); }
.pa-sheet-k { margin: 6px 4px 6px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pa-sheet-list { margin: 0 0 6px; padding: 0; list-style: none; }
.pa-sheet-list a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.pa-sheet-list a:hover { background: var(--surface-2); }
.pa-sheet-list .pa-i { color: var(--muted); }
.pa-sheet-all { color: var(--link) !important; font-weight: 600; }
.pa-sheet-grp { border-top: 1px solid var(--border); }
.pa-sheet-grp summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 8px; font-weight: 600; cursor: pointer; list-style: none; }
.pa-sheet-grp summary::-webkit-details-marker { display: none; }
.pa-sheet-grp[open] summary .pa-i { transform: rotate(180deg); }
.pa-sheet-plain { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 14px 8px 0; border-top: 1px solid var(--border); list-style: none; }
.pa-sheet-plain a { display: inline-block; padding: 8px 0; color: var(--text-2); text-decoration: none; }
.pa-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--drawer); }
.pa-seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); }
.pa-seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); font-size: .84rem; }
.pa-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.pa-seg .pa-i { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- home: greeting hero + composer */
.pa-hello { padding: 54px 0 34px; }
.pa-hello-in { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; }
.pa-greet { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.pa-hello-h { max-width: 16ch; font: 500 clamp(2.3rem, 5.4vw, 3.7rem)/1.08 var(--font-serif); letter-spacing: -.02em; }
.pa-hello-h em, .pa-phone-h em { color: var(--brand); font-style: italic; font-weight: 500; }
.pa-hello-sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.pa-composer { width: 100%; max-width: 720px; margin-top: 30px; padding: 16px 16px 12px; border: 1px solid var(--border); border-radius: var(--radius-composer); background: var(--surface); box-shadow: var(--shadow-composer); text-align: start; }
.pa-composer:focus-within { border-color: var(--border-2); }
.pa-composer textarea { display: block; width: 100%; min-height: 56px; max-height: 240px; padding: 4px 6px; border: 0; background: none; outline: none; resize: none; color: var(--text); font-size: 1.05rem; line-height: 1.5; }
.pa-composer textarea::placeholder { color: var(--faint-text, var(--muted)); }
.pa-composer-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pa-round { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-2); }
.pa-round:hover { background: var(--surface-2); color: var(--text); }
.pa-round .pa-i { width: 18px; height: 18px; }
.pa-chip--model { background: var(--surface-2); border-color: transparent; color: var(--text); }
.pa-pick-panel { width: 330px; inset-inline-end: auto; inset-inline-start: 0; }
.pa-composer-row .pa-pick-panel { top: auto; bottom: calc(100% + 10px); }
.pa-pick-o { align-items: flex-start; padding: 10px; }
.pa-pick-t { flex: 1; min-width: 0; }
.pa-pick-t strong { display: block; font-weight: 600; font-size: .93rem; }
.pa-pick-t small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.pa-pick-ok { width: 18px; height: 18px; margin-top: 6px; color: var(--brand); visibility: hidden; }
.pa-pick-o[aria-checked="true"] .pa-pick-ok { visibility: visible; }
.pa-pick-o.pa-lock .pa-tag { margin-top: 4px; }
.pa-send { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.pa-send:hover { background: var(--accent-hover); }
.pa-send .pa-i { width: 20px; height: 20px; stroke-width: 2; }
.pa-hello-note { margin-top: 12px; color: var(--muted); font-size: .86rem; }
.pa-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 920px; margin: 30px 0 0; padding: 0; list-style: none; }
.pa-quick-a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-paper); color: var(--text); text-align: start; text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.pa-quick-a:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.pa-quick-t strong { display: block; font-weight: 600; font-size: .96rem; }
.pa-quick-t small { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.pa-ideas { width: 100%; max-width: 720px; margin-top: 26px; text-align: start; }
.pa-ideas-k { margin: 0 0 4px 4px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pa-ideas-list { margin: 0; padding: 0; list-style: none; }
.pa-ideas-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.pa-ideas-list li:last-child a { border-bottom: 0; }
.pa-ideas-list a:hover { color: var(--link); }
.pa-ideas-list .pa-i { inline-size: 17px; block-size: 17px; color: var(--muted); }

/* ---------------------------------------------------------------- numbered editorial sections */
.pa-sec { padding: 64px 0; }
.pa-sec + .pa-sec { border-top: 1px solid var(--border); }
.pa-sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 22px; margin-bottom: 30px; }
.pa-num { color: var(--link); font: italic 500 1.05rem/1 var(--font-serif); letter-spacing: .02em; }
.pa-sec-head > .pa-num { align-self: start; padding-top: 12px; }
.pa-sec-copy { max-width: 720px; }
.pa-sec-title { font: 500 clamp(1.75rem, 3.2vw, 2.4rem)/1.15 var(--font-serif); letter-spacing: -.015em; }
.pa-sec-intro { margin-top: 10px; color: var(--muted); font-size: 1.04rem; }
.pa-sec-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.pa-sec-links a { font-weight: 500; }

/* models ledger */
.pa-ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.pa-ledger-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 4px; border-bottom: 1px solid var(--border); }
.pa-ledger-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 600 1.35rem/1.2 var(--font-serif); }
.pa-ledger-t a { color: var(--text); text-decoration: none; }
.pa-ledger-t a:hover { color: var(--link); }
.pa-ledger-main > p:not(.pa-tags) { max-width: 640px; margin-top: 6px; color: var(--text-2); }
.pa-ledger-row.pa-inapp .pa-seal { border-style: dashed; }

/* steps */
.pa-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pa-steps li { position: relative; padding: 0 18px 0 0; }
.pa-steps li + li { padding-inline-start: 18px; border-inline-start: 1px solid var(--border); }
.pa-steps-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid var(--brand); border-radius: 50%; color: var(--brand); font: 600 1rem/1 var(--font-serif); }
.pa-steps p { color: var(--text-2); font-size: .95rem; }

/* features */
.pa-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-inline-start: 1px solid var(--border); }
.pa-feat { padding: 26px 24px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.pa-feat-i { width: 26px; height: 26px; margin-bottom: 14px; color: var(--brand); }
.pa-feat h3 { margin-bottom: 6px; font: 600 1.12rem/1.3 var(--font-serif); }
.pa-feat p { color: var(--muted); font-size: .95rem; }

/* tools index */
.pa-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.pa-index a { display: flex; align-items: flex-start; gap: 13px; padding: 15px 2px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.pa-index a:hover strong { color: var(--link); }
.pa-index strong { display: block; font-weight: 600; }
.pa-index small { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .85rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pa-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }

/* app panel */
.pa-app { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 44px 48px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-paper); }
.pa-app-copy .pa-num { display: block; margin-bottom: 12px; }
.pa-app-copy > p { margin-top: 12px; color: var(--text-2); font-size: 1.04rem; }
.pa-checks { margin: 20px 0 0; padding: 0; list-style: none; }
.pa-checks li { display: flex; gap: 10px; padding: 6px 0; }
.pa-checks .pa-i { inline-size: 19px; block-size: 19px; margin-block-start: 3px; color: var(--success); stroke-width: 2.2; }
.pa-app-get { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.pa-app-one { display: none; }
.pa-app-qr { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: .82rem; max-width: 220px; }
.pa-app-qr img { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.pa-app-get.is-ios .xp-store-android, .pa-app-get.is-android .xp-store-ios { display: none; }
.pa-app-get.is-ios .pa-app-qr, .pa-app-get.is-android .pa-app-qr { display: none; }
.pa-phone { display: flex; justify-content: center; }
.pa-phone-in { display: flex; flex-direction: column; width: 270px; height: 500px; padding: 18px 16px 16px; border: 9px solid var(--text); border-radius: 40px; background: var(--bg); box-shadow: var(--shadow-lift); overflow: hidden; }
.pa-phone-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: .74rem; }
.pa-phone-top .pa-i { width: 17px; height: 17px; }
.pa-phone-model { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--text); }
.pa-phone-model .pa-i { width: 13px; height: 13px; }
.pa-phone-bolt { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-weight: 600; }
.pa-phone-bolt .pa-i { width: 13px; height: 13px; color: var(--bolt); fill: var(--bolt); }
.pa-phone-hi { margin-top: 44px; color: var(--muted); font-size: .78rem; text-align: center; }
.pa-phone-h { margin-top: 4px; font: 500 1.3rem/1.15 var(--font-serif); text-align: center; }
.pa-phone-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.pa-phone-acts > span { display: flex; flex-direction: column; gap: 6px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .66rem; font-weight: 600; line-height: 1.25; }
.pa-phone-acts .pa-tile--sm { width: 24px; height: 24px; border-radius: 7px; }
.pa-phone-acts .pa-tile--sm .pa-i { width: 13px; height: 13px; }
.pa-phone-box { margin-top: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.pa-phone-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pa-phone-row .pa-i { width: 14px; height: 14px; }
.pa-phone-think { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.pa-phone-row i { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-start: auto; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

/* about */
.pa-about-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.pa-about-text p { max-width: 680px; color: var(--text-2); font-size: 1.06rem; line-height: 1.72; }
.pa-about-text p + p { margin-top: 14px; }
.pa-drop-cap::first-letter { float: inline-start; margin: 6px 10px 0 0; color: var(--brand); font: 500 3.6rem/.8 var(--font-serif); }
[dir="rtl"] .pa-drop-cap::first-letter { margin: 6px 0 0 10px; }
.pa-about-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.pa-about-links a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; text-decoration: none; }
.pa-about-links a:hover { color: var(--link); }
.pa-about-links .pa-i { color: var(--brand); }

/* compare strip */
.pa-cmp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.pa-cmp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.pa-cmp-list a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; text-decoration: none; }
.pa-cmp-list a span:nth-child(2) { flex: 1; }
.pa-cmp-list a > .pa-i { inline-size: 16px; block-size: 16px; color: var(--muted); }
.pa-cmp-list a:hover { color: var(--link); }
.pa-teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-2); color: var(--text); text-decoration: none; }
.pa-teaser:hover { border-color: var(--border-2); color: var(--text); }
.pa-teaser-t { font: 600 1.35rem/1.2 var(--font-serif); }
.pa-teaser-d { color: var(--text-2); }

/* cards */
.pa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pa-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-paper); color: var(--text); text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.pa-card:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.pa-card > .pa-tile, .pa-card > .pa-seal { margin: 20px 20px 0; }
.pa-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pa-card-img img, .pa-cover img, .pa-hubhead-art img, .pa-lost-art img, .xp-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 40%; }
.pa-card-in { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.pa-card-t { font: 600 1.14rem/1.3 var(--font-serif); }
.pa-card-d { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.pa-card-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.pa-card-meta .pa-i { width: 15px; height: 15px; }
.pa-card-meta.pa-inchat { color: var(--success); }
.pa-card-meta.pa-inapp { color: var(--link); }
.pa-cards--3 { grid-template-columns: repeat(3, 1fr); }
.pa-cards--photo .pa-card-img { aspect-ratio: 4 / 3; }
.pa-card--row { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; box-shadow: none; }
.pa-card--row > .pa-tile, .pa-card--row > .pa-seal { margin: 0; }
.pa-card--row .pa-card-in { padding: 0; gap: 3px; }
.pa-card--row .pa-card-t { font: 600 1rem/1.35 var(--font); }
.pa-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* FAQ */
.pa-faq-wrap { max-width: 920px; }
.pa-faq { border-top: 1px solid var(--border); }
.pa-qa { border-bottom: 1px solid var(--border); }
.pa-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font: 600 1.08rem/1.4 var(--font-serif); cursor: pointer; list-style: none; }
.pa-qa summary::-webkit-details-marker { display: none; }
.pa-qa summary:hover { color: var(--link); }
.pa-qa-i { width: 20px; height: 20px; color: var(--brand); transition: transform .2s var(--ease); }
.pa-qa[open] .pa-qa-i { transform: rotate(45deg); }
.pa-qa p { max-width: 760px; padding: 0 4px 20px; color: var(--text-2); }

/* languages + invitation */
.pa-sec--langs { padding: 46px 0; text-align: center; }
.pa-langs-h { font: 500 1.5rem/1.2 var(--font-serif); }
.pa-langline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; max-width: 900px; margin: 16px auto 0; }
.pa-langline a { padding: 4px 10px; border-radius: var(--radius-pill); color: var(--text-2); text-decoration: none; font-size: .95rem; }
.pa-langline a:hover { background: var(--surface-2); color: var(--text); }
.pa-langline a[aria-current] { background: var(--accent); color: var(--on-accent); }
.pa-invite { padding: 24px 0 72px; }
.pa-invite-in { display: flex; align-items: center; gap: 28px; padding: 36px 40px; border: 1px solid var(--brand-soft); border-radius: 24px; background: var(--brand-wash); }
.pa-invite-copy { flex: 1; }
.pa-invite h2 { font: 500 clamp(1.5rem, 2.8vw, 2rem)/1.2 var(--font-serif); }
.pa-invite p { margin-top: 6px; color: var(--text-2); }

/* ---------------------------------------------------------------- ads */
.pa-ad { position: relative; display: flex; flex-direction: column; align-items: center; margin: 30px auto; min-height: 120px; }
.pa-ad-label { margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.pa-ad > div { width: 100%; display: flex; justify-content: center; }
.pa-ad--wide { min-height: 280px; }
.pa-ad--inline { min-height: 300px; margin: 34px 0; }
.pa-ad--side { min-height: 270px; margin: 12px 0 0; }

/* ---------------------------------------------------------------- article pages */
.pa-head { padding: 40px 0 26px; }
.pa-head-in { display: flex; flex-direction: column; align-items: center; max-width: 860px; text-align: center; }
.pa-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.pa-crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: var(--border-2); }
.pa-crumbs a { color: var(--muted); text-decoration: none; }
.pa-crumbs a:hover { color: var(--link); }
.pa-crumbs [aria-current] { color: var(--text-2); }
.pa-head-art { margin-bottom: 18px; }
.pa-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--link); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pa-kicker .pa-i { width: 16px; height: 16px; }
.pa-title { font: 500 clamp(2rem, 4.6vw, 3.1rem)/1.12 var(--font-serif); letter-spacing: -.018em; }
.pa-title--md { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pa-lead { max-width: 680px; margin-top: 16px; color: var(--text-2); font-size: 1.14rem; line-height: 1.6; }
.pa-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; color: var(--muted); font-size: .86rem; }
.pa-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pa-meta .pa-i { width: 16px; height: 16px; }
.pa-head-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pa-versus { display: inline-flex; align-items: center; gap: 14px; }
.pa-versus i { color: var(--brand); font: italic 500 1.2rem/1 var(--font-serif); }
.pa-versus-s { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 9px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-paper); }
.pa-versus-s .pa-i, .pa-versus-s .pa-mark { width: 26px; height: 26px; }
.pa-versus-s b { font-weight: 600; }
.pa-stack { display: inline-flex; }
.pa-stack .pa-seal + .pa-seal { margin-inline-start: -8px; }
.pa-stack .pa-seal { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--bg); }
.pa-stack .pa-seal .pa-i { width: 22px; height: 22px; }
.pa-cover-wrap { max-width: 1088px; }
.pa-cover { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-2); aspect-ratio: 16 / 9; }

.pa-body { display: grid; grid-template-columns: minmax(0, 700px) 260px; justify-content: center; gap: 56px; padding: 10px 0 40px; }
.pa-body--solo { grid-template-columns: minmax(0, 720px); }
.pa-margin { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.pa-body > .pa-prose { grid-column: 1; grid-row: 1; }
.pa-toc { border-inline-start: 2px solid var(--border); padding-inline-start: 14px; }
.pa-toc summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; list-style: none; }
.pa-toc summary::-webkit-details-marker { display: none; }
.pa-toc summary .pa-i { width: 16px; height: 16px; }
.pa-toc[open] summary .pa-i { transform: rotate(180deg); }
.pa-toc ol { margin: 0; padding: 0; list-style: none; }
.pa-toc a { display: flex; gap: 8px; padding: 5px 0; color: var(--text-2); font-size: .87rem; line-height: 1.4; text-decoration: none; }
.pa-toc a:hover { color: var(--text); }
.pa-toc a[aria-current] { color: var(--link); font-weight: 600; }
.pa-toc-n { flex: none; color: var(--link); font: italic 500 .85rem/1.6 var(--font-serif); }
.pa-facts { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-paper); }
.pa-facts-h { margin-bottom: 8px; font: 600 1.05rem/1.3 var(--font-serif); }
.pa-facts dl { margin: 0; }
.pa-fact { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pa-fact dt { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pa-fact dd { margin: 2px 0 0; font-size: .87rem; line-height: 1.45; }
.pa-facts-src { display: inline-flex; align-items: center; gap: 5px; margin: 12px 0; font-size: .84rem; }
.pa-facts-src .pa-i { width: 14px; height: 14px; }
.pa-facts-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; color: var(--link); font-size: .86rem; font-weight: 600; }
.pa-facts-note .pa-i { width: 16px; height: 16px; }
.pa-facts .xp-stores { flex-direction: column; }

/* prose */
.pa-prose { min-width: 0; font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.pa-prose > * + * { margin-top: 1.05em; }
.pa-prose h2 { margin-top: 2.1em; font: 500 clamp(1.5rem, 2.6vw, 1.9rem)/1.22 var(--font-serif); letter-spacing: -.01em; }
.pa-prose h3 { margin-top: 1.7em; font: 600 1.2rem/1.35 var(--font-serif); }
.pa-prose h2 + *, .pa-prose h3 + * { margin-top: .6em; }
.pa-prose > :first-child { margin-top: 0; }
.pa-prose--num { counter-reset: pa-h2; }
.pa-prose--num h2::before { counter-increment: pa-h2; content: counter(pa-h2, decimal-leading-zero); display: block; margin-bottom: 6px; color: var(--brand); font: italic 500 .95rem/1 var(--font-serif); }
.pa-prose ul, .pa-prose ol { padding-inline-start: 1.3em; }
.pa-prose li + li { margin-top: .4em; }
.pa-prose li::marker { color: var(--brand); }
.pa-prose strong { font-weight: 600; }
.pa-prose a:not([class]) { color: var(--link); overflow-wrap: anywhere; }
.pa-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--brand); color: var(--text-2); font: italic 400 1.14rem/1.6 var(--font-serif); }
[dir="rtl"] .pa-prose blockquote { padding: 4px 20px 4px 0; }
.pa-prose code { padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); font: .88em/1.5 var(--font-mono); }
.pa-prose pre { overflow-x: auto; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--code-bg); font-size: .88rem; line-height: 1.6; }
.pa-prose pre code { padding: 0; background: none; }
.pa-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.pa-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.pa-table th, .pa-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.pa-table thead th { background: var(--surface-2); font-weight: 600; font-size: .84rem; }
.pa-table tbody tr:last-child > * { border-bottom: 0; }
.pa-note { padding: 16px 20px; border-radius: 14px; background: var(--surface-2); border-inline-start: 3px solid var(--border-2); }
.pa-note--tip { background: var(--brand-wash); border-inline-start-color: var(--brand); }
.pa-note > * + * { margin-top: .6em; }
.pa-intro { max-width: 760px; margin: 0 auto; }
.pa-prose--small { font-size: .95rem; }

/* keep reading */
.pa-next { padding: 30px 0 20px; }
.pa-next .pa-wrap { max-width: 1016px; }
.pa-next-h { margin-bottom: 10px; color: var(--muted); font: 600 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.pa-next-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.pa-next-a { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.pa-next-a:hover strong { color: var(--link); }
.pa-next-n { color: var(--link); font: italic 500 1.2rem/1 var(--font-serif); }
.pa-next-t { flex: 1; min-width: 0; }
.pa-next-t strong { display: block; font: 600 1.12rem/1.3 var(--font-serif); }
.pa-next-t span { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; }
.pa-next-a > .pa-i { color: var(--muted); }

/* hubs */
.pa-hubhead { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 900px; }
.pa-hubhead.pa-arty { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; max-width: 1180px; text-align: start; }
.pa-hubhead.pa-arty .pa-crumbs ol, .pa-hubhead.pa-arty .pa-meta { justify-content: flex-start; }
.pa-hubhead-art { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; aspect-ratio: 16 / 10; background: var(--surface-2); }
.pa-catalog { padding: 10px 0 30px; }
.pa-cat-h { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 18px; font: 500 1.6rem/1.2 var(--font-serif); }
.pa-catalog .pa-wrap > :first-child.pa-cat-h { margin-top: 10px; }
.pa-assist { border: 0; gap: 18px; }
.pa-assist-c { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.pa-assist-top { display: flex; align-items: center; gap: 12px; }
.pa-assist-c h2 { font: 600 1.12rem/1.3 var(--font-serif); }
.pa-assist-c > p { color: var(--muted); font-size: .92rem; }
.pa-assist-try { margin: 0; padding: 0; list-style: none; }
.pa-assist-try a { display: block; padding: 7px 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: .88rem; text-decoration: none; }
.pa-assist-try a::before { content: "“"; margin-inline-end: 3px; color: var(--brand); font-family: var(--font-serif); }
.pa-assist-try a:hover { color: var(--link); }
.pa-assist-c .pa-btn { align-self: flex-start; margin-top: auto; }

/* prompt recipes */
.pa-recipes { padding: 10px 0 30px; }
.pa-filter { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-block-end: 24px; }
.pa-filter .pa-pill { min-height: 34px; font-size: .86rem; }
.pa-recipe-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.pa-recipe { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-paper); }
.pa-recipe-n { color: var(--brand); font: italic 500 1rem/1 var(--font-serif); }
.pa-recipe-t { font: 600 1.12rem/1.3 var(--font-serif); }
.pa-recipe-p { padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--text-2); font-size: .94rem; line-height: 1.6; }
.pa-recipe-p mark { padding: 0 2px; border-radius: 4px; background: var(--brand-wash); color: var(--link); }
.pa-recipe-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.pa-recipe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1; min-width: 0; color: var(--muted); font-size: .8rem; }

/* tool */
.pa-bench { max-width: 920px; padding-bottom: 10px; }
.pa-bench-sheet { min-height: 420px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-composer); }
.pa-tool-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; }
.pa-label, .pa-field label, .pa-field-s span { display: block; margin-bottom: 6px; color: var(--text-2); font-size: .86rem; font-weight: 600; }
.pa-input { display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: .98rem; line-height: 1.5; }
.pa-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
textarea.pa-input { resize: vertical; min-height: 120px; }
.pa-tool-opts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.pa-field-s { flex: 1 1 180px; }
.pa-tool-go { margin-top: 16px; }
.pa-tool-out { margin-top: 18px; padding: 22px; border: 1px dashed var(--border-2); border-radius: 14px; color: var(--muted); text-align: center; font-size: .92rem; }

/* contact */
.pa-letter { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; max-width: 1040px; }
.pa-letter-sheet { padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-paper); }
.pa-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.pa-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pa-field--file label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pa-field--file input { font-size: .88rem; color: var(--muted); }
.pa-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pa-form-status { color: var(--muted); font-size: .9rem; }
.pa-letter-side { display: flex; flex-direction: column; gap: 18px; }
.pa-letter-note { display: flex; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface-2); color: var(--text-2); font-size: .93rem; }
.pa-letter-note .pa-i { color: var(--brand); margin-top: 2px; }

/* shared chat */
.pa-shared { padding-top: 10px; }
.pa-shared-head { padding: 30px 0 10px; text-align: center; }
.pa-shared-head .pa-meta { justify-content: center; }
.pa-shared-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pa-thread { display: flex; flex-direction: column; gap: 22px; padding: 10px 0 20px; }
.pa-turn--you { display: flex; justify-content: flex-end; }
.pa-bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--bubble); white-space: pre-wrap; overflow-wrap: anywhere; }
[dir="rtl"] .pa-bubble { border-radius: 18px 18px 18px 4px; }
.pa-answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.pa-shared-foot { padding: 14px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; text-align: center; }

/* 404 */
.pa-lost { padding: 60px 0 40px; }
.pa-lost-in { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 44px; max-width: 900px; }
.pa-lost-art { margin: 0; overflow: hidden; border-radius: 50%; border: 1px solid var(--border); aspect-ratio: 1; }
.pa-lost-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* chat placeholder (until inc/chat/page.php exists) */
.pa-desk { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.pa-desk-side { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--drawer); border-inline-end: 1px solid var(--border); }
.pa-desk-main { display: flex; flex-direction: column; align-items: center; padding: 16px 24px 24px; }
.pa-desk-top { display: flex; gap: 4px; align-self: flex-end; }
.pa-desk-hi { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: auto 0 24px; text-align: center; }

/* ---------------------------------------------------------------- footer */
.pa-foot { margin-top: 20px; padding: 56px 0 30px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pa-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.pa-foot-line { flex: 1 1 360px; max-width: 560px; color: var(--text-2); font: italic 400 1.08rem/1.55 var(--font-serif); }
.pa-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 0; }
.pa-foot-h { margin-bottom: 12px; color: var(--muted); font: 600 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.pa-foot-cols ul { margin: 0; padding: 0; list-style: none; }
.pa-foot-cols a { display: inline-block; padding: 5px 0; color: var(--text); font-size: .92rem; text-decoration: none; }
.pa-foot-cols a:hover { color: var(--link); text-decoration: underline; }
.pa-foot-fine { padding-top: 22px; border-top: 1px solid var(--border); }
.pa-foot-note { max-width: 820px; color: var(--muted); font-size: .84rem; }
.pa-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pa-foot-copy { color: var(--muted); font-size: .84rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pa-nav, .pa-top-tools > .pa-langs, .pa-top-tools > .pa-themes { display: none; }
  .pa-burger { display: inline-flex; }
  .pa-top-in { justify-content: space-between; }
  .pa-steps { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .pa-steps li:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .pa-body { grid-template-columns: minmax(0, 720px); gap: 0; }
  .pa-margin { grid-column: 1; grid-row: 1; position: static; max-height: none; overflow: visible; margin-bottom: 26px; }
  .pa-body > .pa-prose { grid-row: 2; }
  .pa-toc { padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .pa-toc summary { margin: 0; }
  .pa-toc[open] summary { margin-bottom: 8px; }
}
@media (max-width: 900px) {
  .pa-quick { grid-template-columns: repeat(2, 1fr); }
  .pa-grid3, .pa-cards, .pa-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .pa-index { grid-template-columns: repeat(2, 1fr); }
  .pa-split, .pa-cmp, .pa-about-body, .pa-letter { grid-template-columns: 1fr; gap: 32px; }
  .pa-app { grid-template-columns: 1fr; padding: 32px 28px; }
  .pa-phone { display: none; }
  .pa-hubhead.pa-arty { grid-template-columns: 1fr; gap: 26px; }
  .pa-drop-cap::first-letter { font-size: 3rem; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .pa-wrap { padding: 0 16px; }
  .pa-top-cta { display: none; }
  .pa-hello { padding: 28px 0 22px; }
  .pa-greet { margin-bottom: 10px; font-size: .92rem; }
  .pa-hello-h { font-size: clamp(2rem, 9vw, 2.5rem); }
  .pa-hello-sub { margin-top: 8px; font-size: 1rem; }
  .pa-composer { margin-top: 20px; padding: 12px 12px 10px; }
  .pa-composer textarea { min-height: 48px; font-size: 1rem; }
  .pa-pick-panel { width: min(330px, calc(100vw - 48px)); }
  .pa-quick { gap: 10px; margin-top: 22px; }
  .pa-quick-a { padding: 13px; gap: 10px; }
  .pa-quick-t small { display: none; }
  .pa-sec { padding: 46px 0; }
  .pa-sec-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
  .pa-sec-head > .pa-num { padding: 0; }
  .pa-sec-head .pa-more { justify-self: start; }
  .pa-ledger-row { grid-template-columns: auto 1fr; gap: 14px; }
  .pa-ledger-row > .pa-btn { grid-column: 1 / -1; justify-self: start; }
  .pa-ledger-row .pa-seal--lg { width: 42px; height: 42px; align-self: start; }
  .pa-steps { grid-template-columns: 1fr; row-gap: 0; }
  .pa-steps li, .pa-steps li + li { display: flex; gap: 14px; padding: 12px 0; border: 0; border-top: 1px solid var(--border); }
  .pa-steps-n { flex: none; margin: 0; }
  .pa-grid3, .pa-cards, .pa-cards--3, .pa-index, .pa-cmp-list, .pa-rows, .pa-recipe-list, .pa-form-2 { grid-template-columns: 1fr; }
  .pa-feat { padding: 20px 18px; }
  .pa-app { padding: 26px 20px; border-radius: 20px; }
  .pa-app-qr { display: none; }
  .pa-app-get.is-ios .pa-app-one, .pa-app-get.is-android .pa-app-one { display: inline-flex; }
  .pa-app-get.is-ios .xp-stores, .pa-app-get.is-android .xp-stores { display: none; }
  .pa-invite-in { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 22px; }
  .pa-head { padding: 26px 0 18px; }
  .pa-crumbs ol { margin-bottom: 16px; }
  .pa-lead { font-size: 1.04rem; }
  .pa-cover { border-radius: 16px; }
  .pa-prose { font-size: 1rem; }
  .pa-ad--wide, .pa-ad--inline { min-height: 260px; }
  .pa-bench-sheet { padding: 16px; border-radius: 18px; }
  .pa-letter-sheet { padding: 20px; }
  .pa-lost-in { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .pa-lost-art { width: 160px; }
  .pa-lost-acts, .pa-lost .pa-sec-links { justify-content: center; }
  .pa-foot { padding-top: 40px; }
  .pa-foot-cols { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .pa-desk { grid-template-columns: 1fr; }
  .pa-desk-side { display: none; }
  .pa-bubble { max-width: 92%; }
}
@media (max-width: 380px) {
  .pa-seg span { display: none; }
  .pa-word { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* promo:start */
/* Cross-promo ("xp-"): paper cards with each product's own colour pair. Slots keep a fixed height (no layout shift).
   Variants: strip (top/fold), slim (chat header line), bar (phone app bar), card (chat sidebar/inline). Designs: white |
   brand (soft product tint) | bold (solid product colour). */
.xp-slot { display: block; }
.xp-slot-top, .xp-slot-fold { min-height: 120px; margin: 22px 0; }
.xp-slot-top { margin: 6px 0 0; }
.xp-slot-appbar { display: none; }
.xp-slot-chat-top { min-height: 44px; }
.xp-slot-chat-side { min-height: 236px; }
.xp-slot-chat-welcome:empty { display: none; }
.xp { --xp: #3B5BDB; --xp-bg: #EEF2FD; --xp-ink: #1E3A8A; position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 14px 18px; border: 1px solid var(--border, #E6DFD2); border-radius: 18px; background: var(--surface, #FFFDF9); color: var(--text, #221E18); font-family: var(--font, system-ui, sans-serif); font-size: 15px; line-height: 1.45; text-align: start; box-shadow: 0 2px 10px rgba(80, 60, 30, .05); }
.xp-c-imagegpt { --xp: #6D4AD8; --xp-bg: #F1ECFD; --xp-ink: #42288F; }
.xp-c-chatplus { --xp: #0B7A6E; --xp-bg: #E4F5F2; --xp-ink: #0A5A51; }
.xp-c-app { --xp: #1F4E9C; --xp-bg: #E8EFFA; --xp-ink: #143468; }
.xp-c-aiart { --xp: #C2385F; --xp-bg: #FCEAEF; --xp-ink: #84203D; }
.xp-c-bots { --xp: #1F76BC; --xp-bg: #E6F3FC; --xp-ink: #175A8F; }
.xp-c-maxgpt { --xp: #267A42; --xp-bg: #E6F4EA; --xp-ink: #1D5E32; }
.xp-d-white { border-inline-start: 4px solid var(--xp); }
.xp-d-brand { background: var(--xp-bg); border-color: transparent; color: #221E18; }
.xp-d-bold { background: var(--xp); border-color: transparent; color: #fff; }
[data-theme="dark"] .xp-d-brand { background: color-mix(in srgb, var(--xp) 22%, #2A2925); color: #F3EEE5; }
.xp-media { display: block; flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 14px; background: var(--xp-bg); }
.xp-c-app .xp-media, .xp-c-chatplus .xp-media, .xp-c-maxgpt .xp-media { padding: 10px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); }
.xp-c-app .xp-media img, .xp-c-chatplus .xp-media img, .xp-c-maxgpt .xp-media img { object-fit: contain; border-radius: 10px; }
.xp-bots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; place-items: center; width: 100%; height: 100%; padding: 10px; background: #fff; }
.xp-bots .xp-logo { width: 24px; height: 24px; }
.xp-bots .xp-logo:first-child { grid-column: 1 / -1; width: 28px; height: 28px; }
.xp-body { flex: 1 1 auto; min-width: 0; }
.xp-label { margin: 0 0 2px; color: var(--xp-ink); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.xp-d-bold .xp-label { color: rgba(255, 255, 255, .94); }
.xp-d-bold .xp-text { opacity: .94; }
[data-theme="dark"] .xp-d-white .xp-label, [data-theme="dark"] .xp-d-brand .xp-label { color: color-mix(in srgb, var(--xp) 28%, #F3EEE5); }
.xp-title { margin: 0; font: 600 17px/1.3 var(--font-serif, Georgia, serif); }
.xp-text { margin: 3px 0 0; color: inherit; opacity: .8; font-size: 14px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.xp-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--xp); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.xp-btn:hover { color: #fff; filter: brightness(1.08); }
.xp-btn .pa-i, .xp-btn .xp-ic { width: 18px; height: 18px; }
.xp-d-bold .xp-btn { background: #fff; color: var(--xp-ink); }
.xp-d-bold .xp-btn:hover { color: var(--xp-ink); }
.xp-btn-tg, .xp-btn-max, .xp-btn-vk { padding: 0 12px 0 8px; background: #fff; color: #221E18; border: 1px solid rgba(0, 0, 0, .1); }
.xp-btn-tg:hover, .xp-btn-max:hover, .xp-btn-vk:hover { color: #221E18; }
.xp-stores { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.xp-store { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 11px; border-radius: 11px; background: #221E18; color: #FFFDF9; text-decoration: none; }
.xp-store:hover { color: #FFFDF9; background: #000; }
.xp-store .xp-ic { width: 20px; height: 20px; }
.xp-store-t { display: flex; flex-direction: column; line-height: 1.1; }
.xp-store-t small { font-size: 10px; opacity: .8; }
.xp-store-t b { font-size: 15px; font-weight: 600; }
[data-theme="dark"] .xp-d-white .xp-store, [data-theme="dark"] .pa-app .xp-store { background: #F3EEE5; color: #1F1E1B; }
.xp-d-bold .xp-store { background: #fff; color: var(--xp-ink); }
.xp-qr { display: flex; align-items: center; gap: 8px; max-width: 150px; font-size: 12px; line-height: 1.3; opacity: .85; }
.xp-qr img { width: 64px; height: 64px; padding: 3px; border-radius: 8px; background: #fff; }
.xp-x { position: absolute; top: 6px; inset-inline-end: 6px; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .6; cursor: pointer; }
.xp-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.xp-x .xp-ic { width: 16px; height: 16px; }
.xp-zone { min-height: 0; }
/* slim: one line in the chat header */
.xp-slim { gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; font-size: 13px; box-shadow: none; }
.xp-slim .xp-media { width: 34px; height: 34px; border-radius: 50%; padding: 4px; }
.xp-slim .xp-label, .xp-slim .xp-text, .xp-slim .xp-qr, .xp-slim .xp-store-android { display: none; }
.xp-slim .xp-title { font: 600 13px/1.3 var(--font, system-ui, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-slim .xp-btn, .xp-slim .xp-store { min-height: 32px; padding: 0 12px; font-size: 13px; }
.xp-slim .xp-store-t small { display: none; }
.xp-slim.xp-d-white { border-inline-start-width: 1px; }
/* card: chat sidebar / inline in the thread */
.xp-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
.xp-card .xp-media { width: 100%; height: 96px; }
.xp-card .xp-acts { flex-direction: column; align-items: stretch; }
.xp-card .xp-btn, .xp-card .xp-store { justify-content: center; }
.xp-card .xp-qr { display: none; }
.xp-card.xp-d-white { border-inline-start-width: 1px; border-top: 4px solid var(--xp); }
/* bar: the phone app bar right under the header */
.xp-bar { gap: 10px; min-height: 60px; padding: 8px 40px 8px 10px; border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
.xp-bar.xp-d-white { border-inline-start-width: 0; }
.xp-bar .xp-media { width: 42px; height: 42px; padding: 5px; border-radius: 11px; }
.xp-bar .xp-label, .xp-bar .xp-stores, .xp-bar .xp-qr { display: none; }
.xp-bar .xp-title { font: 600 14px/1.25 var(--font, system-ui, sans-serif); }
.xp-bar .xp-text { font-size: 12px; -webkit-line-clamp: 1; }
.xp-bar .xp-btn { min-height: 34px; padding: 0 14px; font-size: 13px; }
@media (max-width: 720px) {
  .xp-slot-appbar { display: block; min-height: 60px; }
  .xp-slot-top, .xp-slot-fold { min-height: 172px; }
  .xp-strip { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .xp-strip .xp-label { display: none; }
  .xp-strip .xp-title { font-size: 16px; }
  .xp-strip .xp-media { width: 56px; height: 56px; border-radius: 12px; }
  .xp-strip .xp-body { flex: 1 1 calc(100% - 72px); }
  .xp-strip .xp-acts { flex: 1 1 100%; }
  .xp-strip .xp-btn { flex: 1; justify-content: center; }
  .xp-strip .xp-qr { display: none; }
  .xp-os-ios .xp-store-android, .xp-os-android .xp-store-ios { display: none; }
  .xp-text { -webkit-line-clamp: 2; }
  .pa-composer-row { position: relative; }
  .pa-composer-row .pa-pick { position: static; }
  .pa-composer-row .pa-pick-panel { inset-inline: 0; width: auto; }
}
/* promo:end */
