* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e1f6;
  font-family: 'Inter', system-ui, sans-serif;
  color: #222;
}

.device {
  position: relative;
  width: 390px;
  border: 1px solid #d6d0f2;
  border-radius: 40px;
  overflow: hidden;
  background: #f7f4fb;
  box-shadow: 0 30px 80px rgba(52, 37, 112, 0.18);
}

.screen {
  display: none;
  min-height: 874px;
  padding: 20px;
}

.screen.active {
  display: block;
  animation: screenIn 0.3s ease;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.icon-button,
.text-button,
.footer-button,
.primary-button,
.view-more {
  border: none;
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  color: #4c3f9b;
}

.icon-button {
  font-size: 18px;
  font-weight: 700;
}

.topbar-title,
.topbar-right {
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-copy .eyebrow {
  margin: 0 0 8px;
  color: #7f78b9;
  font-size: 14px;
}

.hero-copy .subtitle {
  margin: 0;
  color: #423f63;
  font-size: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.description-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(56, 45, 115, 0.1);
  font-size: 15px;
  line-height: 1.7;
  color: #5d547e;
}

.illustration {
  position: relative;
  margin: 32px 0 16px;
  height: 210px;
}

.illustration-ring {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(111, 85, 255, 0.12);
}

.illustration-card {
  position: absolute;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(86, 73, 167, 0.12);
}

.card-1 { width: 110px; height: 136px; top: 30px; left: 40px; }
.card-2 { width: 67px; height: 62px; top: 65px; right: 40px; }
.card-3 { width: 48px; height: 50px; top: 132px; left: 140px; }

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c8c1ec;
  transition: width 0.3s ease, background 0.3s ease;
}

.dot.active {
  width: 20px;
  background: #5c4ee5;
}

.primary-button {
  width: 100%;
  padding: 15px 0;
  border-radius: 18px;
  background: #5c4ee5;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

.home-indicator {
  width: 134px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto;
  background: #d6d0f2;
}

.dashboard {
  background: #fff;
}

.dashboard .topbar {
  padding-bottom: 10px;
  border-bottom: 1px solid #ede9ff;
}

.brand {
  font-size: 24px;
  font-weight: 800;
}

.dashboard-header h2 {
  margin: 24px 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

.content-card,
.quick-contact-card,
.relationship-card {
  border-radius: 22px;
  background: #f4f1fc;
}

.recommended {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
}

.card-label {
  text-transform: uppercase;
  font-size: 12px;
  color: #7e78bf;
  margin-bottom: 8px;
}

.recommended strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.status {
  font-size: 14px;
  color: #5c4ee5;
  font-weight: 700;
}

.relationship-section {
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
}

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

.relationship-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px 10px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #dcd5f8;
}

.relationship-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.quick-contact-card {
  padding: 18px;
  margin: 0 -20px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-links a,
.footer-button {
  color: #5c4ee5;
  text-decoration: none;
}

.footer-copy {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
  color: #797288;
}

.footer-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: #efe9ff;
}

.relationship-card,
.quick-contact-card,
.content-card.recommended {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.relationship-card:active,
.quick-contact-card:active,
.content-card.recommended:active {
  transform: scale(0.96);
}

.toast {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(44, 33, 100, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 400px) {
  .device {
    width: 100%;
    margin: 0 10px;
  }
}
