/* CAP palette, isolated from the original conversation prototype. */
:root {
  --green:#173e35; --text:#173e35; --secondary:#455d51; --muted:#647060;
  --surface:#faf8f2; --sidebar:#102e27; --line:#d8d9c9;
  --control-border:#a3ad99; --hover:#ececde; --soft:#eeeee2;
  --focus:#82672f; --gold:#80632e; --error:#a03629;
  --button:#173e35; --button-hover:#255447; --onbutton:#fffdf5;
  --composer:#fffdf8; --accent-line:#bda36b;
}
:root[data-theme=dark] {
  --green:#e0c58c; --text:#f5f1e6; --secondary:#d4dbcb; --muted:#aebaac;
  --surface:#173e35; --sidebar:#102e27; --line:#436053;
  --control-border:#7d8f75; --hover:#254c40; --soft:#21473c;
  --focus:#e0c58c; --gold:#e0c58c; --error:#ffb5a5;
  --button:#d6ba7e; --button-hover:#e5cf9f; --onbutton:#17342b;
  --composer:#1d4439; --accent-line:#bda36b;
}
.sidebar {
  --green:#e0c58c; --text:#f5f1e6; --secondary:#d4dbcb; --muted:#aebaac;
  --line:#3b5445; --hover:#234638; --soft:#294b3d; --focus:#e0c58c;
  color:var(--text);
}
.sidebar .side-link.active { box-shadow:inset 2px 0 0 var(--green); }
.sidebar-head .brand strong { color:var(--text); }
.sidebar-head .brand strong span { color:var(--green); }
.top-title { color:var(--text); }
.composer { background:var(--composer); border-color:var(--control-border); }
.composer:focus-within { border-color:var(--focus); box-shadow:0 0 0 2px #bda36b26; }
[data-theme=dark] .composer:focus-within { box-shadow:0 0 0 2px #e0c58c30; }
.home-product:first-child { border-top-color:var(--accent-line); }
.home-product li:before { background:var(--gold); }
.home-heading h1 { color:var(--text); }
.demo-dot { background:var(--gold); }
.selected-next { border-left-color:var(--gold); }
dialog::backdrop { background:#071c16a6; }
[data-theme=dark] dialog::backdrop { background:#071c16b3; }

.product-details {
  margin-bottom: 8px;
}
.product-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.product-details summary::-webkit-details-marker {
  display: none;
}
.product-details summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.product-details[open] summary::after {
  transform: rotate(225deg);
}
.product-details summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.home-products.comparison {container-type:inline-size;}
.comparison-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);border-radius:18px;background:var(--soft);
}
.comparison-plan {
  display:grid;grid-template-rows:subgrid;grid-row:span 4;align-content:start;
  padding:22px clamp(14px,2cqi,24px);min-width:0;
}
.comparison-plan + .comparison-plan {border-inline-start:1px solid var(--line);}
.comparison-title {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;}
.comparison-title h2 {margin:0;font-size:20px;letter-spacing:-.035em;}
.comparison-title strong {color:var(--gold);font-size:21px;white-space:nowrap;letter-spacing:-.04em;}
.comparison-plan>p {margin:8px 0 0;color:var(--secondary);font-size:15px;line-height:1.45;}
.comparison-plan .product-details {margin:2px 0 8px;}
.comparison-plan .product-details summary {font-size:14px;color:var(--text);font-weight:500;}
.comparison-plan .product-details ul {margin:0 0 12px;padding-left:18px;font-size:14px;color:var(--secondary);}
.comparison-plan .product-details li+li {margin-top:6px;}
.comparison-plan>.btn.solid {
  align-self:end;min-height:46px;border-radius:10px;background:#2b5145;border:1px solid #788e7f;color:#f3efe2;
}
.comparison-plan>.btn.solid:hover {background:#355f50;border-color:#90a396;}
@container (max-width:700px) {
  .comparison-grid {grid-template-columns:minmax(0,1fr);}
  .comparison-plan {
    grid-row:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
    align-items:center;gap:4px 10px;padding:13px 15px;
  }
  .comparison-plan + .comparison-plan {border-inline-start:none;border-top:1px solid var(--line);}
  .comparison-title {grid-column:1/-1;}
  .comparison-title h2,.comparison-title strong {font-size:19px;}
  .comparison-plan>p {display:none;}
  .comparison-plan .product-details {margin:0;}
  .comparison-plan>.btn.solid {grid-column:2;grid-row:2;min-height:44px;}
  .comparison-plan:has(details[open]) details {grid-column:1/-1;}
  .comparison-plan:has(details[open])>.btn {grid-row:3;}
}
