:root {
  color-scheme: light;
  --bg: #f5efe5;
  --bg-alt: #efe6da;
  --surface: #ffffff;
  --surface-soft: #f8f4ee;
  --text: #231f1a;
  --muted: #6f675f;
  --border: #ddd1c3;
  --border-strong: #c9b8a3;
  --button: #2a241e;
  --button-hover: #181410;
  --button-soft: #f2e9dd;
  --button-soft-hover: #eadfce;
  --accent: #8c6d45;
  --error: #9c483b;
  --shadow: 0 18px 42px rgba(52, 37, 19, 0.08);
  --shadow-soft: 0 8px 22px rgba(52, 37, 19, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  max-width: 760px;
  margin: 0 0 28px;
}

.hero__label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero__lead {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  color: var(--text);
}

.hero__note {
  margin: 12px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.dashboard {
  margin-top: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.launch-card,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 209, 195, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.launch-card {
  padding: 24px;
  display: grid;
  gap: 22px;
  align-content: space-between;
  min-height: 220px;
}

.launch-card__body h2,
.intro-card__copy h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.launch-card__body p,
.intro-card__copy p,
.mockup-card__header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.launch-card__status {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-card--disabled {
  opacity: 0.68;
  background: rgba(255, 255, 255, 0.7);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--button);
}

.button--primary:hover {
  background: var(--button-hover);
}

.button--secondary,
.button--disabled {
  color: var(--button);
  background: var(--button-soft);
}

.button--secondary:hover {
  background: var(--button-soft-hover);
}

.button--disabled {
  cursor: not-allowed;
}

.review-form {
  display: grid;
  gap: 18px;
}

.intro-card,
.final-card,
.submit-card {
  padding: 24px;
}

.intro-card {
  display: grid;
  gap: 18px;
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.94rem;
}

.mockup-list {
  display: grid;
  gap: 18px;
}

.mockup-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.mockup-card__header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.mockup-card__media {
  margin: 0;
  display: grid;
  gap: 10px;
}

.mockup-card__image-button {
  width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.mockup-card__image-button img {
  width: 100%;
  height: auto;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.text-button:hover {
  color: var(--button-hover);
}

.rating-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.rating-group legend {
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dot-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dot-rating label {
  position: relative;
  display: inline-flex;
}

.dot-rating input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.dot-rating span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dot-rating label:hover span {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.dot-rating input:focus-visible + span {
  outline: 3px solid rgba(140, 109, 69, 0.22);
  outline-offset: 2px;
}

.dot-rating input:checked + span {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 36, 30, 0.18);
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 1rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(140, 109, 69, 0.12);
}

.field__help {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.final-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.submit-card {
  display: grid;
  gap: 14px;
}

.submit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-message {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.98rem;
}

.status-message.is-error {
  color: var(--error);
}

.mockup-card.is-missing {
  border-color: rgba(156, 72, 59, 0.5);
  box-shadow: 0 0 0 1px rgba(156, 72, 59, 0.12), var(--shadow-soft);
}

.mockup-card.is-missing .rating-group legend {
  color: var(--error);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 16, 12, 0.76);
}

.lightbox__panel {
  position: relative;
  width: min(96vw, 1280px);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: rgba(18, 14, 11, 0.12);
  backdrop-filter: blur(10px);
}

.lightbox__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--button);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox__image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 840px) {
  .page-shell {
    width: min(var(--page-width), calc(100% - 24px));
    padding: 22px 0 44px;
  }

  .hero h1 {
    max-width: none;
  }

  .scale-legend,
  .final-card__grid {
    grid-template-columns: 1fr;
  }

  .scale-legend {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .launch-card,
  .intro-card,
  .mockup-card,
  .final-card,
  .submit-card {
    padding: 18px;
  }

  .hero {
    margin-bottom: 22px;
  }

  .hero__label {
    font-size: 0.82rem;
  }

  .dot-rating span {
    width: 38px;
    height: 38px;
  }

  .submit-card__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
