/* Animated UI demos for Nutzerhandbuch */
.hb-demo {
  margin: 1.75rem 0 2.25rem;
  font-family: Inter, system-ui, sans-serif;
}

.hb-demo__caption {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a73e8;
}

.hb-demo__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  box-shadow:
    0 24px 48px -12px rgba(26, 115, 232, 0.12),
    0 8px 16px -8px rgba(16, 24, 40, 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hb-demo.is-visible .hb-demo__frame {
  opacity: 1;
  transform: translateY(0);
}

.hb-demo__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.hb-demo__dots {
  display: flex;
  gap: 0.35rem;
}

.hb-demo__dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #64748b;
}

.hb-demo__dots span:nth-child(1) { background: #f87171; }
.hb-demo__dots span:nth-child(2) { background: #fbbf24; }
.hb-demo__dots span:nth-child(3) { background: #34d399; }

.hb-demo__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(51, 65, 85, 0.85);
  color: #94a3b8;
  font-size: 0.65rem;
}

.hb-demo__url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-demo__body {
  padding: 1rem;
  background: #f6f8fb;
}

/* Topbar */
.hb-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.hb-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
  margin-right: 0.25rem;
}

.hb-topbar__mark {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #1a73e8;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

.hb-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
}

.hb-topbar__link {
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #5f6b7a;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hb-topbar__link.is-active {
  background: #e8f0fe;
  color: #1a73e8;
  transform: scale(1.03);
}

.hb-topbar__credits {
  margin-left: auto;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1557b0;
  font-size: 0.68rem;
  font-weight: 700;
  animation: hb-pulse-soft 2.4s ease-in-out infinite;
}

@keyframes hb-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(26, 115, 232, 0); }
}

/* VPI panel */
.hb-vpi {
  border-radius: 0.85rem;
  border: 1px solid #c6dafc;
  background: #e8f0fe;
  padding: 0.9rem;
}

.hb-vpi__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #c6dafc;
}

.hb-vpi__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #174ea6;
}

.hb-vpi__hint {
  font-size: 0.62rem;
  color: #5f6b7a;
}

.hb-vpi__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

@media (min-width: 640px) {
  .hb-vpi__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hb-vpi__field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #5f6b7a;
  margin-bottom: 0.2rem;
}

.hb-vpi__field .hb-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c8d0dc;
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.hb-vpi__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #aecbfa;
  background: #fff;
}

.hb-vpi__result p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #334155;
}

.hb-vpi__result strong {
  color: #1a73e8;
  font-size: 0.95rem;
}

.hb-vpi__btn {
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: #1a73e8;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hb-vpi__btn:hover { background: #1765cc; }
.hb-vpi__btn.is-flash {
  transform: scale(1.05);
  background: #188038;
}

.hb-vpi__pct {
  color: #d93025;
  font-weight: 700;
}

/* Toggles */
.hb-toggles {
  border-radius: 0.85rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  overflow: hidden;
}

.hb-toggles__head {
  padding: 0.75rem 0.9rem;
  background: #fafbfc;
  border-bottom: 1px solid #e3e8ef;
}

.hb-toggles__crumb {
  margin: 0;
  font-size: 0.62rem;
  color: #8b95a5;
}

.hb-toggles__crumb .active { color: #1a73e8; font-weight: 600; }

.hb-toggles__title {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
}

.hb-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.hb-toggle-row:last-child { border-bottom: 0; }

.hb-toggle-row__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
}

.hb-toggle-row__desc {
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: #8b95a5;
}

.hb-switch {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.25s ease;
}

.hb-switch::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.hb-switch.is-on {
  background: #1a73e8;
}

.hb-switch.is-on::after {
  transform: translateX(1rem);
}

.hb-toggles__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid #e3e8ef;
  background: #fafbfc;
}

.hb-btn-ghost,
.hb-btn-primary {
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
}

.hb-btn-ghost {
  border: 1px solid #e3e8ef;
  background: #fff;
  color: #5f6b7a;
}

.hb-btn-primary {
  border: 0;
  background: #1a73e8;
  color: #fff;
}

/* Status pipeline */
.hb-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.hb-pipe {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e3e8ef;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8b95a5;
  transition: all 0.35s ease;
}

.hb-pipe .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.hb-pipe.is-done {
  border-color: #ceead6;
  background: #e6f4ea;
  color: #137333;
}

.hb-pipe.is-done .dot { background: #188038; }

.hb-pipe.is-current {
  border-color: #c6dafc;
  background: #e8f0fe;
  color: #174ea6;
  animation: hb-pulse-soft 2s ease-in-out infinite;
}

.hb-pipe.is-current .dot {
  background: #1a73e8;
  animation: hb-blink 1s ease-in-out infinite;
}

@keyframes hb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hb-pipe-arrow {
  color: #c8d0dc;
  font-size: 0.75rem;
}

/* Chat / review */
.hb-chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hb-chat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.hb-badge--amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.hb-badge--amber .pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #f59e0b;
  animation: hb-blink 1.2s ease-in-out infinite;
}

.hb-msg {
  display: flex;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hb-demo.is-visible .hb-msg.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hb-msg--right { flex-direction: row-reverse; }

.hb-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hb-avatar--mieter { background: #ede9fe; color: #6d28d9; }
.hb-avatar--vermieter { background: #e8f0fe; color: #1a73e8; }

.hb-bubble {
  max-width: 88%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #334155;
  background: #fff;
  border: 1px solid #e3e8ef;
}

.hb-msg--right .hb-bubble {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  border-top-right-radius: 0.2rem;
}

.hb-msg--left .hb-bubble { border-top-left-radius: 0.2rem; }

.hb-audit {
  margin-top: 0.25rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid #ceead6;
  background: #e6f4ea;
}

.hb-audit__title {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #137333;
}

.hb-audit__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: #475569;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hb-demo.is-visible .hb-audit__row.is-in {
  opacity: 1;
  transform: translateX(0);
}

.hb-audit__row time {
  width: 2.4rem;
  flex-shrink: 0;
  color: #8b95a5;
  font-weight: 600;
}

/* Contracts table */
.hb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e3e8ef;
}

.hb-table th {
  text-align: left;
  padding: 0.55rem 0.7rem;
  background: #f9fafb;
  color: #5f6b7a;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e3e8ef;
}

.hb-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  vertical-align: middle;
}

.hb-table tr:last-child td { border-bottom: 0; }

.hb-table tr.is-highlight {
  background: #f8fbff;
  animation: hb-row-flash 2.8s ease-in-out infinite;
}

@keyframes hb-row-flash {
  0%, 100% { background: #fff; }
  50% { background: #f0f6ff; }
}

.hb-pill {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  margin-right: 0.2rem;
}

.hb-pill--blue { background: #e8f0fe; color: #174ea6; }
.hb-pill--amber { background: #fef7e0; color: #8a4b00; }
.hb-pill--green { background: #e6f4ea; color: #137333; }
.hb-pill--gray { background: #eef2f7; color: #5f6b7a; }

/* WGB timeline */
.hb-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.hb-timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: #e3e8ef;
}

.hb-tl-item {
  position: relative;
  padding-bottom: 0.85rem;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.hb-tl-item:last-child { padding-bottom: 0; }

.hb-tl-item.is-on { opacity: 1; }

.hb-tl-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.3rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e3e8ef;
}

.hb-tl-item.is-on::before {
  background: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8, 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.hb-tl-item strong {
  display: block;
  font-size: 0.75rem;
  color: #1f2937;
}

.hb-tl-item span {
  font-size: 0.65rem;
  color: #8b95a5;
}

/* Tenant card */
.hb-tenant {
  border-radius: 0.85rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  overflow: hidden;
}

.hb-tenant__head {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid #e3e8ef;
  background: #fafbfc;
}

.hb-tenant__head h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.hb-tenant__head p {
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-tenant__body { padding: 0.9rem; }

.hb-sig {
  height: 5.5rem;
  border: 1px dashed #c8d0dc;
  border-radius: 0.65rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.hb-sig__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hb-sig__path path {
  fill: none;
  stroke: #1a73e8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}

.hb-demo.is-visible .hb-sig__path path {
  animation: hb-draw 2.2s ease forwards 0.4s;
}

@keyframes hb-draw {
  to { stroke-dashoffset: 0; }
}

.hb-tenant__cta {
  display: block;
  width: 100%;
  padding: 0.65rem;
  border: 0;
  border-radius: 0.65rem;
  background: #1a73e8;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
}

.hb-tenant__cta.is-done {
  background: #188038;
}

/* Partner steps */
.hb-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .hb-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hb-step {
  padding: 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  text-align: center;
  opacity: 0.45;
  transform: scale(0.96);
  transition: all 0.35s ease;
}

.hb-step.is-on {
  opacity: 1;
  transform: scale(1);
  border-color: #c6dafc;
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.hb-step__num {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: #1a73e8;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hb-step strong {
  display: block;
  font-size: 0.7rem;
  color: #1f2937;
}

.hb-step span {
  font-size: 0.6rem;
  color: #8b95a5;
}

/* Forms / fill */
.hb-form__title {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.hb-form__field {
  display: block;
  margin-bottom: 0.65rem;
}

.hb-form__field > span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #5f6b7a;
  margin-bottom: 0.25rem;
}

.hb-select {
  padding: 0.5rem 0.65rem;
  border: 1px solid #c8d0dc;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
}

.hb-objekt-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #c6dafc;
  background: #f8fbff;
}

/* Landlords */
.hb-landlord {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  margin-bottom: 0.5rem;
  opacity: 0.4;
  transform: translateX(-8px);
  transition: all 0.4s ease;
}

.hb-landlord.is-on {
  opacity: 1;
  transform: translateX(0);
  border-color: #c6dafc;
  background: #f8fbff;
}

.hb-landlord strong {
  display: block;
  font-size: 0.78rem;
  color: #1f2937;
}

.hb-landlord span {
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-btn-ghost.is-pulse {
  border-color: #1a73e8;
  color: #1a73e8;
  animation: hb-pulse-soft 1.5s ease-in-out infinite;
}

/* Generate */
.hb-generate {
  display: grid;
  gap: 0.55rem;
}

.hb-gen-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  opacity: 0.45;
  transition: all 0.35s ease;
}

.hb-gen-step.is-on {
  opacity: 1;
  border-color: #c6dafc;
  background: #f8fbff;
}

.hb-gen-step strong {
  font-size: 0.78rem;
  color: #1f2937;
}

.hb-gen-step span:last-child {
  margin-left: auto;
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-mail-card {
  margin-top: 0.35rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px dashed #c6dafc;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s ease;
}

.hb-mail-card.is-on {
  opacity: 1;
  transform: translateY(0);
}

.hb-mail-card p {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  color: #475569;
}

.hb-mail-card__link {
  color: #1a73e8 !important;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem !important;
}

/* Live signature – lesbare Handschrift „Max Mustermann“ */
.hb-sig--live {
  height: 7.25rem;
  background:
    linear-gradient(#e8f0fe 1px, transparent 1px) 0 72%/100% 100%,
    #fff;
  background-size: 100% 1.4rem;
}

.hb-sig__reveal {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
}

.hb-sig__reveal.is-writing {
  animation: hb-sig-reveal 2.35s cubic-bezier(0.33, 0.1, 0.25, 1) forwards;
}

@keyframes hb-sig-reveal {
  to { clip-path: inset(0 0 0 0); }
}

.hb-sig__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hb-sig__hand {
  font-family: "Caveat", "Segoe Script", "Apple Chancery", cursive;
  font-size: 54px;
  font-weight: 600;
  fill: #1a73e8;
  letter-spacing: 0.02em;
}

.hb-sig__flourish {
  fill: none;
  stroke: #1557b0;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  opacity: 0.55;
}

.hb-sig__reveal.is-writing .hb-sig__flourish {
  animation: hb-draw-sig 0.9s ease forwards 1.7s;
}

@keyframes hb-draw-sig {
  to { stroke-dashoffset: 0; }
}

.hb-sig__pen {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.hb-sig__pen.is-writing {
  opacity: 1;
  animation: hb-pen-move 2.35s cubic-bezier(0.33, 0.1, 0.25, 1) forwards;
}

@keyframes hb-pen-move {
  0%   { left: 5%;  top: 52%; }
  12%  { left: 14%; top: 48%; }
  28%  { left: 28%; top: 54%; }
  45%  { left: 42%; top: 46%; }
  62%  { left: 58%; top: 52%; }
  78%  { left: 74%; top: 48%; }
  92%  { left: 88%; top: 55%; }
  100% { left: 93%; top: 58%; opacity: 0; }
}

.hb-sig__meta {
  margin: 0.55rem 0 0.75rem;
  font-size: 0.65rem;
  color: #8b95a5;
}

/* Uploads */
.hb-upload {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 3.5rem;
  margin-bottom: 0.55rem;
  padding: 0.75rem 0.9rem;
  border: 2px dashed #c8d0dc;
  border-radius: 0.75rem;
  background: #fff;
  transition: all 0.35s ease;
}

.hb-upload strong {
  font-size: 0.75rem;
  color: #1f2937;
}

.hb-upload span {
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-upload.is-done {
  border-style: solid;
  border-color: #188038;
  background: #e6f4ea;
}

.hb-upload.is-done span { color: #137333; font-weight: 600; }

/* Credits */
.hb-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hb-credit-card {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e3e8ef;
  background: #fff;
  text-align: center;
  transition: all 0.3s ease;
}

.hb-credit-card.is-on {
  border-color: #1a73e8;
  background: #e8f0fe;
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.hb-credit-card strong {
  display: block;
  font-size: 0.78rem;
  color: #1f2937;
}

.hb-credit-card span {
  display: block;
  font-size: 0.6rem;
  color: #8b95a5;
  margin: 0.15rem 0;
}

.hb-credit-card em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a73e8;
}

.hb-credits .hb-tenant__cta {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.hb-mini-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.55;
}

.hb-tenant__cta.is-done,
.hb-vpi__btn.is-flash {
  background: #188038 !important;
}

@media (max-width: 520px) {
  .hb-credits { grid-template-columns: 1fr; }
}

/* Checklist */
.hb-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hb-check li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  column-gap: 0.65rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  background: #fff;
  opacity: 0.4;
  transform: translateY(4px);
  transition: all 0.35s ease;
}

.hb-check li.is-on {
  opacity: 1;
  transform: translateY(0);
  border-color: #c6dafc;
  background: #f8fbff;
}

.hb-check li.is-on .hb-check__box {
  background: #188038;
  border-color: #188038;
}

.hb-check li.is-on .hb-check__box::after {
  opacity: 1;
  transform: scale(1);
}

.hb-check__box {
  grid-row: 1 / span 2;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #c8d0dc;
  border-radius: 0.35rem;
  position: relative;
  transition: all 0.3s ease;
}

.hb-check__box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
}

.hb-check strong {
  font-size: 0.78rem;
  color: #1f2937;
}

.hb-check span:last-child {
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-check--muted li.is-on {
  border-color: #e3e8ef;
  background: #f8fafc;
}

.hb-check--muted li.is-on .hb-check__box {
  background: #64748b;
  border-color: #64748b;
}

/* Radios / raise */
.hb-radios { display: grid; gap: 0.45rem; }

.hb-radio {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  column-gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: default;
}

.hb-radio.is-on {
  opacity: 1;
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.hb-radio__dot {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.15rem;
  border: 2px solid #c8d0dc;
  border-radius: 999px;
  grid-row: 1 / span 2;
}

.hb-radio.is-on .hb-radio__dot {
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 3px #1a73e8;
}

.hb-radio strong {
  font-size: 0.78rem;
  color: #1f2937;
}

.hb-radio span:last-child {
  font-size: 0.65rem;
  color: #8b95a5;
}

.hb-raise-detail {
  margin-top: 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.7rem;
  color: #9a3412;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.hb-raise-detail.is-on {
  opacity: 1;
  max-height: 4rem;
}

.hb-raise-detail em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-weight: 600;
}

/* Compare cards */
.hb-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hb-compare--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hb-compare__card {
  padding: 0.8rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  background: #fff;
  opacity: 0.45;
  transform: scale(0.97);
  transition: all 0.35s ease;
}

.hb-compare__card.is-on {
  opacity: 1;
  transform: scale(1);
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.hb-compare__tag {
  margin: 0 0 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a73e8;
}

.hb-compare__card strong {
  display: block;
  font-size: 0.8rem;
  color: #1f2937;
  margin-bottom: 0.2rem;
}

.hb-compare__card span,
.hb-compare__card em {
  display: block;
  font-size: 0.65rem;
  color: #8b95a5;
  font-style: normal;
}

@media (max-width: 520px) {
  .hb-compare,
  .hb-compare--3 { grid-template-columns: 1fr; }
}

/* PDF preview */
.hb-pdf__page {
  padding: 1rem 1.1rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 0.75rem;
}

.hb-pdf__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.hb-pdf__page > p {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  color: #8b95a5;
}

.hb-pdf__lines span {
  display: block;
  height: 0.35rem;
  border-radius: 999px;
  background: #e8eef5;
  margin-bottom: 0.4rem;
  transform-origin: left;
  transform: scaleX(0.2);
  opacity: 0.4;
}

.hb-demo.is-pdf-on .hb-pdf__lines span {
  animation: hb-line-grow 0.7s ease forwards;
}

.hb-demo.is-pdf-on .hb-pdf__lines span:nth-child(1) { animation-delay: 0.1s; width: 92%; }
.hb-demo.is-pdf-on .hb-pdf__lines span:nth-child(2) { animation-delay: 0.25s; width: 78%; }
.hb-demo.is-pdf-on .hb-pdf__lines span:nth-child(3) { animation-delay: 0.4s; width: 88%; }
.hb-demo.is-pdf-on .hb-pdf__lines span:nth-child(4) { animation-delay: 0.55s; width: 64%; }

@keyframes hb-line-grow {
  to { transform: scaleX(1); opacity: 1; }
}

.hb-pdf__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Actions chips */
.hb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hb-action {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e3e8ef;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.hb-action.is-on {
  opacity: 1;
  color: #fff;
  background: #1a73e8;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.hb-mail-split {
  display: grid;
  gap: 0.55rem;
}

.hb-mail-split .hb-mail-card {
  opacity: 0.45;
  transform: none;
}

.hb-mail-split .hb-mail-card.is-on {
  opacity: 1;
  border-style: solid;
  border-color: #c6dafc;
  background: #f8fbff;
}

.hb-link-pulse {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a73e8;
  text-align: center;
}

.hb-mini-list li {
  opacity: 0.35;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.hb-mini-list li.is-on {
  opacity: 1;
  color: #1a73e8;
  font-weight: 600;
}

/* Encryption demo — layperson compare */
.hb-crypto__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.hb-crypto__tab {
  border: 1px solid #e3e8ef;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.hb-crypto__tab.is-on {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.hb-crypto__panel {
  display: none;
}

.hb-crypto__panel.is-on {
  display: block;
}

.hb-crypto__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 560px) {
  .hb-crypto__compare {
    grid-template-columns: 1fr;
  }
}

.hb-crypto__side {
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e3e8ef;
}

.hb-crypto__side--bad {
  background: #fff7f7;
  border-color: #fecaca;
}

.hb-crypto__side--good {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.hb-crypto__side-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.hb-crypto__side--bad .hb-crypto__side-title { color: #b91c1c; }
.hb-crypto__side--good .hb-crypto__side-title { color: #1d4ed8; }

.hb-crypto__doc {
  min-height: 7.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #0f172a;
}

.hb-crypto__doc--locked {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
  text-align: center;
}

.hb-crypto__doc-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.hb-crypto__doc--locked .hb-crypto__doc-title {
  color: #94a3b8;
}

.hb-crypto__doc p {
  margin: 0 0 0.25rem;
}

.hb-crypto__quote {
  margin: 0.35rem 0 !important;
  font-style: italic;
  color: #334155;
}

.hb-crypto__quote--muted {
  font-style: normal;
  color: #cbd5e1 !important;
  font-size: 0.78rem;
}

.hb-crypto__open {
  margin-top: 0.55rem !important;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b91c1c;
}

.hb-crypto__lock {
  margin: 0.35rem 0 0.5rem !important;
  font-size: 1.6rem;
  line-height: 1;
}

.hb-crypto__gibber {
  margin: 0.2rem 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  color: #fbbf24;
  word-break: break-all;
}

.hb-crypto__verdict {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
}

.hb-crypto__side--good .hb-crypto__verdict {
  color: #1e40af;
}

.hb-crypto__hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}
