@font-face {
  font-family: "Outfit";
  src: url("./fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fbf5eb;
  --ink: #606060;
  --green: #2b6b58;
  --green-dark: #205444;
  --green-soft: #dcece5;
  --gold: #d4ae58;
  --violet: #9b73bd;
  --line: #e3d8c6;
  --white: #fffdfa;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background: radial-gradient(circle at 14% 4%, #fffdfa 0, transparent 28rem), var(--paper);
  color: var(--ink);
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 200;
}
button, a { font: inherit; }
button { color: inherit; }

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #636363;
  text-decoration: none;
}
.demo-brand img { width: 58px; height: 34px; }
.demo-brand span { display: grid; gap: 1px; }
.demo-brand strong {
  padding-right: .5em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .5em;
  line-height: 1;
}
.demo-brand small { font-size: .72rem; font-weight: 200; }
.demo-exit {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.demo-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 60px;
}
.demo-stage {
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 250, .86);
  box-shadow: 0 24px 70px rgba(93, 73, 43, .12);
}
.demo-portrait-column {
  padding: 28px;
  background: linear-gradient(155deg, #d7e7df, #ece4cf 64%, #eadff1);
}
.demo-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.64);
  border-radius: 23px;
  background: #c9d8d1;
  box-shadow: 0 18px 45px rgba(40, 69, 59, .18);
}
.demo-portrait img { width: 100%; height: 100%; object-fit: cover; }
.demo-portrait__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 34%, #fff8e9 0 15%, transparent 15.5%), linear-gradient(145deg, #77a392, #d2b26b);
}
.demo-portrait__placeholder::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: -8%;
  height: 52%;
  border-radius: 50% 50% 0 0;
  background: rgba(255,248,233,.88);
}
.demo-personas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.demo-personas button,
.demo-ages button {
  border: 1px solid rgba(43,107,88,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  cursor: pointer;
}
.demo-personas button { min-height: 42px; padding: 8px 12px; }
.demo-personas button[aria-pressed="true"],
.demo-ages button[aria-pressed="true"] { background: var(--green); color: white; }
.demo-ages { margin: 20px 0 0; padding: 0; border: 0; }
.demo-ages legend { margin-bottom: 9px; font-size: .83rem; font-weight: 300; }
.demo-ages > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.demo-ages button { aspect-ratio: 1; padding: 0; }

.demo-conversation { display: flex; flex-direction: column; padding: clamp(34px, 6vw, 74px); }
.demo-kicker { margin: 0 0 8px; color: var(--green); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.demo-conversation h1 { margin: 0; color: #424242; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 300; letter-spacing: -.055em; line-height: 1; }
.demo-age-label { margin: 8px 0 28px; color: #7d7d7d; }
.demo-speech { min-height: 190px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.demo-speech p { margin: 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.demo-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-weight: 400;
}
.demo-button--primary { border-color: var(--green); background: var(--green); color: white; }
.demo-button:focus-visible, .demo-path-grid button:focus-visible, .demo-question-grid button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.demo-paths { margin-top: 32px; }
.demo-paths h2, .demo-questions h2 { margin: 0; color: #454545; font-weight: 300; letter-spacing: -.035em; }
.demo-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.demo-path-grid button {
  display: grid;
  gap: 9px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
  text-align: left;
  cursor: pointer;
}
.demo-path-grid button:hover { border-color: var(--green); transform: translateY(-2px); }
.demo-path-grid span { color: var(--green); font-weight: 500; }
.demo-path-grid strong { font-weight: 300; }

.demo-questions { padding: 55px 0 0; }
.demo-questions h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.demo-question-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.demo-question-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,253,250,.72);
  text-align: left;
  cursor: pointer;
}
.demo-question-grid button::after { content: "→"; color: var(--violet); font-weight: 500; }
.demo-question-grid button:hover { background: white; border-color: var(--violet); }

@media (max-width: 780px) {
  .demo-header, .demo-shell { width: min(100% - 32px, 620px); }
  .demo-header { align-items: flex-start; }
  .demo-brand img { width: 46px; }
  .demo-brand strong { font-size: 1.25rem; }
  .demo-brand small { display: none; }
  .demo-exit { padding: 7px 11px; font-size: .8rem; }
  .demo-stage { grid-template-columns: 1fr; }
  .demo-portrait-column { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 18px; }
  .demo-portrait { grid-row: span 2; }
  .demo-personas { align-self: end; margin: 0; }
  .demo-ages { align-self: start; margin: 0; }
  .demo-conversation { padding: 30px 22px 36px; }
  .demo-speech { min-height: 0; }
  .demo-path-grid, .demo-question-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .demo-portrait img, .demo-portrait__placeholder { animation: arrive 550ms ease both; }
  @keyframes arrive { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
}
