:root {
  --cream: #fff8f2;
  --surface: #fffdf9;
  --peach: #f7d9c7;
  --blush: #f3b7ad;
  --coral: #d96f5f;
  --berry: #6f3345;
  --ink: #2f2623;
  --muted: #786863;
  --sage: #70846f;
  --line: #ead8ce;
  --shadow: 0 24px 60px rgba(111, 51, 69, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(135deg, var(--cream), #fff); color: var(--ink); }
button, textarea { font: inherit; }
button { border: 0; border-radius: 999px; background: var(--berry); color: white; padding: .85rem 1.2rem; font-weight: 750; cursor: pointer; box-shadow: 0 10px 20px rgba(111,51,69,.18); }
button:hover { background: #512637; }
.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.hero { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 24px; align-items: end; padding: 28px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255,253,249,.86); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 .45rem; color: var(--coral); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { max-width: 760px; font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: -.06em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
.hero-copy { max-width: 720px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.status-card { background: linear-gradient(160deg, #fff, #ffece1); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.status-card span, .status-card small { display: block; color: var(--muted); }
.status-card strong { display: block; margin: .4rem 0; font-size: 2.2rem; color: var(--berry); }
.workspace { display: grid; grid-template-columns: 330px 1fr; gap: 24px; margin-top: 24px; }
.profile-panel, .conversation-panel, .routine-section, .products-section { background: rgba(255,253,249,.92); border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); }
dl { margin: 20px 0; display: grid; gap: 14px; }
dl div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
dd { margin: 4px 0 0; font-weight: 700; }
.scope-note, .notes { color: var(--muted); line-height: 1.6; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.messages { min-height: 230px; display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: #fff7ef; border: 1px solid var(--line); }
.message { max-width: 76%; padding: 12px 14px; border-radius: 18px; line-height: 1.5; }
.message.user { justify-self: end; background: var(--berry); color: white; border-bottom-right-radius: 5px; }
.message.advisor { justify-self: start; background: white; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; align-items: end; }
textarea { resize: vertical; border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: white; color: var(--ink); min-height: 90px; }
.routine-section, .products-section { margin-top: 24px; }
.routine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.routine-grid article { background: #fff7ef; border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.routine-list { display: grid; gap: 12px; padding-left: 1.2rem; }
.routine-list li { padding: 12px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.step-type { display: block; font-weight: 850; color: var(--berry); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: grid; gap: 10px; align-content: start; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff8f2; border-radius: 18px; }
.product-card a { color: var(--berry); font-weight: 800; text-decoration: none; }
.selection-label { width: fit-content; border-radius: 999px; background: #edf5eb; color: #466146; padding: 5px 9px; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.meta { color: var(--sage); font-weight: 800; }
.reason { color: var(--muted); line-height: 1.55; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges span { border-radius: 999px; background: #f9e5dc; color: var(--berry); padding: 5px 8px; font-size: .78rem; font-weight: 800; }
.tradeoffs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
.tradeoffs strong { flex-basis: 100%; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.tradeoffs span { border-radius: 999px; background: #fff1d9; color: #7c5832; padding: 5px 8px; font-size: .78rem; font-weight: 800; }
@media (max-width: 860px) {
  .hero, .workspace, .routine-grid, .product-grid { grid-template-columns: 1fr; }
  .composer { grid-template-columns: 1fr; }
  .message { max-width: 92%; }
}
.advisor-state { margin: 0 0 12px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); line-height: 1.45; }
.advisor-state strong { color: var(--berry); }
.advisor-state.collecting { background: #fff6dc; }
.advisor-state.ready { background: #edf5eb; }
.advisor-state.outside { background: #f9e5e5; }
.empty-state { grid-column: 1 / -1; color: var(--muted); margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 20px; }
