/* chatg.org site styles (pages other than the chat app). Tokens: tokens.css. Logical properties throughout for RTL. */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only, .cg-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300; padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 48px); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 868px; }
.muted { color: var(--muted); }

/* icons (paths come from cg_icon / icons.svg; stroke styling here) */
.i {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-flip { transform: scaleX(-1); }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] .i-dir.i-flip { transform: none; }
.mark { width: 28px; height: 28px; flex: none; }
.mark-xs { width: 16px; height: 16px; }
.mark-xl { width: 60px; height: 60px; }

/* ------------------------------------------------------------------ buttons, chips, tiles */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease), filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 17px; height: 17px; }
.btn-xs { --h: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-xs .i { width: 15px; height: 15px; }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { background: color-mix(in srgb, var(--text) 86%, var(--accent)); }
.btn-grad {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px -8px rgba(91, 91, 246, .7);
}
.btn-grad:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -8px rgba(91, 91, 246, .75); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); background: var(--bg-soft); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.btn-light { background: #fff; color: #0E0F14; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #F1F2F8; }
.btn .i-dir { transition: transform .2s var(--ease); }
.btn:hover .i-dir { transform: translateX(2px); }
[dir="rtl"] .btn:hover .i-dir { transform: scaleX(-1) translateX(2px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 11px;
  background: transparent; color: var(--text-soft); transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn-ring { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); }
.icon-btn-ring:disabled { opacity: .4; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); background: var(--surface); color: var(--text-soft); font-size: 14px; font-weight: 500;
  line-height: 1.3; transition: border-color .15s, color .15s, background-color .15s, transform .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.chip .i { width: 15px; height: 15px; color: var(--muted); }
.chip-sm { padding: 6px 12px; font-size: 13px; }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }

.tile {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.tile .i { width: 21px; height: 21px; }
.tile-xs { width: 22px; height: 22px; border-radius: 7px; }
.tile-xs .i { width: 13px; height: 13px; stroke-width: 2; }
.tile-sm { width: 34px; height: 34px; border-radius: 10px; }
.tile-sm .i { width: 18px; height: 18px; }
.tile-lg { width: 54px; height: 54px; border-radius: 16px; }
.tile-lg .i { width: 26px; height: 26px; stroke-width: 1.7; }
.tile-grad { background: var(--accent-grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 12px 26px -10px rgba(91, 91, 246, .65); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--accent-ink);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; }
.link-more:hover { gap: 10px; }
.link-more, .link-more .i { transition: gap .2s var(--ease); }

/* model badges: brand-ish colour fields with initials (not logos) */
.badge {
  --b1: #5B5BF6; --b2: #22C3EE;
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px;
  background: linear-gradient(140deg, var(--b1), var(--b2)); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: -.02em; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px var(--b1);
}
.badge-xs { width: 22px; height: 22px; border-radius: 7px; font-size: 8.5px; box-shadow: none; }
.badge-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.badge-lg { width: 64px; height: 64px; border-radius: 19px; font-size: 18px; }
.badge-chatgpt { --b1: #10A37F; --b2: #0A7C61; }
.badge-claude { --b1: #E08A68; --b2: #C2603F; }
.badge-gemini { --b1: #4A8AF4; --b2: #9B6FD6; }
.badge-deepseek { --b1: #5872FF; --b2: #2D47CF; }
.badge-grok { --b1: #2A2B30; --b2: #0B0B0D; }
.badge-llama { --b1: #1877F2; --b2: #0A4BB0; }
.badge-qwen { --b1: #7B5CF5; --b2: #5A3FD8; }
.badge-mistral { --b1: #FF8A1F; --b2: #F2541B; }
[data-theme="dark"] .badge-grok { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset; }
.vs { display: inline-flex; align-items: center; }
.vs .badge + .badge { margin-inline-start: -10px; box-shadow: 0 0 0 3px var(--surface); }
.vs-lg { gap: 14px; }
.vs-lg .badge + .vs-x + .badge { margin: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px var(--b1); }
.vs-x { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-in { position: relative; display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 10px; }
.logo-word { font-size: 19.5px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text-soft); font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.nav-link .i-chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 4px); inset-inline-start: 50%; width: min(980px, calc(100vw - 32px));
  transform: translateX(-50%); padding-top: 8px; z-index: 60; animation: pop-in .18s var(--ease);
}
[dir="rtl"] .mega { transform: translateX(50%); }
.mega-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; padding: 10px; border: 1px solid var(--border);
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.mega-models .mega-in { grid-template-columns: minmax(0, 1fr) 260px; }
.mega-grid { display: grid; gap: 2px; align-content: start; }
.mega-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 13px; transition: background-color .15s; }
.mega-item:hover { background: var(--bg-soft); }
.mega-item strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.mega-item small {
  display: -webkit-box; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mega-item-model { align-items: center; }
.mega-list { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.mega-list ul { list-style: none; display: grid; gap: 2px; }
.mega-list a { display: block; padding: 7px 10px; margin-inline: -10px; border-radius: 9px; color: var(--text-soft); font-size: 14px; }
.mega-list a:hover { background: var(--surface); color: var(--text); }
.mega-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mega-side {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 100%;
  padding: 20px; overflow: hidden; border-radius: 14px; background: var(--bg-soft); isolation: isolate;
}
.mega-side-glow {
  position: absolute; inset: -30% -30% auto auto; width: 220px; height: 220px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 91, 246, .32), rgba(34, 195, 238, .14) 60%, transparent);
  filter: blur(10px);
}
.mega-side strong { font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.mega-side small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.mega-side-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.hdr-cta { margin-inline-start: 8px; }
.hdr-cta .i { width: 15px; height: 15px; }
.burger { display: none; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -4px); } }
[dir="rtl"] .mega { animation-name: pop-in-rtl; }
@keyframes pop-in-rtl { from { opacity: 0; transform: translate(50%, -4px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } }

/* popovers (language, theme) */
.pop { position: relative; }
.lang-btn { width: auto; gap: 6px; padding: 0 10px; }
.lang-code { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.pop-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; min-width: 200px; padding: 6px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg);
  animation: fade-up .16s var(--ease);
}
.pop-up .pop-panel { top: auto; bottom: calc(100% + 8px); inset-inline-end: auto; inset-inline-start: 0; }
.lang-panel { width: 290px; padding: 8px; }
.lang-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 6px; border-radius: 11px; background: var(--surface-2); color: var(--muted); }
.lang-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; }
.lang-search input::-webkit-search-cancel-button { display: none; }
.lang-list { list-style: none; max-height: min(360px, 52vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: var(--text-soft); font-size: 14px;
}
.lang-list a:hover, .lang-list a.is-focus { background: var(--bg-soft); color: var(--text); }
.lang-list a[aria-current] { color: var(--accent-ink); font-weight: 600; }
.lang-list small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.lang-list .i { width: 16px; height: 16px; }
.theme-panel { min-width: 170px; }
.theme-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 10px;
  background: none; color: var(--text-soft); font-size: 14px; text-align: start;
}
.theme-panel button:hover { background: var(--bg-soft); color: var(--text); }
.theme-panel button[aria-checked="true"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.theme-panel .i { width: 17px; height: 17px; }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto; background: var(--bg); animation: sheet-in .22s var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; flex: none; height: var(--header-h); }
.sheet-nav { display: flex; flex-direction: column; padding-top: 6px; }
.sheet-link, .sheet-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--border);
  font-size: 18px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none;
}
.sheet-group > summary::-webkit-details-marker { display: none; }
.sheet-link .i, .sheet-group > summary .i { color: var(--muted); transition: transform .2s var(--ease); }
.sheet-group[open] > summary .i { transform: rotate(180deg); }
.sheet-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px 0 14px; border-bottom: 1px solid var(--border); }
.sheet-sub a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px; border-radius: 10px; color: var(--text-soft); font-size: 14.5px; line-height: 1.3; }
.sheet-sub a:hover { background: var(--bg-soft); }
.sheet-sub .i { color: var(--accent-ink); }
.sheet-sub .sheet-all { grid-column: 1 / -1; color: var(--accent-ink); font-weight: 600; }
.sheet-minor { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 18px 2px; color: var(--muted); font-size: 15px; }
.sheet-bottom { margin-top: auto; padding-top: 16px; }
.sheet-row { display: flex; gap: 8px; margin-bottom: 14px; }
.sheet-row .icon-btn { border: 1px solid var(--border-strong); height: 42px; }
.sheet-row .lang-btn { padding: 0 14px; }
.sheet-open { overflow: hidden; }

/* ------------------------------------------------------------------ hero (home) */
.hero { position: relative; padding: 76px 0 0; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; inset: -120px 0 0; filter: blur(60px) saturate(1.2); opacity: .9; }
.aurora span { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 620px; height: 420px; inset-inline-start: calc(50% - 560px); top: 0; background: radial-gradient(closest-side, rgba(91, 91, 246, .30), transparent); animation: drift 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 560px; height: 380px; inset-inline-start: calc(50% - 20px); top: 40px; background: radial-gradient(closest-side, rgba(34, 195, 238, .26), transparent); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
.aurora .a3 { width: 360px; height: 260px; inset-inline-start: calc(50% - 160px); top: 260px; background: radial-gradient(closest-side, rgba(255, 122, 89, .14), transparent); animation: drift 26s ease-in-out -3s infinite alternate; }
@keyframes drift { to { transform: translate3d(60px, 30px, 0) scale(1.08); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); opacity: .7;
}
[data-theme="dark"] .aurora { opacity: .75; }
[data-theme="dark"] .hero-grid { opacity: .5; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 75%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text-soft); font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.hero-badge:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hero-badge-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-grad); color: #fff; }
.hero-badge-ic .i { width: 13px; height: 13px; stroke-width: 2.2; }
.hero-badge > .i { width: 14px; height: 14px; color: var(--muted); }
.hero-title {
  max-width: 15ch; margin: 26px 0 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
  background: linear-gradient(180deg, var(--text) 40%, color-mix(in srgb, var(--text) 62%, var(--accent)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; }
.composer {
  position: relative; width: 100%; max-width: 720px; margin: 36px 0 0; padding: 16px 14px 12px 20px; border: 1px solid var(--border-strong);
  border-radius: 24px; background: var(--surface); text-align: start;
  box-shadow: 0 1px 2px rgba(14, 15, 20, .04), 0 24px 60px -24px rgba(60, 60, 160, .35), 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 1px 2px rgba(14, 15, 20, .04), 0 24px 60px -24px rgba(60, 60, 160, .4), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
[dir="rtl"] .composer { padding: 16px 20px 12px 14px; }
.composer textarea {
  display: block; width: 100%; min-height: 56px; max-height: 240px; padding: 0; border: 0; outline: 0; resize: none;
  background: none; color: var(--text); font-size: 17px; line-height: 1.55;
}
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.composer-model {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); font-size: 13px; font-weight: 600;
}
.composer-hint { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.send-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 13px;
  background: var(--text); color: var(--bg); transition: background .2s, transform .15s var(--ease), box-shadow .2s;
}
.send-btn:hover { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 91, 246, .8); }
.send-btn .i { width: 19px; height: 19px; stroke-width: 2.1; }
.send-btn-sm { width: 30px; height: 30px; border-radius: 10px; }
.send-btn-sm .i { width: 15px; height: 15px; }
.composer-bar .send-btn { margin-inline-start: 4px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; margin: 20px 0 0; list-style: none; }
.hero-note { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0 0; color: var(--muted); font-size: 13.5px; }
.hero-note .i { width: 15px; height: 15px; color: var(--success); }

/* showcase: hero image as a backdrop for an HTML mock of the chat */
.showcase {
  position: relative; margin: 64px 0 0; padding: 56px 7% 0; overflow: hidden; border: 1px solid var(--border);
  border-radius: 30px; background: var(--surface-2); isolation: isolate;
}
.showcase-art { position: absolute; inset: 0; z-index: -1; }
.showcase-art picture, .showcase-art img { width: 100%; height: 100%; object-fit: cover; }
.showcase::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 2; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.mock {
  position: relative; z-index: 1; border: 1px solid color-mix(in srgb, var(--border-strong) 80%, transparent); border-bottom: 0;
  border-radius: 18px 18px 0 0; background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-lg); text-align: start;
}
.mock-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-pill { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; padding: 4px 10px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.mock-pill .i { width: 13px; height: 13px; color: var(--muted); }
.mock-actions { display: flex; gap: 12px; color: var(--muted); }
.mock-actions .i { width: 16px; height: 16px; }
.mock-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 420px; }
.mock-side { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border-inline-end: 1px solid var(--border); background: color-mix(in srgb, var(--bg-soft) 70%, transparent); overflow: hidden; }
.mock-new, .mock-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mock-new { border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; }
.mock-search { color: var(--muted); margin-bottom: 6px; }
.mock-new .i, .mock-search .i { width: 15px; height: 15px; }
.mock-group { padding: 10px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mock-item { padding: 7px 10px; border-radius: 9px; color: var(--text-soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-item.is-on { background: var(--surface-2); color: var(--text); font-weight: 500; }
.mock-chat { display: flex; flex-direction: column; gap: 22px; padding: 28px clamp(18px, 4vw, 48px) 0; min-width: 0; }
.mock-msg { font-size: 14.5px; }
.mock-user { align-self: flex-end; max-width: 70%; padding: 10px 16px; border-radius: 20px; background: var(--surface-2); }
.mock-ai { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.mock-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); }
.mock-lines { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.mock-lines i { display: block; width: var(--w); height: 9px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, var(--border-strong))); }
.mock-card { display: flex; flex-direction: column; gap: 9px; margin: 6px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.mock-card i:first-child { background: var(--accent-grad); opacity: .55; }
.mock-composer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; margin-bottom: 22px; padding: 10px 10px 10px 18px;
  border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); color: var(--muted); font-size: 14px; box-shadow: var(--shadow);
}
.mock-composer > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ sections */
.section { padding: 104px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { margin: 0 0 44px; }
.section-head.center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head.center .section-text { margin-inline: auto; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div:first-child { max-width: 660px; }
.section-title { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.07; letter-spacing: -.038em; }
.section-text { max-width: 620px; margin-top: 14px; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
.section-title-sm { margin: 0 0 22px; font-size: 22px; letter-spacing: -.025em; }

/* ad placeholders (Ezoic). Reserved height avoids layout shift when the ad loads. */
.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: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ad-slot > div { width: 100%; min-height: 250px; border-radius: 16px; background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.ad-slot--content { margin: 36px 0; }
.section-soft + .wrap > .ad-slot, .wrap > .ad-slot { margin-block: 48px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-cell {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); transition: border-color .2s, box-shadow .25s var(--ease);
}
.bento-cell:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.b-assist { grid-column: span 4; }
.b-prompts { grid-column: span 2; }
.b-history, .b-share, .b-tools { grid-column: span 2; }
.b-langs { grid-column: span 6; flex-direction: row-reverse; }
.b-langs .bento-visual { flex: 1; height: auto; min-height: 200px; }
.b-langs .bento-copy { width: 40%; align-self: center; }
.bento-visual {
  position: relative; display: grid; place-items: center; height: 230px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.b-langs .bento-visual { border-bottom: 0; border-inline-start: 1px solid var(--border); }
.bento-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); opacity: .6;
}
.bento-visual > * { position: relative; }
.bento-copy { padding: 22px 26px 26px; }
.bento-copy .tile { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 14px; }
.bento-copy .tile .i { width: 18px; height: 18px; }
.bento-copy h3 { font-size: 18.5px; letter-spacing: -.022em; line-height: 1.3; }
.bento-copy p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.orbit { position: relative; width: 100%; max-width: 560px; height: 100%; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; border: 1px dashed var(--border-strong); border-radius: 50%; transform: translate(-50%, -50%); }
[dir="rtl"] .orbit::before, [dir="rtl"] .orbit::after { transform: translate(50%, -50%); }
.orbit::before { width: 190px; height: 120px; }
.orbit::after { width: 400px; height: 210px; }
.orbit-core {
  position: absolute; inset-inline-start: calc(50% - 30px); top: calc(50% - 30px); display: grid; place-items: center; width: 60px; height: 60px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent);
}
.orbit-core .mark { width: 34px; height: 34px; }
.orbit-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  animation: float 6s ease-in-out infinite alternate;
}
[dir="rtl"] .orbit-chip { padding: 5px 5px 5px 11px; }
.o1 { inset-inline-start: 6%; top: 14%; }
.o2 { inset-inline-end: 8%; top: 10%; animation-delay: -2s; }
.o3 { inset-inline-start: 2%; top: 56%; animation-delay: -4s; }
.o4 { inset-inline-end: 3%; top: 52%; animation-delay: -1s; }
.o5 { inset-inline-start: 22%; bottom: 8%; animation-delay: -3s; }
.o6 { inset-inline-end: 24%; bottom: 10%; animation-delay: -5s; }
@keyframes float { to { transform: translateY(-6px); } }
.active-chip {
  position: absolute !important; inset-inline-start: 50%; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--radius-pill); background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  transform: translateX(-50%); box-shadow: 0 8px 20px -8px rgba(91, 91, 246, .8);
}
[dir="rtl"] .active-chip { transform: translateX(50%); }
.active-chip .i { width: 13px; height: 13px; }
.prompt-mini { width: 84%; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; line-height: 1.55; }
.prompt-mini strong { display: block; margin-bottom: 6px; font-size: 13.5px; }
.prompt-mini p { color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
mark { padding: 0 3px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600;
}
.pill-btn .i { width: 13px; height: 13px; }
.pill-ok { margin-top: 14px; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.v-history { align-content: center; gap: 8px; }
.v-history > * { width: min(82%, 300px); }
.mini-search, .mini-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-search { border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); }
.mini-row { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-soft); }
.mini-row:nth-child(2) { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }
.mini-search .i, .mini-row .i { width: 15px; height: 15px; color: var(--muted); }
.v-share { align-content: center; justify-items: center; }
.url-bar {
  display: inline-flex; align-items: center; gap: 9px; max-width: 90%; padding: 10px 16px; border: 1px solid var(--border-strong);
  border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); font: 500 13px var(--font-mono); white-space: nowrap; overflow: hidden;
}
.url-bar .i { width: 15px; height: 15px; color: var(--accent-ink); }
.url-bar b { color: var(--accent-ink); font-weight: 600; }
.v-tools { grid-template-columns: repeat(4, auto); gap: 10px; align-content: center; justify-content: center; }
.v-tools .tile { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.v-tools .tile:nth-child(6) { background: var(--accent-grad); color: #fff; border-color: transparent; transform: scale(1.12); box-shadow: 0 10px 22px -10px rgba(91, 91, 246, .8); }
.v-langs { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 26px; }
.lang-chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; box-shadow: var(--shadow-sm); }
.lang-chip:nth-child(3n+2) { transform: translateY(6px); }
.mode-dot { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-sm); }
.mode-dot .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; }
.mode-dot .i:first-child { background: var(--surface-2); }

/* cards */
.grid { display: grid; gap: 18px; }
.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; min-width: 0; overflow: hidden; border: 1px solid var(--border);
  border-radius: 20px; background: var(--surface); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card > .badge, .card > .tile, .card > .vs { margin: 22px 22px 0; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 22px 22px; }
.card-title { font-size: 16.5px; font-weight: 600; letter-spacing: -.018em; line-height: 1.3; padding-inline-end: 26px; }
.card-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.card-arrow {
  position: absolute; inset-inline-end: 16px; bottom: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); color: var(--text); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease);
}
.card-arrow .i { width: 15px; height: 15px; }
.card:hover .card-arrow, .card:focus-visible .card-arrow { opacity: 1; transform: none; }
.card-compact { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.card-compact > .badge { margin: 0; }
.card-compact .card-body { padding: 0; gap: 2px; }
.card-compact .card-text { -webkit-line-clamp: 2; font-size: 13.5px; }
.card-compact .card-meta { display: none; }
.card-compact .card-arrow { display: none; }
.card-photo { border: 0; aspect-ratio: 4 / 5; justify-content: flex-end; color: #fff; background: #111; }
.card-photo .card-media { position: absolute; inset: 0; aspect-ratio: auto; border: 0; }
.card-photo .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 14, 0) 35%, rgba(8, 9, 14, .82) 100%); }
.card-photo .card-body { position: relative; flex: none; padding: 20px; }
.card-photo .card-text { color: rgba(255, 255, 255, .78); -webkit-line-clamp: 2; }
.card-photo .card-arrow { top: 16px; bottom: auto; background: rgba(255, 255, 255, .92); color: #0E0F14; }
.compare-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.compare-label { margin-inline-end: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* carousel */
.carousel {
  --pad: max(24px, calc((100vw - var(--maxw)) / 2));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 16px; width: max-content; padding: 4px var(--pad) 28px; list-style: none; }
.carousel-nav { display: flex; gap: 8px; }
.assist-card {
  display: flex; flex-direction: column; gap: 10px; width: 300px; padding: 24px; border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface); scroll-snap-align: start; transition: border-color .2s, box-shadow .25s;
}
.assist-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.assist-card .tile { margin-bottom: 6px; }
.assist-card h3, .assist-card h2 { font-size: 17.5px; letter-spacing: -.02em; }
.assist-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.assist-card > p:not(.assist-starter) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.assist-starter { padding: 10px 13px; border-radius: 12px; background: var(--bg-soft); color: var(--text-soft) !important; font-size: 13.5px !important; }
.assist-card .btn { margin-top: auto; align-self: flex-start; }
.assist-grid .assist-card { width: auto; }
.starters { display: grid; gap: 6px; list-style: none; margin-bottom: 4px; }
.starters a { display: block; padding: 8px 12px; border-radius: 11px; background: var(--bg-soft); color: var(--text-soft); font-size: 13.5px; line-height: 1.45; transition: background-color .15s, color .15s; }
.starters a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font: 600 15px var(--font-mono);
}
.step:nth-child(2) .step-n { background: var(--accent-grad); color: #fff; }
.step h3 { font-size: 18.5px; letter-spacing: -.022em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* FAQ (home) */
.faq-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head .btn { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); interpolate-size: allow-keywords; }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.018em; line-height: 1.4;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent-ink); }
.faq-plus { position: relative; width: 26px; height: 26px; flex: none; border: 1px solid var(--border-strong); border-radius: 50%; transition: transform .25s var(--ease), background-color .2s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; border-radius: 2px; background: currentColor; }
[dir="rtl"] .faq-plus::before, [dir="rtl"] .faq-plus::after { margin: -.8px -5px 0 0; }
.faq-plus::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq-item[open] .faq-plus { background: var(--text); color: var(--bg); border-color: var(--text); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
[dir="rtl"] .faq-a { padding: 0 0 24px 48px; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* about (home) */
.about-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.about-text { margin: 18px 0 22px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-text p + p { margin-top: 14px; }
.about-art { overflow: hidden; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-lg); }

/* CTA band */
.cta-band { padding: 24px 0 104px; }
.cta-in {
  position: relative; overflow: hidden; padding: 80px 32px; border-radius: 32px; background: #0E0F14; color: #fff; text-align: center; isolation: isolate;
}
.cta-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%);
}
.cta-glow {
  position: absolute; inset: auto 0 -60%; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 35% 50%, rgba(91, 91, 246, .55), transparent 70%), radial-gradient(35% 45% at 65% 55%, rgba(34, 195, 238, .4), transparent 70%);
  filter: blur(30px);
}
.cta-in h2 { max-width: 760px; margin: 0 auto; font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -.04em; }
.cta-in p { max-width: 560px; margin: 16px auto 32px; color: rgba(255, 255, 255, .72); font-size: 17.5px; }
[data-theme="dark"] .cta-in { background: #12131B; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }

/* ------------------------------------------------------------------ footer */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 56px; }
.foot-brand p { max-width: 300px; margin: 16px 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-col h2, .foot-langs h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.foot-col ul { list-style: none; }
.foot-col li + li { margin-top: 9px; }
.foot-col a { color: var(--muted); font-size: 14px; transition: color .15s; }
.foot-col a:hover, .foot-langs a:hover, .foot-copy a:hover { color: var(--text); }
.foot-langs { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border); }
.foot-langs h2 { display: inline-flex; align-items: center; gap: 8px; }
.foot-langs h2 .i { width: 15px; height: 15px; color: var(--muted); }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; }
.foot-langs a { color: var(--muted); font-size: 13.5px; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 600; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 40px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.foot-note { max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.foot-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.foot-copy a { color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top .i { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ inner pages */
.page-hero { position: relative; padding: 56px 0 44px; isolation: isolate; }
.page-hero-bg, .share-page > .page-hero-bg, .nf > .page-hero-bg {
  position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 0%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 70%);
}
[dir="rtl"] .page-hero-bg { transform: scaleX(-1); }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 10%, transparent 70%); opacity: .55;
}
.page-hero-in { position: relative; }
.page-hero-copy { max-width: 820px; }
.page-hero-in.has-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
.has-aside .page-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: start; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; color: var(--muted); font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--text); }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text-soft); }
.page-hero-copy > .tile, .page-hero-copy > .badge, .page-hero-copy > .vs { margin-top: 28px; }
.page-hero h1 { margin: 22px 0 0; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.042em; }
.page-hero .lead, .nf .lead { max-width: 680px; margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 13.5px; }
.hub-art { overflow: hidden; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); }
.cover { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: var(--surface-2); }
.cover img { width: 100%; }

/* article layout: sticky TOC + prose */
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 740px); justify-content: center; gap: 72px; margin: 24px 0 72px; }
.article-grid.no-toc { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; scrollbar-width: none; }
.toc-box > summary { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; list-style: none; pointer-events: none; }
.toc-box > summary::-webkit-details-marker { display: none; }
.toc-box > summary .i { display: none; }
.toc ol { margin-top: 14px; border-inline-start: 1px solid var(--border); list-style: none; }
.toc a {
  display: block; margin-inline-start: -1px; padding: 6px 0 6px 16px; border-inline-start: 2px solid transparent; color: var(--muted);
  font-size: 14px; line-height: 1.4; transition: color .15s, border-color .15s;
}
[dir="rtl"] .toc a { padding: 6px 16px 6px 0; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-inline-start-color: var(--accent); font-weight: 500; }

.prose { min-width: 0; color: var(--text-soft); font-size: 17.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; color: var(--text); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 36px 0 10px; color: var(--text); font-size: 20.5px; line-height: 1.3; letter-spacing: -.02em; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin: 8px 0; padding-inline-start: 4px; }
.prose li::marker { color: var(--accent); }
.prose ol > li::marker { font-weight: 600; font-size: .92em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 32px 0; padding: 4px 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--accent); color: var(--text); font-size: 19px; line-height: 1.6; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: .15em .42em; border-radius: 6px; background: var(--surface-2); color: var(--text); font: .86em var(--font-mono); }
.prose pre { margin: 28px 0; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #0F1118; color: #E4E7F0; font: 14px/1.65 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.prose thead th { background: var(--bg-soft); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { color: var(--text); font-weight: 600; }
.callout { margin: 30px 0; padding: 18px 22px; border: 1px solid; border-radius: 16px; font-size: 16px; line-height: 1.65; }
.callout > :last-child { margin-bottom: 0; }
.callout-note { border-color: color-mix(in srgb, var(--accent) 22%, transparent); background: var(--accent-soft); }
.callout-tip { border-color: color-mix(in srgb, var(--success) 25%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.prose hr { margin: 44px 0; border: 0; border-top: 1px solid var(--border); }
.prose .ad-slot { max-width: none; }
.hub-intro { max-width: 760px; margin: 8px 0 0; }
.hub-cards { padding-top: 40px; }
.hub-cards .section-title-sm { margin-top: 56px; }

/* model facts */
.facts-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.facts-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.facts-title .i { width: 15px; height: 15px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; font-size: 14px; line-height: 1.5; }
.facts th { width: 38%; padding-inline-end: 14px; color: var(--muted); font-weight: 500; }
.facts tr:last-child > * { border-bottom: 0; }
.facts-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.facts-link span { text-decoration: underline; text-underline-offset: 3px; }
.facts-link .i { width: 14px; height: 14px; }

/* related */
.related { padding: 8px 0 72px; }

/* tool page */
.page-hero-tool { padding-bottom: 28px; }
.wrap-tool { position: relative; }
.tool-slot { max-width: 960px; margin: 0 auto; }
.tool-preview { padding: 22px; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.tp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.tp-label { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.tool-preview textarea {
  display: block; width: 100%; min-height: 150px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 16px;
  background: var(--bg-soft); font-size: 16px; line-height: 1.55; resize: vertical; outline: 0;
}
.tool-preview textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
.tp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.tp-select span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tp-select select, .field input, .field textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px;
}
.tp-select select { height: 44px; padding: 0 12px; opacity: 1; }
.tp-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.tp-result { display: grid; place-items: center; min-height: 120px; margin-top: 16px; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--muted); font-size: 14.5px; text-align: center; padding: 20px; }

/* prompt categories */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.prompt-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s, box-shadow .25s; }
.prompt-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.prompt-top { display: flex; align-items: baseline; gap: 12px; }
.prompt-n { color: var(--muted); font: 500 12.5px var(--font-mono); }
.prompt-top h2 { font-size: 17px; letter-spacing: -.018em; line-height: 1.35; }
.prompt-text { flex: 1; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.prompt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.prompt-actions { display: flex; gap: 6px; margin-inline-start: auto; }
[data-copy].is-done { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

/* contact */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; max-width: 1080px; margin-bottom: 24px; }
.contact-card { padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 24px; letter-spacing: -.025em; }
.contact-card > .muted { margin: 8px 0 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input { height: 48px; padding: 0 14px; }
.field textarea { min-height: 160px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus, .tp-select select:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-status { color: var(--muted); font-size: 14.5px; }
.form[data-state="sent"] .form-status { color: var(--success); }
.form[data-state="error"] .form-status { color: var(--danger); }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-mail { display: flex; gap: 14px; padding: 22px; border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.contact-mail a { color: var(--accent-ink); font-weight: 600; }
.contact-links { display: grid; gap: 10px; }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-weight: 600; transition: border-color .2s; }
.contact-links a:hover { border-color: var(--border-strong); }
.contact-links span { flex: 1; }
.contact-links .i { color: var(--muted); }

/* 404 */
.nf { position: relative; padding: 72px 0 104px; text-align: center; isolation: isolate; }
.nf-in { display: flex; flex-direction: column; align-items: center; }
.nf-art { width: 220px; overflow: hidden; margin-bottom: 28px; border-radius: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.nf h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.042em; }
.nf .lead { margin-inline: auto; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); color: var(--muted); font-size: 14px; transition: color .15s, background-color .15s; }
.nf-links a:hover { background: var(--surface-2); color: var(--text); }
.nf-links .i { width: 14px; height: 14px; }

/* share view */
.share-page { position: relative; padding-top: 48px; isolation: isolate; }
.share-bar { padding-bottom: 8px; }
.share-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.share-badge .i { width: 14px; height: 14px; }
.share-bar h1 { margin-top: 18px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.share-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.share-thread { margin: 16px 0 28px; }
.share-thread .cg-md-raw { white-space: pre-wrap; overflow-wrap: anywhere; }
.share-foot { padding: 20px 0 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; }
.share-page .cta-band { padding-top: 48px; }

/* chat placeholder (until inc/chat/page.php exists) */
.chat-ph { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.chat-ph-side { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-inline-end: 1px solid var(--border); background: var(--bg-soft); }
.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 h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.chat-ph-welcome p { max-width: 520px; color: var(--muted); }
.composer-dock { width: calc(100% - 32px); max-width: 780px; margin: 0 auto 24px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-assist, .b-langs { grid-column: span 2; }
  .b-prompts, .b-history, .b-share, .b-tools { grid-column: span 1; }
  .faq-split, .about-split, .foot-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .faq-head { position: static; }
  .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
  .toc { position: static; max-height: none; margin-bottom: 28px; }
  .toc-box { padding: 4px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
  .toc-box > summary { padding: 12px 0; pointer-events: auto; cursor: pointer; }
  .toc-box > summary .i { display: block; transition: transform .2s; }
  .toc-box[open] > summary .i { transform: rotate(180deg); }
  .toc-box ol { margin: 0 0 14px; }
  .page-hero-in.has-art, .has-aside .page-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hub-art { max-width: 560px; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 48px; }
  .hero-title { margin-top: 22px; }
  .composer { margin-top: 28px; padding: 14px 12px 10px 16px; border-radius: 20px; }
  [dir="rtl"] .composer { padding: 14px 16px 10px 12px; }
  .composer-hint { display: none; }
  .composer-bar { justify-content: space-between; }
  .chips li:nth-child(n+4) { display: none; }
  .showcase { margin-top: 44px; padding: 28px 14px 0; border-radius: 22px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); height: 360px; }
  .mock-side { display: none; }
  .mock-dots { display: none; }
  .mock-pill { margin-inline: 0 auto; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .section-head { margin-bottom: 30px; }
  .b-langs { flex-direction: column; }
  .b-langs .bento-copy { width: auto; }
  .b-langs .bento-visual { border-inline-start: 0; border-bottom: 1px solid var(--border); }
  .orbit::after { width: 300px; }
  .orbit-chip:nth-child(n+5) { display: none; }
  .active-chip { top: auto; bottom: 16px; }
  .o1 { inset-inline-start: 3%; } .o2 { inset-inline-end: 3%; } .o3 { inset-inline-start: 0; } .o4 { inset-inline-end: 0; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tool-grid .card-media { display: none; }
  .tool-grid .card-body { padding: 16px; }
  .tool-grid .card-title { font-size: 15px; padding: 0; }
  .tool-grid .card-text { font-size: 13.5px; }
  .tool-grid .card-arrow { display: none; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .model-grid .card-compact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .model-grid .card-compact .card-text { display: none; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-grid .card-photo { aspect-ratio: 3 / 4; border-radius: 16px; }
  .photo-grid .card-photo .card-body { padding: 14px; }
  .photo-grid .card-photo .card-title { font-size: 15px; padding: 0; }
  .photo-grid .card-photo .card-text { display: none; }
  .photo-grid .card-arrow { display: none; }
  .assist-card { width: 270px; padding: 20px; }
  .carousel-nav { display: none; }
  .faq-item > summary { font-size: 16.5px; padding: 18px 0; }
  .faq-a { padding-inline-end: 0; }
  [dir="rtl"] .faq-a { padding-inline-start: 0; }
  .about-split { gap: 32px; }
  .cta-band { padding-bottom: 64px; }
  .cta-in { padding: 56px 22px; border-radius: 26px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { margin-top: 18px; }
  .cover { border-radius: 18px; }
  .prose { font-size: 17px; }
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-preview { padding: 16px; border-radius: 20px; }
  .contact-card { padding: 22px; }
  .chat-ph { grid-template-columns: minmax(0, 1fr); }
  .chat-ph-side { display: none; }
}
@media (max-width: 560px) {
  .hdr-actions > .pop { display: none; }
  .hdr-cta { margin-inline-start: 0; }
  .header-in { gap: 12px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 46px); }
  .chips { gap: 6px; }
  .chip { padding: 7px 13px; font-size: 13.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-assist, .b-langs, .b-prompts, .b-history, .b-share, .b-tools { grid-column: auto; }
  .bento-visual { height: 210px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ad-slot > div { min-height: 280px; }
  .nf-art { width: 180px; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .hdr-cta span { display: none; }
  .hdr-cta { width: 38px; padding: 0; }
  .tool-grid, .model-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
  .card-arrow { display: none; }
  .card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .cta-band, .related, .toc, .sheet { display: none !important; }
  .article-grid { display: block; }
}
