:root {
  --ink: #30213d;
  --muted: #70617f;
  --paper: #ffffff;
  --card: #fbf9ff;
  --line: #d9e632;
  --sage: #8041bd;
  --sage-dark: #4b1f7d;
  --sage-light: #b85bea;
  --accent: #d9e632;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}

button, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(100%, 1020px);
  min-height: 100vh;
  margin: auto;
  padding: 30px 48px 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand em { color: var(--sage); font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.brand-mark { display: grid; width: 48px; height: 32px; place-items: center; color: #fbf9ff; background: var(--sage-dark); border-radius: 50% 50% 50% 8%; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
.header-label { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.site-banner { display: block; width: 100vw; height: auto; margin: 16px calc(50% - 50vw) 0; }
.banner-spacer { height: 42px; }

.conversation { display: grid; place-content: center start; padding: 72px 0 40px; }
.intro { max-width: 650px; }
.eyebrow, .answer-label { margin: 0 0 14px; color: var(--sage); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.04em; }
h1 { max-width: 620px; font-size: clamp(3.2rem, 7vw, 5.8rem); line-height: .97; }
.intro-copy { max-width: 430px; margin: 23px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.answer-card { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 31px max(34px, calc((100vw - 1020px) / 2 + 48px)); background: rgba(251, 249, 255, .85); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 3px 18px 18px 18px; box-shadow: 0 18px 45px rgba(75, 31, 125, .08); animation: appear .38s ease-out; }
.answer-card::after { display: block; height: 42px; content: ""; }
.answer-card:focus { outline: 2px solid var(--sage-light); outline-offset: -2px; }
.answer-card h2 { padding-right: 40px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; }
.answer-close { position: absolute; top: 18px; right: 18px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; color: var(--sage-dark); background: transparent; border: 1px solid transparent; border-radius: 50%; transition: background .2s, border-color .2s, transform .2s; }
.answer-close:hover, .answer-close:focus-visible { background: rgba(184, 91, 234, .12); border-color: var(--sage-light); outline: none; transform: scale(1.06); }
.answer-close svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.answer-card p { max-width: 610px; margin: 15px 0 0; color: #534262; line-height: 1.68; }
.answer-card p + p { margin-top: 9px; }
.service-list { margin-top: 22px; border-top: 1px solid rgba(75, 31, 125, .12); }
.service-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(75, 31, 125, .12); }
.service-item:last-child { padding-bottom: 0; border-bottom: 0; }
.service-icon { width: 25px; height: 25px; margin-top: 2px; fill: none; stroke: var(--sage-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.service-item h3 { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.service-item p { max-width: none; margin: 7px 0 0; }
.profile-list { margin-top: 22px; }
.profile-item + .profile-item { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(75, 31, 125, .12); }
.profile-item h3 { margin: 0; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.profile-role { margin: 5px 0 18px !important; color: var(--sage) !important; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.profile-item p { max-width: none; }
.contact-content > p { max-width: none; }
.contact-links { display: grid; gap: 10px; margin-top: 20px; }
.contact-links a { width: fit-content; color: var(--sage-dark); font-weight: 700; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-links a:hover, .contact-links a:focus-visible { color: var(--sage); outline: none; }

.prompt-area { width: min(100%, 780px); margin: 0 auto; }
.prompt-form { display: flex; align-items: flex-end; gap: 14px; padding: 13px 14px 13px 19px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 30px rgba(75, 31, 125, .1); transition: border-color .2s, box-shadow .2s; }
.prompt-form:focus-within { border-color: var(--sage); box-shadow: 0 9px 30px rgba(75, 31, 125, .16); }
textarea { flex: 1; min-width: 0; max-height: 140px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.45; }
textarea::placeholder { color: #9688a3; }
.prompt-form button { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 12px; color: #fff; background: var(--sage-dark); transition: transform .18s, background .18s; }
.prompt-form button:hover { background: var(--sage); transform: translateY(-1px); }
.prompt-form svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.form-note { margin: 12px 3px 18px; color: var(--muted); font-size: .78rem; text-align: center; }

.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.suggestion { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 82px; padding: 13px; color: var(--ink); text-align: left; background: rgba(184, 91, 234, .10); border: 1px solid var(--line); border-radius: 12px; transition: background .2s, border-color .2s, transform .2s; }
.suggestion:hover, .suggestion:focus-visible { background: var(--card); border-color: var(--sage); outline: none; transform: translateY(-2px); }
.suggestion-number { color: var(--sage); font-size: .68rem; font-weight: 700; }
.suggestion > span:nth-child(2) { font-size: .82rem; font-weight: 600; line-height: 1.35; }
.arrow { color: var(--sage); font-size: 1.1rem; }
footer { padding-top: 27px; color: var(--muted); font-size: .73rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

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

@media (max-width: 680px) {
  .app-shell { padding: 22px 20px 18px; }
  .header-label { display: none; }
  .banner-spacer { height: 28px; }
  .conversation { padding: 84px 0 52px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestion { min-height: 61px; }
  .answer-card { padding: 25px 23px; }
  .answer-card::after { height: 28px; }
  .answer-close { top: 13px; right: 13px; }
  .service-item { grid-template-columns: 31px 1fr; gap: 12px; }
}
