/* FreeGPT v2 */
:root {
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --surface: #ffffff;
  --surface-2: #f2f6f3;
  --text: #0d1a14;
  --text-2: #3b4a42;
  --muted: #66766e;
  --border: #e1e8e4;
  --border-2: #cfdad4;
  --brand: #00cb75;
  --brand-2: #bee75e;
  --brand-ink: #062b1b;
  --link: #00804a;
  --grad: linear-gradient(135deg, #00cb75 0%, #6ad86a 55%, #bee75e 100%);
  --ring: 0 0 0 3px rgba(0, 203, 117, .25);
  --mark-bg: rgba(0, 203, 117, .13);
  --mark-text: #006b3d;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .05);
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 10px 28px -12px rgba(16, 24, 20, .16);
  --shadow-lg: 0 28px 64px -24px rgba(16, 24, 20, .3);
  --radius: 16px;
  --header-h: 64px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0f0d;
  --bg-alt: #0e1512;
  --surface: #121a16;
  --surface-2: #18221d;
  --text: #ebf2ee;
  --text-2: #bdcac3;
  --muted: #8b9a92;
  --border: #1f2b25;
  --border-2: #2c3b34;
  --link: #3ee39a;
  --mark-bg: rgba(0, 203, 117, .15);
  --mark-text: #6cf0b2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
p, .lead, .card-text { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.075rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh) h2, :lang(ja) h2, :lang(ko) h2 { letter-spacing: 0; }
:lang(ko) { word-break: keep-all; }
h1, h2, h3, .card-title, .card-text, .facts th, .facts td { overflow-wrap: anywhere; }
:is(h1, h2, h3, .card-title, .card-text, .pv-content th, .pv-content td, .facts th, .facts td):is(:lang(de), :lang(nl)) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { 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-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.15em; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s, color .15s; }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--grad); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -6px rgba(0, 203, 117, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -8px rgba(0, 203, 117, .65); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--brand); background: var(--surface-2); }
.btn-ghost.is-done { border-color: var(--brand); color: var(--link); }
.btn-soft { background: var(--mark-bg); color: var(--link); }
.btn-soft:hover { background: rgba(0, 203, 117, .24); }
.btn-sm { padding: .5em .9em; font-size: .875rem; }
.btn-lg { padding: .85em 1.4em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* Backdrop lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside the header box. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg); background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); opacity: 0; transition: opacity .2s; }
.site-header.is-scrolled::before, .nav-open .site-header::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .35); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand img { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-weight: 500; font-size: .95rem; white-space: nowrap; cursor: pointer; text-decoration: none !important; }
.nav-link:hover, .nav-dd.open > .nav-link, .nav-link.is-current, .nav-dd.is-current > .nav-link { color: var(--text); background: var(--surface-2); }
.nav-chat .ic { color: var(--brand); }
.dd-chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd { position: relative; }
.nav-dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 300px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd.open > .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(620px, 92vw); }
.dd-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.dd-item:hover { background: var(--surface-2); }
.dd-item strong { display: block; font-weight: 600; font-size: .95rem; }
.dd-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.dd-item .tile, .dd-item .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
.dd-item .tile .ic, .dd-item .avatar .ic { width: 18px; height: 18px; }
.dd-right { left: auto; right: 0; }
.lang-menu { min-width: 230px; max-height: min(72vh, 540px); overflow: auto; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: .93rem; text-decoration: none !important; }
.lang-item:hover { background: var(--surface-2); }
.lang-item.is-current { color: var(--link); font-weight: 600; }
.lang-item .ic { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.icon-btn .ic { width: 18px; height: 18px; }
.lang-code { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
:root:not([data-theme="dark"]) .only-dark, [data-theme="dark"] .only-light { display: none; }
.menu-btn, .nav-extra { display: none; }
.menu-btn .only-open, .nav-open .menu-btn .only-closed { display: none; }
.nav-open .menu-btn .only-open { display: block; }
@media (hover: hover) and (min-width: 1024px) {
  .main-nav .nav-dd:hover > .dd-menu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-dd:hover > .nav-link { color: var(--text); background: var(--surface-2); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-about { display: none; }
}
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px 16px 40px; background: var(--bg); border-top: 1px solid var(--border); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav .nav-link { justify-content: space-between; width: 100%; padding: 13px 14px; font-size: 1.05rem; }
  .main-nav .nav-chat { justify-content: flex-start; }
  .main-nav .dd-menu { position: static; display: none; min-width: 0; width: auto; padding: 0 0 8px 6px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; }
  .main-nav .dd-menu::before { display: none; }
  .main-nav .nav-dd.open > .dd-menu { display: block; }
  .main-nav .dd-grid { display: block; width: auto; }
  .nav-extra { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-extra .btn { width: 100%; }
}
.header-cta .cta-short { display: none; }
@media (max-width: 560px) {
  .header-row { gap: 10px; }
  .lang-code, .header-actions .theme-btn { display: none; }
  .header-cta { padding: .5em .8em; }
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline-flex; align-items: center; gap: 6px; }
  .header-cta .ic { width: 16px; height: 16px; }
}
@media (max-width: 359px) {
  .header-cta { display: none; }
}

/* Hero */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero { padding: 56px 0 44px; }
.hero::before, .page-hero::before { content: ''; position: absolute; z-index: -1; inset: -120px 0 auto 0; height: 620px; background: radial-gradient(40% 50% at 22% 38%, rgba(0, 203, 117, .15), transparent 70%), radial-gradient(34% 42% at 82% 22%, rgba(190, 231, 94, .2), transparent 70%); pointer-events: none; }
.page-hero::before { height: 460px; opacity: .8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .82rem; font-weight: 600; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 203, 117, .18); }
.lead { max-width: 40em; color: var(--text-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.ask { position: relative; display: flex; align-items: flex-end; gap: 8px; max-width: 620px; margin: 26px 0 14px; padding: 9px 9px 9px 18px; border: 1px solid var(--border-2); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.ask:focus-within { border-color: var(--brand); box-shadow: var(--shadow), var(--ring); }
.ask textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 200px; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; line-height: 1.5; resize: none; }
.ask textarea::placeholder { color: var(--muted); }
.ask-send { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--grad); color: var(--brand-ink); cursor: pointer; transition: transform .15s; }
.ask-send:hover { transform: translateY(-1px); }
.ask-send .ic { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.chip:hover { border-color: var(--brand); background: var(--surface-2); color: var(--text); }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges .ic { width: 16px; height: 16px; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Chat preview */
.hero-visual { position: relative; }
.hero-visual::after { content: ''; position: absolute; z-index: -1; inset: 10% -3% -5% 10%; border-radius: 40px; background: var(--grad); opacity: .2; filter: blur(44px); }
.preview { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: .92rem; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.preview-bar span { margin-left: 8px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.preview-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.pv-user { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--bg); font-weight: 500; }
.pv-ai { display: flex; gap: 10px; }
.pv-avatar { flex: none; width: 28px; height: 28px; }
.pv-content { flex: 1; min-width: 0; }
.pv-content p { margin: 0 0 10px; color: var(--text-2); }
.pv-content table { width: 100%; border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .86rem; }
.pv-content th { padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); text-align: left; font-weight: 600; }
.pv-content td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.pv-content tr:last-child td { border-bottom: 0; }
.pv-content .pv-tip { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; font-size: .85rem; }
.pv-tip .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.preview-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px 18px; padding: 8px 8px 8px 16px; border: 1px solid var(--border-2); border-radius: 14px; color: var(--muted); }
.preview-input b { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: var(--brand-ink); }
.preview-input .ic { width: 16px; height: 16px; }

/* Sections and grids */
.section { padding: 72px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt + .section-alt { border-top: 0; }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { margin: 0; color: var(--text-2); font-size: 1.05rem; }
.section-head .kicker { margin-bottom: 14px; }
.section-head-sm { margin-top: 52px; margin-bottom: 24px; }
.section-head-sm h2 { font-size: 1.4rem; }
.section-more { margin: 32px 0 0; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { gap: 48px; align-items: start; }
.split h2 { font-size: 1.5rem; }

/* Cards */
.card { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-link { display: flex; align-items: flex-start; gap: 14px; width: 100%; color: var(--text); font: inherit; text-align: left; text-decoration: none !important; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card-body { flex: 1; min-width: 0; }
.card-title { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.card-text { display: block; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card-arrow { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); transition: transform .15s, color .15s; }
.card-link:hover .card-arrow { transform: translateX(3px); color: var(--brand); }
.tile, .avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.tile .ic, .avatar .ic { width: 22px; height: 22px; }
.tile-violet { background: #efe9ff; color: #6d3df0; }
.tile-blue { background: #e6efff; color: #2563eb; }
.tile-amber { background: #fff1d6; color: #b45d00; }
.tile-teal { background: #daf6f1; color: #0b8273; }
.tile-rose { background: #ffe6ee; color: #cf2f68; }
.tile-green { background: #d9f9e7; color: #078a4f; }
[data-theme="dark"] .tile-violet { background: rgba(124, 92, 255, .17); color: #b9a6ff; }
[data-theme="dark"] .tile-blue { background: rgba(59, 130, 246, .17); color: #93bbff; }
[data-theme="dark"] .tile-amber { background: rgba(245, 158, 11, .15); color: #f8c069; }
[data-theme="dark"] .tile-teal { background: rgba(20, 184, 166, .15); color: #6fe0d0; }
[data-theme="dark"] .tile-rose { background: rgba(244, 63, 94, .15); color: #ff9ab3; }
[data-theme="dark"] .tile-green { background: rgba(0, 203, 117, .15); color: #5ef0ae; }
.avatar { color: #fff; font-weight: 700; font-size: 1.15rem; }
.avatar-claude { background: #d97757; }
.avatar-gemini { background: linear-gradient(135deg, #4285f4, #9b72cb 60%, #d96570); }
.avatar-deepseek { background: #4d6bfe; }
.avatar-qwen { background: linear-gradient(135deg, #615ced, #8b5cf6); }
.avatar-image { background: linear-gradient(135deg, #f472b6, #fb923c); }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.feature-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mark-bg); color: var(--link); }
.feature-ic .ic { width: 21px; height: 21px; }
.about-card h2 { font-size: 1.25rem; }
.about-card p { margin: 0; color: var(--text-2); }
.use-card { flex-direction: column; gap: 8px; padding: 18px; }
.mini-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); transition: background-color .15s, color .15s; }
.mini-ic .ic { width: 18px; height: 18px; }
.use-card:hover .mini-ic { background: var(--mark-bg); color: var(--link); }
.models-grid .model-card:last-child { grid-column: span 1; }

/* Steps, checklists, tips */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--grad); color: var(--brand-ink); font-weight: 700; }
.step p { color: var(--text-2); }
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .94rem; }
.checklist .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.checklist-lg { gap: 0; }
.checklist-lg li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
.checklist-lg li:last-child { border-bottom: 0; }
.tips { display: grid; gap: 12px; }
.tip { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tip-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--mark-bg); color: var(--link); font-weight: 700; font-size: .9rem; }
.tip-num .ic { width: 16px; height: 16px; }
.tip h3 { margin: 2px 0 4px; font-size: 1rem; }
.tip p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Prompts */
.prompt-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prompt-tag { align-self: flex-start; margin-bottom: 10px; padding: 3px 8px; border-radius: 6px; background: var(--mark-bg); color: var(--link); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.prompt-card h3 { margin-bottom: 8px; }
.prompt-text { flex: 1; margin: 0 0 16px; color: var(--text-2); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.prompt-text mark, .lead mark { padding: 0 3px; border-radius: 4px; background: var(--mark-bg); color: var(--mark-text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .9rem; font-weight: 500; text-decoration: none !important; }
.pill:hover { border-color: var(--brand); color: var(--text); }
.pill .ic { width: 16px; height: 16px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cat-head h2 { margin: 0; }
.hero-col { max-width: 780px; }
.cat-bar { position: sticky; top: var(--header-h); z-index: 40; border-bottom: 1px solid var(--border); background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cat-bar .pills { flex-wrap: nowrap; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.cat-bar .pills::-webkit-scrollbar { display: none; }
.cat-bar .pill { flex: none; }
.pill.is-active { border-color: var(--brand); background: var(--mark-bg); color: var(--link); }
html:has(.cat-bar) { scroll-padding-top: calc(var(--header-h) + 76px); }
.prompt-cat { padding: 56px 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 600; font-size: 1.02rem; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--text-2); }

/* Page parts */
.page-hero { padding: 28px 0 36px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); }
.crumbs .ic { width: 14px; height: 14px; }
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.page-title h1 { margin: 0; }
.page-title .tile, .page-title .avatar { width: 54px; height: 54px; border-radius: 15px; font-size: 1.4rem; }
.page-title .tile .ic, .page-title .avatar .ic { width: 26px; height: 26px; }
.facts { width: 100%; border: 1px solid var(--border); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); }
.facts th, .facts td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.compare-card { padding: 36px; text-align: center; }
.compare-card .feature-ic { margin-bottom: 14px; }
.compare-card p { max-width: 44em; margin: 0 auto 22px; color: var(--text-2); font-size: 1.05rem; }
.note { margin: 20px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.contact-card h2 { margin-bottom: 4px; font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--text-2); }
.prose { color: var(--text-2); font-size: 1.05rem; }
.prose h2 { margin: 1.8em 0 .5em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose address { margin-bottom: 1em; font-style: normal; }
.legal { font-size: 1rem; }
.about-img { width: 100%; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 18px; }

/* Forms */
.form { padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea { display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: 12px; outline: 0; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { min-height: 160px; resize: vertical; }
.form-status { margin: 14px 0 0; text-align: center; }
[data-feedback-form][data-state=error] [data-feedback-status] { color: #e5484d; }
[data-feedback-form][data-state=sent] [data-feedback-status] { color: var(--link); }
[data-feedback-form] altcha-widget { --altcha-max-width: 100%; display: block; }

/* CTA band, ads, cross-promo */
.cta-section { padding-top: 24px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(0, 203, 117, .2), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(190, 231, 94, .24), transparent 60%), var(--surface); }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--text-2); }
.ad-slot { max-width: 1180px; margin: 8px auto; padding: 0 20px; text-align: center; }
.xp-top, .xp-bottom { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Footer */
.site-footer { padding: 52px 0 28px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { max-width: 30em; margin: 12px 0 16px; color: var(--muted); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-col h2 { margin-bottom: 12px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-langs a { color: var(--muted); font-size: .88rem; }
.footer-langs a.is-current { color: var(--text); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* 404 */
.not-found { text-align: center; }
.nf-code { margin: 24px 0 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; }
.not-found .ask { margin-left: auto; margin-right: auto; text-align: left; }
.not-found .hero-actions, .not-found .lead { justify-content: center; margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1023px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { max-width: 580px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 36px; }
  .grid-2.split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .prompt-cat { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-card { padding: 14px; }
  .card { padding: 18px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .page-title .tile, .page-title .avatar { width: 46px; height: 46px; }
  .preview { font-size: .86rem; }
  .compare-card { padding: 26px 20px; }
  .facts th { width: 42%; }
}
@media (min-width: 641px) {
  .grid-3 > .prompt-card:first-child:nth-last-child(5) { grid-column: span 2; }
}
@media (min-width: 861px) and (min-height: 760px) {
  .split > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 400px) {
  .btn-lg, .btn-block { white-space: normal; text-align: center; }
  .pv-content th, .pv-content td { padding: 6px 7px; }
  .facts th, .facts td { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .xp-top, .xp-bottom, .cta-section { display: none !important; }
}
