:root {
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #342a24;
  --muted: #74675f;
  --orange: #a85f3b;
  --orange-soft: #fff4e8;
  --green: #356859;
  --green-dark: #285246;
  --line: #ddd2c1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 48px;
}

.hero { margin-bottom: 24px; }

.hero h1 { margin: 2px 0 6px; font-size: clamp(32px, 6vw, 52px); }

.eyebrow, .step {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.subtitle { margin: 0 0 12px; font-size: clamp(18px, 3vw, 24px); }

.notice {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0cc;
  color: #6d5017;
  font-weight: 700;
}

.briefing-layout,
.preview-layout,
.results-grid {
  display: grid;
  gap: 20px;
}

.briefing-layout { grid-template-columns: minmax(0, 2fr) minmax(240px, 0.75fr); }
.preview-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid #eadfce;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(82, 58, 38, 0.08);
}

.card h2 { margin: 0 0 16px; }

.card-heading,
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-heading h2 { margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.full-width { grid-column: 1 / -1; }

label { display: grid; gap: 6px; color: var(--ink); font-weight: 700; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

textarea { resize: vertical; }

button {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 15px;
}

button:disabled { cursor: not-allowed; opacity: 0.55; }

.primary { width: 100%; margin-top: 16px; background: var(--green); color: #fff; }
.primary:hover:not(:disabled) { background: var(--green-dark); }
.secondary { background: #725a48; color: #fff; }
.example-button { background: var(--orange-soft); color: var(--orange); }

.offer-card { background: #fffaf3; }
.offer-name, .mini-brand { color: var(--orange); font-weight: 800; }
.offer-name { margin-bottom: 10px; }
.offer-card strong { display: block; font-size: 22px; }
.offer-price { margin: 14px 0 6px; color: var(--green); font-size: 28px; font-weight: 900; }
.offer-card p { margin: 0; color: var(--muted); }

.status {
  min-height: 24px;
  margin: 12px 4px;
  color: #674d40;
  font-weight: 700;
}
.status.error { color: #9a2e2e; }
.status.loading { color: #5c5c7a; }

.results-card { margin-bottom: 20px; }

.result-item {
  min-height: 132px;
  border: 1px solid #e6dccd;
  border-radius: 12px;
  padding: 14px;
  background: #fdfbf7;
}

.result-heading h3 { margin: 0; font-size: 16px; }
.result-text { margin: 10px 0 0; white-space: pre-wrap; }

.copy-button {
  padding: 7px 10px;
  background: #ece7dd;
  color: var(--ink);
  font-size: 13px;
}

.image-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  margin: 14px 0;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #faf8f3;
  text-align: center;
}

.image-preview img { width: 100%; max-height: 380px; object-fit: contain; }

.landing-preview {
  min-height: 310px;
  padding: 28px 20px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fffaf0, #efdba9);
  text-align: center;
}

.landing-preview h3 { margin: 8px 0; }
.landing-preview p { margin: 8px 0; }

.landing-offer {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 4px;
  color: var(--green);
}

.landing-offer strong { font-size: 34px; }
.landing-preview small { display: block; margin: 8px 0 16px; }

.cta { width: 100%; background: var(--green); color: #fff; }
.demo-label { color: var(--muted); font-size: 13px; }

footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 620px); margin-top: 16px; }
  .briefing-layout, .preview-layout, .results-grid, .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .card-heading { align-items: flex-start; }
  .example-button { max-width: 150px; }
}
