:root{
  --bg:#f4efe6;
  --paper:#fffdf8;
  --ink:#0d2a32;
  --muted:#5f7278;
  --line:#d9d3c7;
  --brand:#0d6f7c;
  --brand-dark:#07545f;
  --gold:#d99b2b;
  --bubble:#f3e6cc;
  --ai:#ffffff;
  --shadow:0 24px 70px rgba(35,31,24,.18);
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 15% 0%,rgba(13,111,124,.10),transparent 32%),
    radial-gradient(circle at 85% 12%,rgba(217,155,43,.13),transparent 30%),
    var(--bg);
  color:var(--ink);
}

.dpai-page{
  width:min(1180px,94vw);
  margin:0 auto;
  padding:42px 0 34px;
}

.dpai-hero{
  padding:16px 0 26px;
}

.dpai-kicker{
  display:inline-flex;
  padding:8px 12px;
  border:1px solid rgba(13,111,124,.28);
  border-radius:999px;
  color:var(--brand-dark);
  background:rgba(255,255,255,.5);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.dpai-hero h1{
  margin:18px 0 10px;
  font-size:clamp(44px,7vw,82px);
  line-height:.92;
  letter-spacing:-.06em;
}

.dpai-lead{
  max-width:850px;
  margin:0;
  font-size:clamp(20px,2.8vw,30px);
  line-height:1.3;
  letter-spacing:-.025em;
}

.dpai-sublead{
  max-width:780px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

.dpai-card{
  background:rgba(255,253,248,.86);
  border:1px solid rgba(13,111,124,.18);
  border-radius:36px;
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter:blur(10px);
}

.dpai-card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:28px 30px;
  border-bottom:1px solid var(--line);
}

.dpai-card-header h2{
  margin:0;
  font-size:clamp(30px,4vw,46px);
  line-height:1;
  letter-spacing:-.045em;
}

.dpai-card-header p{
  margin:10px 0 0;
  color:var(--muted);
}

.status-pill{
  flex:0 0 auto;
  padding:9px 13px;
  border-radius:999px;
  color:var(--brand-dark);
  background:#e7f3f2;
  border:1px solid rgba(13,111,124,.22);
  font-weight:800;
  font-size:13px;
}

.suggestions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:20px 30px;
  border-bottom:1px solid var(--line);
}

.suggestions button{
  border:1px solid rgba(13,111,124,.22);
  background:#f3f5ee;
  color:var(--ink);
  border-radius:999px;
  padding:12px 16px;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
}

.suggestions button:hover{
  border-color:rgba(13,111,124,.55);
  background:#e8f4f2;
}

.chat-log{
  height:min(560px,62vh);
  overflow:auto;
  padding:26px 30px;
  display:flex;
  flex-direction:column;
  gap:18px;
  scroll-behavior:smooth;
}

.message{
  display:flex;
  gap:14px;
  max-width:86%;
}

.message--user{
  align-self:flex-end;
  flex-direction:row-reverse;
}

.message__avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 48px;
  font-weight:900;
  color:white;
  background:var(--brand);
}

.message--user .message__avatar{
  background:var(--gold);
  color:#2c1d00;
}

.message__body{
  border:1px solid var(--line);
  background:var(--ai);
  border-radius:24px;
  padding:18px 20px;
  line-height:1.62;
  font-size:18px;
}

.message--user .message__body{
  background:var(--bubble);
}

.message__body p{
  margin:0;
}

.sources{
  margin-top:16px;
  padding-top:13px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:16px;
}

.sources strong{
  margin-bottom:4px;
}

.sources a{
  color:var(--brand-dark);
  font-weight:800;
}

.chat-form{
  display:flex;
  gap:14px;
  padding:22px 30px 26px;
  border-top:1px solid var(--line);
  background:rgba(247,241,230,.76);
}

.chat-form textarea{
  width:100%;
  min-height:86px;
  resize:vertical;
  border:2px solid rgba(13,111,124,.45);
  border-radius:24px;
  padding:18px 20px;
  font:inherit;
  font-size:18px;
  color:var(--ink);
  background:white;
  outline:none;
}

.chat-form textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(13,111,124,.12);
}

.chat-form button{
  min-width:110px;
  border:0;
  border-radius:999px;
  padding:0 25px;
  background:var(--brand);
  color:white;
  font-weight:900;
  font-size:17px;
  cursor:pointer;
}

.chat-form button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.dpai-note{
  margin-top:22px;
  padding:18px 20px;
  border:1px solid rgba(13,111,124,.18);
  border-radius:22px;
  background:rgba(255,253,248,.65);
  color:var(--muted);
  line-height:1.7;
}

@media(max-width:760px){
  .dpai-page{padding:26px 0}
  .dpai-card-header{flex-direction:column;padding:22px}
  .suggestions{padding:18px 22px}
  .chat-log{height:58vh;padding:20px}
  .message{max-width:100%}
  .message__avatar{width:42px;height:42px;flex-basis:42px}
  .message__body{font-size:16px}
  .chat-form{flex-direction:column;padding:18px 22px 22px}
  .chat-form button{min-height:54px}
}
