/* Brisksoft (brisksoft.online), 06.10.2026.
   Dark "digital" theme: graphite with a dot grid, one accent (electric lime),
   Unbounded for display, Onest for text. Same blocks as Эталон/, new look. */

:root {
  --bg: #0b0e0d;
  --bg-2: #0f1312;
  --surface: #141918;
  --surface-2: #1b2120;
  --line: #242b29;
  --line-2: #33403c;
  --ink: #eef3f0;
  --ink-2: #b2bdb8;
  --ink-3: #7d8984;
  --accent: #c6f250;
  --accent-2: #a9d63a;
  --accent-ink: #0b0e0d;
  --accent-glow: rgba(198, 242, 80, .18);
  --accent-line: rgba(198, 242, 80, .38);

  --font-display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Helvetica Neue", Arial, sans-serif;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* dot grid, fading out towards the bottom of the first screen */
body::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1400px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(238, 243, 240, .13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.17rem; line-height: 1.6; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.hl { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* small label above headings: a lit dot + text, not uppercase */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  padding: .32rem .8rem .32rem .65rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(20, 25, 24, .7);
  margin-bottom: 1.3rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.25rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: .62rem .95rem; font-size: .94rem; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { background: #d4f86e; color: var(--accent-ink); box-shadow: 0 0 0 6px var(--accent-glow); }
.btn-outline { background: rgba(20, 25, 24, .6); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent-line); color: var(--ink); background: var(--surface-2); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.text-link { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(11, 14, 13, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .98rem; padding: .5rem .85rem; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.header-actions { display: flex; gap: .6rem; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 5.5rem 0 4.5rem; overflow-x: clip; }
.hero::before { /* lime glow behind the console */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -160px; top: -120px;
  background: radial-gradient(closest-side, rgba(198, 242, 80, .16), transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.6rem; }

.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
@media (max-width: 980px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero .container { grid-template-columns: 1fr; gap: 3rem; }
}

[data-reveal] { animation: reveal .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* console: a live-looking workspace instead of an illustration */
.console {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 33, 32, .92), rgba(16, 20, 19, .96));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 14px;
}
.console-bar { display: flex; align-items: center; gap: .7rem; padding: 4px 6px 14px; }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console-title { font-size: .9rem; color: var(--ink-3); }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--accent); font-weight: 600; }
.console-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.console-body { display: grid; grid-template-columns: 172px 1fr; gap: 12px; }

.phone {
  grid-row: span 2;
  background: #070908; border: 1px solid var(--line-2); border-radius: 26px;
  padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; position: relative;
}
.phone::before { content: ""; width: 46px; height: 6px; border-radius: 6px; background: var(--surface-2); margin: 0 auto 4px; }
.phone .ph-hero { height: 70px; border-radius: 12px; background: linear-gradient(135deg, var(--accent) 0%, #7fb52a 100%); }
.phone .ph-line { height: 8px; border-radius: 4px; background: var(--surface-2); }
.phone .ph-line.s { width: 62%; }
.phone .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.phone .ph-grid i { aspect-ratio: 1; border-radius: 9px; background: var(--surface-2); }
.phone .ph-size { margin-top: auto; text-align: center; font-size: .78rem; color: var(--ink-3); padding-top: 6px; }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--ink-3); margin-bottom: 10px; }
.panel-head b { color: var(--ink); font-weight: 600; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 0; padding-top: 2px; }
.job-name { font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-name span { color: var(--ink-3); }
.job-pct { font-size: .88rem; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.job-pct.done { color: var(--ink-3); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 40%); border-radius: inherit; background: var(--accent); transform-origin: left; animation: fill 5.5s var(--ease) infinite; }
.bar.done i { background: var(--line-2); animation: none; }
@keyframes fill { 0% { transform: scaleX(.18); } 70%, 100% { transform: scaleX(1); } }

.wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.wave i { flex: 1; border-radius: 3px; background: var(--accent); opacity: .85; height: var(--h, 40%); animation: eq 1.4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -120ms); transform-origin: center; }
.wave i:nth-child(3n) { opacity: .5; }
@keyframes eq { 50% { transform: scaleY(.45); } }

.typing { font-size: 1rem; color: var(--ink); line-height: 1.5; min-height: 3em; }
.typing .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.18em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 560px) {
  .console-body { grid-template-columns: 1fr; }
  .phone { display: none; }
}

/* ---------- stats ---------- */
.stats { padding: 0 0 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.stat { padding: 1.9rem 2rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: .7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .5em; color: var(--accent); letter-spacing: 0; margin-left: .25em; }
.stat-label { color: var(--ink-2); max-width: 26ch; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

/* ---------- sections ---------- */
.section { padding: 6rem 0; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head .lead { max-width: 52ch; }
@media (max-width: 760px) { .section { padding: 4.25rem 0; } }

/* about */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-art { position: relative; padding: 0 0 3.5rem 0; }
.about-art .art-main { border-radius: var(--radius-lg); border: 1px solid var(--line-2); }
.about-art .art-inset {
  position: absolute; right: -6%; bottom: 0; width: 56%;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
}
.about-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.about-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--ink-2); }
.bullet { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-glow); color: var(--accent); }
.bullet .icon { width: 19px; height: 19px; }
.about-list li > span:last-child { padding-top: .45rem; }
@media (max-width: 980px) {
  .about .container { grid-template-columns: 1fr; gap: 3rem; }
  .about-art { max-width: 620px; }
  .about-art .art-inset { right: 0; }
}

/* ---------- products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
/* spotlight that follows the cursor (position set in script) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 242, 80, .10), transparent 60%);
  transition: opacity .3s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-cover { display: block; margin: 10px 10px 0; border-radius: 13px; overflow: hidden; background: var(--bg); }
.card-cover img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-cover img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.card-kicker { font-size: .86rem; color: var(--ink-3); margin-bottom: .45rem; display: inline-flex; align-items: center; gap: .45rem; }
.card-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.card-title-row h3 { margin: 0; }
.badge { flex: none; font-size: .88rem; font-weight: 600; color: var(--accent); background: var(--accent-glow); border: 1px solid var(--accent-line); padding: .22rem .55rem; border-radius: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-desc { color: var(--ink-2); font-size: 1rem; flex: 1; margin-bottom: 1.3rem; }
.card-body .btn { align-self: flex-start; }

/* ---------- contact ---------- */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end;
  padding: 3.5rem; border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line-2);
}
.contact-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: auto -10% -60% auto; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(198, 242, 80, .14), transparent 70%);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { margin-bottom: 1rem; }
.contact-card .lead { margin-bottom: 1.6rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer;
  background: none; border: 0; padding: 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -.02em; color: var(--ink);
  border-bottom: 2px solid var(--accent-line); padding-bottom: 4px; transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-side { display: flex; flex-direction: column; gap: .8rem; }
.copy-email .icon-check { display: none; }
.copy-email.copied .icon-check { display: inline-block; }
.copy-email.copied .icon-copy { display: none; }
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; padding: 2.2rem 1.5rem; gap: 2rem; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; margin-top: 2rem; background: var(--bg-2); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.tagline { color: var(--ink-2); margin: 1rem 0 1.2rem; }
.address { font-style: normal; color: var(--ink-3); font-size: .95rem; line-height: 1.65; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; justify-content: end; align-content: start; }
.footer-links a, .link-btn { color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; transition: color .2s; }
.footer-links a:hover, .link-btn:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .92rem; }
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}

/* ---------- pricing ---------- */
.pricing-hero { padding: 5rem 0 2rem; text-align: center; position: relative; overflow-x: clip; }
.pricing-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -200px; width: 900px; height: 600px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 242, 80, .12), transparent 70%);
}
.pricing-hero .lead { margin: 0 auto 2.2rem; max-width: 52ch; }
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); gap: 4px; }
.toggle-btn { display: inline-flex; align-items: center; gap: .55rem; border: 0; background: none; color: var(--ink-2); font-weight: 600; padding: .7rem 1.15rem; border-radius: 10px; cursor: pointer; transition: background-color .2s, color .2s; }
.toggle-btn:hover { color: var(--ink); }
.toggle-btn.active { background: var(--accent); color: var(--accent-ink); }
.toggle-save { font-size: .8rem; font-weight: 600; padding: .15rem .45rem; border-radius: 6px; background: var(--accent-glow); color: var(--accent); }
.toggle-btn.active .toggle-save { background: rgba(11, 14, 13, .14); color: var(--accent-ink); }

.pricing-plans { padding-top: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; transition: border-color .25s; }
.plan:hover { border-color: var(--accent-line); }
.plan-kicker { font-size: .86rem; color: var(--ink-3); }
.plan h2 { font-size: 1.3rem; margin: .4rem 0 .6rem; }
.plan-desc { color: var(--ink-2); font-size: .98rem; min-height: 6.4em; }
.plan-price { display: flex; align-items: baseline; gap: .45rem; margin-top: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan-amount { font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-period { color: var(--ink-3); }
.plan-note { color: var(--ink-3); font-size: .92rem; min-height: 1.6em; }
.plan-features { list-style: none; margin: .4rem 0 1.6rem; padding: 0; display: grid; gap: .55rem; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: .6rem; color: var(--ink-2); font-size: .98rem; }
.plan-features li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .3em; border-radius: 5px; background: var(--accent-glow) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6f250' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 11px no-repeat; }
.plan .btn { width: 100%; }

.included-card { padding: 3rem; border-radius: var(--radius-xl); background: var(--bg-2); border: 1px solid var(--line); }
.included-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2.2rem; }
.included-list li { display: flex; gap: 1rem; }
.included-list strong { display: block; color: var(--ink); margin-bottom: .25rem; font-weight: 600; }
.included-list span:not(.bullet) { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 980px) { .included-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .included-list { grid-template-columns: 1fr; } .included-card { padding: 2rem 1.4rem; } }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 1px solid var(--line); }
.faq-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.faq-item p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { padding: 3.5rem 0 5rem; }
.legal-wrap { max-width: 50rem; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); font-weight: 500; }
.back-link:hover { color: var(--accent); }
.legal h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: .5rem; }
.legal-updated { color: var(--ink-3); margin-bottom: 2.5rem; }
.legal-body { color: var(--ink-2); }
.legal-body h2 { font-size: 1.15rem; color: var(--ink); margin: 2.4rem 0 .8rem; letter-spacing: -.01em; }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body address { font-style: normal; margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--ink-2); }

/* ---------- 404 ---------- */
.error-page { padding: 7rem 0 6rem; min-height: 60vh; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 11rem); line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 1.5rem; }
.error-page .lead { margin-bottom: 2rem; }

/* ---------- tool pages ---------- */
.tool-hero { padding: 3.2rem 0 1.5rem; }
.tool-hero .back-link { margin-bottom: 1.6rem; }
.tool-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 1rem; }
.tool-hero .lead { max-width: 56ch; }
.tool-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-2); padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.chip b { color: var(--accent); font-weight: 600; }
.workspace { margin: 1.5rem 0 5rem; border: 1px solid var(--line-2); border-radius: var(--radius-xl); background: var(--surface); padding: 18px; }
.ws-grid { display: grid; grid-template-columns: 330px 1fr; gap: 18px; }
@media (max-width: 900px) { .ws-grid { grid-template-columns: 1fr; } }
.ws-side { display: flex; flex-direction: column; gap: 1.2rem; padding: 1.2rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.field label, .field-label { display: block; font-size: .92rem; color: var(--ink-2); margin-bottom: .45rem; font-weight: 500; }
.input, .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .75rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2bdb8' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-right: 2.4rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: .55rem .4rem; border-radius: 8px; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.hint { font-size: .9rem; color: var(--ink-3); margin: 0; }
.ws-stage {
  position: relative; display: grid; place-items: center; min-height: 640px; padding: 2rem 1rem;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(238, 243, 240, .1) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.stage-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--ink-3); }
.stage-toolbar b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.card.is-hidden, .plan.is-hidden { display: none !important; }

/* phone simulator device frame */
.device { position: relative; padding: 14px; border-radius: 46px; background: #050706; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 4px #121615; transition: border-radius .3s var(--ease); }
.device::before { content: ""; position: absolute; top: 6px; left: 50%; width: 64px; height: 4px; margin-left: -32px; border-radius: 4px; background: var(--surface-2); }
.device.is-landscape::before { top: 50%; left: 6px; width: 4px; height: 64px; margin: -32px 0 0; }
.device-screen { position: relative; overflow: hidden; border-radius: 32px; background: #fff; }
.device-screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }

/* ---------- shared tool components ---------- */
.ws-stage.stage-top { place-items: stretch; align-content: start; padding: 1.4rem; min-height: 560px; }
.ws-stage.stage-top > * { width: 100%; }
.dropzone {
  display: grid; place-items: center; text-align: center; gap: .6rem; cursor: pointer;
  min-height: 300px; padding: 2rem 1.5rem; border-radius: var(--radius); border: 2px dashed var(--line-2);
  background: rgba(15, 19, 18, .7); color: var(--ink-2); transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-over, .dropzone:focus-visible { border-color: var(--accent); background: rgba(198, 242, 80, .05); }
.dropzone .dz-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--accent-glow); color: var(--accent); }
.dropzone .dz-icon .icon { width: 30px; height: 30px; }
.dropzone strong { color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.dropzone small { color: var(--ink-3); font-size: .92rem; }
.dropzone.compact { min-height: 0; padding: 1.1rem; grid-auto-flow: column; justify-content: center; gap: .8rem; }
.dropzone.compact .dz-icon { width: 40px; height: 40px; border-radius: 12px; }
.dropzone.compact .dz-icon .icon { width: 20px; height: 20px; }

.file-head { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.file-head .fh-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.file-head .fh-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-head .fh-meta { font-size: .9rem; color: var(--ink-3); }
.file-head .fh-main { min-width: 0; flex: 1; }
.btn-ghost { background: none; border: 1px solid transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }

.media { width: 100%; max-height: 420px; border-radius: var(--radius); background: #000; border: 1px solid var(--line); display: block; }
audio.media { background: none; border: 0; max-height: none; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-sm { padding: .55rem .7rem; font-size: .95rem; }
.mini-btn { font-size: .85rem; color: var(--accent); background: none; border: 0; padding: .3rem 0 0; cursor: pointer; font-weight: 600; }
.mini-btn:hover { color: #d4f86e; }

.progress { display: grid; gap: .5rem; }
.progress-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink-2); }
.progress-top b { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.progress-bar { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s linear; }
.progress.is-indet .progress-bar i { width: 30% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.result { display: grid; gap: .9rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--accent-line); background: rgba(198, 242, 80, .05); }
.result-title { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.result-title .icon { color: var(--accent); }
.notice { padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255, 138, 128, .35); background: rgba(255, 138, 128, .07); color: #ffb4ab; font-size: .95rem; }
.notice.info { border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }

.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; color: var(--ink-2); font-size: .97rem; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: .12em 0 0; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input:checked { background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0e0d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 13px no-repeat; border-color: var(--accent); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.range { width: 100%; accent-color: var(--accent); }
.range-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-2); margin-bottom: .35rem; }
.range-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
textarea.input { resize: vertical; min-height: 160px; line-height: 1.5; }

/* queue (batch converter) */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.q-item { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.q-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-name small { color: var(--ink-3); font-weight: 400; margin-left: .4rem; }
.q-state { font-size: .92rem; color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; gap: .6rem; align-items: center; }
.q-state.on { color: var(--accent); font-weight: 600; }
.q-state.err { color: #ff8a80; }
.q-item .progress-bar { grid-column: 1 / -1; height: 6px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.icon-btn .icon { width: 16px; height: 16px; }

/* link list */
.stat-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.links { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: 520px; overflow-y: auto; }
.links li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }
.links li:first-child { border-top: 0; }
.links a { color: var(--ink); word-break: break-all; font-size: .96rem; }
.links a:hover { color: var(--accent); }
.links .l-text { grid-column: 1; font-size: .88rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links .l-type { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .8rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .1rem .45rem; }
.empty { display: grid; place-items: center; text-align: center; gap: .5rem; min-height: 360px; color: var(--ink-3); }
.empty strong { color: var(--ink-2); font-weight: 600; font-size: 1.05rem; }

/* typing stage */
.doc { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; min-height: 480px; }
.doc-bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
.doc-bar .console-dots { margin-right: .3rem; }
.doc-bar .doc-stats { margin-left: auto; display: flex; gap: 1rem; font-variant-numeric: tabular-nums; }
.doc-bar .doc-stats b { color: var(--ink); font-weight: 600; }
.doc-body { flex: 1; padding: 1.6rem 1.8rem; font-size: 1.2rem; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; outline: none; }
.doc-body .caret { display: inline-block; width: 2px; height: 1.25em; background: var(--accent); vertical-align: -0.22em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
.doc-body.typing .caret { animation: none; }
.doc-progress { height: 4px; background: var(--surface-2); }
.doc-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }

.q-item.is-done .progress-bar i { width: 100% !important; background: var(--line-2); }
.empty { align-content: center; }
@media (max-width: 560px) {
  .workspace { padding: 10px; border-radius: var(--radius-lg); }
  .ws-side { padding: 1rem; }
  .ws-stage.stage-top { min-height: 0; padding: 1rem; }
  .empty { min-height: 220px; }
  .doc { min-height: 340px; }
  .doc-bar { flex-wrap: wrap; gap: .5rem .8rem; }
  .doc-bar .console-dots, .doc-bar > span:nth-child(2) { display: none; }
  .doc-bar .doc-stats { margin-left: 0; }
  .doc-bar .btn { margin-left: auto; }
  .doc-body { padding: 1.1rem; font-size: 1.05rem; }
}
