/* Astra CAD — Apple-style UI */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --tint: #eaf2ff;
  --ok: #248a3d; --ok-bg: #e8f7ec;
  --err: #d70015; --err-bg: #fdeceb;
  --radius: 14px;
  --radius-sm: 10px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 2px 12px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .03);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, .10), 0 0 0 1px rgba(0, 0, 0, .03);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: rgba(0, 113, 227, .2); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 28px; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--fg); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.brand .dot::before { content: "A"; }
.brand .logo { height: 24px; width: auto; display: block; }
.authbox .brand .logo { height: 30px; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .05);
  display: inline-flex; align-items: center; justify-content: center; color: var(--fg); transition: background .15s; }
.iconbtn:hover { background: rgba(0, 0, 0, .09); text-decoration: none; }

/* ---------- page ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 56px 28px 96px; }
h1 { text-wrap: balance; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
h2 { text-wrap: balance; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 16px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 640px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- skill cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left;
  box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card:active { transform: translateY(-1px) scale(.995); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card .io { margin-top: auto; padding-top: 18px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; font-family: var(--mono);
  background: rgba(0, 0, 0, .05); color: var(--fg); }
.tag.out { background: var(--tint); color: var(--accent); }
.tags .arrow { color: var(--muted); font-size: 13px; margin: 0 2px; }

/* ---------- tables ---------- */
.tablewrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); background: #fafafa; }
td.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 36px 24px; background: var(--card); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; font-family: var(--mono); letter-spacing: .03em; background: rgba(0, 0, 0, .05); }
.pill.done { color: var(--ok); background: var(--ok-bg); }
.pill.error { color: var(--err); background: var(--err-bg); }
.pill.running { color: var(--muted); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 20px 0 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--fg); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
input::placeholder, textarea::placeholder { color: #a1a1a6; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; min-height: 44px;
  border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background .15s, transform .15s, opacity .15s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: rgba(0, 0, 0, .05); color: var(--fg); }
.btn.ghost:hover { background: rgba(0, 0, 0, .09); }
.btn.block { width: 100%; margin-top: 24px; }
.btn.sm { padding: 8px 16px; min-height: 34px; font-size: 14px; }
.link { background: none; border: 0; color: var(--accent); padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; }
.link.danger, .danger { color: var(--err); }

/* ---------- segmented controls (language, tabs) ---------- */
.langswitch, .tabs { display: inline-flex; background: rgba(0, 0, 0, .06); border-radius: 10px; padding: 3px; gap: 2px; }
.langswitch button, .tabs button { border: 0; background: transparent; border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: .04em; font-family: var(--mono); transition: background .15s, color .15s, box-shadow .15s; }
.langswitch button.on, .tabs button.active { background: #fff; color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tabs { margin: 0 0 32px; }
.panel { display: none; }
.panel.active { display: block; }
.tabs button { padding: 8px 18px; font-size: 14px; letter-spacing: 0; }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; animation: fade .18s ease-out; }
.modal { background: var(--card); border-radius: 24px; width: 100%; max-width: 540px; padding: 32px;
  position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .22); max-height: 92vh; overflow: auto; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.modal.wide { max-width: 680px; }
.modal .close { position: absolute; top: 16px; right: 16px; border: 0; background: rgba(0, 0, 0, .05); width: 30px; height: 30px; border-radius: 50%; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.modal .close:hover { background: rgba(0, 0, 0, .1); color: var(--fg); }
.modal h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; padding-right: 36px; }
.modal .desc { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.slots { display: flex; flex-direction: column; gap: 14px; }
.slotlabel { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 34px 20px; text-align: center; background: #fafafa;
  color: var(--muted); cursor: pointer; transition: .15s; font-size: 14px; }
.drop strong { color: var(--fg); font-weight: 500; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.drop.small { padding: 18px; }
.file { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fafafa; border-radius: 12px; font-size: 14px; }
.file svg { color: var(--accent); flex: none; }
.file .size { color: var(--muted); margin-left: auto; font-size: 13px; }
.file button { border: 0; background: none; color: var(--muted); padding: 0 2px; }
.file button:hover { color: var(--fg); }
.io { font-size: 13px; color: var(--muted); }

.steps { list-style: none; margin: 20px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.steps li.active { color: var(--fg); font-weight: 500; }
.steps li.done { color: var(--ok); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .1); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.steps li .dotstep { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); flex: none; }
.steps li.done .dotstep { border-color: var(--ok); background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

.result { text-align: center; padding: 6px 0 0; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.result .summary { color: var(--fg); font-size: 16px; margin: 0 0 8px; }
.report { text-align: left; background: #fafafa; border-radius: 14px; padding: 16px; font-size: 12.5px; line-height: 1.5;
  white-space: pre-wrap; max-height: 220px; overflow: auto; margin: 18px 0; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }
.note { font-size: 13px; color: var(--muted); background: #fafafa; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.error { color: var(--err); background: var(--err-bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.authbox { width: 100%; max-width: 420px; background: var(--card); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-hover); text-align: left; }
.authbox .brand { margin-bottom: 32px; }
.authbox h1 { font-size: 28px; }
.authbox .sub { font-size: 14px; margin-bottom: 8px; }
.authbox .langswitch { margin-top: 28px; }

/* ---------- admin ---------- */
.settings { max-width: 520px; background: var(--card); border-radius: var(--radius); padding: 8px 28px 28px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; margin-top: 26px; }
.status { margin-top: 16px; font-size: 14px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.toolbar input { max-width: 320px; }
.list { display: flex; flex-direction: column; gap: 18px; }
.item { background: var(--card); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.item header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.item header h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.item .cols { display: flex; flex-direction: column; gap: 22px; }
.item .cols > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
.item h4 { margin: 0 0 10px; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-family: var(--mono); }
.userrow, .skillrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.userrow:last-of-type, .skillrow:last-of-type { border-bottom: 0; }
.skillrow .io { font-size: 12px; margin-top: 2px; }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.inline input { flex: 1; min-width: 0; }
.iorow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.iorow select { width: auto; flex: 0 0 auto; }
.iorow input { flex: 1; }
.iorow button { border: 0; background: rgba(0, 0, 0, .05); border-radius: 50%; width: 30px; height: 30px; color: var(--muted); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--fg); font-size: 14px; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }

@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .page { padding: 36px 18px 72px; }
  h1 { font-size: 32px; }
  .modal { padding: 24px; border-radius: 20px; }
  .userbox .muted { display: none; }
}

/* async runs + workstations */
.steps .progress { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pill.queued, .pill.claimed { color: #b25000; background: #fff3e6; }
.card .mode { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tokenbox { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.tokenbox code { display: block; margin-top: 10px; padding: 12px 14px; background: #fafafa; border-radius: 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; user-select: all; }
#workers { margin-bottom: 40px; }

/* ---------- homepage ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.hide-sm { display: inline-flex; }
.hero { max-width: 880px; margin: 0 auto; padding: 100px 28px 76px; text-align: center; }
.hero h1 { font-size: 58px; line-height: 1.03; letter-spacing: -0.04em; margin: 0 0 22px; }
.lead { text-wrap: pretty; font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 auto 32px; max-width: 660px; }
.lead.center { text-align: center; margin-bottom: 44px; }
.eyebrow.center { text-align: center; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.big { padding: 15px 30px; font-size: 16px; min-height: 52px; }
.band { background: var(--card); padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2, .wrap > h2 { text-align: center; margin: 0 0 20px; font-size: 32px; letter-spacing: -0.025em; }
.prod, .usecases { padding: 88px 28px; }
.prod h2, .usecases h2, .closing h2 { margin-bottom: 44px; }

/* --- example: before / after drawing --- */
.beforeafter { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 28px; }
.ba { margin: 0; }
.ba figcaption { margin-bottom: 10px; }
.balabel { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono);
  color: var(--muted); background: rgba(0,0,0,.05); padding: 4px 9px; border-radius: 6px; }
.balabel.accent { color: var(--accent); background: var(--tint); }
.bashot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; line-height: 0; }
.bashot svg, .bashot img { width: 100%; height: auto; display: block; }
.baarrow { color: var(--muted); font-size: 22px; }

/* --- example: report + legend --- */
.exgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.exgrid > * { min-width: 0; }
.excard { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fafafa; }
.excard h3 { margin: 0 0 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-family: var(--mono); color: var(--muted); }
.reportsample { margin: 0; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.7; white-space: pre; overflow-x: auto; color: var(--fg); }
.legend { list-style: none; margin: 0 0 22px; padding: 0; }
.legend li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; line-height: 1.45; }
.legend .key { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 4px; }
.legend .key.auto { background: var(--accent); }
.legend .key.flag { background: #e8a33d; }
.legend .key.none { border: 2px solid rgba(0,0,0,.18); }
.proof { border-top: 1px solid var(--line); padding-top: 16px; }
.prow { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14px; color: var(--muted); }
.prow b { color: var(--fg); font-weight: 600; text-align: right; font-family: var(--mono); font-size: 13px; }
.prow b.accent { color: var(--accent); }
.ptag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono);
  color: var(--muted); background: rgba(0,0,0,.05); padding: 4px 9px; border-radius: 6px; margin-bottom: 12px; }

/* --- before / after process --- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.compare .col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.compare .col h3 { margin: 0 0 18px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-family: var(--mono); color: var(--muted); }
.compare ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.compare li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; color: var(--muted); counter-increment: s; }
.compare li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--muted); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.compare .before { background: #fafafa; }
.compare .after { background: var(--tint); border-color: rgba(0,113,227,.2); }
.compare .after h3 { color: var(--accent); }
.compare li.big { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); padding: 13px 0 13px 36px; }
.compare li.big::before { background: var(--accent); color: #fff; width: 24px; height: 24px; top: 15px; font-size: 12px; }
.after-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* --- demo panel --- */
.demo { margin: 0; }
.demoframe, .demovideo { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.14); display: block; }
.demoframe { background: #1d1d1f; }
.demovideo { background: #000; }
.chrome { display: flex; gap: 7px; padding: 13px 16px; background: #2a2a2c; }
.chrome span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.demobody { padding: 40px 36px; display: flex; flex-direction: column; gap: 4px; }
.demorow { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: rgba(255,255,255,.55); font-size: 16px; }
.demorow.active { color: #fff; font-weight: 500; }
.demorow.dim { color: rgba(255,255,255,.3); }
.demorow .ok, .demorow .dot2, .demorow .spin { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.demorow .ok { background: #30d158; position: relative; }
.demorow .ok::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 4px;
  border-left: 2px solid #1d1d1f; border-bottom: 2px solid #1d1d1f; transform: rotate(-45deg); }
.demorow .dot2 { border: 2px solid rgba(255,255,255,.2); }
.demorow .spin { border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; }
.demo figcaption { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* --- phases --- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fafafa; }
.phase.primary { background: var(--tint); border-color: rgba(0,113,227,.2); }
.phase.primary .ptag { background: rgba(0,113,227,.14); color: var(--accent); }
.phase h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.phase p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* --- use cases --- */
.uclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.uc { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 17px 20px;
  box-shadow: none; font-size: 15px; font-weight: 500; }
.uc svg { color: var(--accent); flex: none; }

/* --- control Q&A --- */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qacard { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.qacard h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.015em; }
.qacard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* --- closing + footer --- */
.closing { text-align: center; padding: 96px 28px; }
.closing h2 { margin-bottom: 14px; }
.closing .lead { margin-bottom: 32px; }
.hint { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.foot { padding: 28px 0 48px; border-top: 1px solid var(--line); }
.footrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footrow .sep { margin: 0 8px; opacity: .5; }

@media (max-width: 860px) {
  .exgrid, .qa, .phases { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .hero { padding: 56px 20px 52px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .band { padding: 56px 0; }
  .band h2, .wrap > h2 { font-size: 26px; }
  .prod h2, .usecases h2, .closing h2 { margin-bottom: 32px; }
  .beforeafter { grid-template-columns: 1fr; gap: 14px; }
  .baarrow { transform: rotate(90deg); text-align: center; }
  .compare { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .compare .col, .phase, .qacard, .excard { padding: 22px; }
  .compare li.big { font-size: 18px; }
  .demobody { padding: 26px 22px; }
  .demorow { font-size: 14px; }
  .prod, .usecases, .closing { padding: 56px 20px; }
  .footrow { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .userbox { gap: 6px; }
  .brand { font-size: 15px; }
  .brand .logo { height: 20px; }
  .langswitch button { padding: 5px 8px; }
  .hero h1 { font-size: 30px; }
  .uc { padding: 14px 16px; font-size: 15px; }
  .reportsample { font-size: 11px; }
}

/* contact form */
.contactform { max-width: 560px; margin: 0 auto; text-align: left; }
.contactform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contactform label { display: block; margin: 0 0 14px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.contactform label span { display: block; margin-bottom: 7px; }
.contactform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contactform .btn.block { width: 100%; margin-top: 8px; }
.cfdone { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border-radius: var(--radius);
  padding: 40px 28px; box-shadow: var(--shadow); }
.cfdone p { margin: 0; font-size: 17px; }
.directline { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.directline .sep { margin: 0 6px; opacity: .5; }

/* admin: contact requests */
.tabs button .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; margin-left: 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.item.lead.handled { opacity: .55; }
.leadmsg { margin: 0 0 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.leadfoot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--muted); }
.leadfoot .sep { margin: 0 4px; opacity: .5; }

@media (max-width: 720px) { .contactform .frow { grid-template-columns: 1fr; } }

/* technical accents */
.foot { background: #1d1d1f; color: rgba(255,255,255,.55); border-top: 0; padding: 32px 0 40px; margin-top: 0; }
.foot a { color: rgba(255,255,255,.8); }
.foot a:hover { color: #fff; }
.footrow .sep { opacity: .35; }
.reportsample { font-family: var(--mono); }
