:root {
  --ink: #22140c;
  --muted: #786554;
  --paper: #f7f1e7;
  --panel: #fffaf0;
  --line: #ead8c2;
  --orange: #f26a1b;
  --green: #1f7a63;
  --green-soft: #e6f4ef;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(242,106,27,.1), transparent 28%),
    var(--paper);
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 28px 34px 18px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; letter-spacing: 0; max-width: 640px; }
h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.02; letter-spacing: 0; margin-top: 12px; }
h3 { font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
p { color: var(--muted); line-height: 1.58; }
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 750;
  cursor: pointer;
}
button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
main { padding: 28px 34px 42px; }
.view { display: none; }
.view.active { display: block; }
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: end;
}
.hero-row > div:first-child p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 18px;
}
.prompt-box {
  background: #1b120d;
  border-radius: 8px;
  padding: 20px;
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.12);
}
.prompt-box span {
  display: inline-block;
  color: #ffb27a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.prompt-box p { color: #f8eadc; font-size: 17px; }
.workspace {
  display: grid;
  grid-template-columns: 1fr 48px 1.05fr 48px 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 28px;
}
.card, article, .side {
  background: rgba(255,250,240,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.card.raw { background: #fff4e7; }
.card.green, .side.solved {
  background: var(--green-soft);
  border-color: rgba(31,122,99,.28);
}
ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  line-height: 1.55;
}
li { margin: 5px 0; }
li::marker { color: var(--orange); }
.arrow {
  align-self: center;
  text-align: center;
  color: var(--orange);
  font-size: 34px;
  font-weight: 900;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.event {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 132px;
}
.event b {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}
.event span { color: var(--muted); line-height: 1.45; }
.event.done { border-color: rgba(31,122,99,.25); }
.output-grid, .before-after, .persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.persona-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-preview p, .calendar-preview p { margin-top: 10px; }
.date {
  font-size: 32px;
  color: var(--orange);
  font-weight: 850;
  margin: 20px 0;
}
.muted { color: var(--muted); }
.touchpoint {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.6);
  padding: 14px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}
.system-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.system-map code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.closing-line {
  margin-top: 24px;
  border-left: 5px solid var(--orange);
  padding-left: 18px;
  font-size: 34px;
  font-weight: 880;
}
@media (max-width: 980px) {
  .topbar { display: block; }
  nav { justify-content: flex-start; margin-top: 18px; }
  .hero-row, .workspace, .timeline, .output-grid, .before-after, .persona-grid, .system-map {
    grid-template-columns: 1fr;
  }
  .arrow { display: none; }
}
