/* ===========================================================
   M365 Compliance Self-Assessment · Laux Lawyers AG

   =========================================================== */

:root {
  --ink: #0f1419;
  --ink-soft: #4a5259;
  --muted: #8a949e;
  --line: #e6e8eb;
  --line-strong: #d4d8dd;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef1f5;

  --accent: #c8532c;         
  --accent-dark: #a8431f;
  --accent-soft: #fdf2ec;

  --blue-soft: #eef4ff;

  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04), 0 1px 3px rgba(15, 20, 25, 0.06);
  --shadow: 0 4px 12px rgba(15, 20, 25, 0.06), 0 2px 4px rgba(15, 20, 25, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 20, 25, 0.08), 0 8px 16px rgba(15, 20, 25, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#m365-assessment {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  line-height: 1.55;
  font-weight: 400;
}


.lx-hero {
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  padding: 56px 48px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.lx-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.lx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.lx-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: lxPulse 2s infinite;
}
@keyframes lxPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.lx-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
  position: relative;
}
.lx-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lx-lede {
  color: var(--ink-soft);
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 40px;
  position: relative;
}

.lx-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 480px;
  position: relative;
}
.lx-stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lx-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.lx-stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.lx-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}


.lx-progress-wrap {
  position: sticky;
  top: 16px;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.lx-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.lx-progress-meta em {
  font-style: normal; color: var(--ink); letter-spacing: 0;
  text-transform: none; font-size: 13px; font-weight: 500;
}
.lx-progress-track {
  height: 6px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}
.lx-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.lx-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: lxFadeUp 0.7s forwards;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.lx-section:hover { box-shadow: var(--shadow); }
.lx-section.lx-completed {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 200%);
}
.lx-section:nth-child(1) { animation-delay: 0.05s; }
.lx-section:nth-child(2) { animation-delay: 0.10s; }
.lx-section:nth-child(3) { animation-delay: 0.15s; }
.lx-section:nth-child(4) { animation-delay: 0.20s; }
.lx-section:nth-child(5) { animation-delay: 0.25s; }
.lx-section:nth-child(6) { animation-delay: 0.30s; }
.lx-section:nth-child(7) { animation-delay: 0.35s; }
.lx-section:nth-child(8) { animation-delay: 0.40s; }
.lx-section:nth-child(9) { animation-delay: 0.45s; }

@keyframes lxFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.lx-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.lx-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
  transition: all 0.3s ease;
}
.lx-section.lx-completed .lx-num {
  background: var(--accent);
  color: #fff;
}
.lx-section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  letter-spacing: -0.015em;
}
.lx-section-badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-soft);
  font-weight: 500;
  transition: all 0.3s ease;
}
.lx-section.lx-completed .lx-section-badge {
  background: var(--accent);
  color: #fff;
}

/* ---------- QUESTIONS ---------- */
.lx-q {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease;
}
.lx-q:last-child { border-bottom: 0; padding-bottom: 0; }
.lx-q-text {
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Segmented answer control (unified color) ---------- */
.lx-choices-wrap { display: flex; justify-content: center; }

.lx-choices {
  display: inline-flex;
  background: var(--paper-3);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}
.lx-choices label {
  position: relative;
  padding: 10px 24px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}
.lx-choices input { position: absolute; opacity: 0; pointer-events: none; }
.lx-choices label:hover { color: var(--ink); background: rgba(255,255,255,0.6); }

/* All selected states use the same accent color */
.lx-choices label.lx-selected {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 83, 44, 0.3);
  transform: scale(1.02);
}

/* ---------- Actions ---------- */
.lx-actions {
  display: flex; gap: 12px; margin-top: 40px;
  flex-wrap: wrap; justify-content: center;
}
.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(200, 83, 44, 0.25);
}
.lx-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 83, 44, 0.35);
}
.lx-btn:active { transform: translateY(0); }
.lx-btn-arrow { transition: transform 0.2s ease; }
.lx-btn:hover .lx-btn-arrow { transform: translateX(4px); }

.lx-btn.lx-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.lx-btn.lx-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Result ---------- */
.lx-result {
  margin-top: 64px;
  opacity: 0;
  animation: lxFadeUp 0.8s 0.1s forwards;
}

.lx-verdict {
  padding: 56px 48px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.lx-verdict::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.lx-verdict-left { text-align: center; }
.lx-score {
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.lx-headline {
  font-size: 26px;
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lx-verdict-msg {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.lx-verdict-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Ring gauge */
.lx-ring { width: 180px; height: 180px; display: block; margin: 0 auto; }
.lx-ring circle { fill: none; stroke-width: 8; }
.lx-ring .lx-ring-bg { stroke: var(--paper-3); }
.lx-ring .lx-ring-fg {
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ---------- Run The Cloud recommendation ---------- */
.lx-rtc {
  margin-bottom: 40px;
  padding: 48px;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  animation: lxFadeUp 0.6s 0.4s forwards;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lx-rtc::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200, 83, 44, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.lx-rtc-content { position: relative; z-index: 1; }
.lx-rtc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(200, 83, 44, 0.15);
  border-radius: 999px;
}
.lx-rtc-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lx-rtc-msg {
  color: #b8c1cc;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.lx-rtc-msg strong { color: #fff; font-weight: 600; }

.lx-rtc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.lx-rtc-feature {
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  color: #d4dbe3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lx-rtc-feature-icon {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.lx-rtc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(200, 83, 44, 0.4);
  position: relative;
  z-index: 1;
}
.lx-rtc-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 83, 44, 0.5);
}
.lx-rtc-cta-arrow { transition: transform 0.2s ease; }
.lx-rtc-cta:hover .lx-rtc-cta-arrow { transform: translateX(4px); }

/* Green variant */
.lx-rtc.lx-rtc-green {
  background: linear-gradient(135deg, #fff 0%, var(--paper-2) 100%);
  color: var(--ink);
  border: 1px solid var(--line);
}
.lx-rtc.lx-rtc-green::before {
  background: radial-gradient(circle, rgba(200, 83, 44, 0.08) 0%, transparent 60%);
}
.lx-rtc.lx-rtc-green .lx-rtc-msg { color: var(--ink-soft); }
.lx-rtc.lx-rtc-green .lx-rtc-msg strong { color: var(--ink); }
.lx-rtc.lx-rtc-green .lx-rtc-feature {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}

/* ---------- Per-section results ---------- */
.lx-sec-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 32px;
}
.lx-sec-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 24px;
}
.lx-sec-result {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
}
.lx-sec-result:last-child { border-bottom: 0; }
.lx-sec-title { font-size: 16px; letter-spacing: -0.01em; font-weight: 500; }
.lx-bar {
  height: 6px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.lx-bar-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.lx-sec-pct {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  min-width: 60px;
  text-align: right;
  font-weight: 600;
}
.lx-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Methodology & footer ---------- */
.lx-methodology {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
.lx-methodology .lx-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  display: block;
  font-weight: 700;
}
.lx-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 24px;
}
.lx-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s ease;
}
.lx-footer a:hover { border-bottom-color: var(--accent); }

.lx-partner {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  #m365-assessment { padding: 24px 16px 64px; }
  .lx-hero { padding: 40px 28px 32px; }
  .lx-section, .lx-sec-block { padding: 28px 24px; }
  .lx-verdict { padding: 40px 28px; grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .lx-rtc { grid-template-columns: 1fr; padding: 36px 28px; text-align: left; }
  .lx-rtc-features { grid-template-columns: 1fr; }
  .lx-rtc-cta { justify-self: start; }
  .lx-score { font-size: 64px; }
  .lx-choices { flex-wrap: wrap; }
  .lx-choices label { min-width: 0; flex: 1; padding: 10px 12px; }
  .lx-sec-result { grid-template-columns: 36px 1fr auto; gap: 14px; }
  .lx-hero-stats { max-width: 100%; }
}