:root {
  --bg: #090d12;
  --card: #141b29;
  --text: #f1f5f9;
  --muted: #a7b0bd;

  --border: rgba(255,255,255,0.11);
  --line: rgba(255,255,255,.12);

  --primary: #7cb7ff;
  --danger: #f87171;
  --ok: #34d399;

  --max: 1280px;
  --r: 16px;
}

.container.nav.row {
  gap: 12px;
  /* tighter header spacing */
}

.row {
  display: flex;
  gap: 18px;
  align-items: center
}
.nav { height: 68px; }
.wrap {
  flex-wrap: wrap
}

.between {
  justify-content: space-between
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 20px; padding-bottom: 20px; }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.demo-brand { min-width: 0; }
.brand__subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }

.grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.card h2 { margin: 0 0 12px 0; font-size: 16px; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-size: 12px; color: var(--muted); }
input, textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
}

/* Match Selenicore site: header links are not purple/underlined */
a { color: inherit; text-decoration: none; }
a:hover { opacity: .95; }

textarea { resize: vertical; }

.hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s, filter .15s, border-color .15s;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, .22), rgba(167, 139, 250, .18));
  border-color: rgba(125, 211, 252, .35);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05)
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.status { border-radius: 12px; margin-bottom: 12px; font-size: 13px; }
.status--idle { color: var(--muted); }
.status--loading { color: var(--primary); }
.status--loading::after {
  content: "...";
  display: inline-block;
  margin-left: 6px;
  animation: dots 1.2s steps(4, end) infinite;
}

.is-hidden {
  display: none !important;
}

.is-revealed {
  display: block;
  animation: fadeSlideIn .28s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card--result {
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(124,183,255,0.04), rgba(0,0,0,0)),
    var(--card);
  box-shadow:
    0 0 0 1px rgba(124,183,255,0.08),
    0 14px 40px rgba(0,0,0,0.30);
}

.summary-metric__value {
  color: var(--text);
}

#outWorkflow,
#outManualTime,
#outAutomatedTime,
#outReviewMode {
  color: var(--text);
}

#legacyWindowState {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.22);
  background: rgba(251,191,36,0.07);
}

#legacyStatus.is-filled {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.08);
}

.final-chip {
  border-color: rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.08);
}

.final-draft {
  border-color: rgba(96,165,250,0.22);
  background: rgba(96,165,250,0.04);
}

.mobile-replay-hint {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
}

.hint--secondary {
  margin-top: 10px;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .mobile-replay-hint {
    display: block;
  }
}

@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

@keyframes statusGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(96,165,250,0);
    filter: brightness(1);
  }
  50% {
    text-shadow:
      0 0 6px rgba(96,165,250,0.9),
      0 0 14px rgba(96,165,250,0.6);
    filter: brightness(1.15);
  }
}
.status--loading {
  animation:
    statusGlow 1.4s ease-in-out infinite,
    statusFloat 1.4s ease-in-out infinite;
}

@keyframes statusFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .status--loading,
  .status--loading::after {
    animation: none;
  }
}
.status--ok { color: var(--ok); }
.status--err { color: var(--danger); }

.result { display: grid; gap: 12px; }
.result__row { display: grid; gap: 6px; }
.result__label { color: var(--muted); font-size: 12px; }
.result__value {
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 38px;
}.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.notes { margin: 0; padding-left: 18px; }
.notes li { margin: 4px 0; color: var(--danger); font-size: 12px; }

.footer { margin-top: 10px; }
.small { color: var(--muted); font-size: 12px; }

/* Mobile-only status placement */
.status--mobile { display: none; }

@media (max-width: 640px) {
  /* Show status inside input card */
  #statusMobile { display: block; margin-bottom: 12px; margin-top: 12px; font-size: 13px; }

  /* Hide the result-card status on mobile (avoid duplicate messaging)*/
  #status { display: none; }
}

.result-placeholder {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  margin-bottom: 12px;
}


footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-width: 0;
  /* allows flex shrink */
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}


/* Desktop nav */
nav[aria-label="Primary"] {
  white-space: nowrap;
  min-width: 0;
}


.brand .name {
  letter-spacing: .2px;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px
}

/* --- Demo before/after visual cue -------------------------------- */

.card--input {
  border-color: rgba(255,255,255,0.10);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card--input {
  border-color: rgba(255,255,255,0.08);
}

.card--result {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.08),
    0 10px 30px rgba(0,0,0,0.25);
}

.summary-metric {
  border: 1px solid rgba(224, 155, 7, 0.705);
  background: rgba(255,255,255,0.025);
}

.summary-metric__value {
  color: #dbeafe;
}

#finalSection .result__value {
  border-color: rgba(52,211,153,0.22);
  background: rgba(52,211,153,0.045);
}

/* === Demo mobile header fixes ========================================= */

/* Ensure the top header row can wrap instead of overlapping */
header .container.nav.row.between {
  flex-wrap: wrap;
  row-gap: 10px;
}

/* Keep the brand group from forcing overlap */
header .brand {
  min-width: 0;
  max-width: 100%;
}

/* Prevent badge text from overflowing into other items */
header .badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: hide "NL • Custom software" badge (keeps header clean) */
@media (max-width: 640px) {
  header .brand .badge {
    display: none;
  }

  /* Put the right-side badge row on its own line */
  header .container.nav.row.between > .row.wrap {
    width: 100%;
    justify-content: flex-start;
  }

  /* Make "SEO Automatisering demo" pill fit nicely */
  header .container.nav.row.between > .row.wrap .badge {
    display: inline-flex;
    width: auto;
    max-width: 100%;
  }
}

/* === Demo action buttons (Reset/Optimaliseer) ========================= */

@media (max-width: 640px) {
  /* Your demo header block that contains buttons */
  .demo-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .header__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .header__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Mobile: vertically center header content with equal breathing room === */
@media (max-width: 640px) {

  header .container.nav.row.between {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Let the nav grow naturally instead of forcing 68px */
  .nav {
    height: auto;
    min-height: 68px; /* keeps desktop rhythm */
  }
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.step-item__title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.step-item__data {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-metric {
  border: 1px solid rgba(19, 187, 253, 0.671);
  border-radius: 10px;
  padding: 10px;
  background: rgba(13, 144, 196, 0.096);
}

.summary-metric__label {
  font-size: 11px;
  color: rgba(19, 187, 253, 0.671);
  margin-bottom: 6px;
}

.summary-metric__value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  opacity: 0.55;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.timeline-step.is-active {
  opacity: 1;
  border-color: rgba(124,183,255,0.55);
  background: rgba(124,183,255,0.08);
  transform: translateY(-1px);
}

.timeline-step.is-done {
  opacity: 1;
  background: rgba(52,211,153,0.06);
  border-color: rgba(52,211,153,0.35);
}

.timeline-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  flex: 0 0 auto;
}

.timeline-step.is-active .timeline-step__dot {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
}

.timeline-step.is-done .timeline-step__dot {
  background: var(--ok);
}

.timeline-step__text {
  font-size: 13px;
}

.legacy-screen {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1420;
}

.legacy-screen__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--border);
}

.legacy-badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}

.legacy-screen__body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.legacy-field {
  display: grid;
  gap: 5px;
}

.legacy-field label {
  font-size: 11px;
  color: var(--muted);
}

.legacy-input {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  font-size: 13px;
  line-height: 1.35;
}

.legacy-input.is-filled {
  border-color: rgba(124,183,255,0.42);
  background: rgba(124,183,255,0.08);  
  box-shadow: inset 0 0 0 1px rgba(96,165,250,0.12);
}

.legacy-screen__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.legacy-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
}

.legacy-btn.is-ready {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.12);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.example-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.is-selected {
  border-color: rgba(125, 211, 252, .45);
  background: rgba(125, 211, 252, .10);
}

.legacy-footnote {
  font-size: 11px;
  color: var(--muted);
}

.final-artifact {
  display: grid;
  gap: 14px;
}

.final-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.final-chip {
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(52,211,153,0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(52,211,153,0.08);
}

.final-draft {
  border: 1px solid rgba(124,183,255,0.22);
  border-radius: 12px;
  padding: 14px;
  background: rgba(124,183,255,0.05);
  margin-top: 6px;
}

.final-draft__label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.final-draft__subject {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 13px;
}

.final-draft__body {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }
}
