:root {
  --navy: #11234F;
  --blue: #3D6FD6;
  --blue-dark: #2f59b4;
  --bg: #f6f8fc;
  --text: #1a2234;
  --muted: #5a6478;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  text-align: center;
  padding: 24px;
}

h1 {
  font-size: 2.6rem;
  margin: 10px 0 22px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ---- Lock + animation ---- */
.lock { display: block; margin: 0 auto; }

.lock .shackle {
  transform-box: view-box;
  transform-origin: 80px 50px;
  /* springy ease so it overshoots a touch */
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* default state = UNLOCKED (shackle lifted + swung open) */
.lock .shackle {
  transform: translateY(-9px) rotate(24deg);
}

/* clicked state = LOCKED (shackle seated shut) */
.lock.locked .shackle {
  transform: translateY(0) rotate(0deg);
}

.lock .body {
  transform-box: view-box;
  transform-origin: 60px 80px;
  transition: transform 0.2s ease;
}
.lock.locked .body {
  transform: scale(1.04);
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }

.small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}
