/* MW Designs — shared stylesheet
   Brand: cobalt #3D5AF1 only. Space Grotesk (headings) + Inter (body).
   Do not introduce a second accent colour. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light;
  --ink: oklch(19% 0.02 268);
  --muted: oklch(50% 0.02 268);
  --paper: oklch(98.5% 0.003 268);
  --surface: oklch(100% 0 0);
  --surface-alt: oklch(96.2% 0.006 268);
  --line: oklch(90.5% 0.008 268);
  --primary: oklch(50% 0.2 268);
  --primary-dark: oklch(42% 0.2 268);
  --on-primary: oklch(99% 0 0);
  --tint: oklch(96% 0.035 268);
  --shadow: 0 22px 55px -24px oklch(19% .02 268 / .3);
  --radius: 16px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: oklch(94% 0.008 268);
    --muted: oklch(70% 0.02 268);
    --paper: oklch(15.5% 0.015 268);
    --surface: oklch(19.5% 0.018 268);
    --surface-alt: oklch(23.5% 0.02 268);
    --line: oklch(31% 0.02 268);
    --primary: oklch(74% 0.15 268);
    --primary-dark: oklch(84% 0.11 268);
    --on-primary: oklch(15% 0.02 268);
    --tint: oklch(25% 0.045 268);
    --shadow: 0 22px 55px -24px oklch(0% 0 0 / .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: oklch(94% 0.008 268);
  --muted: oklch(70% 0.02 268);
  --paper: oklch(15.5% 0.015 268);
  --surface: oklch(19.5% 0.018 268);
  --surface-alt: oklch(23.5% 0.02 268);
  --line: oklch(31% 0.02 268);
  --primary: oklch(74% 0.15 268);
  --primary-dark: oklch(84% 0.11 268);
  --on-primary: oklch(15% 0.02 268);
  --tint: oklch(25% 0.045 268);
  --shadow: 0 22px 55px -24px oklch(0% 0 0 / .6);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* accessibility */
:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 11px 18px; border-radius: 0 0 10px 10px; font-weight: 700; font-size: 14px;
  transition: top .15s;
}
.skip:focus { top: 0; color: var(--on-primary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.wrap-narrow { max-width: 760px; }
.section { padding-block: 72px; }
.section-tight { padding-block: 52px; }
@media (max-width: 640px) { .section { padding-block: 56px; } }
.band { background: var(--surface-alt); }
.band-tint { background: var(--tint); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* language toggle: both languages are in the HTML, CSS picks one */
html[data-lang="de"] .en { display: none; }
html[data-lang="en"] .de { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 19px; font-size: 14.5px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary); margin-bottom: 14px;
}
.lead { font-size: 18.5px; line-height: 1.62; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); white-space: nowrap;
}
.brand-name span { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.navlink {
  font-size: 15px; font-weight: 600; color: var(--muted);
  white-space: nowrap; padding: 6px 0; position: relative;
}
.navlink:hover { color: var(--primary); }
.navlink[aria-current="page"] { color: var(--ink); }
.navlink[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.header-end { display: flex; align-items: center; gap: 12px; }

.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langsw button {
  background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 700; padding: 6px 11px; color: var(--muted); letter-spacing: .04em;
}
.langsw button:hover { color: var(--primary); }
html[data-lang="de"] .l-de, html[data-lang="en"] .l-en { background: var(--primary); color: var(--on-primary); }

/* burger */
.burger {
  display: none; width: 42px; height: 42px; flex: 0 0 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line); border-radius: 11px;
  cursor: pointer; color: var(--ink); padding: 0;
}
.burger:hover { border-color: var(--primary); color: var(--primary); }
.burger-bars { display: block; width: 18px; height: 12px; position: relative; }
.burger-bars i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, opacity .15s ease;
}
.burger-bars i:nth-child(1) { top: 0; }
.burger-bars i:nth-child(2) { top: 5px; }
.burger-bars i:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobnav {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
}
.mobnav[data-open="1"] { display: block; }
.mobnav-in { display: flex; flex-direction: column; padding-block: 12px 22px; }
.mobnav a.navlink {
  font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobnav a.navlink:last-of-type { border-bottom: 0; }
.mobnav a.navlink[aria-current="page"] { color: var(--primary); }
.mobnav a.navlink[aria-current="page"]::after { display: none; }
.mobnav .btn { margin-top: 14px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-end { margin-left: auto; }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 76px 56px; }
.hero-mark {
  position: absolute; top: -190px; right: -200px; width: 620px; height: 620px;
  opacity: .05; pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: 52px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-block: 52px 44px; } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-facts {
  display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 26px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
}
/* direct children only: the .de/.en spans inside must not get a second tick */
.hero-facts > span::before { content: "✓ "; color: var(--primary); font-weight: 800; }

.rise { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
.rise:nth-child(2) { animation-delay: .07s; }
.rise:nth-child(3) { animation-delay: .14s; }
.rise:nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* browser frame used for real screenshots */
.frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface);
}
.frame-bar {
  background: var(--surface-alt); padding: 9px 13px; display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.frame-url {
  margin-left: 10px; font-size: 11.5px; color: var(--muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame img { width: 100%; height: auto; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card-featured { border-color: var(--primary); border-width: 2px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* promise list, deliberately asymmetric so it does not read as a template grid */
.promises { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.promise { border-top: 2px solid var(--primary); padding-top: 18px; }
.promise:nth-child(even) { border-top-color: var(--line); }
.promise h3 { margin-bottom: 8px; }
.promise p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* numbered steps as an editorial list */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px; padding-block: 28px; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700;
  color: var(--primary); line-height: 1; letter-spacing: -0.03em;
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 560px) { .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; } .step::before { font-size: 24px; } }

/* checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; align-items: start; }
.checks li::before {
  content: ""; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: var(--primary); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* pricing */
.price { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -0.03em; line-height: 1; }
.price-sub { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
}
.card .btn { margin-top: auto; }
.card .checks { margin: 20px 0 24px; }

/* add-on table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.addons { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
table.addons th, table.addons td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); }
table.addons th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.addons tr:last-child td { border-bottom: 0; }
table.addons td:last-child, table.addons th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17.5px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 13px; height: 13px;
  border-right: 2.2px solid var(--primary); border-bottom: 2.2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq summary:hover { color: var(--primary); }
.faq .faq-body { padding: 0 8px 22px 0; color: var(--muted); font-size: 16px; }

/* people */
.people { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.person-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface-alt);
}
.person-photo-ph {
  width: 96px; height: 96px; border-radius: 50%; background: var(--surface-alt);
  border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--muted);
}
.person h3 { margin-bottom: 3px; }
.person .role { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 9px; letter-spacing: .02em; }
.person p { font-size: 15px; color: var(--muted); margin: 0; }

/* showcase */
.work { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.work-item { display: block; color: inherit; }
.work-item:hover { color: inherit; }
.work-item .frame { transition: transform .2s ease, box-shadow .2s ease; }
.work-item:hover .frame { transform: translateY(-4px); box-shadow: 0 28px 60px -22px oklch(19% .02 268 / .38); }
.work-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.work-meta h3 { font-size: 17px; }
.work-meta .demo-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.work-item p { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }

/* callout */
.callout {
  background: var(--tint); border-radius: var(--radius); padding: 30px 32px;
  border: 1px solid var(--line);
}
.callout h3 { margin-bottom: 10px; }
.callout p { color: var(--muted); margin: 0; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .lead { max-width: 560px; margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 11px;
  padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.field input:user-invalid, .field textarea:user-invalid { border-color: oklch(55% .19 25); }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); }

.contact-grid { display: grid; gap: 52px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-line { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-bottom: 18px; font-size: 15.5px; align-items: start; }
.contact-line svg { margin-top: 3px; color: var(--primary); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 44px 40px; margin-top: 8px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 {
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 13px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer a, .footer button.linkish { font-size: 14.5px; color: var(--muted); }
.footer a:hover, .footer button.linkish:hover { color: var(--primary); }
button.linkish {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; text-align: left;
}
.footer-addr { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.footer-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}

/* ---------- legal overlays ---------- */
.legal-ov {
  position: fixed; inset: 0; background: oklch(19% 0.02 268 / .58);
  backdrop-filter: blur(3px); z-index: 90; display: none; padding: 16px; overflow-y: auto;
}
.legal-ov[data-open="1"] { display: block; }
.legal-box {
  background: var(--surface); color: var(--ink); max-width: 760px; margin: 32px auto;
  border-radius: 18px; border: 1px solid var(--line); padding: 32px 26px 40px;
}
@media (min-width: 640px) { .legal-box { padding: 42px 46px 50px; } }
.legal-box h2 { font-size: 26px; margin-bottom: 6px; }
.legal-box h3 { font-size: 15px; font-weight: 700; margin: 26px 0 8px; font-family: 'Inter', sans-serif; }
.legal-box p, .legal-box li { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.legal-box strong { color: var(--ink); }
.legal-box ul { margin: 0 0 10px; padding-left: 20px; }
.legal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.legal-close {
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; width: 36px; height: 36px; flex: 0 0 36px; cursor: pointer;
  font-size: 18px; font-family: 'Inter', sans-serif; line-height: 1;
}
.legal-close:hover { border-color: var(--primary); color: var(--primary); }
.legal-date { font-size: 12.5px; color: var(--muted); }

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.totop[data-show="1"] { opacity: 1; visibility: visible; }
.totop:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- misc pages ---------- */
.center-page { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.center-page .wrap { width: 100%; }
