:root {
  color-scheme: light;
  --paper: #f7f0e6;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #17201d;
  --muted: #6f746f;
  --line: #ded6c8;
  --teal: #0d6f6d;
  --teal-dark: #084f4f;
  --coral: #df6f56;
  --amber: #d49a2d;
  --green: #6d8c58;
  --blue: #426f9f;
  --rose: #b95763;
  --shadow: 0 28px 70px rgba(38, 28, 18, 0.2);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(280px, 420px);
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(13, 111, 109, 0.08), transparent 34%),
    linear-gradient(180deg, #fff8ec, #f3e5d1 58%, #e7dfd5);
}

.prototype {
  width: min(100%, 410px);
  height: min(860px, calc(100vh - 48px));
  min-height: 720px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border: 10px solid #111614;
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 10px;
  background: rgba(255, 250, 242, 0.94);
}

.brand-lockup p,
.kicker,
.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup h1 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.icon-button,
.mode-button,
.secondary-action,
.primary-action,
.journey-card,
.chip,
.quick-chip,
.mic-button,
.play-button {
  border: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe5d5;
  color: var(--ink);
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.arrow-left {
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}

.mode-button {
  min-width: 76px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #173f3f;
  color: #fffaf2;
  font-size: 0.8rem;
  font-weight: 800;
}

.step-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 0 18px 12px;
  background: rgba(255, 250, 242, 0.94);
}

.step-button {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #ded4c4;
}

.step-button.is-active {
  background: var(--teal);
}

.screen {
  overflow-y: auto;
  padding: 0 18px 18px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen-shell {
  display: grid;
  gap: 14px;
}

.hero-image {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7dac8;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.headline {
  margin: 4px 0 0;
  font-size: 1.88rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  margin: 0;
  color: #4f5b55;
  font-size: 0.98rem;
  line-height: 1.55;
}

.trait-row,
.principles,
.boundary-list,
.format-list,
.quick-actions,
.creator-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-row span,
.principles span,
.boundary-list span,
.format-list span,
.status-pill,
.context-pill {
  padding: 7px 9px;
  border-radius: 999px;
  background: #ebe0cf;
  color: #23302c;
  font-size: 0.76rem;
  font-weight: 750;
}

.spotlight,
.detail-hero,
.voice-panel,
.feed-card,
.context-card,
.queue-card,
.renewal-panel,
.brief-panel,
.moment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.avatar.large {
  width: 82px;
  height: 82px;
  font-size: 1.45rem;
}

.avatar.mara {
  background: linear-gradient(145deg, #0d6f6d, #6d8c58);
}

.avatar.june {
  background: linear-gradient(145deg, #df6f56, #d49a2d);
}

.avatar.theo {
  background: linear-gradient(145deg, #426f9f, #0d6f6d);
}

.avatar.aria {
  background: linear-gradient(145deg, #b95763, #df6f56);
}

.avatar.sol {
  background: linear-gradient(145deg, #6d8c58, #d49a2d);
}

.avatar.nico {
  background: linear-gradient(145deg, #17201d, #426f9f);
}

.spotlight h3,
.detail-copy h2,
.voice-panel h3,
.feed-card h3,
.context-card h3,
.queue-card h3,
.brief-panel h3,
.moment-card h3 {
  margin: 0;
  font-size: 1rem;
}

.spotlight p,
.detail-copy p,
.voice-panel p,
.feed-card p,
.context-card p,
.queue-card p,
.brief-panel p,
.moment-card p,
.renewal-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.journey-list {
  display: grid;
  gap: 10px;
}

.journey-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: inherit;
  text-align: left;
}

.journey-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 111, 109, 0.14);
}

.journey-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.journey-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.card-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.select-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #bdb3a3;
  border-radius: 50%;
}

.journey-card.is-selected .select-dot {
  border-color: var(--teal);
  background: radial-gradient(circle, var(--teal) 42%, transparent 46%);
}

.detail-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.detail-copy h2 {
  font-size: 1.28rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.snapshot {
  padding: 11px 9px;
  border-radius: var(--radius);
  background: #efe6d8;
}

.snapshot span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.snapshot strong {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.12;
}

.timeline {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline time {
  padding-top: 2px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.timeline strong {
  display: block;
  font-size: 0.9rem;
}

.timeline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.voice-panel,
.brief-panel,
.feed-card,
.context-card,
.queue-card,
.renewal-panel,
.moment-card {
  padding: 14px;
}

.recording-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.mic-button,
.play-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
}

.mic-glyph {
  width: 16px;
  height: 23px;
  border: 3px solid currentColor;
  border-radius: 10px;
  position: relative;
}

.mic-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 8px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.play-glyph {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.waveform {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: #e4f0ec;
}

.waveform span {
  width: 4px;
  border-radius: 999px;
  background: var(--teal);
}

.waveform span:nth-child(1) {
  height: 14px;
}

.waveform span:nth-child(2) {
  height: 25px;
}

.waveform span:nth-child(3) {
  height: 18px;
}

.waveform span:nth-child(4) {
  height: 33px;
}

.waveform span:nth-child(5) {
  height: 24px;
}

.waveform span:nth-child(6) {
  height: 38px;
}

.waveform span:nth-child(7) {
  height: 19px;
}

.waveform span:nth-child(8) {
  height: 28px;
}

.waveform span:nth-child(9) {
  height: 16px;
}

.waveform span:nth-child(10) {
  height: 30px;
}

.intake-field {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.42;
}

.brief-list,
.safety-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.brief-list li,
.safety-list li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 8px;
  align-items: start;
  color: #35403c;
  font-size: 0.85rem;
  line-height: 1.35;
}

.brief-list li::before,
.safety-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.progress-panel {
  display: grid;
  gap: 8px;
}

.progress-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ded4c4;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.message-stack {
  display: grid;
  gap: 10px;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #e9f0ea;
}

.message.user {
  justify-self: end;
  background: #173f3f;
  color: #fffaf2;
}

.message p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.42;
}

.message small {
  display: block;
  margin-top: 6px;
  color: rgba(23, 32, 29, 0.62);
  font-size: 0.7rem;
  font-weight: 800;
}

.message.user small {
  color: rgba(255, 250, 242, 0.7);
}

.voice-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.renewal-panel {
  display: grid;
  gap: 8px;
  background: #fff6e4;
}

.creator-layout {
  display: grid;
  gap: 12px;
}

.queue-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.queue-card strong {
  display: block;
}

.queue-card.is-live {
  border-color: var(--teal);
}

.context-grid {
  display: grid;
  gap: 10px;
}

.composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: #173f3f;
  color: #fffaf2;
}

.composer h3 {
  margin: 0;
  font-size: 1rem;
}

.composer p {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.84rem;
  line-height: 1.4;
}

.creator-tools .quick-chip {
  background: rgba(255, 250, 242, 0.12);
  color: #fffaf2;
}

.chip,
.quick-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #e9dfcf;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  padding: 12px 18px 18px;
  background: rgba(255, 250, 242, 0.96);
  border-top: 1px solid rgba(222, 214, 200, 0.78);
}

.secondary-action,
.primary-action {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.secondary-action {
  background: #eadfce;
  color: #1f2b27;
}

.primary-action {
  background: var(--teal);
  color: white;
}

.sprint-panel {
  max-width: 390px;
}

.sprint-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.tagline {
  margin: 16px 0 0;
  color: #2f3834;
  font-size: 1.22rem;
  line-height: 1.45;
}

.principles {
  margin-top: 20px;
}

.note {
  margin: 22px 0 0;
  color: #4f5b55;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 840px) {
  .stage {
    min-height: 100vh;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 14px;
  }

  .prototype {
    justify-self: center;
    height: calc(100vh - 28px);
    min-height: 650px;
    border-width: 7px;
    border-radius: 30px;
  }

  .sprint-panel {
    display: none;
  }
}

@media (max-width: 390px) {
  .stage {
    padding: 0;
  }

  .prototype {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .headline {
    font-size: 1.62rem;
    line-height: 1.06;
  }

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