:root {
  --bg: #f4f1ea;
  --ink: #181612;
  --muted: #6f675c;
  --line: rgba(24, 22, 18, 0.16);
  --panel: #fffaf0;
  --accent: #b6382b;
  --accent-dark: #7c241c;
  --green: #326f52;
  --shadow: 0 20px 50px rgba(41, 30, 17, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.shell {
  min-height: 100svh;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 42px clamp(20px, 5vw, 72px) 28px;
  border-bottom: 1px solid var(--line);
  animation: rise 520ms ease both;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.demo-target {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.offer {
  min-width: 168px;
  padding: 18px 0 0;
  border-top: 3px solid var(--accent);
  text-align: right;
}

.offer span,
.offer small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.offer strong {
  display: block;
  margin: 3px 0;
  font-size: 2.4rem;
  line-height: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 5vw, 72px);
}

.intake,
.output {
  min-width: 0;
}

.intake {
  align-self: start;
  position: sticky;
  top: 20px;
  padding-right: clamp(0px, 2vw, 20px);
  animation: fadeIn 620ms 120ms ease both;
}

label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(182, 56, 43, 0.7);
  background: #fffdf7;
  box-shadow: 0 0 0 4px rgba(182, 56, 43, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  padding: 0 20px;
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(182, 56, 43, 0.24);
}

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

.secondary {
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.output {
  display: grid;
  gap: 22px;
  animation: fadeIn 660ms 220ms ease both;
}

.visual {
  min-height: 250px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(24, 22, 18, 0.72), rgba(24, 22, 18, 0.1)),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1400&q=80") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.owner-summary {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.owner-summary p,
.plain-panel p,
.close p {
  color: var(--muted);
  line-height: 1.55;
}

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

.plain-panel {
  padding-top: 4px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pipe {
  min-height: 84px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.72);
  transition: background 200ms ease, color 200ms ease;
}

.pipe span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pipe strong {
  font-size: 1.8rem;
}

.pipe.active {
  background: var(--ink);
  color: #fffaf0;
}

.pipe.active span {
  color: rgba(255, 250, 240, 0.72);
}

.pipe.next {
  background: rgba(50, 111, 82, 0.14);
}

.close {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: start;
  padding: 34px clamp(20px, 5vw, 72px) 52px;
  border-top: 1px solid var(--line);
}

.close h2 {
  margin-bottom: 0;
}

.close p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.close-copy {
  min-width: 0;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.cta-button,
.cta-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.cta-button {
  padding: 0 18px;
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(182, 56, 43, 0.22);
}

.cta-button:hover {
  background: var(--accent-dark);
}

.cta-link {
  padding: 0 4px;
  color: var(--accent-dark);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .topbar,
  .workspace,
  .close {
    grid-template-columns: 1fr;
  }

  .offer {
    width: 100%;
    max-width: 240px;
    text-align: left;
  }

  .intake {
    position: static;
    padding-right: 0;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.35rem;
  }

  .topbar {
    padding-top: 28px;
  }

  .workspace,
  .close {
    padding-left: 18px;
    padding-right: 18px;
  }

  .visual {
    min-height: 190px;
  }

  .actions button {
    width: 100%;
  }

  .cta-button,
  .cta-link {
    width: 100%;
  }
}
