:root {
  --navy-950: #050a16;
  --navy-900: #091224;
  --navy-800: #101c34;
  --navy-700: #172742;
  --blue-500: #005aaa;
  --blue-400: #64b4ff;
  --blue-300: #91c9ff;
  --sky-200: #c4e3ff;
  --white: #ffffff;
  --slate-200: #dce6f5;
  --slate-300: #b7c5da;
  --slate-400: #8798b4;
  --success: #4cc987;
  --warning: #f2b84b;
  --danger: #ef6a6a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy-950);
}

body {
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--sky-200);
  outline-offset: 4px;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 45%, rgba(45, 102, 226, 0.24), transparent 32%),
    linear-gradient(135deg, #050915 0%, #0b1427 58%, #0e1a33 100%);
  isolation: isolate;
}

.app-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(114, 159, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 159, 230, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(110deg, transparent 10%, black 65%, transparent 100%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 36vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one {
  top: -25%;
  right: -10%;
  background: rgba(70, 126, 255, 0.18);
}

.ambient-two {
  bottom: -36%;
  left: 20%;
  background: rgba(45, 82, 182, 0.14);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(24px, 3vw, 56px);
  border-bottom: 1px solid rgba(172, 197, 238, 0.13);
  background: rgba(8, 15, 30, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  color: white;
  font-weight: 730;
  font-size: 20px;
  letter-spacing: -0.025em;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand img {
  display: block;
  width: 87px;
  height: 36px;
  object-fit: contain;
}

.brand-divider,
.context-divider {
  width: 1px;
  height: 26px;
  background: rgba(220, 230, 245, 0.24);
}

.product-context {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-300);
  font-size: 14px;
}

.product-context strong {
  color: white;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 5px rgba(95, 145, 255, 0.12);
}

.progress-track {
  position: absolute;
  top: 72px;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), #75b4ff);
  box-shadow: 0 0 18px rgba(77, 129, 255, 0.85);
  transition: width 500ms ease;
}

.screen {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 118px);
  padding: clamp(30px, 4.5vh, 64px) clamp(28px, 5vw, 92px) 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 6px 16px;
  color: #0b1930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(90deg, #64b4ff, #005aaa);
}

.intro-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
}

.intro-copy {
  max-width: 730px;
}

.intro-copy h1,
.result-copy h2,
.giveaway-copy h2 {
  margin: 0;
  font-size: clamp(50px, 5.3vw, 88px);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy h1 span {
  color: var(--blue-500);
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--slate-200);
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.52;
}

.quick-facts {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 28px 0 30px;
}

.quick-facts div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 145px;
  padding: 10px 14px;
  border: 1px solid rgba(130, 169, 228, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-facts strong {
  font-size: 23px;
}

.quick-facts span {
  color: var(--slate-300);
  font-size: 13px;
}

.primary-button,
.secondary-button,
.prize-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 62px;
  padding: 0 28px;
  color: white;
  font-weight: 720;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(120deg, #005aaa, #0874c6);
  box-shadow: 0 16px 36px rgba(32, 87, 219, 0.28);
}

.primary-button:hover,
.prize-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(46, 104, 242, 0.4);
}

.touch-hint {
  margin: 14px 0 0;
  color: var(--slate-400);
  font-size: 12px;
}

.intro-visual {
  position: relative;
  min-height: min(610px, 66vh);
}

.hero-invoice {
  position: absolute;
  top: 8%;
  left: 12%;
  width: min(420px, 72%);
  aspect-ratio: 0.76;
  padding: 30px;
  color: #14223a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  box-shadow: 0 48px 100px rgba(0, 0, 0, 0.42), 0 0 80px rgba(64, 114, 230, 0.13);
  transform: rotate(2.5deg);
  overflow: hidden;
}

.invoice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #45607c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.invoice-status {
  padding: 5px 9px;
  color: #19744c;
  letter-spacing: 0;
  border-radius: 999px;
  background: #d9f6e8;
}

.invoice-logo-placeholder {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 40px;
  color: white;
  font-size: 28px;
  border-radius: 12px;
  background: #005aaa;
}

.invoice-lines {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.invoice-lines i {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #d7e2ef;
}

.invoice-lines .short {
  width: 58%;
}

.invoice-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 120px;
  padding-top: 18px;
  border-top: 1px solid #d6e1ee;
}

.invoice-total span {
  color: #66809b;
  font-size: 12px;
}

.invoice-total strong {
  font-size: 22px;
}

.scan-line {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 2px;
  background: #005aaa;
  box-shadow: 0 0 16px 6px rgba(52, 115, 255, 0.32);
  animation: scan 3.4s ease-in-out infinite;
}

@keyframes scan {
  0%, 12% { transform: translateY(28px); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  90%, 100% { transform: translateY(500px); opacity: 0; }
}

.automation-badge {
  position: absolute;
  right: 1%;
  bottom: 11%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 250px;
  padding: 15px 18px;
  border: 1px solid rgba(117, 180, 255, 0.28);
  border-radius: 14px;
  background: rgba(14, 28, 54, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.automation-badge > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: white;
  border-radius: 50%;
  background: var(--success);
}

.automation-badge div {
  display: grid;
  gap: 3px;
}

.automation-badge small,
.automation-badge strong {
  font-size: 12px;
}

.automation-badge small {
  color: var(--slate-400);
}

.flow-label {
  position: absolute;
  display: grid;
  place-items: center;
  width: 96px;
  height: 35px;
  color: #b9cef0;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(128, 164, 220, 0.2);
  border-radius: 999px;
  background: rgba(13, 28, 53, 0.92);
}

.label-inbox { top: 11%; left: -5%; }
.label-check { top: 44%; right: -1%; }
.label-erp { bottom: 4%; left: 19%; }

.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 149, 255, 0.7), transparent);
  transform-origin: left center;
}

.line-one { top: 23%; left: 2%; width: 88%; transform: rotate(9deg); }
.line-two { bottom: 15%; left: 10%; width: 76%; transform: rotate(-18deg); }

.challenge-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1580px;
  margin: 0 auto;
}

.challenge-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(18px, 2.5vh, 30px);
}

.challenge-heading .eyebrow {
  margin-bottom: 11px;
}

.challenge-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 54px);
  letter-spacing: -0.045em;
}

.timer {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 120px;
  color: var(--slate-300);
}

.timer span {
  color: white;
  font-size: 36px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.timer small {
  font-size: 12px;
}

.timer-warning span {
  color: var(--warning);
}

.challenge-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(380px, 0.65fr);
  gap: clamp(22px, 3vw, 46px);
}

.invoice-card,
.decision-panel,
.feedback-panel {
  border: 1px solid rgba(139, 170, 218, 0.16);
  border-radius: 20px;
  background: rgba(15, 28, 52, 0.72);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.invoice-card {
  padding: clamp(22px, 2.2vw, 36px);
}

.invoice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(151, 179, 220, 0.14);
}

.invoice-card-header > div:first-child {
  display: grid;
  gap: 7px;
}

.invoice-card-header span,
.invoice-grid span,
.panel-kicker,
.system-cue small,
.automation-note span {
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invoice-card-header strong {
  font-size: clamp(20px, 1.7vw, 28px);
}

.doc-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #b8d3ff;
  font-weight: 800;
  border: 1px solid rgba(94, 143, 235, 0.3);
  border-radius: 12px;
  background: rgba(52, 102, 208, 0.14);
}

.invoice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding: 26px 0;
}

.invoice-grid div {
  display: grid;
  gap: 7px;
}

.invoice-grid .wide {
  grid-column: 1 / -1;
}

.invoice-grid strong {
  color: #f6f9ff;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 620;
}

.invoice-grid .amount strong {
  color: #8fbdff;
  font-size: clamp(20px, 1.6vw, 26px);
}

.system-cue {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 13px 16px;
  border: 1px solid rgba(82, 199, 139, 0.24);
  border-radius: 13px;
  background: rgba(44, 163, 104, 0.08);
}

.system-cue > div {
  display: grid;
  gap: 5px;
}

.system-cue strong {
  font-size: 13px;
  line-height: 1.35;
}

.cue-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: white;
  font-weight: 800;
  border-radius: 50%;
  background: var(--success);
}

.cue-warning {
  border-color: rgba(242, 184, 75, 0.26);
  background: rgba(242, 184, 75, 0.08);
}

.cue-warning .cue-icon {
  background: #c68b22;
}

.cue-danger {
  border-color: rgba(239, 106, 106, 0.26);
  background: rgba(239, 106, 106, 0.08);
}

.cue-danger .cue-icon {
  background: #c95555;
}

.decision-panel,
.feedback-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.3vw, 36px);
}

.decision-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.decision-button {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 16px;
  color: white;
  text-align: left;
  border: 1px solid rgba(149, 177, 220, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.decision-button:hover {
  transform: translateX(4px);
  border-color: rgba(116, 166, 246, 0.48);
  background: rgba(73, 121, 219, 0.12);
}

.decision-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #9dc3ff;
  font-size: 21px;
  font-weight: 800;
  border-radius: 12px;
  background: rgba(58, 111, 223, 0.16);
}

.decision-review .decision-icon {
  color: #f0c46b;
  background: rgba(209, 147, 38, 0.13);
}

.decision-stop .decision-icon {
  color: #ff9999;
  background: rgba(213, 76, 76, 0.13);
}

.decision-copy {
  display: grid;
  gap: 4px;
}

.decision-copy strong {
  font-size: 17px;
}

.decision-copy small,
.panel-note {
  color: var(--slate-400);
  font-size: 12px;
}

.decision-arrow {
  color: var(--slate-400);
}

.panel-note {
  margin: 17px 0 0;
  text-align: center;
}

.feedback-panel {
  align-items: flex-start;
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 21px;
  color: white;
  font-size: 25px;
  font-weight: 800;
  border-radius: 50%;
}

.feedback-icon.is-correct { background: var(--success); box-shadow: 0 0 0 9px rgba(76, 201, 135, 0.08); }
.feedback-icon.is-wrong { background: var(--warning); box-shadow: 0 0 0 9px rgba(242, 184, 75, 0.08); }

.feedback-panel h3 {
  margin: 11px 0 8px;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.feedback-panel > p {
  margin: 0;
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.55;
}

.automation-note {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 20px 0;
  padding: 15px;
  border-left: 3px solid var(--blue-400);
  border-radius: 0 10px 10px 0;
  background: rgba(58, 112, 229, 0.1);
}

.automation-note span {
  color: #64b4ff;
}

.automation-note strong {
  font-size: 13px;
  line-height: 1.4;
}

.primary-button.compact {
  width: 100%;
  min-height: 54px;
  gap: 18px;
  margin-top: auto;
}

.result-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  max-width: 1540px;
  margin: 0 auto;
}

.result-copy {
  max-width: 790px;
}

.result-copy h2,
.giveaway-copy h2 {
  font-size: clamp(46px, 4.4vw, 72px);
}

.result-copy > p,
.giveaway-copy > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--slate-300);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 28px 0;
}

.score-ring {
  --score: 360deg;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--blue-400) var(--score), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 45px rgba(52, 111, 243, 0.16);
}

.score-ring::before {
  position: absolute;
  width: 108px;
  height: 108px;
  content: "";
  border-radius: 50%;
  background: var(--navy-900);
}

.score-ring div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.score-ring strong { font-size: 27px; }
.score-ring span { color: var(--slate-400); font-size: 11px; }

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.result-metrics div {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(139, 170, 218, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.result-metrics strong { font-size: 19px; }
.result-metrics span { color: var(--slate-400); font-size: 11px; line-height: 1.35; }

.secondary-button {
  min-height: 52px;
  color: #cfe0ff;
  border: 1px solid rgba(119, 159, 225, 0.3);
  background: rgba(32, 62, 113, 0.34);
}

.secondary-button:hover {
  background: rgba(50, 95, 173, 0.42);
}

.prize-card {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(121, 169, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(87, 138, 241, 0.24), transparent 38%),
    rgba(14, 28, 54, 0.82);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.prize-card::after {
  position: absolute;
  right: -105px;
  bottom: -105px;
  width: 280px;
  height: 280px;
  content: "";
  border: 55px solid rgba(112, 172, 255, 0.08);
  border-radius: 50%;
}

.prize-glow {
  position: absolute;
  top: -100px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(67, 123, 244, 0.2);
  filter: blur(70px);
}

.prize-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 560px;
  padding: 38px;
  text-align: center;
}

.prize-label {
  padding: 7px 13px;
  color: #bed8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(133, 182, 255, 0.28);
  border-radius: 999px;
}

.prize-year {
  margin-top: 18px;
  font-size: 150px;
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.09em;
  background: linear-gradient(150deg, #ffffff 15%, #64b4ff 75%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prize-content h3 {
  margin: 4px 0 9px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.prize-content p {
  max-width: 330px;
  margin: 0;
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.5;
}

.prize-button {
  width: 100%;
  margin-top: auto;
  background: linear-gradient(120deg, #005aaa, #0874c6);
}

.prize-content small {
  margin-top: 13px;
  color: var(--slate-400);
}

.giveaway-screen {
  display: grid;
  place-items: center;
}

.giveaway-card {
  display: grid;
  grid-template-columns: 1.1fr 0.65fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: min(1280px, 100%);
  padding: clamp(38px, 5vw, 78px);
  border: 1px solid rgba(128, 171, 239, 0.22);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(25, 47, 86, 0.88), rgba(11, 22, 43, 0.88));
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.3);
}

.giveaway-benefit {
  display: grid;
  gap: 7px;
  max-width: 600px;
  margin: 28px 0;
  padding: 17px 19px;
  border-left: 3px solid var(--blue-400);
  background: rgba(64, 118, 232, 0.09);
}

.giveaway-benefit span {
  color: #64b4ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.secondary-button.light {
  color: white;
}

.qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  color: #10203b;
  border-radius: 20px;
  background: white;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.qr-code {
  position: relative;
  width: min(260px, 24vw);
  aspect-ratio: 1;
  margin-bottom: 8px;
  border: 13px solid white;
  background:
    repeating-conic-gradient(#101b31 0 25%, transparent 0 50%) 50% / 22px 22px;
  box-shadow: inset 0 0 0 2px #101b31;
}

.qr-corner {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 12px solid #101b31;
  background: white;
  box-shadow: inset 0 0 0 9px white, inset 0 0 0 20px #101b31;
}

.qr-top-left { top: 5px; left: 5px; }
.qr-top-right { top: 5px; right: 5px; }
.qr-bottom-left { bottom: 5px; left: 5px; }

.qr-center {
  position: absolute;
  right: 20%;
  bottom: 19%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 34px;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: #101b31;
}

.qr-area > strong { font-size: 15px; }
.qr-area > span { color: #738199; font-size: 11px; }

.screen-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 clamp(24px, 3vw, 56px);
  color: var(--slate-400);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(172, 197, 238, 0.09);
  background: rgba(6, 11, 23, 0.5);
}

@media (max-width: 1100px) {
  .intro-screen,
  .result-screen {
    grid-template-columns: 1fr 0.78fr;
    gap: 30px;
  }

  .quick-facts div {
    min-width: 0;
  }

  .challenge-layout {
    grid-template-columns: minmax(480px, 1.15fr) minmax(320px, 0.7fr);
  }

  .invoice-grid {
    gap: 16px 22px;
  }

  .prize-card,
  .prize-content {
    min-height: 500px;
  }

  .prize-year {
    font-size: 125px;
  }
}

@media (max-width: 860px) {
  body {
    overflow-y: auto;
  }

  .app-shell {
    min-height: 100vh;
  }

  .desktop-only,
  .context-divider {
    display: none;
  }

  .screen {
    min-height: calc(100vh - 72px);
    padding-bottom: 90px;
  }

  .intro-screen,
  .result-screen,
  .giveaway-card,
  .challenge-layout {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    display: none;
  }

  .intro-copy {
    max-width: 680px;
  }

  .challenge-heading {
    margin-top: 10px;
  }

  .decision-panel,
  .feedback-panel {
    min-height: 330px;
  }

  .prize-card {
    min-height: 460px;
  }

  .prize-content {
    min-height: 460px;
  }

  .giveaway-card {
    max-width: 680px;
  }

  .qr-code {
    width: 240px;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  .brand img {
    width: 72px;
  }

  .brand-divider,
  .product-context > span:not(.live-dot),
  .product-context strong {
    display: none;
  }

  .screen {
    padding: 30px 18px 86px;
  }

  .intro-copy h1,
  .result-copy h2,
  .giveaway-copy h2 {
    font-size: 43px;
  }

  .quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-facts div {
    display: grid;
    gap: 2px;
    padding: 9px;
  }

  .invoice-grid {
    grid-template-columns: 1fr;
  }

  .invoice-grid .wide {
    grid-column: auto;
  }

  .score-row {
    align-items: flex-start;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 106px;
    height: 106px;
  }

  .score-ring::before {
    width: 86px;
    height: 86px;
  }

  .screen-footer span:first-child {
    display: none;
  }

  .screen-footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Executive invoice challenge */

.executive-intro {
  max-width: 800px;
}

.executive-visual {
  min-height: min(640px, 68vh);
}

.invoice-stack {
  position: absolute;
  top: 12%;
  left: 16%;
  width: min(410px, 70%);
  aspect-ratio: 0.76;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #dce5f2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.invoice-stack-back {
  transform: translate(46px, -18px) rotate(8deg);
  opacity: 0.28;
}

.invoice-stack-middle {
  transform: translate(22px, -8px) rotate(5deg);
  opacity: 0.52;
}

.hero-invoice.real-paper-preview {
  top: 8%;
  left: 12%;
  width: min(410px, 70%);
  padding: 30px;
  transform: rotate(2deg);
}

.demo-stamp {
  position: absolute;
  top: 82px;
  right: -14px;
  padding: 6px 18px;
  color: rgba(170, 46, 46, 0.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
  border: 2px solid rgba(170, 46, 46, 0.45);
  border-radius: 5px;
  transform: rotate(8deg);
}

.paper-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paper-brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  border-radius: 9px;
  background: #005aaa;
}

.paper-brand strong {
  color: #14223a;
  font-size: 12px;
}

.paper-title {
  margin: 46px 0 18px;
  color: #172840;
  font-size: 26px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.paper-meta,
.paper-table {
  display: grid;
  gap: 8px;
}

.paper-meta i,
.paper-table i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #d7e2ef;
}

.paper-meta i:nth-child(2) { width: 74%; }
.paper-meta i:nth-child(3) { width: 46%; }

.paper-table {
  margin-top: 48px;
  padding-top: 15px;
  border-top: 1px solid #d4dfeb;
}

.paper-table i:nth-child(2) { width: 94%; }
.paper-table i:nth-child(3) { width: 86%; }
.paper-table i:nth-child(4) { width: 67%; }

.paper-sum {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid #d4dfeb;
}

.paper-sum span {
  color: #6c7f95;
  font-size: 11px;
}

.paper-sum strong {
  color: #14223a;
  font-size: 20px;
}

.invoice-challenge-screen {
  justify-content: flex-start;
  max-width: 1700px;
  padding-top: clamp(20px, 3vh, 38px);
}

.compact-heading {
  align-items: center;
  margin-bottom: clamp(14px, 1.8vh, 22px);
}

.compact-heading .eyebrow {
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 13px;
}

.compact-heading h2 {
  font-size: clamp(30px, 2.7vw, 46px);
}

.challenge-layout.invoice-layout {
  grid-template-columns: minmax(660px, 1.35fr) minmax(400px, 0.65fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.real-invoice {
  position: relative;
  min-height: clamp(570px, 67vh, 720px);
  padding: clamp(22px, 2vw, 34px);
  color: #1a2940;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f0f5fb);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.invoice-watermark {
  position: absolute;
  top: 24px;
  left: 50%;
  padding: 5px 11px;
  color: rgba(167, 50, 50, 0.65);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  border: 1px solid rgba(167, 50, 50, 0.28);
  border-radius: 4px;
  transform: translateX(-50%) rotate(-2deg);
}

.real-invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid #dde5ef;
}

.supplier-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 68%;
}

.supplier-brand > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  border-radius: 11px;
}

.supplier-brand > div {
  display: grid;
  gap: 4px;
}

.supplier-brand strong {
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.1;
}

.supplier-brand small {
  color: #77879a;
  font-size: 9px;
}

.invoice-title-block {
  display: grid;
  gap: 4px;
  text-align: right;
}

.invoice-title-block strong {
  color: #223550;
  font-size: clamp(19px, 1.55vw, 27px);
  letter-spacing: 0.09em;
}

.invoice-title-block span {
  color: #74869b;
  font-size: 10px;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 70px);
  padding: 20px 0;
}

.recipient {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recipient small,
.invoice-subject small,
.payment-data small {
  margin-bottom: 3px;
  color: #8290a2;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.recipient strong {
  font-size: 12px;
}

.recipient span {
  color: #607186;
  font-size: 9px;
}

.invoice-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.invoice-data div {
  display: grid;
  gap: 2px;
}

.invoice-data dt {
  color: #8997a7;
  font-size: 8px;
}

.invoice-data dd {
  margin: 0;
  color: #273a53;
  font-size: 10px;
  font-weight: 700;
}

.invoice-subject {
  display: grid;
  gap: 3px;
  margin: 2px 0 13px;
}

.invoice-subject strong {
  font-size: 11px;
}

.invoice-note {
  margin: -2px 0 13px;
  padding: 7px 10px;
  color: #825d18;
  font-size: 9px;
  font-weight: 650;
  border-left: 3px solid #d7a23a;
  background: #fff7e5;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.positions-table th {
  padding: 8px;
  color: #718197;
  font-size: 8px;
  font-weight: 750;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid #cfd9e6;
  background: #eaf0f7;
}

.positions-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #e1e7ef;
}

.positions-table th:first-child,
.positions-table td:first-child {
  width: 10%;
}

.positions-table th:nth-child(3),
.positions-table th:last-child,
.positions-table td:nth-child(3),
.positions-table td:last-child {
  width: 19%;
  text-align: right;
}

.invoice-bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-top: 18px;
}

.payment-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: end;
}

.payment-data strong {
  font-size: 9px;
}

.payment-data span {
  color: #7b8999;
  font-size: 8px;
}

.totals {
  display: grid;
  gap: 6px;
  margin: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #5a6b7e;
  font-size: 9px;
}

.totals dd {
  margin: 0;
  color: #25374e;
  font-weight: 700;
}

.totals .grand-total {
  margin-top: 4px;
  padding-top: 9px;
  color: #172942;
  font-size: 12px;
  font-weight: 800;
  border-top: 2px solid #354e70;
}

.review-panel {
  display: flex;
  flex-direction: column;
  min-height: clamp(570px, 67vh, 720px);
  padding: clamp(20px, 2vw, 32px);
  border: 1px solid rgba(139, 170, 218, 0.16);
  border-radius: 20px;
  background: rgba(15, 28, 52, 0.78);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.review-head p {
  margin: 9px 0 0;
  color: var(--slate-400);
  font-size: 12px;
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
}

.check-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(139, 170, 218, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.check-state {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #8fe0b3;
  font-size: 13px;
  font-weight: 850;
  border-radius: 50%;
  background: rgba(50, 172, 108, 0.13);
}

.check-row > div {
  display: grid;
  gap: 4px;
}

.check-row small {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-row strong {
  font-size: 11px;
  line-height: 1.25;
}

.check-warn {
  border-color: rgba(242, 184, 75, 0.2);
  background: rgba(242, 184, 75, 0.05);
}

.check-warn .check-state {
  color: #f0c46b;
  background: rgba(209, 147, 38, 0.13);
}

.check-bad {
  border-color: rgba(239, 106, 106, 0.2);
  background: rgba(239, 106, 106, 0.05);
}

.check-bad .check-state {
  color: #ff9999;
  background: rgba(213, 76, 76, 0.13);
}

.decision-title {
  color: #a8b8d1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.executive-decisions {
  gap: 8px;
  margin-top: 10px;
}

.executive-decisions .decision-button {
  min-height: 67px;
  grid-template-columns: 41px 1fr auto;
}

.executive-decisions .decision-icon {
  width: 39px;
  height: 39px;
  font-size: 17px;
}

.executive-decisions .decision-copy strong {
  font-size: 14px;
}

.executive-decisions .decision-copy small {
  font-size: 10px;
}

.executive-feedback {
  min-height: clamp(570px, 67vh, 720px);
  padding: clamp(24px, 2.5vw, 40px);
}

.executive-feedback h3 {
  font-size: clamp(25px, 2.1vw, 36px);
}

.executive-feedback blockquote {
  position: relative;
  margin: 20px 0 0;
  padding: 13px 15px 13px 34px;
  color: #d9e5f7;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  border: 1px solid rgba(146, 175, 219, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.executive-feedback blockquote::before {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #64b4ff;
  font-size: 24px;
  content: "“";
}

.decision-correction {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(242, 184, 75, 0.07);
}

.decision-correction span {
  color: var(--slate-400);
  font-size: 10px;
}

.decision-correction strong {
  color: #f2c96f;
  font-size: 12px;
}

.executive-result-screen {
  max-width: 1580px;
  margin: 0 auto;
  padding-top: clamp(26px, 4vh, 52px);
}

.executive-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.executive-result-head .eyebrow {
  margin-bottom: 12px;
}

.executive-result-head h2 {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.executive-result-head p {
  margin: 12px 0 0;
  color: var(--slate-300);
  font-size: 16px;
}

.large-score {
  width: 118px;
  height: 118px;
}

.large-score::before {
  width: 96px;
  height: 96px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(24px, 3vw, 44px);
}

.automation-summary {
  padding: clamp(22px, 2.3vw, 36px);
  border: 1px solid rgba(139, 170, 218, 0.16);
  border-radius: 20px;
  background: rgba(15, 28, 52, 0.7);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.2);
}

.routing-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.routing-metrics div {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 170, 218, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.routing-metrics strong {
  font-size: 23px;
}

.routing-metrics span {
  color: var(--slate-400);
  font-size: 10px;
}

.route-approve strong { color: #76d8a3; }
.route-review strong { color: #f0c46b; }
.route-stop strong { color: #ff9292; }

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}

.capability-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  padding: 12px;
  border: 1px solid rgba(139, 170, 218, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.capability-list span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #64b4ff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(64, 113, 220, 0.13);
}

.capability-list strong {
  font-size: 12px;
}

.capability-list p {
  margin: 2px 0 0;
  color: var(--slate-400);
  font-size: 9px;
  line-height: 1.35;
}

.compact-prize,
.compact-prize .prize-content {
  min-height: 430px;
}

.compact-prize .prize-year {
  font-size: 116px;
}

@media (max-width: 1180px) {
  .challenge-layout.invoice-layout {
    grid-template-columns: minmax(560px, 1.2fr) minmax(340px, 0.72fr);
  }

  .real-invoice,
  .review-panel,
  .executive-feedback {
    min-height: 600px;
  }

  .check-row {
    min-height: 52px;
  }
}

@media (max-width: 860px) {
  .challenge-layout.invoice-layout,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .real-invoice,
  .review-panel,
  .executive-feedback {
    min-height: auto;
  }

  .real-invoice {
    min-width: 660px;
  }

  .invoice-layout {
    overflow-x: auto;
  }

  .review-panel,
  .executive-feedback {
    min-width: 0;
  }

  .executive-result-head {
    align-items: flex-start;
  }

  .compact-prize,
  .compact-prize .prize-content {
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .real-invoice {
    min-width: 560px;
  }

  .compact-heading {
    align-items: flex-end;
  }

  .compact-heading h2 {
    font-size: 27px;
  }

  .executive-result-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .routing-metrics,
  .capability-list {
    grid-template-columns: 1fr;
  }
}

/* Fremdwährungen, Steuerschlüssel und XRechnung */

.positions-table .tax-column {
  width: 13%;
  text-align: center;
}

.positions-table th:nth-child(4),
.positions-table th:nth-child(5),
.positions-table td:nth-child(4),
.positions-table td:nth-child(5) {
  width: 18%;
  text-align: right;
}

.tax-key-badge {
  display: inline-grid;
  place-items: center;
  min-width: 35px;
  min-height: 21px;
  padding: 3px 6px;
  color: #2c5d9e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  border: 1px solid #b9cceb;
  border-radius: 5px;
  background: #e9f1ff;
}

.xml-invoice {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: linear-gradient(145deg, #f8fafc, #e8eef6);
}

.xml-invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 18px;
}

.xml-invoice-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xml-invoice-header > div > div {
  display: grid;
  gap: 3px;
}

.xml-invoice-header strong {
  color: #1d3049;
  font-size: 14px;
}

.xml-invoice-header small {
  color: #78889c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xml-file-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  background: #285f7d;
}

.machine-readable-badge {
  padding: 6px 10px;
  color: #26664d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #b5dbc9;
  border-radius: 999px;
  background: #e5f5ed;
}

.xml-viewer {
  flex: 1;
  min-height: 470px;
  color: #b9c9e4;
  border: 1px solid #253654;
  border-radius: 13px;
  background: #091222;
  box-shadow: 0 22px 45px rgba(9, 18, 34, 0.24);
  overflow: hidden;
}

.xml-viewer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #20304b;
  background: #0e1a2f;
}

.xml-viewer-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef7373;
}

.xml-viewer-bar span:nth-child(2) { background: #e7b85e; }
.xml-viewer-bar span:nth-child(3) { background: #56bd82; }

.xml-viewer-bar strong {
  margin-left: auto;
  color: #778ba9;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xml-viewer pre {
  height: 435px;
  margin: 0;
  padding: 18px 20px 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(8px, 0.67vw, 11px);
  line-height: 1.55;
  white-space: pre;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
}

.xml-viewer code {
  color: #91c9ff;
}

.xml-document-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 10px 12px;
  color: #6b7d92;
  font-size: 9px;
  border: 1px solid #d4deea;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
}

.xml-document-note strong {
  color: #30455f;
  font-size: 10px;
}

.xml-reveal {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(105, 161, 255, 0.29);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(53, 111, 243, 0.18), rgba(79, 129, 234, 0.06));
}

.xml-reveal strong {
  color: #91c9ff;
  font-size: 13px;
}

.xml-reveal span {
  color: #eef4ff;
  font-size: 12px;
}

/* Ablauf bei abgelaufener Zeit */

.timeout-panel {
  position: relative;
  background:
    radial-gradient(circle at 86% 18%, rgba(242, 184, 75, 0.13), transparent 28%),
    rgba(15, 28, 52, 0.82);
}

.timeout-clock {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 25px;
  color: #ffd681;
  font-size: 28px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 50%;
  background: rgba(242, 184, 75, 0.09);
  box-shadow: 0 0 0 11px rgba(242, 184, 75, 0.035);
}

.timeout-panel h3 {
  max-width: 440px;
  font-size: clamp(28px, 2.25vw, 40px);
}

.timeout-panel > p {
  max-width: 440px;
}

.timeout-note {
  margin-top: 18px;
  border-left-color: #e7b85e;
  background: rgba(231, 184, 94, 0.08);
}

.timeout-note span {
  color: #efc976;
}

@media (max-width: 860px) {
  .xml-viewer pre {
    font-size: 9px;
  }
}
