/* page */
.hm-main {
  line-height: normal;
}

/* hero */
.hm-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding-block: 56px 40px;
}

.hm-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
}

.hm-intro {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
}

.hm-title {
  font-size: clamp(46px, 5.6vw, 84px);
  line-height: 0.98;
}

.hm-lede {
  max-width: 540px;
  color: var(--ll-body);
  font-size: 19px;
  line-height: 1.55;
}

.hm-dial-box {
  flex: 1.35 1 560px;
  min-width: 0;
}

.hm-dial {
  display: block;
  width: 100%;
  height: auto;
}

/* shared */
.hm-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hm-card-title {
  font-size: 16px;
  font-weight: 600;
}

.hm-link {
  display: inline-block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
}

/* dip chart */
.hm-dip-band {
  padding-block: 72px;
}

.hm-dip-band h2 {
  margin-bottom: 18px;
}

.hm-dip-lead {
  margin-bottom: 32px;
}

.hm-dip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.hm-dip {
  display: flex;
  flex: 1.6 1 520px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 24px 28px;
}

.hm-card-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-replay {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ll-line);
  border-radius: 8px;
  background: transparent;
  color: var(--ll-ink);
  font-family: var(--ll-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.hm-dip-box {
  overflow-x: auto;
}

.hm-dip-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hm-dip-svg text {
  font-family: var(--ll-mono);
  font-size: 16px;
}

.hm-dip-a,
.hm-dip-b {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hm-dip.is-wait .hm-dip-a,
.hm-dip.is-wait .hm-dip-b {
  stroke-dashoffset: 1;
}

.hm-dip.is-wait .hm-dip-g {
  opacity: 0;
}

.hm-dip.is-play .hm-dip-a {
  animation: hm-draw 0.9s linear both;
}

.hm-dip.is-play .hm-dip-b {
  animation: hm-draw 1.2s 0.9s ease-out both;
}

.hm-dip.is-play .hm-dip-g1 {
  animation: hm-fade 0.3s 0.9s both;
}

.hm-dip.is-play .hm-dip-g2 {
  animation: hm-fade 0.3s 1.5s both;
}

.hm-dip.is-play .hm-dip-g3 {
  animation: hm-fade 0.3s 2.1s both;
}

@keyframes hm-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hm-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ticket */
.hm-ticket {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hm-ticket-title {
  font-size: 20px;
  font-weight: 600;
}

.hm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hm-field-label {
  color: var(--ll-body);
  font-size: 14px;
}

.hm-pills,
.hm-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-kind-host {
  display: flex;
  flex: 1 1 130px;
}

.hm-kind {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--ll-line);
  border-radius: 10px;
  background: transparent;
  color: var(--ll-ink);
  font-family: var(--ll-sans);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.hm-kind[aria-pressed="true"] {
  border-color: var(--ll-accent);
}

.hm-price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ll-line);
}

.hm-price-label {
  color: var(--ll-body);
  font-size: 14px;
}

.hm-price-note {
  font-family: var(--ll-mono);
  font-size: 15px;
}

.hm-see {
  min-height: 52px;
  border-radius: 10px;
  font-size: 16px;
}

/* two kinds */
.hm-kinds-band {
  padding-block: 56px;
}

.hm-kinds-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 64px;
}

.hm-kinds-head {
  flex: 1 1 300px;
  min-width: 0;
}

.hm-kinds-head h2 {
  margin-bottom: 18px;
}

.hm-kind-cards {
  display: flex;
  flex: 2 1 560px;
  flex-wrap: wrap;
  gap: 20px;
  min-width: 0;
}

.hm-kind-card {
  flex: 1 1 280px;
  min-width: 0;
  padding: 24px 26px;
  border: 2px solid var(--ll-line);
  border-radius: 16px;
  background: var(--ll-surface);
  transition: border-color 0.2s;
}

.hm-kind-card.is-on {
  border-color: var(--ll-accent);
}

.hm-kicker {
  margin-bottom: 8px;
  color: var(--ll-body);
  font-family: var(--ll-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hm-kind-h {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hm-kind-h-safe {
  color: var(--ll-accent);
}

.hm-kind-text {
  color: var(--ll-body);
  font-size: 17px;
  line-height: 1.55;
}

/* hedged pairs */
.hm-pair-band {
  padding-block: 64px;
}

.hm-pair-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
}

.hm-pair-text {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.hm-pair-card {
  display: flex;
  flex: 1.4 1 520px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px 28px;
}

.pr-graph-box {
  overflow-x: auto;
}

.pr-graph {
  display: block;
  width: 100%;
  height: auto;
}

.pr-graph text {
  font-family: var(--ll-mono);
  font-size: 16px;
}

.pr-graph .pr-col-head {
  font-family: var(--ll-sans);
  font-size: 20px;
  font-weight: 600;
}

.pr-graph .pr-leg {
  font-size: 14px;
}

/* order book */
.hm-book-band {
  padding-block: 72px;
}

.hm-book-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px 72px;
}

.hm-book-text {
  flex: 1 1 360px;
  min-width: 0;
}

.hm-book-text h2,
.hm-book-lead {
  margin-bottom: 20px;
}

.hm-book {
  flex: 1 1 460px;
  min-width: 0;
  padding: 26px 28px;
}

.hm-book-head {
  margin-bottom: 18px;
}

.hm-grid {
  display: grid;
  grid-template-columns: 40px repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

.hm-grid-top {
  align-items: stretch;
  margin-bottom: 8px;
}

.hm-grid-safe,
.hm-grid-liq {
  padding-bottom: 6px;
  color: var(--ll-body);
  font-size: 13px;
}

.hm-grid-safe {
  grid-column: span 5;
  border-bottom: 2px solid var(--ll-accent);
}

.hm-grid-liq {
  display: flex;
  justify-content: flex-end;
  margin-left: 10px;
  border-bottom: 2px solid #3A4558;
}

.hm-row-label,
.hm-col-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: var(--ll-body);
  font-family: var(--ll-mono);
  font-size: 13px;
}

.hm-row-label.is-on,
.hm-col-label.is-on {
  color: var(--ll-ink);
  font-weight: 600;
}

.hm-cell {
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.hm-cell[aria-pressed="true"] {
  outline: 3px solid var(--ll-ink);
  outline-offset: 2px;
}

.hm-gap {
  margin-left: 10px;
}

.hm-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ll-body);
  font-size: 13px;
}

.hm-legend-bar {
  flex: 0 1 160px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--ll-tint), #0B4F3A);
}

.hm-grid-note {
  margin-top: 14px;
}

/* custody */
.hm-keys-band {
  padding-block: 24px 88px;
}

.hm-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 64px;
  padding-top: 28px;
  border-top: 2px solid var(--ll-ink);
}

.hm-keys h2 {
  flex: 1 1 480px;
  min-width: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.hm-keys-link {
  font-size: 17px;
}

/* access */
.hm-access-band {
  padding-block: 24px 88px;
}

.hm-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
  padding: 48px;
  border: 1px solid var(--ll-line);
  border-radius: 18px;
  background: var(--ll-surface);
  box-shadow: 0 28px 56px -40px rgba(15, 27, 45, 0.35);
}

.hm-access-text {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hm-access-eyebrow {
  color: var(--ll-accent);
  font-size: 17px;
  font-weight: 500;
}

.hm-access-lead,
.hm-access-note {
  max-width: 520px;
  color: var(--ll-body);
}

.hm-access-lead {
  font-size: 18px;
  line-height: 1.55;
}

.hm-access-note {
  font-size: 13px;
  line-height: 1.5;
}

.hm-form,
.hm-sent {
  display: flex;
  flex: 0 1 460px;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid #CFE3DA;
  border-radius: 16px;
  background: var(--ll-tint-soft);
}

.hm-form {
  gap: 18px;
}

.hm-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hm-roles legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--ll-body);
  font-size: 14px;
}

.hm-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-role {
  position: relative;
  display: inline-flex;
}

.hm-role input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.hm-role label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ll-line);
  border-radius: 8px;
  background: var(--ll-white);
  color: var(--ll-ink);
  font-family: var(--ll-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.hm-role input:checked + label {
  border-color: var(--ll-ink);
  background: var(--ll-ink);
  color: var(--ll-surface);
}

.hm-role input:focus-visible + label {
  outline: 2px solid var(--ll-accent);
  outline-offset: 2px;
}

.hm-email-label {
  color: var(--ll-body);
  font-size: 14px;
}

.hm-email {
  width: 100%;
  min-height: 48px;
  margin-top: -10px;
  padding: 0 14px;
  border: 1px solid var(--ll-line);
  border-radius: 8px;
  background: var(--ll-white);
  color: var(--ll-ink);
  font-family: var(--ll-sans);
  font-size: 16px;
}

.hm-submit {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--ll-accent);
  color: var(--ll-white);
  font-family: var(--ll-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hm-error {
  color: var(--ll-liq);
  font-size: 14px;
}

.hm-error:empty {
  display: none;
}

.hm-sent {
  display: none;
  gap: 12px;
}

.hm-sent.show {
  display: flex;
}

.hm-sent-kicker {
  color: var(--ll-accent);
  font-family: var(--ll-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hm-sent h3 {
  margin: 0;
  color: var(--ll-ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hm-sent-text {
  color: var(--ll-body);
  font-size: 16px;
  line-height: 1.5;
}

/* phone */
@media (max-width: 804px) {
  .hm-hero {
    display: block;
    min-height: auto;
    padding-block: 36px 24px;
  }

  .hm-hero-row {
    gap: 28px;
  }

  .hm-intro {
    gap: 20px;
  }

  .hm-title {
    font-size: 44px;
  }

  .hm-lede {
    font-size: 17px;
  }

  .hm-dip-band,
  .hm-book-band {
    padding-block: 56px;
  }

  .hm-kinds-band,
  .hm-pair-band {
    padding-block: 48px;
  }

  .hm-dip,
  .hm-pair-card {
    padding: 18px 16px;
  }

  .hm-dip-svg {
    min-width: 520px;
  }

  .pr-graph {
    min-width: 600px;
  }

  .hm-book {
    padding: 20px 16px;
  }

  .hm-keys-band,
  .hm-access-band {
    padding-block: 24px 64px;
  }

  .hm-access {
    padding: 28px 20px;
    box-shadow: none;
  }
}
