.ha-capture-section { background: #f7faf9; }
.ha-capture-jump { margin: 16px 0 0; font-size: .87rem; }
.ha-capture-disclosure {
  margin: 24px 0 0;
  padding: 16px 20px;
  color: #35525b;
  background: #e7f0f0;
  border-left: 4px solid #278aa0;
  border-radius: 0 10px 10px 0;
  font-size: .87rem;
  line-height: 1.6;
}
.ha-capture-steps { display: grid; gap: 20px; margin-top: 30px; }
.ha-capture-step {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid #d2e0e1;
  border-radius: 18px;
  box-shadow: 0 13px 35px rgba(18, 62, 70, .055);
}
.ha-capture-copy { max-width: 77ch; margin-bottom: 18px; }
.ha-capture-copy span {
  display: block;
  color: #197b91;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ha-capture-copy h3 {
  margin: 8px 0 9px;
  color: #183640;
  font: 700 clamp(1.35rem, 2.4vw, 1.9rem)/1.2 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.035em;
}
.ha-capture-copy p { margin: 0; color: #526c73; font-size: .9rem; line-height: 1.65; }
.ha-capture-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.ha-capture-media--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ha-capture-media figure {
  min-width: 0;
  max-width: 800px;
  margin: 0;
  padding: 10px;
  color: #c8dadd;
  background: #071c29;
  border: 1px solid #2c5964;
  border-radius: 13px;
}
.ha-capture-media figure a { display: block; border-radius: 6px; }
.ha-capture-media figure a:focus-visible { outline: 3px solid #9be4d5; outline-offset: 4px; }
.ha-capture-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 20 / 13;
  object-fit: contain;
  border-radius: 5px;
}
.ha-capture-media figcaption { padding: 9px 4px 2px; font-size: .75rem; line-height: 1.5; }
@media (max-width: 760px) {
  .ha-capture-media--pair { grid-template-columns: minmax(0, 1fr); }
  .ha-capture-step { padding: 17px; }
}

.ha-demo {
  --ha-ink: #26372e;
  --ha-muted: #53685b;
  --ha-leaf: #456d4d;
  --ha-leaf-dark: #31553b;
  --ha-cream: #f8f7f1;
  --ha-paper: #fffefa;
  --ha-line: #d8e2d5;
  --ha-caution: #8d493a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ha-ink);
  background: var(--ha-cream);
  border: 1px solid #cddbcf;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(36, 61, 44, .12);
  font: 400 15px/1.55 "DM Sans", Arial, sans-serif;
}
.ha-demo *,
.ha-demo *::before,
.ha-demo *::after { box-sizing: border-box; }
.ha-demo :is(h3, p, ol) { margin-top: 0; }
.ha-demo button { cursor: pointer; font: inherit; }
.ha-demo button:disabled { opacity: .45; cursor: not-allowed; }
.ha-demo :is(button, summary, h3):focus-visible {
  outline: 3px solid #a45f3d;
  outline-offset: 3px;
  position: relative;
  z-index: 2;
}
[data-ha-demo] .ha-note[hidden] { display: none !important; }

.ha-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 31px);
  background:
    radial-gradient(circle at 92% -10%, rgba(222, 237, 206, .85), transparent 34%),
    linear-gradient(120deg, #eaf1e7, #f6f4eb);
  border-bottom: 1px solid var(--ha-line);
}
.ha-demo__intro { max-width: 50ch; }
.ha-demo__eyebrow {
  display: block;
  color: var(--ha-leaf-dark);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.3;
}
.ha-demo__intro-title {
  margin: 5px 0 8px;
  color: #23392c;
  font: 700 clamp(1.35rem, 2.1vw, 1.9rem)/1.19 Georgia, "Times New Roman", serif;
  text-wrap: balance;
}
.ha-demo__disclosure {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  color: #314e38;
  background: rgba(255, 254, 250, .75);
  border: 1px solid #bfd2bf;
  border-radius: 8px;
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.4;
}
.ha-demo__scenario {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: min(380px, 36%);
}
.ha-demo__scenario-label {
  grid-column: 1 / -1;
  color: var(--ha-muted);
  font-size: .78rem;
  font-weight: 700;
}
.ha-demo__scenario button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px 12px;
  color: #36523a;
  background: var(--ha-paper);
  border: 1px solid #a9c0ab;
  border-radius: 12px;
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background-color .16s, color .16s, transform .16s;
}
.ha-demo__scenario button:hover { background: #edf4e9; transform: translateY(-1px); }
.ha-demo__scenario button[aria-pressed="true"] {
  color: #fffefa;
  background: var(--ha-leaf);
  border-color: var(--ha-leaf);
}
.ha-demo__scenario button span[aria-hidden] { font-size: 1.2rem; line-height: 1; }

.ha-demo__main {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
}
.ha-demo__visual {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: clamp(15px, 2vw, 24px);
}
.ha-demo__sample {
  overflow: hidden;
  margin: 0;
  color: #294239;
  background: #fffefa;
  border: 1px solid #cbdace;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(38, 64, 44, .09);
}
.ha-demo__sample-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px;
  color: #345743;
  background: #edf3e9;
  border-bottom: 1px solid #d5e1d2;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
}
.ha-demo__sample-head strong { color: #607566; font-weight: 700; }
.ha-demo__sample > a {
  display: block;
  padding: 10px;
  background: #112b37;
}
.ha-demo__sample > a:hover img { opacity: .88; }
.ha-demo__sample img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 20 / 13;
  object-fit: contain;
  border-radius: 5px;
  transition: opacity .16s;
}
.ha-demo__sample figcaption {
  padding: 10px 15px;
  color: #4d6657;
  background: #f2f6ee;
  border-bottom: 1px solid #dce5d9;
  font-size: .73rem;
  line-height: 1.45;
}
.ha-demo__sample-summary { padding: 13px 16px 16px; }
.ha-demo__sample-summary > span {
  display: block;
  margin-bottom: 4px;
  color: #66806a;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ha-demo__sample-summary strong {
  display: block;
  color: #345c3d;
  font: 700 1.25rem/1.2 Georgia, "Times New Roman", serif;
}
.ha-demo__sample--caution .ha-demo__sample-summary strong { color: #914b3d; }
.ha-demo__sample-summary p { margin: 6px 0 0; color: #526758; font-size: .81rem; line-height: 1.45; }
.ha-demo__story {
  overflow: hidden;
  background: var(--ha-paper);
  border: 1px solid #d4e0d3;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(38, 64, 44, .09);
}
.ha-demo__scene {
  position: relative;
  height: clamp(115px, 13vw, 155px);
  overflow: hidden;
  background: linear-gradient(#dceae5, #e9eee5 60%, #f5eedf);
  border-bottom: 1px solid #d7dfd0;
}
.ha-demo__story--caution .ha-demo__scene {
  background: linear-gradient(#e7e5dc, #efe5d8 60%, #f7e9db);
}
.ha-demo__scene-sun {
  position: absolute;
  top: 19%;
  right: 17%;
  width: 52px;
  height: 52px;
  background: #f7d99a;
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(247, 217, 154, .22);
}
.ha-demo__scene-hill {
  position: absolute;
  left: -8%;
  bottom: -77px;
  width: 86%;
  height: 145px;
  background: #abc8ab;
  border-radius: 50% 50% 0 0;
}
.ha-demo__scene-hill--front {
  right: -11%;
  left: auto;
  bottom: -91px;
  width: 100%;
  height: 150px;
  background: #79a17e;
}
.ha-demo__story--caution .ha-demo__scene-hill--back { background: #b8bd9c; }
.ha-demo__story--caution .ha-demo__scene-hill--front { background: #8d9c77; }
.ha-demo__scene-plant {
  position: absolute;
  z-index: 1;
  bottom: -4px;
  left: 13%;
  width: 4px;
  height: 68px;
  background: #426d4f;
  border-radius: 5px;
  transform: rotate(-10deg);
}
.ha-demo__scene-plant--two {
  left: auto;
  right: 10%;
  height: 50px;
  transform: rotate(12deg);
}
.ha-demo__scene-plant::before,
.ha-demo__scene-plant::after {
  content: "";
  position: absolute;
  bottom: 20px;
  width: 25px;
  height: 11px;
  background: #4f7d58;
  border-radius: 100% 0 100% 0;
}
.ha-demo__scene-plant::before { right: 2px; transform: rotate(-25deg); }
.ha-demo__scene-plant::after { left: 2px; bottom: 36px; transform: rotate(25deg) scaleX(-1); }
.ha-demo__scene-window {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 11px solid rgba(247, 245, 235, .77);
  border-bottom: 8px solid rgba(247, 245, 235, .77);
  box-shadow: inset 0 0 0 1px rgba(83, 111, 83, .13);
}
.ha-demo__scene-window::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  background: rgba(247, 245, 235, .8);
  transform: translateX(-50%);
}
.ha-demo__story-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: clamp(19px, 2vw, 25px);
}
.ha-demo__story-meta {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  gap: 8px;
  margin-bottom: 6px;
  color: #637967;
  font-size: .72rem;
  font-weight: 700;
}
.ha-demo__screen-eyebrow {
  color: var(--ha-leaf);
  font-size: .85rem;
  font-weight: 800;
}
.ha-demo__screen-title {
  display: block;
  max-width: 15ch;
  color: #264a31;
  font: 700 clamp(1.75rem, 2.8vw, 2.65rem)/1.08 Georgia, "Times New Roman", serif;
  text-wrap: balance;
}
.ha-demo__story--caution .ha-demo__screen-title { color: #914b3d; }
.ha-demo__story--neutral .ha-demo__screen-title { color: #33463a; }
.ha-demo__screen-desc {
  color: #455c4b;
  font-size: .96rem;
  line-height: 1.45;
}
.ha-demo__screen-status {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 4px;
  padding: 5px 11px;
  color: #315639;
  background: #e7f1e1;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.ha-demo__story--caution .ha-demo__screen-status {
  color: #854638;
  background: #f8e7dc;
}
.ha-demo__story--neutral .ha-demo__screen-status {
  color: #405a4b;
  background: #e8eee9;
}
.ha-demo__story-foot {
  margin: 0;
  padding: 10px 20px 13px;
  color: #637468;
  background: #f8faf5;
  border-top: 1px solid #e4ece2;
  font-size: .75rem;
  line-height: 1.4;
}

.ha-demo__explore {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  background: #fffefa;
  border-left: 1px solid var(--ha-line);
}
.ha-demo__explore-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ha-demo__step {
  color: #6c7b6c;
  font-size: .76rem;
  white-space: nowrap;
}
.ha-demo__route-nav {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ha-line);
}
.ha-demo__route-label {
  display: block;
  margin-bottom: 8px;
  color: #637468;
  font-size: .74rem;
  font-weight: 700;
}
.ha-demo__route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ha-demo__route-list button {
  min-height: 44px;
  padding: 8px 13px;
  color: #39573f;
  background: #f5f8f2;
  border: 1px solid #c9d7c7;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}
.ha-demo__route-list button:hover { background: #e8f1e3; }
.ha-demo__route-list button[aria-current="page"] {
  color: #fffefa;
  background: var(--ha-leaf);
  border-color: var(--ha-leaf);
}
.ha-demo__route-list--details {
  padding: 4px 0 8px;
}
.ha-demo__more { margin-top: 9px; }
.ha-demo__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 8px 3px;
  color: var(--ha-leaf-dark);
  border-radius: 6px;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 800;
  list-style: none;
}
.ha-demo__more summary::-webkit-details-marker { display: none; }
.ha-demo__more summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: #fff;
  background: var(--ha-leaf);
  border-radius: 50%;
  font-size: .86rem;
  line-height: 1;
}
.ha-demo__more[open] summary::before { content: "−"; }
.ha-demo__more summary span {
  margin-left: auto;
  color: #6f806f;
  font-size: .73rem;
  font-weight: 600;
}
.ha-demo__detail { padding-top: 19px; }
.ha-demo__detail-heading { margin-bottom: 11px; }
.ha-demo__view-label {
  display: block;
  color: #7a6b53;
  font-size: .76rem;
  font-weight: 700;
}
.ha-demo__detail h3 {
  margin: 3px 0 0;
  color: #243b2d;
  font: 700 clamp(1.45rem, 2vw, 1.95rem)/1.2 Georgia, "Times New Roman", serif;
}
.ha-demo__lead {
  max-width: 65ch;
  margin-bottom: 13px;
  color: #425747;
  font-size: .95rem;
  line-height: 1.62;
}
.ha-demo__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border-top: 1px solid #dce6d9;
}
.ha-demo__fact {
  display: grid;
  grid-template-columns: minmax(112px, .8fr) minmax(0, 1.7fr);
  gap: 2px 12px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #dce6d9;
}
.ha-demo__fact-label {
  grid-row: 1 / 3;
  align-self: center;
  color: #657768;
  font-size: .77rem;
  font-weight: 700;
}
.ha-demo__fact strong {
  color: #263b2d;
  font-size: .98rem;
  line-height: 1.3;
}
.ha-demo__fact--positive strong { color: #3d6b45; }
.ha-demo__fact--caution strong { color: var(--ha-caution); }
.ha-demo__fact-note {
  color: #66776a;
  font-size: .76rem;
  line-height: 1.38;
}
.ha-demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ha-demo__link-button,
.ha-demo__action-button {
  min-height: 44px;
  padding: 8px 13px;
  color: #3b6141;
  background: #f0f6ec;
  border: 1px solid #afc7ae;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
}
.ha-demo__link-button:hover { background: #e3f0dd; }
.ha-demo__action-button {
  color: #fffefa;
  background: var(--ha-leaf);
  border-color: var(--ha-leaf);
}
.ha-demo__action-button:hover { background: var(--ha-leaf-dark); }
.ha-demo__fine {
  margin: 12px 0 0;
  color: #6a7c6d;
  font-size: .78rem;
  line-height: 1.5;
}
.ha-demo__checks {
  display: grid;
  gap: 7px;
  padding-left: 1.35rem;
  color: #405344;
  font-size: .91rem;
  line-height: 1.55;
}
.ha-demo__checks li { padding-left: 4px; }
.ha-demo__checks li::marker { color: var(--ha-leaf); font-weight: 800; }
.ha-demo__checks strong { color: var(--ha-ink); }
.ha-demo__days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.ha-demo__days button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 8px 10px;
  color: #304d37;
  background: #f1f6ee;
  border: 1px solid #cbdac7;
  border-radius: 11px;
  text-align: left;
}
.ha-demo__days button:hover { background: #e5f0df; }
.ha-demo__days button strong { font-size: .87rem; }
.ha-demo__days button span { color: #667967; font-size: .71rem; }
.ha-demo__alert {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: #4c362d;
  background: #fdf1e9;
  border: 1px solid #edc9b4;
  border-radius: 13px;
}
.ha-demo__alert-kicker {
  color: #8d493a;
  font-size: .76rem;
  font-weight: 800;
}
.ha-demo__alert strong { font-size: 1.06rem; }
.ha-demo__alert span:last-child { font-size: .86rem; }
.ha-demo__pager {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ha-line);
}
.ha-demo__pager button {
  min-height: 44px;
  padding: 8px 12px;
  color: #49654c;
  background: transparent;
  border: 1px solid #c6d6c4;
  border-radius: 9px;
  font-size: .8rem;
  font-weight: 700;
}
.ha-demo__pager button:not(:disabled):hover { background: #eaf2e6; }
.ha-demo__footer {
  display: flex;
  justify-content: space-between;
  gap: 6px 20px;
  flex-wrap: wrap;
  padding: 12px 22px;
  color: #5e7061;
  background: #edf3ea;
  border-top: 1px solid var(--ha-line);
  font-size: .74rem;
}
.ha-demo__footer [role="status"] { color: #3d6845; font-weight: 700; }

@media (max-width: 900px) {
  .ha-demo__main { grid-template-columns: 1fr; }
  .ha-demo__visual { position: static; padding-bottom: 8px; }
  .ha-demo__scene { height: 135px; }
  .ha-demo__explore { border-left: 0; }
}
@media (max-width: 640px) {
  .ha-demo__header { flex-direction: column; align-items: stretch; gap: 15px; padding: 18px; }
  .ha-demo__scenario { min-width: 0; }
  .ha-demo__visual { padding: 14px; }
  .ha-demo__explore { padding: 18px 16px; }
  .ha-demo__scene { height: 115px; }
  .ha-demo__story-body { padding: 17px; }
  .ha-demo__screen-title { font-size: 1.9rem; }
  .ha-demo__route-list--primary button { flex: 1 1 42%; }
  .ha-demo__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-demo__footer { padding: 11px 16px; }
}
@media (max-width: 380px) {
  .ha-demo__intro-title { font-size: 1.35rem; }
  .ha-demo__scenario button { padding: 8px 7px; font-size: .75rem; }
  .ha-demo__story-meta span:last-child { display: none; }
  .ha-demo__fact { grid-template-columns: 1fr; gap: 1px; }
  .ha-demo__fact-label { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-demo button, .ha-demo__sample img { transition: none !important; }
}
