/* gpt.me site styles ("Graphite", the look of our AI Chat app). Tokens live in tokens.css; the chat app has its own CSS
   (assets/chat/**). The cross-promo block between "promo:start" and "promo:end" is also extracted by build.mjs to
   /assets/css/promo.css for the chat page. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html.sheet-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--brand-soft); color: var(--text); }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }
.muted { color: var(--muted); }
.mono, .mono-tag { font-family: var(--font-mono); font-size: .8em; font-weight: 500; letter-spacing: -.01em; font-variant-ligatures: none; }
.mono-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--muted); font-size: 12px; line-height: 1; white-space: nowrap; direction: ltr; }

/* ---------------------------------------------------------------- buttons, chips, tiles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--hover); color: var(--text); }
.btn-soft { background: var(--raised); color: var(--text); border-color: var(--border); }
.btn-soft:hover { background: var(--pressed); color: var(--text); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 5px 12px; font-size: 13px; gap: 6px; }
.btn-xs .i { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 9px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: transparent; color: var(--text-2); font-size: 14px; line-height: 1.3; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--border-strong); background: var(--hover); color: var(--text); text-decoration: none; }
.chip .i { width: 17px; height: 17px; color: var(--muted); }
.chip.is-on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip-sm { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); background: var(--raised); color: var(--text-2); font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.chip-sm .i { width: 14px; height: 14px; color: var(--muted); }
.chip-ghost { border-style: dashed; color: var(--text); font-weight: 600; }
button.chip-sm, .tag-filter .chip { cursor: pointer; }
.pill-app { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 600 11.5px/1.4 var(--font); font-style: normal; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.pill-app .i { width: 12px; height: 12px; stroke-width: 2.2; }

.tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--raised); color: var(--text); }
.tile .i { width: 20px; height: 20px; }
.tile-sm { width: 32px; height: 32px; border-radius: 10px; }
.tile-sm .i { width: 17px; height: 17px; }
.tile-lg { width: 52px; height: 52px; border-radius: 16px; }
.tile-lg .i { width: 26px; height: 26px; }
.tile-t1 { background: var(--t1-bg); color: var(--t1); }
.tile-t2 { background: var(--t2-bg); color: var(--t2); }
.tile-t3 { background: var(--t3-bg); color: var(--t3); }
.tile-t4 { background: var(--t4-bg); color: var(--t4); }
.tile-accent, .tile-grad { background: var(--accent); color: var(--on-accent); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); }
.header-in { display: flex; align-items: center; gap: 18px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; }
.logo .mark { color: var(--text); }
.logo-word { font: 650 19px/1 var(--font-display); letter-spacing: -.035em; }
.logo-tld { color: var(--muted); font-weight: 500; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-link[aria-current], .nav-link[data-active] { color: var(--text); background: var(--raised); }
.i-chev { width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
[aria-expanded="true"] > .i-chev { transform: rotate(180deg); }
.header-tools { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.header-cta { margin-inline-start: 8px; }
.menu-btn { display: none; }
.lang-code { font: 600 12px/1 var(--font-mono); letter-spacing: .02em; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

.pop { position: relative; }
.pop-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop-in .14s var(--ease); }
.pop-up > .pop-panel { top: auto; bottom: calc(100% + 8px); inset-inline-start: 0; inset-inline-end: auto; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pop-panel { animation: none; } }
.theme-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: none; text-align: start; font-size: 14.5px; }
.theme-panel button:hover, .theme-panel button:focus-visible { background: var(--hover); }
.theme-panel [aria-checked="true"] { background: var(--raised); font-weight: 600; }
.lang-panel { width: 300px; padding: 0; overflow: hidden; }
.lang-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.lang-search input { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; outline: none; color: var(--text); }
.lang-search input::placeholder { color: var(--placeholder); }
.lang-list { max-height: min(380px, 60vh); margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-size: 14.5px; text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--hover); }
.lang-list a[aria-current] { background: var(--raised); font-weight: 600; }
.lang-list small { color: var(--muted); font: 500 11px/1 var(--font-mono); }
.lang-list .i { width: 16px; height: 16px; color: var(--brand); }

.nav-drop { position: relative; }
.mega { inset-inline-start: 50%; inset-inline-end: auto; transform: translateX(-50%); width: max-content; max-width: min(720px, 92vw); padding: 10px; }
[dir="rtl"] .mega { transform: translateX(50%); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.mega a:hover, .mega a:focus-visible, .mega a[aria-current] { background: var(--hover); }
.mt { display: flex; flex-direction: column; min-width: 0; }
.mt small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.35; }
.mi { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--raised); color: var(--text-2); }
.mi .i { width: 18px; height: 18px; }
.mega-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.mega-col + .mega-col { padding-inline-start: 8px; border-inline-start: 1px solid var(--border); }
.mega-h { margin: 6px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.mega-list { display: grid; min-width: 300px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.mega-all { justify-content: center; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px !important; color: var(--text-2) !important; font-size: 14px !important; }
.mega-all .i { width: 16px; height: 16px; }

/* mobile sheet: the app's drawer */
.sheet { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 90; display: flex; flex-direction: column; width: min(380px, 100%); background: var(--surface); box-shadow: 0 0 0 100vmax var(--scrim); overflow-y: auto; overscroll-behavior: contain; animation: sheet-in .2s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateX(-12px); } }
[dir="rtl"] .sheet { animation-name: sheet-in-rtl; }
@keyframes sheet-in-rtl { from { opacity: 0; transform: translateX(12px); } }
.sheet-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: 16px 10px; background: var(--surface); }
.sheet-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 6px 12px 0; }
.sheet-new { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: var(--r-pill); background: var(--raised); color: var(--text); font-weight: 600; text-decoration: none; }
.sheet-new:hover { background: var(--pressed); text-decoration: none; }
.sheet-new-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.sheet-new-ic .i { width: 16px; height: 16px; stroke-width: 2.2; }
.sheet-h { margin: 12px 12px 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sheet-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.sheet-group > summary:hover { background: var(--hover); }
.sheet-group > summary::-webkit-details-marker { display: none; }
.sheet-group > summary .i { width: 17px; height: 17px; color: var(--muted); transition: transform .2s; }
.sheet-group[open] > summary .i { transform: rotate(180deg); }
.sheet-links { display: grid; }
.sheet-group .sheet-links { padding: 0 0 8px; }
.sheet-links a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); font-weight: 500; text-decoration: none; }
.sheet-links a:hover, .sheet-links a[aria-current] { background: var(--hover); }
.sheet-links .mi, .sheet-links .tile { width: 32px; height: 32px; border-radius: 10px; }
.sheet-plain { grid-template-columns: 1fr 1fr; }
.sheet-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 6px; margin: auto -12px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.sheet-foot .lang-code { display: inline; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 720px; }
.section-title-sm { margin: 44px 0 16px; font-size: 21px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }
[dir="rtl"] .link-more:hover .i { transform: scaleX(-1) translateX(3px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--raised); color: var(--text-2); font: 500 12.5px/1.4 var(--font-mono); }

/* ---------------------------------------------------------------- home: the app's first screen */
.hero-app { padding: clamp(36px, 8vh, 88px) 0 28px; }
.hero-app-in { display: flex; flex-direction: column; align-items: center; max-width: 820px; text-align: center; }
.greet { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; font-weight: 500; }
.greet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.greet-title { margin-top: 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.greet-sub { max-width: 600px; margin-top: 12px; color: var(--muted); font-size: 17.5px; line-height: 1.5; }

.composer { display: block; position: relative; border: 1px solid var(--border); border-radius: var(--r-composer); background: var(--surface); box-shadow: var(--shadow-composer); text-align: start; transition: border-color .2s; }
.composer:focus-within { border-color: var(--border-strong); }
.composer textarea { display: block; width: 100%; min-height: 56px; max-height: 220px; padding: 16px 20px 6px; border: 0; background: none; outline: none; resize: none; font-size: 17px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--placeholder); }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; }
.composer-hint { flex: 1; color: var(--muted); font-size: 12.5px; }
.composer-float { width: 100%; margin-top: 28px; }
.cb-space { flex: 1; }
.cb-plus { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); transition: background .15s; }
.cb-plus:hover { background: var(--hover); color: var(--text); }
.cb-plus .i { width: 19px; height: 19px; }
.cb-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cb-chip:hover { background: var(--hover); color: var(--text); }
.cb-chip .i { width: 17px; height: 17px; flex: none; }
.composer-bar .cb-chip, .composer-bar .model-pop { flex: 0 1 auto; min-width: 0; }
.cb-chip span { overflow: hidden; text-overflow: ellipsis; }
.cb-chip[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.composer-float .model-pop { position: static; }
.model-pill { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 38px; padding: 0 10px 0 5px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.model-pill:hover, .model-pill[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.mp-ic { display: contents; }
.model-pill .tile { width: 28px; height: 28px; border-radius: 50%; }
.model-pill .tile .i { width: 15px; height: 15px; }
.mp-name { overflow: hidden; text-overflow: ellipsis; }
.model-panel { width: min(360px, calc(100% - 16px)); }
.composer-float .model-panel { top: calc(100% + 8px); inset-inline-start: 8px; inset-inline-end: auto; }
.mm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: start; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.mm-item:hover, .mm-item:focus-visible { background: var(--hover); text-decoration: none; }
.mm-item .tile { width: 34px; height: 34px; border-radius: 50%; }
.mm-item .tile .i { width: 18px; height: 18px; }
.mm-item .mt { flex: 1; }
.mm-check { width: 18px; height: 18px; color: var(--text); opacity: 0; stroke-width: 2.2; }
.mm-item[aria-checked="true"] .mm-check { opacity: 1; }
.mm-item.is-locked .mt > span { color: var(--text-2); }
.mm-item .pill-app { margin: 0; }
.send-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: background .15s, transform .15s; }
.send-btn:hover { background: var(--accent-hover); }
.send-btn:active { transform: scale(.95); }
.send-btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

.act-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 26px; }
.act-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface); color: var(--text); text-align: start; text-decoration: none; transition: background .15s, border-color .15s; }
.act-card:hover { border-color: var(--border); background: var(--hover); text-decoration: none; }
.act-card .tile { width: 36px; height: 36px; margin-bottom: 8px; border-radius: 11px; }
.act-card .tile .i { width: 19px; height: 19px; }
.act-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.act-text { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.sugg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; width: 100%; margin: 18px 0 0; padding: 0; list-style: none; text-align: start; }
.sugg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--border-subtle); color: var(--text-2); font-size: 14.5px; text-decoration: none; }
.sugg:hover { color: var(--text); text-decoration: none; }
.sugg .i { width: 16px; height: 16px; color: var(--muted); }
[dir="rtl"] .sugg .i { transform: scaleX(-1); }
.home .pr-zone-bar + .hero-app { padding-top: clamp(28px, 7vh, 80px); }

/* ---------------------------------------------------------------- ads */
.ad-slot { display: flex; flex-direction: column; align-items: center; max-width: 980px; margin: 40px auto; }
.ad-label { margin-bottom: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ad-slot > div { width: 100%; min-height: 250px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ad-slot--content { margin: 36px 0; max-width: none; }
.wrap > .ad-slot { margin-block: 44px; }

/* ---------------------------------------------------------------- home: models */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.model-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface); }
.model-card.is-locked { border-color: var(--brand-line); border-style: dashed; }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.model-card h3 { font-size: 22px; }
.model-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.model-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 6px; }
.model-card-actions .btn { white-space: normal; text-align: center; }
.model-card-actions .link-more { font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { padding: 20px; border-radius: 20px; background: var(--surface); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--font-mono); }
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bento-cell { display: flex; flex-direction: column; gap: 10px; grid-column: span 3; padding: 24px; border-radius: var(--r-card); background: var(--surface); }
.bento-cell .tile { margin-bottom: 4px; }
.bento-cell h3 { font-size: 19px; }
.bento-cell p { color: var(--muted); font-size: 15px; }
@media (min-width: 1000px) { .bento-1 { grid-column: span 4; } .bento-2 { grid-column: span 2; } .bento-3, .bento-4, .bento-5 { grid-column: span 2; } .bento-6 { grid-column: span 6; } }
.bento-1 .tile { background: var(--t1-bg); color: var(--t1); }
.bento-2 .tile { background: var(--t2-bg); color: var(--t2); }
.bento-3 .tile { background: var(--t3-bg); color: var(--t3); }
.bento-4 .tile { background: var(--t4-bg); color: var(--t4); }
.bento-6 { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.bento-6 p { flex: 1 1 300px; }

/* tools + assistants */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface); color: var(--text); text-decoration: none; transition: background .15s, border-color .15s; }
.tool-card:hover { border-color: var(--border); background: var(--hover); text-decoration: none; }
.tool-card .card-text { -webkit-line-clamp: 2; }
.assist-row, .use-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: 28px; margin-top: 24px; padding: 24px; border: 1px dashed var(--border); border-radius: var(--r-card); }
.assist-head h3 { font-size: 20px; }
.assist-head p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.assist-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* the AI Chat app */
.app-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 48px; padding: 44px 48px; border-radius: 32px; background: var(--surface); overflow: hidden; }
.app-copy h2 { font-size: clamp(26px, 3.2vw, 38px); }
.app-copy > p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.app-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.app-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.app-list .i { width: 20px; height: 20px; margin-top: 2px; color: var(--success); stroke-width: 2.2; }
.app-get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.app-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.app-own { display: none; }
.app-qr { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.app-qr img { width: 84px; height: 84px; padding: 5px; border-radius: 14px; background: #FFF; }
.app-qr span { max-width: 130px; }
.app-phone { display: flex; justify-content: center; }
.ph { display: flex; flex-direction: column; gap: 14px; width: 290px; height: 560px; padding: 18px 14px 14px; border: 8px solid var(--raised); border-radius: 46px; background: var(--bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ph-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); }
.ph-btn .i { width: 20px; height: 20px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); background: var(--surface); font-size: 12.5px; font-weight: 600; }
.ph-chip .tile { width: 22px; height: 22px; border-radius: 50%; }
.ph-chip .tile .i { width: 13px; height: 13px; }
.ph-credits { display: inline-flex; align-items: center; gap: 3px; font: 600 12.5px/1 var(--font-mono); }
.ph-credits .i { width: 15px; height: 15px; color: var(--bolt); fill: var(--bolt); stroke: none; }
.ph-greet { display: grid; gap: 4px; margin-top: 54px; text-align: center; }
.ph-greet span:first-child { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ph-greet span + span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ph-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.ph-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface); font-size: 12px; font-weight: 600; line-height: 1.25; }
.ph-card .tile { width: 26px; height: 26px; border-radius: 8px; }
.ph-card .tile .i { width: 15px; height: 15px; }
.ph-composer { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--placeholder); font-size: 13px; }
.ph-row { display: flex; align-items: center; gap: 6px; }
.ph-plus, .ph-send { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.ph-plus { border: 1px solid var(--border); color: var(--text-2); }
.ph-send { margin-inline-start: auto; background: var(--accent); color: var(--on-accent); }
.ph-plus .i, .ph-send .i { width: 15px; height: 15px; }
.ph-think { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; }
.ph-think .i { width: 13px; height: 13px; }

/* home about */
.home-about { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 52px; }
.home-about-art { position: sticky; top: calc(var(--header-h) + 28px); overflow: hidden; border-radius: var(--r-card); background: var(--surface); }
.home-about-copy h2 { font-size: clamp(26px, 3.2vw, 38px); }
.home-about .prose { margin-top: 18px; }
.home-about .prose p + p { margin-top: 14px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* comparisons strip + web teaser */
.compare-strip { display: flex; gap: 10px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.vs-card { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; scroll-snap-align: start; white-space: nowrap; }
.vs-card:hover { border-color: var(--border); background: var(--hover); text-decoration: none; }
.vs-mark { display: inline-flex; color: var(--text); }
.vs-card .card-title { font-size: 15px; }
.vs-card .card-arrow { position: static; opacity: 1; color: var(--muted); }
.vs-card .card-arrow .i { width: 16px; height: 16px; }
.web-teaser { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 24px; padding: 22px 26px; border-radius: var(--r-card); background: var(--surface); color: var(--text); text-decoration: none; }
.web-teaser:hover { background: var(--hover); text-decoration: none; }
.web-teaser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); }
.web-teaser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.web-teaser-bar .mono { margin-inline-start: 8px; color: var(--text-2); }
.web-teaser-copy { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.web-teaser-copy .h3 { color: var(--text); font: 600 20px/1.2 var(--font-display); letter-spacing: -.02em; }

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-item { border-radius: 18px; background: var(--surface); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; font-size: 16.5px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); transition: transform .2s var(--ease), background .2s; }
.faq-ic .i { width: 16px; height: 16px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-more { margin-top: 18px; text-align: center; }

/* languages */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.lang-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15px; text-decoration: none; }
.lang-grid a:hover { background: var(--hover); text-decoration: none; }
.lang-grid a[aria-current] { box-shadow: inset 0 0 0 1px var(--border-strong); }
.lang-grid .mono { min-width: 22px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; }

/* CTA band */
.cta-band { padding: 24px 0 72px; }
.cta-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 28px 52px; border-radius: 32px; background: var(--surface); text-align: center; }
.cta-in h2 { max-width: 720px; font-size: clamp(26px, 3.4vw, 40px); }
.cta-in p { max-width: 600px; color: var(--muted); font-size: 17px; }
.cta-in .btn { margin-top: 8px; }
.cta-mark { display: inline-flex; padding: 12px; border-radius: 20px; background: var(--raised); color: var(--text); }
.cta-mark .mark { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface); color: var(--text); text-decoration: none; transition: background .15s, border-color .15s; }
.card:hover { border-color: var(--border); background: var(--hover); text-decoration: none; }
.card-media { margin: -20px -20px 0; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; aspect-ratio: 16 / 9; background: var(--raised); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); }
.card-meta.is-in { color: var(--success); }
.card-meta.is-app { color: var(--brand); }
.card-meta .i { width: 13px; height: 13px; }
.card-arrow { position: absolute; inset-inline-end: 18px; bottom: 18px; color: var(--muted); opacity: 0; transition: opacity .2s, transform .2s; }
.card:hover .card-arrow { opacity: 1; transform: translateX(2px); }
.card-photo .card-media { aspect-ratio: 4 / 3; }
.card-model, .card-compact { flex-direction: row; align-items: flex-start; }
.card-compact .card-text { -webkit-line-clamp: 2; }

/* ---------------------------------------------------------------- inner page hero */
.page-hero { position: relative; padding: 32px 0 40px; }
.page-hero-bg { display: none; }
.page-hero-in { display: grid; gap: 40px; }
.page-hero.has-aside .page-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: start; }
.page-hero-in.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; }
.page-hero-copy { max-width: 800px; }
.page-hero h1 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.035em; }
.page-hero .tile, .page-hero .vs { margin-top: 20px; }
.page-hero .lead { margin-top: 14px; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.model-id-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font: 500 13px var(--font-mono); }
.model-id-line .pill-app { margin: 0; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text-2); }
.hub-art { overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 10; background: var(--surface); }
.hub-art img { width: 100%; height: 100%; object-fit: cover; }
.cover { margin: 8px 0 8px; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 7; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.vs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vs-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 15px; font-weight: 600; }
.vs-chip .i, .vs-chip .vs-logo { width: 18px; height: 18px; flex: none; }
.vs-chip.is-ours { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.vs-x { font: 500 13px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; }

.facts-card { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.facts-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.facts-title .i { color: var(--muted); }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { padding: 8px 0; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.facts th { width: 38%; padding-inline-end: 12px; color: var(--muted); font-weight: 500; }
.facts td { font-weight: 500; overflow-wrap: anywhere; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--text); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.facts-link span { color: var(--text-2); font-weight: 500; }
.facts-link .i { width: 15px; height: 15px; }
.facts-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--raised); color: var(--text-2); font-size: 14px; font-weight: 500; }
.facts-note .i { width: 18px; height: 18px; color: var(--brand); }
.facts-stores { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- article */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 8px; padding-bottom: 32px; }
.article-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.article-grid.no-toc .prose { margin-inline: auto; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc-box > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-box > summary::-webkit-details-marker { display: none; }
.toc-box > summary .i { width: 16px; height: 16px; transition: transform .2s; }
.toc-box[open] > summary .i { transform: rotate(180deg); }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--text); background: var(--hover); }
.toc a.is-active { background: var(--raised); color: var(--text); font-weight: 600; }

.prose { max-width: 740px; color: var(--text-2); font-size: 17px; line-height: 1.72; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; color: var(--text); font-size: clamp(23px, 2.5vw, 30px); }
.prose h3 { margin-top: 1.6em; color: var(--text); font-size: 20px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul > li::marker { color: var(--muted); }
.prose ol > li::marker { color: var(--text); font: 600 .85em var(--font-mono); }
.prose blockquote { margin-inline: 0; padding: 16px 20px; border-radius: 18px; background: var(--surface); color: var(--text); }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--raised); font: .86em/1.4 var(--font-mono); color: var(--text); }
.prose pre { padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: #0E0E10; color: #E8E8EC; overflow-x: auto; font: 14px/1.6 var(--font-mono); direction: ltr; text-align: left; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.prose thead th { border-bottom: 1px solid var(--border-strong); color: var(--text); font-weight: 600; white-space: nowrap; }
.prose hr { height: 1px; border: 0; background: var(--border); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 18px; }
.prose a[target="_blank"]::after { content: "\2197"; margin-inline-start: 2px; font-size: .8em; }
.prose address { font-style: normal; }
.prose details { padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.prose details summary { color: var(--text); font-weight: 600; cursor: pointer; }
.prose .ad-slot { max-width: none; }
.hub-intro { max-width: 780px; margin: 8px 0 0; }
.hub-cards { padding-top: 32px; }
.hub-cards .section-title-sm:first-child { margin-top: 0; }
.related { padding: 48px 0 24px; }

/* prompt categories */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag-filter .chip { min-height: 32px; padding: 4px 12px; font-size: 13.5px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.prompt-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--surface); }
.prompt-top { display: flex; align-items: baseline; gap: 12px; }
.prompt-n { color: var(--muted); font: 500 13px/1 var(--font-mono); }
.prompt-card h2 { font-size: 17.5px; }
.prompt-text { padding: 14px 16px; border-radius: 16px; background: var(--bg); color: var(--text-2); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.prompt-text mark { padding: 0 .2em; border-radius: 4px; background: var(--brand-soft); color: var(--text); font-weight: 600; }
.prompt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.prompt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.prompt-model { height: 20px; font-size: 11px; }
.prompt-actions { display: flex; gap: 8px; }
.is-done { border-color: var(--success) !important; color: var(--success) !important; }

/* assistants hub */
.assist-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.assist-card h2 { font-size: 18px; }
.assist-card p { color: var(--muted); font-size: 14.5px; }
.starters { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.starters a { display: block; padding: 8px 12px; border-radius: 12px; background: var(--raised); color: var(--text-2); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.starters a:hover { color: var(--text); background: var(--pressed); }
.assist-card .btn { margin-top: auto; }

/* tool pages */
.wrap-tool { max-width: 920px; padding-top: 12px; }
.page-hero-tool { padding-bottom: 20px; }
.tool-preview { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-composer); background: var(--surface); box-shadow: var(--shadow-composer); }
.tp-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.tp-label { color: var(--text-2); font-size: 14px; font-weight: 600; }
.tool-preview textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); resize: vertical; font-size: 16px; line-height: 1.55; }
.tool-preview textarea:focus { outline: none; border-color: var(--border-strong); }
.tp-options { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-select { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tp-select select { min-width: 160px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); }
.tp-foot { display: flex; justify-content: flex-end; }
.tp-result { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 18px; color: var(--muted); font-size: 14.5px; text-align: center; }
.i-spark { width: 17px; height: 17px; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 8px; }
.contact-card { padding: 28px; border-radius: var(--r-card); background: var(--surface); }
.contact-card h2 { font-size: 23px; }
.contact-card > .muted { margin-top: 8px; font-size: 15.5px; }
.form { display: grid; gap: 16px; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--text-2); font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); font-size: 16px; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-file label { display: inline-flex; align-items: center; gap: 8px; }
.field-file label .i { width: 18px; height: 18px; color: var(--muted); }
.field-file input { padding: 9px 12px; border-style: dashed; font-size: 14px; }
.field-file input::file-selector-button { margin-inline-end: 12px; padding: 6px 14px; border: 0; border-radius: var(--r-pill); background: var(--raised); color: var(--text); font-weight: 600; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { color: var(--muted); font-size: 14.5px; }
[data-state="sent"] .form-status { color: var(--success); font-weight: 600; }
[data-state="error"] .form-status { color: var(--danger); font-weight: 600; }
.i-send { width: 17px; height: 17px; }
.contact-side { display: grid; gap: 12px; }
.contact-mail { display: flex; gap: 14px; padding: 20px; border: 1px dashed var(--border); border-radius: var(--r-card); color: var(--text-2); font-size: 15px; }
.contact-links { display: grid; overflow: hidden; border-radius: var(--r-card); background: var(--surface); }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text); font-weight: 500; text-decoration: none; }
.contact-links a + a { border-top: 1px solid var(--border-subtle); }
.contact-links a:hover { background: var(--hover); }
.contact-links a span { flex: 1; }
.contact-links .i { color: var(--muted); }

/* share */
.share-page { padding-top: 28px; }
.share-page > .page-hero-bg { display: none; }
.share-bar { padding: 8px 0; }
.share-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--raised); color: var(--text-2); font-size: 13px; font-weight: 500; }
.share-badge .i { width: 16px; height: 16px; }
.share-bar h1 { margin-top: 16px; font-size: clamp(25px, 3.2vw, 36px); }
.share-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-thread { display: grid; gap: 18px; padding: 8px 0 24px; }
.share-thread .cg-msg-user { justify-self: end; max-width: 85%; }
.share-thread .cg-bubble { padding: 11px 16px; border-radius: 22px; background: var(--bubble); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.share-thread .cg-md-raw { white-space: pre-wrap; overflow-wrap: anywhere; }
.share-thread .cg-msg-ai { padding: 4px 2px; color: var(--text); }
.cg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-foot { margin-bottom: 24px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* 404 */
.nf-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px 80px; text-align: center; }
.nf-art { width: 200px; overflow: hidden; border-radius: 28px; background: var(--surface); }
.nf h1 { font-size: clamp(30px, 4vw, 44px); }
.nf .lead { max-width: 560px; color: var(--text-2); font-size: 18px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; }
.nf-links .i { width: 16px; height: 16px; }

/* chat placeholder (until assets/chat ships its own page) */
.chat-placeholder { overflow: hidden; }
.chat-ph { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.chat-ph-side { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--surface); overflow-y: auto; }
.chat-ph-fill { flex: 1; }
.chat-ph-side .ad-slot { margin: 0; }
.chat-ph-main { display: flex; flex-direction: column; min-width: 0; }
.chat-ph-top { display: flex; justify-content: flex-end; gap: 4px; padding: 12px 16px; }
.chat-ph-welcome { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.chat-ph-welcome p { max-width: 520px; color: var(--muted); }
.mark-xl { width: 64px; height: 64px; color: var(--text); }
.composer-dock { width: min(760px, calc(100% - 32px)); margin: 0 auto 20px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 24px; padding: 52px 0 32px; border-top: 1px solid var(--border-subtle); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 320px; color: var(--muted); font-size: 14.5px; }
.foot-h { margin-bottom: 12px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.foot-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-col a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-langs { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.foot-langs > summary { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.foot-langs > summary::-webkit-details-marker { display: none; }
.foot-langs > summary .i { width: 17px; height: 17px; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.foot-langs a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--text); text-decoration: underline; }
.foot-bottom { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); color: var(--muted); font-size: 13px; }
.foot-note { max-width: 860px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.foot-legal a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; }

/* promo:start ------------------------------------------------------ cross-promo (our own projects; not ads) */
/* Slots (.pr-slot, cg_promo() in inc/lib.php; filled by assets/js/promo.js) have fixed heights per variant and container
   width, so the re-draw never moves the page; the server's default creative stays invisible until promo.js has drawn
   the visitor's one (after 3 s it shows anyway). Designs: .pr-d-white | .pr-d-brand | .pr-d-bold, coloured per product
   by .pr-c-<creative> (--pr-a to --pr-b). Layout by container width: wide (> 860), medium, narrow (<= 640: phones). */
.pr-slot, .pr-host { container: pr / inline-size; }
.pr-slot[hidden] { display: none !important; }
.js .pr-slot:not([data-promo-done]) > .pr { visibility: hidden; animation: pr-show 0s 3s forwards; }
@keyframes pr-show { to { visibility: visible; } }
.pr-zone { padding-top: 16px; }
.pr-zone-bar { padding-top: 0; }
.pr-slot-top { margin: 0 0 4px; }
.pr-slot-fold { margin: 36px 0; }
.prose > .pr-slot-fold { margin: 36px 0 40px; }
.pr-slot-appbar { display: none; }

.pr { --pr-a: #4F46E5; --pr-b: #9333EA; --pr-ink: #18181B; --pr-soft: #3F3F46; position: relative; display: grid; align-items: center; box-sizing: border-box; overflow: hidden; border: 2px solid transparent; border-radius: 22px; color: var(--pr-ink); font: 15px/1.4 var(--font); text-align: start; isolation: isolate; }
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr .pr-label, .pr .pr-title, .pr .pr-text { margin: 0; }
.pr .pr-title, .pr .pr-text { margin-top: 4px; }
.pr-title, .pr-text, .pr-qr span { unicode-bidi: plaintext; }
.pr a { text-decoration: none; }
.pr a::after { content: none !important; }
.pr img, .pr svg { display: block; max-width: 100%; }
.pr .i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pr .i-dir { transform: scaleX(-1); }
.pr-c-imagegpt { --pr-a: #DB2777; --pr-b: #C2410C; }
.pr-c-aiart { --pr-a: #E11D48; --pr-b: #9333EA; }
.pr-c-chatplus { --pr-a: #2563EB; --pr-b: #7C3AED; }
.pr-c-maxgpt { --pr-a: #6D28D9; --pr-b: #2563EB; }
.pr-c-bots { --pr-a: #0369A1; --pr-b: #4F46E5; }
.pr-c-app { --pr-a: #047857; --pr-b: #0369A1; }

.pr-media { display: block; overflow: hidden; border-radius: 16px; background: #F4F4F5; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.pr-media img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.pr-bots { display: grid; grid-template-columns: 1fr 1fr; place-items: center; gap: 4%; width: 100%; height: 100%; padding: 12%; background: #FFF; }
.pr-bots .pr-ic { width: 88%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pr-bots .pr-ic:nth-child(1) { grid-column: 1 / -1; width: 46%; }
.pr-body { min-width: 0; }
.pr-label { overflow: hidden; color: var(--pr-soft); font: 700 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.pr-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--pr-ink); font: 650 21px/1.2 var(--font-display); letter-spacing: -.02em; }
.pr-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--pr-soft); font-size: 15px; line-height: 1.4; }
.pr-acts { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.pr-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 16px/1 var(--font); white-space: nowrap; transition: transform .15s, box-shadow .15s, filter .15s; }
.pr-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pr-btn .pr-ic { width: 20px; height: 20px; }
.pr-store { display: inline-flex; flex: none; align-items: center; gap: 8px; width: 152px; height: 44px; padding: 0 12px 0 10px; border: 1px solid #A6A6A6; border-radius: 12px; background: #000; color: #FFF; direction: ltr; }
.pr-store:hover { background: #1A1A1A; color: #FFF; text-decoration: none; }
.pr-store .pr-ic { width: 24px; height: 24px; }
.pr-store-t { display: grid; line-height: 1.05; text-align: left; }
.pr-store-t small { font-size: 9.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.pr-store-t b { font: 600 16px/1.1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.pr-stores { display: flex; flex-direction: column; gap: 8px; }
.pr-qr { display: flex; flex: none; flex-direction: column; align-items: center; gap: 4px; }
.pr-qr img { width: 80px; height: 80px; padding: 4px; border-radius: 10px; background: #FFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pr-qr span { max-width: 120px; overflow: hidden; color: var(--pr-soft); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.pr-get { display: none !important; }
.pr-x { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pr-soft); cursor: pointer; }
.pr-x:hover { background: rgba(0, 0, 0, .08); }
.pr-x .pr-ic { width: 18px; height: 18px; }
.pr-os-ios .pr-store-android, .pr-os-android .pr-store-ios, .pr-os-ios .pr-qr, .pr-os-android .pr-qr { display: none; }

/* designs */
.pr-d-white { background: linear-gradient(#FFF, #FFF) padding-box, linear-gradient(120deg, var(--pr-a), var(--pr-b)) border-box; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.pr-d-white .pr-btn-go { background: linear-gradient(120deg, var(--pr-a), var(--pr-b)); color: #FFF; box-shadow: 0 8px 20px -10px var(--pr-a); }
.pr-d-white .pr-btn-go:hover { color: #FFF; filter: brightness(1.08); }
.pr-d-brand { --pr-ink: #FFF; --pr-soft: rgba(255, 255, 255, .9); background: radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .24), transparent 55%) border-box, linear-gradient(120deg, var(--pr-a), var(--pr-b)) border-box; box-shadow: 0 18px 40px -22px var(--pr-b); }
.pr-d-brand .pr-btn-go { background: #FFF; color: var(--pr-a); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.pr-d-brand .pr-btn-go:hover { color: var(--pr-b); }
.pr-d-brand .pr-qr img { box-shadow: none; }
.pr-d-brand .pr-x:hover { background: rgba(255, 255, 255, .18); }
.pr-d-bold { --pr-ink: #0A0A0A; --pr-soft: #27272A; border-color: #0A0A0A; background: #FFD43B; box-shadow: 5px 5px 0 var(--pr-a); }
.pr-d-bold .pr-btn-go { background: #0A0A0A; color: #FFF; }
.pr-d-bold .pr-btn-go:hover { color: #FFD43B; }
.pr-d-bold .pr-media { box-shadow: 0 0 0 2px #0A0A0A; }
.pr-d-bold .pr-store { border-color: #0A0A0A; }
.pr-slim.pr-d-bold { box-shadow: none; }
.pr-card.pr-d-bold { box-shadow: 3px 3px 0 var(--pr-a); }
.pr-btn-tg, .pr-btn-max, .pr-btn-vk { padding: 0 16px; background: #FFF; color: #18181B; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.pr-btn-tg:hover, .pr-btn-max:hover, .pr-btn-vk:hover { color: #000; }
.pr-d-bold .pr-btn-tg, .pr-d-bold .pr-btn-max, .pr-d-bold .pr-btn-vk { box-shadow: 0 0 0 2px #0A0A0A; }
/* strip: "top" and "fold" */
.pr-strip { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 24px; height: 136px; padding: 14px; padding-inline-end: 22px; }
.pr-strip .pr-media { width: 104px; height: 104px; }
.pr-strip .pr-title { -webkit-line-clamp: 1; }
.pr-strip.pr-c-app .pr-acts { gap: 16px; }

/* slim: the strip above the chat (desktop), 60 px */
.pr-slim { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; height: 60px; padding: 0 6px 0 6px; border-radius: 14px; }
.pr-slim .pr-media { width: 44px; height: 44px; border-radius: 11px; box-shadow: none; }
.pr-slim .pr-label { display: none; }
.pr-slim .pr-title { margin-top: 0; font-size: 15px; -webkit-line-clamp: 1; }
.pr-slim .pr-text { margin-top: 1px; font-size: 13px; -webkit-line-clamp: 1; }
.pr-slim .pr-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.pr-slim .pr-btn-tg, .pr-slim .pr-btn-max, .pr-slim .pr-btn-vk { padding: 0 12px; }
.pr-slim .pr-stores { flex-direction: row; }
.pr-slim .pr-store { width: auto; height: 40px; }
.pr-slim .pr-store-t small { display: none; }
.pr-slim .pr-store-t b { font-size: 14px; }
.pr-slim .pr-qr img { width: 52px; height: 52px; padding: 3px; border-radius: 7px; }
.pr-slim .pr-qr span { display: none; }

/* bar: the app on phones (under the site header, and above the chat) */
.pr-bar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 4px 0 12px; border-width: 0; border-radius: 0; }
.pr-bar .pr-body { flex: 1 1 auto; }
.pr-bar .pr-media { flex: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.pr-bar .pr-label { display: none; }
.pr-bar .pr-title { margin-top: 0; font-size: 15px; -webkit-line-clamp: 1; }
.pr-bar .pr-text { margin-top: 0; font-size: 12.5px; line-height: 1.3; -webkit-line-clamp: 1; }
.pr-bar .pr-stores { flex-direction: row; display: none; }
.pr-bar .pr-store { width: auto; height: 36px; padding: 0 10px 0 8px; }
.pr-bar .pr-store .pr-ic { width: 20px; height: 20px; }
.pr-bar .pr-store-t small { display: none; }
.pr-bar .pr-store-t b { font-size: 14px; }
.pr-bar .pr-get { display: inline-flex !important; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; }
.pr-bar.pr-os-ios .pr-stores, .pr-bar.pr-os-android .pr-stores { display: flex; }
.pr-bar.pr-os-ios .pr-get, .pr-bar.pr-os-android .pr-get { display: none !important; }
.pr-bar.pr-d-white { box-shadow: inset 0 -2px 0 var(--pr-a); background: #FFF; }
.pr-bar.pr-d-bold { box-shadow: inset 0 -2px 0 #0A0A0A; }
.pr-slot-chat-top .pr-bar { border-radius: 12px; }
.pr-slot-chat-top .pr-bar.pr-d-white { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -2px 0 var(--pr-a); }

/* card: chat sidebar and between chat messages */
.pr-card { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 52px auto auto; align-items: start; align-content: start; gap: 10px 12px; height: 178px; padding: 12px; border-radius: 16px; }
.pr-card .pr-media { width: 52px; height: 52px; border-radius: 13px; }
.pr-card .pr-body { display: contents; }
.pr-card .pr-label { grid-column: 2; grid-row: 1; align-self: start; font-size: 10.5px; }
.pr-card .pr-title { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 14.5px; line-height: 1.25; }
.pr-card .pr-text { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.pr-card .pr-acts { grid-column: 1 / -1; flex-wrap: nowrap; }
.pr-card .pr-btn { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; font-size: 14px; }
.pr-card .pr-acts-bots { gap: 6px; }
.pr-card .pr-btn-tg, .pr-card .pr-btn-max, .pr-card .pr-btn-vk { flex: 1 1 0; padding: 0 4px; font-size: 13px; }
.pr-card .pr-acts-bots .pr-ic { display: none; }
.pr-card.pr-c-app .pr-text { display: none; }
.pr-card .pr-stores { gap: 6px; }
.pr-card .pr-store { width: 140px; height: 36px; }
.pr-card .pr-store .pr-ic { width: 20px; height: 20px; }
.pr-card .pr-store-t b { font-size: 14px; }
.pr-card .pr-qr img { width: 78px; height: 78px; }
.pr-card .pr-qr span { display: none; }
.pr-card.pr-c-app .pr-acts { grid-row: 2 / 4; gap: 12px; }

/* modal: inside the chat's dialogs (no fixed height) */
.pr-modal { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 14px; padding: 16px; border-radius: 18px; }
.pr-modal .pr-media { width: 64px; height: 64px; border-radius: 15px; }
.pr-modal .pr-title { font-size: 18px; }
.pr-modal .pr-text { -webkit-line-clamp: 3; font-size: 14px; }
.pr-modal .pr-acts { grid-column: 1 / -1; flex-wrap: wrap; }
.pr-modal .pr-btn-go { width: 100%; }
.pr-modal .pr-btn-tg, .pr-modal .pr-btn-max, .pr-modal .pr-btn-vk { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 8px; font-size: 14px; }
.pr-modal.pr-c-app .pr-acts { justify-content: center; gap: 18px; }

@container pr (max-width: 860px) {
  .pr-strip { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; padding-inline: 14px 18px; }
  .pr-strip .pr-media { width: 88px; height: 88px; }
  .pr-strip .pr-title { font-size: 19px; -webkit-line-clamp: 2; }
  .pr-strip .pr-text { -webkit-line-clamp: 1; }
  .pr-strip.pr-c-app .pr-text { display: none; }
  .pr-strip .pr-btn { padding: 0 18px; }
}
@container pr (max-width: 640px) {
  .pr-strip { grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: 60px 44px; gap: 12px; height: 144px; padding: 12px; border-radius: 16px; }
  .pr-strip .pr-media { width: 60px; height: 60px; border-radius: 14px; }
  .pr-strip .pr-title { font-size: 16px; line-height: 1.25; }
  .pr-strip .pr-text { display: none; }
  .pr-strip .pr-acts { grid-column: 1 / -1; }
  .pr-strip .pr-btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 10px; font-size: 15px; }
  .pr-strip .pr-acts-bots { gap: 8px; }
  .pr-strip .pr-btn-tg, .pr-strip .pr-btn-max, .pr-strip .pr-btn-vk { gap: 5px; padding: 0 4px; font-size: 13.5px; }
  .pr-strip .pr-acts-bots .pr-ic { width: 18px; height: 18px; }
  .pr-strip .pr-qr { display: none; }
  .pr-strip .pr-stores { flex: 1 1 auto; flex-direction: row; justify-content: center; }
  .pr-strip .pr-store { width: auto; flex: 1 1 0; max-width: 200px; justify-content: center; }
  .pr-slim .pr-text { display: none; }
}
@container pr (max-width: 330px) {
  .pr-strip .pr-acts-bots .pr-ic { display: none; }
}
@container pr (max-width: 360px) {
  .pr-strip .pr-store-t small, .pr-modal .pr-store-t small { display: none; }
  .pr-modal .pr-store { padding: 0 8px; }
  .pr-bar .pr-text { display: none; }
}
@media (max-width: 720px) {
  .pr-zone { padding-top: 0; }
  .pr-zone > .wrap { padding-top: 14px; }
  .pr-slot-appbar { display: block; }
  .pr-slot-fold { margin: 28px 0; }
  .pr-modal .pr-qr { display: none; }
  .pr-modal .pr-stores { flex: 1 1 auto; flex-direction: row; justify-content: center; }
  .pr-modal .pr-store { width: auto; flex: 1 1 0; max-width: 200px; justify-content: center; }
}
/* promo:end */

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .tool-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .page-hero.has-aside .page-hero-in, .page-hero-in.has-art { grid-template-columns: minmax(0, 1fr); }
  .hub-art { max-width: 560px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; padding: 12px 16px; border-radius: 18px; background: var(--surface); }
  .toc-box > summary { margin-bottom: 0; }
  .toc-box[open] > summary { margin-bottom: 10px; }
  .grid-3, .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assist-row, .use-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-box { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 28px; }
  .home-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-about-art { position: static; max-width: 420px; }
  .web-teaser { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-ph { grid-template-columns: minmax(0, 1fr); }
  .chat-ph-side { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 16px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-in { gap: 8px; }
  .header-tools > .lang-pop, .header-tools > .theme-pop { display: none; }
  .header-cta { min-height: 36px; padding: 6px 14px; }
  .logo-word { font-size: 18px; }
  .mark { width: 28px; height: 28px; }
  .hero-app { padding: 28px 0 20px; }
  .greet { font-size: 15px; }
  .greet-title { margin-top: 8px; font-size: clamp(28px, 8.4vw, 38px); }
  .greet-sub { font-size: 16px; }
  .composer-float { margin-top: 22px; }
  .composer textarea { padding: 14px 16px 4px; font-size: 16px; }
  .composer-bar { gap: 6px; padding: 6px 8px 8px; }
  .cb-chip { padding: 0 11px 0 9px; }
  .model-pill { padding-inline-end: 8px; }
  .act-grid { gap: 8px; margin-top: 20px; }
  .act-card { padding: 12px; border-radius: 18px; }
  .act-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12.5px; }
  .sugg-list { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .sugg-list li:nth-child(n + 4) { display: none; }
  .model-grid, .grid-3, .grid-4, .steps { grid-template-columns: minmax(0, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-card { flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; }
  .tool-card .tile { width: 34px; height: 34px; border-radius: 11px; }
  .tool-card .card-title { font-size: 15px; }
  .tool-card .card-text { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cell { grid-column: auto !important; padding: 20px; }
  .bento-6 { flex-direction: column; align-items: flex-start; }
  .bento-6 p { flex: none; }
  .app-box { padding: 26px 20px; border-radius: 26px; }
  .app-qr { display: none; }
  .js .app-get:not(.os-ios):not(.os-android) .app-stores { display: none; }
  .js .app-get:not(.os-ios):not(.os-android) .app-own { display: inline-flex; }
  .os-ios .pr-store-android, .os-android .pr-store-ios { display: none; }
  .app-phone { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 22px; }
  .cover { aspect-ratio: 16 / 9; }
  .page-hero { padding: 22px 0 30px; }
  .page-hero .lead { font-size: 16.5px; }
  .prose { font-size: 16.5px; }
  .ad-slot > div { min-height: 280px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item > summary { padding: 15px 16px; font-size: 16px; }
  .faq-a { padding: 0 16px 16px; }
  .cta-in { padding: 44px 20px 40px; border-radius: 26px; }
  .sheet-plain { grid-template-columns: minmax(0, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 12px; }
  .header-cta { display: none; }
  .cb-chip span { display: none; }
  .cb-chip { padding: 0 10px; }
  .model-pill { font-size: 13px; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .pr, .cta-band, .related, .toc, .sheet { display: none !important; }
  .article-grid { display: block; }
}
