/* Kitform UI: humanist type, near-black on white, cool greys, one signature gradient used sparingly. */
:root {
  --ink: #0b1220;
  --ink-2: #273142;
  --muted: #5b6474;
  --faint: #8a93a3;
  --line: #e6e8ee;
  --line-2: #eef0f4;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --violet: #6e56ff;
  --blue: #3a86ff;
  --pink: #ff4f9a;
  --orange: #ff9f43;
  --gradient: linear-gradient(120deg, #6e56ff 0%, #3a86ff 32%, #ff4f9a 68%, #ff9f43 100%);
  --ok: #12805c; --ok-bg: #e8f6f0;
  --warn: #b54708; --warn-bg: #fff4e5;
  --bad: #c4321b; --bad-bg: #fdecea;
  --info: #175cd3; --info-bg: #eef4ff;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .05), 0 30px 60px -12px rgba(30, 30, 80, .22);
  --font: "Source Sans 3", "Segoe UI", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern"; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.num, table, input[type=number] { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.eyebrow b { font-size: 12px; color: #fff; background: var(--ink); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons, inputs, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #1b2436; box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #cfd4dd; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c9c2; }
.btn-danger:hover { background: var(--bad-bg); }
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110, 86, 255, .16); }
input[type=color] { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
input[type=color]::-webkit-color-swatch { border: none; border-radius: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px); background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink) !important; text-decoration: none !important; }
.brand-mark { width: 28px; height: 28px; flex: none; background: url(/static/brand/icon.svg) center / contain no-repeat; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--soft); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg { position: absolute; inset: -40% -10% auto -10%; height: 760px; transform: skewY(-8deg); transform-origin: top left;
  background: var(--gradient); opacity: .95; z-index: -2; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 15% 60%, rgba(255, 255, 255, .0), rgba(255, 255, 255, .0)),
  linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%); }
.hero-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.0) 0, rgba(255,255,255,.55) 38%, #fff 62%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 20px; color: var(--ink); }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.window { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid rgba(16, 24, 40, .06); overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.window:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #fbfcfd; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ec; display: block; }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--faint); font-family: var(--mono); }
.mock { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; font-size: 13px; }
.mock-side { border-right: 1px solid var(--line-2); padding: 14px 10px; background: #fcfcfd; }
.mock-side div { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.mock-side div.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-row { display: flex; gap: 8px; }
.mock-sw { flex: 1; border-radius: 10px; height: 64px; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mock-sw small { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-family: var(--mono); color: rgba(255,255,255,.92); }
.mock-sw.light small { color: rgba(0,0,0,.6); }
.mock-type { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.mock-type .t1 { font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mock-type .t2 { color: var(--muted); font-size: 12px; }
.mock-gap { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 600; }
.mock-build { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.mock-build .bar { width: 120px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
.mock-build .bar i { display: block; height: 100%; width: 72%; background: var(--gradient); animation: load 2.4s var(--ease) infinite; }
@keyframes load { 0% { width: 8%; } 70% { width: 100%; } 100% { width: 100%; } }

.strip { padding: 8px 0 72px; }
.strip p { text-align: center; color: var(--faint); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.marks { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 18px; flex-wrap: wrap; }
.marks span { font-size: 20px; font-weight: 700; color: #9aa1ad; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.marks span i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid currentColor; display: inline-block; }

.section { padding: 96px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 16px; }
.kicker { font-weight: 700; font-size: 15px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 28px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.step h3 { margin: 10px 0 8px; }
.step .illo { height: 120px; border-radius: 12px; margin-bottom: 20px; background: var(--soft); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: #fff; padding: 28px; }
.feature h3 { margin: 14px 0 6px; font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }
.ficon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ok-bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312805c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.gapdemo { padding: 20px; display: grid; gap: 10px; }
.gaprow { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.gaprow b { display: block; font-size: 15px; }
.gaprow span { color: var(--muted); font-size: 14px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1180px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { position: relative; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: var(--r-lg); padding: 1px; background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.plan ul li::before { content: "—"; color: var(--faint); margin-right: 8px; }
.plan .btn { margin-top: auto; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.cta-band { border-radius: 24px; padding: 56px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--gradient); filter: blur(60px); opacity: .55; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: #c7cdd8; margin: 12px 0 28px; max-width: 520px; }
.cta-band .btn-light { border-color: transparent; }
footer.site { padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
footer.site .container { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- app shell ---------- */
.app-body { background: var(--soft); min-height: 100vh; }
.app-body .nav { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); }
.page { padding: 40px 0 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; }
.drop { display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 24px; border: 1.5px dashed #c9cfda;
  border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.drop:hover, .drop.over { border-color: var(--violet); background: #fbfaff; box-shadow: 0 0 0 4px rgba(110, 86, 255, .08); }
.drop .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); }
.drop h3 { font-size: 20px; }
.drop.busy { pointer-events: none; opacity: .75; }
.uploads { display: grid; gap: 8px; margin-top: 12px; }
.uploads:empty { display: none; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.upload-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row .state { grid-column: 1 / -1; }
.upload-row .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .3s ease; }
.upload-row.done .bar, .upload-row.failed .bar { display: none; }
.upload-row.failed .state { color: #b42318; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.sample { padding: 18px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); text-align: left; font: inherit; }
.sample:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sample .kind { font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 860px) { .samples { grid-template-columns: 1fr; } }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project { padding: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink) !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s var(--ease); }
.project:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.chips { display: flex; gap: 0; border-radius: 10px; overflow: hidden; height: 44px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.chips span { flex: 1; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
h2.sub { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 16px; }

/* ---------- project ---------- */
.proj-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.proj-head .title { flex: 1; min-width: 260px; }
.proj-head input.name { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; border: 1px solid transparent; padding: 2px 8px; margin-left: -9px; background: transparent; }
.proj-head input.name:hover { border-color: var(--line); background: #fff; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.layout > * { min-width: 0; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.tabs { position: sticky; top: 88px; display: grid; gap: 2px; }
@media (max-width: 900px) { .tabs { position: static; display: flex; overflow-x: auto; gap: 4px; } }
.tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; font: inherit; font-weight: 500;
  color: var(--ink-2); background: none; border: 1px solid transparent; cursor: pointer; text-align: left; white-space: nowrap; }
.tab:hover { background: #fff; }
.tab.on { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; }
.tab .count { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.panel { padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head p { color: var(--muted); max-width: 620px; margin-top: 6px; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; }
table.grid th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
table.grid td.src { font-size: 13px; color: var(--muted); max-width: 240px; }
.tbl-wrap { overflow-x: auto; margin: 0 -10px; padding: 0 10px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bad-bg); color: var(--bad); }
.sample-text { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line-2); }
.stat b { display: block; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .overview { grid-template-columns: repeat(2, 1fr); } }
.palette { display: flex; border-radius: 14px; overflow: hidden; height: 96px; margin-top: 20px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.palette div { flex: 1; display: flex; align-items: flex-end; padding: 10px; font-size: 12px; font-family: var(--mono); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.logo-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.logo-card .art { height: 140px; display: grid; place-items: center; padding: 16px;
  background: repeating-conic-gradient(#f3f4f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.logo-card .art img { max-height: 108px; object-fit: contain; }
.logo-card .art svg { max-height: 108px; max-width: 100%; }
.logo-card .placeholder { border: 1.5px dashed #c3c9d4; border-radius: 6px; display: grid; place-items: center; background: #f7f8fa; }
.logo-card .placeholder span { font-size: 11px; color: var(--muted); text-align: center; padding: 4px; }
.logo-card .info select { margin-top: 6px; padding: 2px 6px; font-size: 12px; border-radius: 6px; max-width: 100%; }
.logo-card .info b { overflow-wrap: anywhere; }
.comp-group { margin: 22px 0 12px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.comp-group .count { font-size: 12px; color: var(--muted); font-weight: 500; }
.logo-card .info { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tpl { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.tpl .art { background: var(--soft); padding: 16px; display: grid; place-items: center; height: 240px; }
.tpl .art svg { max-width: 100%; max-height: 208px; box-shadow: var(--shadow); border-radius: 4px; background: #fff; }
.tpl .info { padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; }
.gaps { display: grid; gap: 10px; }
.gap { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; }
.gap b { font-weight: 600; }
.gap .fix { color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 600px) { .gap { grid-template-columns: 1fr; gap: 6px; } }
.figma-steps { counter-reset: s; display: grid; gap: 14px; }
.fstep { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.fstep::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.code-box { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--soft); font-family: var(--mono); font-size: 20px; letter-spacing: .06em; }
.exports { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.export { padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px; color: var(--ink) !important; text-decoration: none !important; background: #fff; }
.export:hover { box-shadow: var(--shadow-sm); border-color: #cfd4dd; }
.export span { font-size: 14px; color: var(--muted); }
.savebar { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); transition: transform .3s var(--ease); z-index: 30;
  display: flex; gap: 12px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.savebar:not(.show) { box-shadow: none; opacity: 0; }
.savebar.show { transform: translate(-50%, 0); }
.savebar .btn-light { border: none; }
.toast { position: fixed; right: 24px; top: 80px; z-index: 40; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-weight: 500; max-width: 420px; opacity: 0; transform: translateY(-8px); transition: all .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: #f3c9c2; color: var(--bad); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: rgba(11,18,32,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 120px; border-radius: 14px; background: linear-gradient(90deg, #eef0f4, #f6f7fa, #eef0f4); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.fade-in { animation: fade .4s var(--ease) both; }
@keyframes fade { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .window { transform: none; } }
.hide { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.small { font-size: 14px; }
@media (max-width: 600px) { .mock { grid-template-columns: 1fr; } .mock-side { display: none; } .window { transform: none; } }

/* ---------- paywall ---------- */
.plan-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-opt { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; position: relative; }
.plan-opt .price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-opt .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-opt.featured::before { content: ""; position: absolute; inset: -1px; border-radius: 14px; padding: 1px; background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-opt .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 640px) { .plan-opts { grid-template-columns: 1fr; } }

.demo-banner { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 24px;
  border-radius: 14px; background: linear-gradient(120deg, #f3f0ff, #fdf2f8 60%, #fff7ed); border: 1px solid #ebe5ff; }
.demo-banner > div:first-child { color: var(--ink-2); min-width: 0; flex: 1 1 320px; }
.demo-banner b { color: var(--ink); margin-right: 4px; }

.ws-pick { display: grid; gap: 4px; min-width: 220px; }
.import-row { display: flex; gap: 8px; margin-top: 12px; }
.import-row input { flex: 1; min-width: 0; }
input[type=url] { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
input[type=url]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110, 86, 255, .16); }
.storage-line { margin-top: 10px; }
.team-grid { display: grid; gap: 20px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.member-row:first-child { border-top: 0; }
.member-row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.invite-form input { flex: 1 1 240px; min-width: 0; }
.invite-form select, .member-row select { width: auto; flex: 0 0 auto; }
.meter { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--gradient); }
.link-box { display: flex; gap: 8px; margin-top: 12px; }
.link-box input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; }
@media (max-width: 640px) { .member-row { grid-template-columns: minmax(0, 1fr) auto; } .member-row .actions { grid-column: 1 / -1; } }

.free-build { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(120deg, #f3f0ff, #fdf2f8 60%, #fff7ed); border: 1px solid #ebe5ff; }
.diff { display: grid; gap: 6px; padding-left: 18px; color: var(--ink-2); }
.sw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin: 0 4px; border: 1px solid rgba(0,0,0,.1); }
.confirm-card { border-color: #fde3c2; background: #fffaf2; }
.client-answer { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #f0fbf6; border: 1px solid #c8eedd; font-size: 14px; }

.folder-line { margin-top: 10px; }
.link-btn { color: var(--ink, inherit); text-decoration: underline; cursor: pointer; font-weight: 500; }
