/* Delt CSS for alle platform-opsætnings-animationer */
:root {
  --teal: #1f6f6b;
  --teal-dark: #185651;
  --teal-light: #e4f0ef;
  --teal-bg: #f0f8f7;
  --text: #1d2b2a;
  --muted: #74807d;
  --border: #e3e8e6;
  --green: #1aa05e;
  --green-light: #def4ee;
  --bg: #f5f7f6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.wrap { max-width: 920px; width: 100%; }
h1 { text-align: center; font-size: 28px; margin-bottom: 6px; letter-spacing: -0.5px; }
h1 span { color: var(--teal); }
.tagline { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 16px; }
.step-header { text-align: center; margin-bottom: 14px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px;
  letter-spacing: 0.3px; margin-bottom: 10px;
}
.step-title { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; }
.step-subtitle { font-size: 14px; color: var(--muted); margin-top: 6px; }
.step-subtitle code { background: var(--teal-light); padding: 2px 7px; border-radius: 4px; font-size: 12.5px; color: var(--text); }
.scene {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(29, 43, 42, 0.1);
  overflow: hidden; position: relative; cursor: pointer; user-select: none;
}
.scene-header { display: none; }
.dot { display: none; }
.url-bar { display: none; }
.scene-body { min-height: 460px; position: relative; background: #f1f1f1; }
.scene-view { display: none; animation: sceneFadeIn 0.5s ease-out; }
.scene-view.active { display: block; }
@keyframes sceneFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* OnPly konto-side mockup (genbruges på tværs af alle platforme) */
.onply-page { background: #f5f7f6; min-height: 460px; padding: 0; }
.onply-nav {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 24px; display: flex; align-items: center; gap: 24px;
}
.onply-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.onply-logo span { color: var(--teal); }
.onply-nav-item { color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 6px; }
.onply-nav-item.active { background: var(--teal-light); color: var(--teal); }
.onply-content { padding: 28px 32px; }
.onply-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 14px;
}
.onply-section-title { font-size: 20px; color: var(--teal); font-weight: 700; margin-bottom: 6px; }
.onply-section-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.onply-copy-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.onply-copy-code {
  flex: 1 1 240px; background: var(--teal-light); border-radius: 8px;
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px; color: var(--text); display: flex; align-items: center;
}
.onply-copy-btn {
  background: #fff; color: var(--teal); border: 1px solid var(--teal);
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.25s, color 0.25s;
  font-family: inherit;
}
.onply-copy-btn.copied { background: var(--teal); color: #fff; }
.onply-advanced {
  margin-top: 18px; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; background: #fafcfb;
}
.onply-advanced-summary { font-size: 13.5px; color: var(--teal); font-weight: 600; margin-bottom: 10px; }

/* Cursor */
.cursor {
  position: absolute; width: 24px; height: 24px; pointer-events: none; z-index: 30;
  opacity: 0;
  transition: opacity 0.3s, left 1.3s cubic-bezier(0.5, 0, 0.3, 1), top 1.3s cubic-bezier(0.5, 0, 0.3, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transform-origin: 3px 2px;
}
.cursor.visible { opacity: 1; }
.cursor.clicking { transform: scale(0.82); }
.click-pulse {
  position: absolute; width: 20px; height: 20px;
  border: 2px solid var(--teal); border-radius: 50%;
  pointer-events: none; opacity: 0; z-index: 25;
}
.click-pulse.fire { animation: pulseOut 0.6s ease-out; }
@keyframes pulseOut {
  0% { opacity: 1; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* Caption */
.caption {
  text-align: center; margin-top: 18px; font-size: 17px; color: var(--text);
  min-height: 56px; line-height: 1.5; padding: 14px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 4px 12px rgba(29, 43, 42, 0.05);
}
.caption strong { color: var(--teal); font-weight: 700; }

/* Progress / scrubber */
.anim-progress {
  position: relative; height: 16px; margin: 16px auto 0; max-width: 920px;
  cursor: pointer; display: flex; align-items: center;
}
.anim-progress-track {
  position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px;
  background: #d4dad8;
}
.anim-progress-fill {
  position: absolute; left: 0; height: 6px; border-radius: 3px;
  background: var(--teal); width: 0%;
}
.anim-progress-handle {
  position: absolute; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal); left: 0%;
  transform: translateX(-50%); box-shadow: 0 1px 4px rgba(29,43,42,0.25);
  transition: transform 0.1s;
}
.anim-progress:hover .anim-progress-handle { transform: translateX(-50%) scale(1.15); }
.anim-progress-time {
  position: absolute; right: 0; top: -20px; font-size: 11.5px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Controls */
.controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 18px;
}
.btn-play {
  background: var(--teal); color: #fff; border: none; padding: 9px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-play:hover { background: var(--teal-dark); }
.btn-replay {
  background: #fff; color: var(--teal); border: 1px solid var(--teal);
  padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn-replay:hover { background: var(--teal-bg); }
.play-pause-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px; height: 72px; background: rgba(31, 111, 107, 0.92);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; opacity: 0; pointer-events: none; z-index: 50;
}
.play-pause-overlay.flash { animation: flashOut 0.7s ease-out forwards; }
@keyframes flashOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* Generic input + caret + just-pasted (genbruges på tværs af platforme) */
.plat-input.editing .caret { opacity: 1; }
.plat-input .caret {
  display: inline-block; width: 2px; height: 16px; background: var(--text);
  vertical-align: text-bottom; margin-left: 1px;
  animation: caretBlink 0.9s steps(2) infinite; opacity: 0;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.plat-input.just-pasted {
  background: #fef3a8 !important;
  animation: pasteFlash 0.9s ease-out;
}
@keyframes pasteFlash { 0% { background: #fef3a8; } 100% { background: #fff; } }

/* Keyboard hint Ctrl+V */
.kbd-shortcut {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 14px; box-shadow: 0 6px 20px rgba(29, 43, 42, 0.18);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none; z-index: 25; font-size: 13px; color: var(--muted); font-weight: 500;
}
.kbd-shortcut.show { opacity: 1; transform: translateY(0); }
.kbd {
  background: #f5f7f6; border: 1px solid #d4dad8; border-bottom-width: 2px;
  border-radius: 5px; padding: 4px 9px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1;
  min-width: 22px; text-align: center; transition: all 0.08s;
}
.kbd.pressed { transform: translateY(2px); border-bottom-width: 0; background: var(--teal-light); }
.kbd-plus { color: var(--muted); font-weight: 700; font-size: 13px; }

/* Mobil: ydre chrome (selve scenen skaleres af shared.js) */
@media (max-width: 600px) {
  body { padding: 14px 10px; overflow-x: hidden; }
  h1 { font-size: 20px; }
  .tagline { font-size: 14px; }
  .step-title { font-size: 16px; }
  .step-subtitle { font-size: 11.5px; line-height: 1.5; }
  .step-subtitle code { font-size: 10.5px; }
  .caption { font-size: 13px; padding: 11px 13px; }
}
