/*
 * Ajontec Tools Platform
 * (c) Ajontec - All rights reserved.
 * File: public/css/app.css - design system
 * --brand and --accent are injected from Admin -> Branding.
 */
:root {
  --ink: #13203B;
  --ink-2: #33415C;
  --muted: #5A6782;
  --line: #E2E7F0;
  --line-2: #CDD5E3;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --soft: #EEF2F8;
  --ok: #18794E;
  --ok-bg: #E9F7EF;
  --err: #C62A2F;
  --err-bg: #FDECEC;
  --warn-bg: #FFF6E0;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--bg); }
img, svg, video, canvas { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.announce a { color: #fff; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.35rem/1 var(--display); letter-spacing: -0.03em; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 1.05rem; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .nav > .dd > button { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav > a:hover, .nav > .dd > button:hover, .nav > a.on { background: var(--soft); color: var(--ink); }
.dd { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -120px; width: min(760px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px -18px rgba(19, 32, 59, .28); padding: 14px; display: none; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.dd.open .mega { display: grid; }
.mega a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.mega a:hover { background: var(--soft); }
.mega a span.n { color: var(--muted); font-weight: 500; margin-left: auto; font-size: .82rem; }
.hdr-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hdr-search { position: relative; }
.hdr-search input { width: 230px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px 0 36px; font: inherit; background: var(--bg); }
.hdr-search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.cat-strip { border-top: 1px solid var(--line); background: var(--surface); }
.cat-strip .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.cat-strip a { flex-shrink: 0; text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.cat-strip a:hover { border-color: var(--line-2); background: var(--soft); }
.cat-strip a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 18px; border-radius: 11px; border: 1px solid transparent; font: 650 .95rem/1.2 var(--body); cursor: pointer; text-decoration: none; white-space: normal; text-align: center; max-width: 100%; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-danger { background: var(--surface); color: var(--err); border-color: #F2C4C6; }
.btn-danger:hover { background: var(--err-bg); }
.btn-lg { min-height: 54px; padding: 8px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .85rem; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); }
textarea.input { resize: vertical; line-height: 1.5; }
textarea.code, .code { font-family: var(--mono); font-size: .88rem; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=color].input { padding: 4px; height: 44px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px 16px; }
.grid-fields .full { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- home ---------- */
.hero { padding: 44px 0 26px; }
.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero-inner.has-img { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; justify-items: start; text-align: left; }
.hero-text { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.has-img .hero-text { align-items: flex-start; }
.hero-img { width: 100%; max-height: 380px; object-fit: contain; border-radius: var(--radius-l); }
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); max-width: 22ch; margin: 10px 0 12px; }
.hero p.lead { font-size: clamp(.98rem, 1.4vw, 1.1rem); color: var(--muted); max-width: 60ch; margin: 0 0 22px; }
.hero-badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); padding: 5px 12px; border-radius: 99px; }
.big-search { position: relative; width: 100%; max-width: 680px; text-align: left; }
.big-search input { width: 100%; height: 60px; border-radius: 16px; border: 2px solid var(--ink); background: var(--surface); padding: 0 120px 0 58px; font: 500 1.15rem var(--body); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.big-search input:focus { outline: none; box-shadow: 6px 6px 0 var(--brand); border-color: var(--brand); }
.big-search > svg { position: absolute; left: 20px; top: 18px; width: 24px; height: 24px; }
.big-search kbd { position: absolute; right: 18px; top: 18px; font: 600 .8rem var(--body); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; background: var(--bg); }
.results { position: absolute; z-index: 60; top: calc(100% + 12px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(19, 32, 59, .35); max-height: 420px; overflow: auto; padding: 6px; display: none; }
.results.show { display: block; }
.results a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.results a.act, .results a:hover { background: var(--soft); }
.results .rn { font-weight: 650; }
.results .rd { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .empty { padding: 16px; color: var(--muted); }
.hdr-search .results { width: 380px; left: auto; right: 0; }
.facts { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; align-items: center; font-size: .9rem; color: var(--muted); }
.quick a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.quick a:hover { border-color: var(--ink); }
.facts b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.section { padding: 34px 0; }
.section-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-hd h2 { margin: 0; }
.section-hd a { font-weight: 650; text-decoration: none; white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cat-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.cat-card:hover { border-color: var(--line-2); }
.cat-card .ic { font-size: 1.6rem; line-height: 1; }
.cat-card h3 { margin: 10px 0 4px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.cat-card .cnt { font-size: .82rem; font-weight: 650; color: var(--c); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); min-height: 92px; }
.tool-card:hover { border-color: var(--c, var(--brand)); }
.tool-card .ti { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--c) 13%, #fff); }
.tool-card h3 { font-size: 1rem; margin: 2px 0 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tool-card p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.4; }
.badge { display: inline-flex; align-items: center; font: 700 .68rem/1 var(--body); padding: 4px 7px; border-radius: 6px; background: var(--accent); color: var(--ink); letter-spacing: .02em; }
.badge.ai { background: var(--ink); color: #fff; }
.cat-block { margin-bottom: 40px; }
.cat-block h2 { display: flex; gap: 10px; align-items: center; }

/* ---------- breadcrumb / page head ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: 18px 0 22px; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0; }
.page-head .tag { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; font-size: .85rem; color: var(--c); margin-bottom: 10px; text-decoration: none; }

/* ---------- tool page ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; padding-bottom: 50px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.drop .dz-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.drop strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.file-list .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.file-list .fs { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.file-list button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; font-size: 1rem; }
.file-list button:hover { background: var(--soft); color: var(--ink); }
.opts { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.status { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 11px; font-size: .94rem; margin-top: 14px; }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: #7A5200; }
.result h3 { margin-top: 0; }
.dl-list { display: grid; gap: 8px; margin: 12px 0; }
.dl-item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.dl-item .fn { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { width: 100%; border-collapse: collapse; font-size: .93rem; }
.kv th, .kv td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.kv th { color: var(--muted); font-weight: 600; width: 34%; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 18px; max-height: 560px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { position: sticky; top: 0; background: var(--soft); text-align: left; padding: 9px 10px; font-weight: 650; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; max-width: 520px; }
pre.out, .out-box { background: #0F1A2E; color: #E6ECF7; border-radius: 12px; padding: 14px 16px; overflow: auto; max-height: 520px; font: .86rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 10px 0; }
.md { line-height: 1.65; }
.md pre { background: #0F1A2E; color: #E6ECF7; border-radius: 10px; padding: 12px 14px; overflow: auto; font: .85rem/1.5 var(--mono); }
.md code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; margin: 10px 0; } .md th, .md td { border: 1px solid var(--line); padding: 6px 10px; }
.side h3 { font-size: 1rem; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.side-list a:hover { background: var(--soft); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: .93rem; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.locked { text-align: center; padding: 40px 20px; }
.locked .lk { font-size: 2.4rem; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-top: 18px; }
.sig-pad { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 170px; display: block; cursor: crosshair; }
.stat-big { font: 700 2.2rem/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat .v { font: 700 1.45rem/1.15 var(--display); overflow-wrap: anywhere; word-break: normal; }
.stat .k { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.preview-img { max-height: 420px; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 10px 0; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 18px 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 120px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: #fff; }
.swatch i { display: block; height: 70px; }
.swatch span { display: block; padding: 6px 8px; font: .8rem var(--mono); }
.chat { display: grid; gap: 12px; margin-bottom: 14px; max-height: 560px; overflow: auto; }
.msg { padding: 12px 14px; border-radius: 14px; max-width: 92%; }
.msg.user { background: var(--ink); color: #fff; justify-self: end; white-space: pre-wrap; }
.msg.assistant { background: var(--soft); }

/* ---------- auth / dashboard ---------- */
.auth-box { max-width: 440px; margin: 46px auto 70px; }
.auth-box .panel { padding: 30px; }
.form-stack { display: grid; gap: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: 650 .93rem var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.hist-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; background: var(--surface); }
.hist-item .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hist-item .when { color: var(--muted); font-size: .85rem; margin-left: auto; }
.pill { font-size: .78rem; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.usage-bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--brand); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 10px 0 18px; align-items: stretch; }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 20px; display: flex; flex-direction: column; min-width: 0; }
.plan h2 { margin: 0; font-size: 1.35rem; } .plan-desc { font-size: .9rem; margin: 6px 0 0; min-height: 2.6em; }
.plan.hl { border: 2px solid var(--brand); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--brand) 60%, transparent); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan .price { font: 700 2.3rem/1 var(--display); margin: 16px 0 6px; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: .9rem; }
.plan li { display: flex; gap: 8px; } .plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ---------- shared sections ---------- */
.section-tight { padding-top: 8px; }
.center { text-align: center; } .page-head.center p { margin: 0 auto; }
.center-h { text-align: center; margin: 10px 0 20px; }
.narrow { max-width: 780px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin-bottom: 30px; }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.why-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.why h3 { margin: 0 0 6px; } .why p { margin: 0; color: var(--muted); font-size: .93rem; }
.cta-band { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 28px 30px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; } .cta-band p { margin: 0; color: #C9D2E3; max-width: 60ch; }
.cta-band .btn { background: #fff; color: var(--ink); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 650; } .faq p { margin: 10px 0 0; color: var(--ink-2); }
.page-hero { padding: 46px 0 20px; } .page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 12px 0 10px; } .page-hero .lead { color: var(--muted); font-size: 1.08rem; }
.about-stats { margin: 10px 0 30px; } .about-stats .stat { text-align: center; }
.about-split { display: grid; gap: 30px; margin-bottom: 30px; } .about-split.has-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.about-split img { width: 100%; border-radius: var(--radius-l); object-fit: cover; max-height: 420px; }
.about-split p { color: var(--ink-2); line-height: 1.7; }
.company-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.company-card h3 { margin-top: 0; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; padding-top: 30px; align-items: start; }
.legal-nav { position: sticky; top: 140px; } .legal-nav a.on { background: var(--soft); }
.prose.legal { max-width: none; } .prose.legal h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); } .prose.legal h2 { font-size: 1.15rem; margin-top: 26px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: .88rem; }
.captcha-row { display: flex; gap: 8px; align-items: center; } .captcha-row img { border-radius: 8px; border: 1px solid var(--line); max-width: 100%; height: auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 34px; margin-bottom: 60px; line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D2E3; padding: 46px 0 26px; margin-top: 40px; }
.site-footer a { color: #E6ECF7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-grid h4 { color: #fff; font: 650 .95rem var(--display); margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .92rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }

/* ---------- toast & user menu ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; z-index: 200; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.umenu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(19, 32, 59, .3); min-width: 210px; padding: 6px; display: none; }
.dd.open .umenu { display: block; }
.umenu a, .umenu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: 600 .92rem var(--body); cursor: pointer; }
.umenu a:hover, .umenu button:hover { background: var(--soft); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }

code, .code { overflow-wrap: anywhere; }
.tool-layout > *, .panel { min-width: 0; }

.nav-mobile-only { display: none !important; }
@media (max-width: 780px) { .nav > a.nav-mobile-only { display: block !important; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; } }

/* ---------- ads ---------- */
.ad-slot { margin: 16px 0; text-align: center; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 8px; }
.ad-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 18px; }
/* ---------- checkout ---------- */
.checkout { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.gw-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; cursor: pointer; font-weight: 600; }
.gw-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.gw-opt small { display: block; font-weight: 400; color: var(--muted); }
.gw-opt input { accent-color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-desc { min-height: 0; } }
@media (max-width: 1020px) {
  .tool-layout[style] { grid-template-columns: 1fr !important; }
  .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; }
  .hdr-search { display: none; }
  .tool-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px; }
  .nav.open { display: flex; }
  .mega { position: static; width: 100%; grid-template-columns: 1fr 1fr; box-shadow: none; border: 0; padding: 4px 0; }
  .hdr-right .btn-ghost { display: none; }
  .hero { padding: 26px 0 16px; } .hero-inner.has-img { grid-template-columns: 1fr; justify-items: center; text-align: center; } .has-img .hero-text { align-items: center; } .hero-img { max-height: 220px; }
  .plans-4, .plans-3 { grid-template-columns: 1fr; } .about-split.has-img { grid-template-columns: 1fr; } .cta-band { padding: 22px; } .facts { gap: 6px 14px; font-size: .88rem; }
  .big-search input { height: 58px; font-size: 1rem; padding-right: 20px; }
  .big-search kbd { display: none; }
  .big-search > svg { top: 17px; }
  .panel { padding: 18px; border-radius: var(--radius); }
  .stats { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .stat .v { font-size: 1.12rem; }
  .stat-big { font-size: 1.7rem; }
  .prose { padding: 22px; }
}
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } .mega { grid-template-columns: 1fr; } .hdr-right .btn-primary { padding: 0 12px; } .logo { font-size: 1.15rem; } .tool-grid, .cat-grid { grid-template-columns: 1fr; } .quick span { width: 100%; text-align: center; } }
@media (max-width: 360px) { .wrap { padding: 0 14px; } .big-search input { padding-left: 50px; } .hdr { gap: 10px; } .logo-mark { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .cat-strip, .side, .crumbs, .page-head, .no-print, .announce { display: none !important; }
  body { background: #fff; } .panel { border: 0; padding: 0; } .tool-layout { display: block; }
}
