* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, #f4efe8, #ffffff, #f7eaea);
  color: #1f1f1f;
}

.app {
  width: 100%;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.screen.active {
  display: flex;
}

.hero-card,
.card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.hero-card {
  background: #121212;
  color: white;
  text-align: center;
}

.brand {
  font-size: 12px;
  letter-spacing: 3px;
  color: #c9a86a;
  margin-bottom: 20px;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 16px;
}

h2 {
  margin-top: 0;
  font-size: 26px;
}

p {
  color: inherit;
  line-height: 1.6;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #ddd;
  font-size: 16px;
}

button {
  width: 100%;
  border: none;
  background: #121212;
  color: white;
  padding: 15px;
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 18px;
}

button.secondary {
  background: #eee;
  color: #222;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.template {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 18px;
  margin: 14px 0;
  cursor: pointer;
}

.template.active {
  background: #121212;
  color: white;
  border-color: #121212;
}

.template.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #ddd;
  margin-top: 20px;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.preview-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: white;
}

.preview-text span {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.preview-text h3 {
  font-size: 24px;
  margin: 8px 0;
}

#statusText {
  text-align: center;
  margin-top: 16px;
  color: #267a3e;
  font-weight: bold;
}