/*
 * "So arbeitet Resolva Desk" page only. Loaded AFTER site-v2.css, which provides
 * the palette, typography, header, cards, buttons and the motion rules
 * (.load / .reveal, fully off under prefers-reduced-motion). Static: no
 * JavaScript, no inline styles (website CSP). Decorative elements use colour
 * alpha, never `opacity`, so reduced motion shows everything fully visible.
 */

/* --- Hero: back link, dashboard screenshot -------------------------------- */

/* Its own line above the eyebrow (both would otherwise sit inline). */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.back-link:hover {
  color: var(--ink);
}

.hero-page {
  padding-bottom: 48px;
}

.shot {
  margin: 0;
}

.shot-hero {
  margin-top: 44px;
}

/* The application screenshot itself stays untouched; only the frame glows. */
.shot-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #f5f7fb;
  box-shadow:
    0 0 0 1px rgba(123, 149, 255, 0.16),
    0 26px 70px -30px rgba(77, 107, 255, 0.7),
    0 14px 60px -30px rgba(143, 61, 255, 0.6);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.shot-frame:hover {
  border-color: rgba(123, 149, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(123, 149, 255, 0.3),
    0 30px 80px -30px rgba(77, 107, 255, 0.8),
    0 16px 64px -30px rgba(143, 61, 255, 0.7);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.shot-hero figcaption {
  text-align: center;
}

/* --- Connect: four-step flow ------------------------------------------------ */

.flow {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 22px 22px 22px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(18, 14, 38, 0.55);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  counter-increment: flow;
}

/* Step numbers glow like the site's other accents. */
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  font-weight: 750;
  box-shadow: 0 0 22px -4px rgba(143, 61, 255, 0.85);
}

/* Connector to the next step: vertical on narrow screens. */
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -17px;
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
}

.flow h3,
.points h3,
.group h3,
.mini-card h3,
.start h3 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  font-weight: 680;
}

.flow p,
.points p,
.mini-card p,
.start p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.notes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  line-height: 1.6;
}

.icon-sm {
  width: 36px;
  height: 36px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 10px;
}

.icon-sm svg {
  width: 18px;
  height: 18px;
}

.callout {
  margin: 24px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(51, 209, 240, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(51, 209, 240, 0.10), rgba(77, 107, 255, 0.08));
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

/* --- Knowledge: points + "two sources" panel -------------------------------- */

.split {
  display: grid;
  gap: 36px;
}

.points {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.points .icon {
  margin: 0;
  flex-shrink: 0;
}

.sources {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 80px -40px rgba(20, 10, 60, 0.9);
}

.sources-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 8, 22, 0.45);
}

.source h3 {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 680;
}

.source p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.source-plus {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -6px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 18px -4px rgba(143, 61, 255, 0.85);
}

.sources-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Automation: category groups, settings screenshot, fixed rules ---------- */

.groups {
  display: grid;
  gap: 16px;
}

.group {
  padding: 22px 22px 22px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(18, 14, 38, 0.55);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: inset 3px 0 0 var(--accent, var(--blue));
}

.group-auto { --accent: var(--cyan); }
.group-review { --accent: var(--purple); }
.group-team { --accent: var(--magenta); }

.group p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.chips:last-child {
  margin-bottom: 0;
}

/* Plain labels, deliberately not styled as controls. */
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.group-auto .chips li {
  border-color: rgba(51, 209, 240, 0.45);
  background: rgba(51, 209, 240, 0.08);
}

.group-review .chips li {
  border-color: rgba(143, 61, 255, 0.5);
  background: rgba(143, 61, 255, 0.10);
}

.group-team .chips li {
  border-color: rgba(224, 64, 216, 0.5);
  background: rgba(224, 64, 216, 0.10);
}

.rules {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(143, 61, 255, 0.7);
}

.rules .rule-fixed {
  color: var(--ink);
  font-weight: 650;
}

/* --- Exceptions: concise cards, oversight panel, facts ---------------------- */

.mini-cards {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(18, 14, 38, 0.55);
}

.mini-card .icon-sm {
  margin-bottom: 14px;
}

.mini-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.oversight {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(77, 107, 255, 0.12), rgba(143, 61, 255, 0.08) 55%, rgba(224, 64, 216, 0.08));
}

.oversight > div {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.oversight > div + div {
  border-top: 1px solid var(--line);
}

.oversight .icon {
  margin: 0;
  flex-shrink: 0;
}

.oversight h3 {
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  font-weight: 680;
}

.oversight p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

/* Plain wrapping text (not a flex row), so a long fact wraps on 320 px. */
.facts li {
  position: relative;
  padding: 7px 14px 7px 29px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(51, 209, 240, 0.8);
}

/* --- Getting started: a light numbered timeline ----------------------------- */

.start {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: start;
}

.start li {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  counter-increment: start;
}

.start li::before {
  content: counter(start, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-login {
  margin-top: 22px;
  margin-bottom: 0;
}

/* --- Larger screens --------------------------------------------------------- */

@media (min-width: 640px) {
  .hero-page {
    padding-bottom: 64px;
  }

  .notes,
  .mini-cards,
  .start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oversight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oversight > div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  .hero-page {
    padding: 88px 0 72px;
  }

  .shot-hero {
    margin-top: 56px;
  }

  /* Four steps in a row; the connector runs horizontally through the gap. */
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .flow li {
    padding: 78px 22px 24px;
  }

  .flow li:not(:last-child)::after {
    left: auto;
    right: -21px;
    top: 39px;
    bottom: auto;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
  }

  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
  }

  .split-auto {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .mini-cards,
  .start {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
