/* Werkstatt-Assistent – public website. Same colours and fonts as the app (Werkstatt-Tafel). */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #142230;
  --muted: #5b6977;
  --line: #d4dbe2;
  --steel: #1c3247;
  --steel-2: #24405a;
  --steel-ink: #e8eef4;
  --steel-muted: #9fb2c4;
  --accent: #c44c08;
  --accent-hover: #a83f05;
  --accent-soft: #fde8da;
  --ok: #17703e;
  --ok-soft: #dcf2e4;
  --radius: 0;
  --shadow: 0 1px 2px rgba(20, 34, 48, .06), 0 8px 24px rgba(20, 34, 48, .08);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; justify-content: center; }
.accent { color: var(--accent); }

.kicker {
  font: 600 14px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker.light { color: #ff9a5c; }
.sub { color: var(--muted); font-size: 20px; max-width: 640px; margin-top: 16px; }
.center .sub { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: #fff;
  font: 600 18px/1 var(--body); text-decoration: none;
  border-radius: 0; border: 2px solid var(--accent);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #ff9a5c; outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 246, 248, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1 var(--head); text-decoration: none; white-space: nowrap; }
.brand.small { font-size: 20px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 0;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.brand.small .brand-mark { width: 28px; height: 28px; }
.brand-mark svg, .ico svg, .mic svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 17px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 21px; color: var(--muted); margin-top: 24px; max-width: 580px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
  font-size: 15px; font-weight: 500; padding: 6px 12px 6px 30px; border-radius: 0;
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.chips li::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 6px; margin-top: -5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

.hero-visual { position: relative; display: grid; gap: 16px; }
.voice {
  background: var(--steel); color: var(--steel-ink);
  border-radius: 0; padding: 20px 22px; box-shadow: var(--shadow);
  width: 88%;
}
.voice p { font-size: 19px; margin-top: 12px; font-style: italic; }
.voice-head { display: flex; align-items: center; gap: 14px; }
.mic { width: 40px; height: 40px; border-radius: 0; background: var(--accent); display: grid; place-items: center; color: #fff; }
.bars { display: flex; gap: 4px; align-items: center; height: 26px; }
.bars i { width: 4px; border-radius: 0; background: var(--steel-muted); animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 70%; animation-delay: .1s; }
.bars i:nth-child(3) { height: 100%; animation-delay: .2s; } .bars i:nth-child(4) { height: 55%; animation-delay: .3s; }
.bars i:nth-child(5) { height: 85%; animation-delay: .4s; } .bars i:nth-child(6) { height: 40%; animation-delay: .5s; }
.bars i:nth-child(7) { height: 65%; animation-delay: .6s; }
@keyframes bar { 50% { transform: scaleY(.45); } }

.result {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 20px 22px; box-shadow: var(--shadow); margin-left: 12%;
}
.result-head { display: flex; justify-content: space-between; align-items: center; font: 600 15px/1 var(--mono); color: var(--muted); }
.tag { font: 600 13px/1 var(--body); padding: 5px 10px; border-radius: 0; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.checks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: 16px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.offer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--accent-soft); border-radius: 0; padding: 12px 14px;
}
.offer-shop { display: block; font-size: 13px; color: var(--accent); font-weight: 600; }
.offer-part { display: block; font-size: 15px; }
.offer-price { font: 700 26px/1 var(--head); white-space: nowrap; }
.result-actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn { flex: 1; text-align: center; padding: 11px 8px; border-radius: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
.fake-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Band */
.band { background: var(--steel); color: var(--steel-ink); padding: 48px 0; }
.band-in { display: flex; align-items: center; gap: 40px; }
.big-num { font: 700 clamp(64px, 9vw, 104px)/1 var(--head); color: #ff9a5c; white-space: nowrap; }
.band-text { font-size: 22px; max-width: 680px; }
.band-text b { color: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 28px; position: relative; }
.step-no {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 0;
  background: var(--accent); color: #fff; font: 700 28px/1 var(--head); margin-bottom: 20px;
}
.steps p, .card p, .trust p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 24px; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 0; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.ico svg { width: 55%; height: 55%; }

/* Flow: 8 connected steps, snake layout on wide screens (row 2 runs right to left) */
.flow-section { padding-top: 0; }
.flow {
  --gap-x: 48px; --gap-y: 64px; --wire: 3px;
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-y) var(--gap-x);
}
.flow-node {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--steel); padding: 22px 22px 20px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.flow-node.you { border-top-color: var(--accent); }
.flow-node .ico { margin-bottom: 0; }
.flow-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.flow-no { font: 600 14px/1 var(--mono); color: var(--muted); }
.flow-node h3 { font-size: 23px; }
.flow-node p { color: var(--muted); font-size: 16px; margin: 8px 0 16px; flex: 1; }
.who {
  align-self: flex-start; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 9px; background: var(--accent-soft); color: var(--accent);
}
.who.ai { background: var(--steel); color: var(--steel-ink); }
.flow-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; color: var(--muted); font-size: 16px; }
.flow-legend .who.ai { margin-left: 18px; }

/* wires with dashes running in the direction of work */
.flow-node::after { content: ""; position: absolute; animation: wire-x .7s linear infinite; }
.flow-node:nth-child(-n+3)::after,
.flow-node:nth-child(n+5):nth-child(-n+7)::after {
  top: 50%; width: var(--gap-x); height: var(--wire); margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
}
.flow-node:nth-child(-n+3)::after { left: 100%; margin-left: 1px; }
.flow-node:nth-child(n+5):nth-child(-n+7)::after { right: 100%; margin-right: 1px; animation-name: wire-x-back; }
.flow-node:nth-child(4)::after {
  top: 100%; left: 50%; width: var(--wire); height: var(--gap-y); margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px);
  animation-name: wire-y;
}
.flow-node:nth-child(8)::after { display: none; }
/* row 2, right to left */
.flow-node:nth-child(5) { grid-area: 2 / 4; }
.flow-node:nth-child(6) { grid-area: 2 / 3; }
.flow-node:nth-child(7) { grid-area: 2 / 2; }
.flow-node:nth-child(8) { grid-area: 2 / 1; }
@keyframes wire-x { to { background-position: 14px 0; } }
@keyframes wire-x-back { to { background-position: -14px 0; } }
@keyframes wire-y { to { background-position: 0 14px; } }

/* Comparison */
.compare { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span { padding: 18px 22px; font-size: 17px; }
.cmp-row > span:nth-child(2) { color: var(--muted); }
.cmp-row > span:first-child { font-weight: 600; }
.cmp-row .us { background: #fff6f0; font-weight: 600; }
.cmp-head > span { font: 600 14px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-head .us { color: var(--accent); }

/* Trust */
.section.steel { background: var(--steel); color: var(--steel-ink); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.trust > div { background: var(--steel-2); border-radius: 0; padding: 28px; border-top: 4px solid var(--accent); }
.trust p { color: var(--steel-muted); }

/* Demo */
.demo-in { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.phone {
  width: 340px; padding: 12px; border-radius: 46px;
  background: #0f1b26; box-shadow: 0 30px 60px rgba(20, 34, 48, .28), inset 0 0 0 2px #2b3a48;
}
.phone-screen { border-radius: 35px; overflow: hidden; height: 680px; background: var(--bg); position: relative; }
/* render the demo at real phone width (390px) and scale it into the frame */
.phone-screen iframe { border: 0; width: 390px; height: 839px; transform: scale(.8103); transform-origin: 0 0; }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font: 600 20px/1.3 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* CTA */
.section.cta { background: linear-gradient(180deg, var(--bg), #fbe9dd); }
.contact-note { margin-top: 18px; color: var(--muted); font-size: 16px; }

/* Footer */
.foot { background: var(--steel); color: var(--steel-ink); padding: 32px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-muted { color: var(--steel-muted); font-size: 15px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { color: var(--steel-muted); font-size: 15px; }
.foot-links a:hover { color: #fff; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 32px; }
.legal h2 { font-size: 28px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: var(--accent-soft); color: var(--accent); padding: 14px 18px; border-radius: 0; font-weight: 500; }

/* Responsive */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .flow { --gap-x: 32px; }
  .flow-node { padding: 18px 16px 16px; }
  .flow-node h3 { font-size: 21px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .steps, .trust { grid-template-columns: 1fr; }
  .demo-in { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .band-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section { padding: 72px 0; }
  .flow-section { padding-top: 0; }
  /* one column, every wire runs straight down */
  .flow { grid-template-columns: 1fr; --gap-y: 40px; max-width: 520px; }
  .flow-node:nth-child(n) { grid-area: auto; }
  .flow .flow-node:nth-child(n):nth-child(n)::after {
    top: 100%; left: 44px; right: auto; width: var(--wire); height: var(--gap-y); margin: 0;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px);
    animation-name: wire-y;
  }
  .flow-node:nth-child(8)::after { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 44px 0 64px; }
  .lead, .sub { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .voice, .result { width: 100%; margin-left: 0; }
  .brand { font-size: 20px; gap: 8px; }
  .top .btn-small { padding: 0 12px; font-size: 15px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-head > span:first-child { display: none; }
  .cmp-row > span { padding: 12px 16px; font-size: 16px; }
  .phone { width: 300px; padding: 10px; border-radius: 40px; }
  .phone-screen { height: 600px; border-radius: 31px; }
  .phone-screen iframe { transform: scale(.7180); height: 836px; }
}
@media (max-width: 360px) {
  .top .btn-small { display: none; }
  .hero-in > * { min-width: 0; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i, .flow-node::after { animation: none; }
}
