/* cad.ucagg.de in the UCA Web look (uca-web-v1, RAW CALM): only what this site adds on top of
   https://ucagg.de/web/uca-web.css - the logo, the laptop frame with the real app, the slab of numbers, the PDF/DWG
   slider, steps, chips, the SEO cells and the frame of the text pages.
   Products soft (28px, shadows), structure raw (black / white, 2px rules, square cells). No gradient text, no blur. */
html { scroll-padding-top: 64px; }
.cad-web main { display: block; }

/* ---------- the logo: a page whose drawing is a CAD outline ---------- */
.cad-web .logo { width: 26px; height: 26px; flex: none; }
.cad-web .logo .lg-bg { fill: var(--w-accent); } .cad-web .logo .lg-page { fill: #fff; }
.cad-web .logo .lg-fold { fill: #d9d4f7; } .cad-web .logo .lg-cad { fill: none; stroke: var(--w-accent); stroke-width: 2; stroke-linejoin: round; }
.w-nav .w-brand span, .w-footer .w-brand span { white-space: nowrap; }

/* ---------- nav: EN | DE | SQ next to the links ---------- */
.w-nav .w-wrap { gap: 20px; }
.w-nav .w-links { gap: 22px; }
.w-tools { display: inline-flex; align-items: center; }
.cad-web .lang { display: inline-flex; border: 1.5px solid var(--w-text); border-radius: 980px; overflow: hidden; height: 26px; }
.cad-web .lang button { display: grid; place-items: center; min-width: 32px; padding: 0 7px; border: 0; background: transparent; cursor: pointer;
  font: 600 11px/1 var(--w-mono); letter-spacing: .08em; color: var(--w-text); }
.cad-web .lang button.on { background: var(--w-text); color: var(--w-bg); }
@media (max-width: 860px) {
  .w-tools { padding: 16px 0 0; }
  .cad-web .lang { height: 34px; } .cad-web .lang button { min-width: 44px; font-size: 13px; }
  .w-nav .w-links a.w-btn { align-self: flex-start; }
}

/* ---------- hero ---------- */
.cad-web .w-hero-title { font-size: clamp(54px, 11vw, 168px); }
.cad-web .w-hero .w-label { margin-bottom: 26px; }
.cad-web .w-h1, .cad-web .w-h2 { overflow-wrap: anywhere; hyphens: auto; }
/* the download pill: label + version and size from the latest release */
.w-btn.dl { min-height: 56px; padding: 9px 26px 9px 20px; gap: 12px; text-align: left; }
.w-btn.dl svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.w-btn.dl span { display: flex; flex-direction: column; line-height: 1.15; }
.w-btn.dl b { font-weight: 600; font-size: 16px; }
.w-btn.dl small { font-size: 12px; font-weight: 500; opacity: .7; }
.w-center .w-ctas { justify-content: center; }

/* ---------- the laptop with the real app (drawn in CSS) ---------- */
.dev-lap { margin: 0 auto; width: min(1000px, 100%); transform: translateY(calc((1 - var(--w-p, 1)) * 70px)) scale(calc(.95 + var(--w-p, 1) * .05)); }
.dev-lap .scr { aspect-ratio: 1140 / 838; border-radius: 18px 18px 0 0; border: 12px solid #1d1d1f; border-bottom-width: 16px; overflow: hidden;
  background: #161826; box-shadow: inset 0 0 0 1px #3a3a3c; }
.dev-lap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dev-lap .base { height: 16px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(#d2d2d7, #9a9aa0); position: relative;
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.5); }
.dev-lap .base::before { content: ''; position: absolute; left: 50%; top: 0; width: 15%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #86868b; }
@media (max-width: 600px) { .dev-lap .scr { border-width: 6px; border-bottom-width: 9px; border-radius: 12px 12px 0 0; } .dev-lap .base { height: 10px; } }
.solo { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- the slab: raw numbers, black and white, square ---------- */
.slab { background: #000; color: #fff; border-top: 2px solid #000; }
.slab-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.slab-row > div { padding: clamp(28px, 4vw, 54px) clamp(10px, 2vw, 28px); border-left: 2px solid #fff; min-width: 0; }
.slab-row > div:first-child { border-left: 0; padding-left: 0; }
.slab b { display: block; font: 800 clamp(34px, 5.4vw, 80px)/.95 var(--w-font); letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slab span { display: block; margin-top: 12px; font: 600 11px/1.3 var(--w-mono); letter-spacing: .12em; text-transform: uppercase; color: #a1a1a6; }
@media (max-width: 760px) {
  .slab-row { grid-template-columns: 1fr 1fr; }
  .slab-row > div { border-left: 0; padding-left: 0; border-top: 2px solid #fff; }
  .slab-row > div:nth-child(-n+2) { border-top: 0; }
  .slab-row > div:nth-child(2n) { border-left: 2px solid #fff; padding-left: 16px; }
}

/* ---------- before / after: the product, so soft (28px) on the dark stage ---------- */
.compare { position: relative; margin-top: clamp(40px, 5vw, 64px); border-radius: 28px; overflow: hidden; aspect-ratio: 1200 / 840; background: #fff;
  user-select: none; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); }
.compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .before::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #000; }
.compare .handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px #000, 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
.compare .handle::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: #000; font: 700 16px/1 var(--w-font); letter-spacing: 3px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl { position: absolute; top: 16px; padding: 7px 14px; border-radius: 980px; font: 600 11px/1 var(--w-mono); letter-spacing: .12em; text-transform: uppercase; }
.compare .l { left: 16px; background: #fff; color: #000; box-shadow: inset 0 0 0 1.5px #000; } .compare .r { right: 16px; background: #000; color: #fff; }
.hint { margin-top: 18px; color: var(--w-muted); }

/* ---------- steps: raw numerals in square cells ---------- */
.steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--w-rule); }
.steps li { padding: clamp(24px, 3vw, 40px); border-left: 2px solid var(--w-rule); min-width: 0; }
.steps li:first-child { border-left: 0; }
.steps b { display: block; font: 800 clamp(64px, 9vw, 132px)/.85 var(--w-font); letter-spacing: -.07em; color: var(--w-text); }
.steps li:nth-child(3) b { color: var(--w-accent); }
.steps h3 { margin: 28px 0 6px; font: 700 clamp(22px, 2.2vw, 30px)/1.1 var(--w-font); letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--w-muted); font-size: 17px; line-height: 1.4; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; } .steps li + li { border-top: 2px solid var(--w-rule); } }

/* ---------- chips: what's in it, in two words each ---------- */
.chips { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 18px; border: 2px solid var(--w-rule); font: 600 clamp(15px, 1.5vw, 19px)/1.2 var(--w-text-font); letter-spacing: -.01em; }
.chips li:nth-child(-n+2) { background: var(--w-text); color: var(--w-bg); }

/* ---------- PDF to DWG / DXF: four square cells ---------- */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(36px, 4vw, 56px); border: 2px solid var(--w-rule); }
.cells article { padding: 26px 22px; border-left: 2px solid var(--w-rule); min-width: 0; }
.cells article:first-child { border-left: 0; }
.cells h3 { margin: 0 0 10px; font: 700 20px/1.15 var(--w-font); letter-spacing: -.02em; }
.cells p { margin: 0; color: var(--w-muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 1000px) { .cells { grid-template-columns: 1fr 1fr; } .cells article:nth-child(3) { border-left: 0; } .cells article:nth-child(n+3) { border-top: 2px solid var(--w-rule); } }
@media (max-width: 560px) { .cells { grid-template-columns: 1fr; } .cells article { border-left: 0; } .cells article:nth-child(n+2) { border-top: 2px solid var(--w-rule); } }

/* ---------- FAQ ---------- */
.cad-web .w-faq { margin-top: clamp(30px, 4vw, 50px); max-width: none; border-top: 2px solid var(--w-rule); }
.cad-web .w-faq summary { font-size: clamp(18px, 1.8vw, 22px); }
.cad-web .w-faq details > div { color: var(--w-muted); }

/* ---------- footer ---------- */
.w-footer .w-brand { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 var(--w-font); letter-spacing: -.02em; color: var(--w-text) !important; text-decoration: none !important; }
.w-footer .w-brand .logo { width: 22px; height: 22px; }
.w-footer .cols a { display: block; margin-top: 9px; }
.w-footer .legal span { margin-left: auto; }
.w-footer .fine { margin: 14px 0 0; color: var(--w-faint); }
@media (max-width: 600px) { .w-footer .legal span { margin-left: 0; width: 100%; } }

/* ---------- text pages (privacy, licences, 404): the same frame, readable columns ---------- */
.text-page .w-section { padding-top: clamp(100px, 12vw, 150px); }
.text-page .doc { max-width: 760px; line-height: 1.65; font-size: 17px; }
.text-page .doc h1 { font: 800 clamp(40px, 7vw, 84px)/.95 var(--w-font); letter-spacing: -.05em; margin: 0 0 28px; }
.text-page .doc h2 { font: 700 22px/1.2 var(--w-font); letter-spacing: -.02em; margin: 40px 0 10px; padding-top: 18px; border-top: 2px solid var(--w-rule); }
.text-page .doc p, .text-page .doc li { color: var(--w-text); }
.text-page .doc .muted { color: var(--w-muted); }
.text-page .doc a { text-decoration: underline; text-underline-offset: 2px; }
.text-page .doc code { background: var(--w-bg-alt); padding: 2px 6px; font-size: .92em; }
.text-page [data-l] { display: none; } .text-page [data-l].on { display: block; }
