:root {
  --bg: #f7f2e9;
  --card: #fffdf8;
  --text: #1d1a17;
  --muted: #72685f;
  --line: rgba(29, 26, 23, 0.08);
  --accent: #f97316;
  --shadow: 0 24px 70px rgba(68, 42, 16, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 207, 148, 0.45), transparent 28%),
    linear-gradient(180deg, #fbf8f2, var(--bg));
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.page-shell {
  width: calc(100vw - 24px);
  max-width: 1600px;
}

.app-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  grid-template-rows: auto 220px auto;
}

.label {
  margin: 0;
  color: var(--muted);
  font: 700 0.8rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.tagline-panel {
  height: 220px;
  display: grid;
  align-items: center;
  padding: 30px 24px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.tagline-text {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  font-size: 56px;
  line-height: 1.14;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.generate-button {
  justify-self: center;
  min-width: 140px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffb46f);
  color: #2a180d;
  font: 700 1rem/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.generate-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.generate-button:active {
  transform: translateY(0);
}

.app-card.is-pulsing .tagline-panel {
  transform: scale(1.01);
  transition: transform 220ms ease;
}

@media (max-width: 640px) {
  .app-card {
    padding: 18px;
  }

  .tagline-panel {
    height: 190px;
    padding: 22px 18px 26px;
  }

  .generate-button {
    width: min(260px, 100%);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
