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

.lv-main h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* hero */
.lv-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-block: 56px;
}

.lv-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}

.lv-intro {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

.lv-title {
  font-size: clamp(44px, 5.4vw, 76px);
}

.lv-lede {
  max-width: 700px;
  color: var(--ll-body);
  font-size: 20px;
  line-height: 1.55;
}

/* one lev */
.lv-card {
  display: flex;
  flex: 0 1 420px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 24px;
}

.lv-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lv-card-title {
  font-size: 18px;
  font-weight: 600;
}

.lv-term {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lv-ring {
  flex: none;
  width: 96px;
  height: 96px;
}

.lv-ends {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lv-ends-label {
  color: var(--ll-accent);
  font-family: var(--ll-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lv-left {
  font-family: var(--ll-mono);
  font-size: 26px;
  font-weight: 500;
}

.lv-ends-note {
  color: var(--ll-body);
  font-size: 13px;
}

.lv-sheet {
  margin: 0;
}

.lv-sheet div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--ll-line);
  font-size: 14px;
}

.lv-sheet dt {
  color: var(--ll-body);
}

.lv-sheet dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* sections */
.lv-section {
  padding-block: 48px;
}

.lv-choose {
  padding-block: 40px;
}

.lv-users {
  padding-bottom: 88px;
}

.lv-section h2 {
  margin-bottom: 14px;
}

.lv-users h2 {
  margin-bottom: 24px;
}

.lv-section .ll-lead {
  margin-bottom: 20px;
}

.lv-choose .ll-lead {
  margin-bottom: 24px;
}

/* choices */
.lv-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.lv-tile {
  flex: 1 1 150px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--ll-line);
  border-radius: 12px;
  background: var(--ll-surface);
}

.lv-tile-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ll-body);
  font-family: var(--ll-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lv-tile-value {
  font-size: 16px;
  line-height: 1.45;
}

/* cards */
.lv-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lv-kcard {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 22px 24px;
}

.lv-label {
  color: var(--ll-accent);
  font-family: var(--ll-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lv-kcard p {
  color: var(--ll-body);
  font-size: 16px;
  line-height: 1.55;
}

.lv-link {
  position: relative;
  margin-top: auto;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
}

.lv-link::after {
  position: absolute;
  top: calc(50% - 22px);
  right: 0;
  left: 0;
  height: 44px;
  content: "";
}

/* scenario */
.lv-example {
  padding-top: 32px;
}

.lv-ex-head {
  margin-bottom: 16px;
}

.lv-ex-head .ll-lead {
  max-width: 880px;
  margin-bottom: 0;
}

.lv-scen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 26px;
}

.lv-ex-main,
.lv-ex-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lv-pick {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
}

.lv-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lv-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--ll-line);
  border-radius: 12px;
  background: var(--ll-surface);
  color: var(--ll-ink);
  font-family: var(--ll-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lv-day[aria-pressed="true"] {
  border-color: var(--ll-accent);
  background: var(--ll-tint-soft);
}

.lv-day svg {
  display: none;
  width: 100%;
  height: 26px;
}

.lv-day polyline {
  stroke: var(--ll-stroke);
}

.lv-day[aria-pressed="true"] polyline {
  stroke: var(--ll-accent);
}

.lv-day-title {
  font-size: 14px;
  font-weight: 600;
}

.lv-day-sub {
  color: var(--ll-body);
  font-size: 12px;
}

.lv-sc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.lv-sc-title {
  font-size: 16px;
  font-weight: 600;
}

.lv-sc-desc {
  flex: 1 1 260px;
  color: var(--ll-body);
  font-size: 14px;
}

/* chart */
.lv-chart-box {
  overflow-x: auto;
}

.lv-chart {
  display: block;
  width: 100%;
  height: auto;
}

.lv-chart text {
  font-family: var(--ll-mono);
  font-size: 8.75px;
}

.lv-line {
  stroke-dasharray: 1;
}

/* slices */
.lv-remain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ll-ground);
}

.lv-remain-text {
  font-size: 14px;
  font-weight: 600;
}

.lv-bars,
.lv-labs {
  display: flex;
  gap: 4px;
}

.lv-bars {
  height: 18px;
}

.lv-bar {
  flex: none;
  height: 100%;
  border-radius: 4px;
  background: var(--ll-accent);
}

.lv-bar.lv-cut {
  background: var(--ll-line);
}

.lv-lab {
  flex: none;
  overflow: hidden;
  color: var(--ll-body);
  font-family: var(--ll-mono);
  font-size: 11px;
  line-height: 1.3;
}

/* results */
.lv-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lv-res {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 12px 16px 14px;
  border: 1.5px solid var(--ll-line);
  border-radius: 12px;
  background: var(--ll-surface);
}

.lv-res:first-child {
  border-color: var(--ll-accent);
}

.lv-r-who {
  font-size: 15px;
  font-weight: 600;
}

.lv-r-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: -6px -10px -4px 0;
}

.lv-r-host {
  position: static;
  display: inline-flex;
}

.lv-r-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lv-r-info .ll-info {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.lv-r-post {
  color: var(--ll-body);
  font-family: var(--ll-mono);
  font-size: 12px;
}

.lv-r-tag {
  align-self: flex-start;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--ll-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.lv-r-v {
  font-family: var(--ll-mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.lv-r-roi {
  font-family: var(--ll-mono);
  font-size: 12px;
}

.lv-r-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--ll-grid);
}

.lv-gain .lv-r-tag,
.lv-gain .lv-r-v,
.lv-gain .lv-r-roi {
  color: var(--ll-accent);
}

.lv-liq .lv-r-tag,
.lv-liq .lv-r-v,
.lv-liq .lv-r-roi {
  color: var(--ll-liq);
}

.lv-r-note {
  top: calc(100% - 2px);
  right: 6px;
  bottom: auto;
  left: auto;
  width: 260px;
  max-width: calc(100% - 6px);
  padding: 10px 12px;
  line-height: 1.45;
  box-shadow: 0 12px 28px -12px rgba(15, 27, 45, 0.5);
}

.lv-sc-note {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.lv-foot {
  color: var(--ll-body);
  font-size: 12px;
  line-height: 1.5;
}

/* state */
.lv-main .lv-off {
  display: none;
}

/* motion */
.lv-wait .lv-line {
  stroke-dashoffset: 1;
}

.lv-wait .lv-mark {
  opacity: 0;
}

.lv-run-a .lv-line {
  animation: lv-draw-a 1.6s ease-out both;
}

.lv-run-b .lv-line {
  animation: lv-draw-b 1.6s ease-out both;
}

.lv-run-a .lv-m30 {
  animation: lv-fade-a 0.3s 0.8s both;
}

.lv-run-b .lv-m30 {
  animation: lv-fade-b 0.3s 0.8s both;
}

.lv-run-a .lv-m10 {
  animation: lv-fade-a 0.3s 1.3s both;
}

.lv-run-b .lv-m10 {
  animation: lv-fade-b 0.3s 1.3s both;
}

.lv-run-a .lv-dot {
  animation: lv-fade-a 0.3s both;
}

.lv-run-b .lv-dot {
  animation: lv-fade-b 0.3s both;
}

.lv-run-a .lv-bar.lv-cut {
  animation: lv-cut-a 0.4s both;
}

.lv-run-b .lv-bar.lv-cut {
  animation: lv-cut-b 0.4s both;
}

@keyframes lv-draw-a {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lv-draw-b {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lv-fade-a {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lv-fade-b {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lv-cut-a {
  from {
    background-color: var(--ll-accent);
  }
  to {
    background-color: var(--ll-line);
  }
}

@keyframes lv-cut-b {
  from {
    background-color: var(--ll-accent);
  }
  to {
    background-color: var(--ll-line);
  }
}

/* middle */
@media (max-width: 1279px) {
  .lv-chart text {
    font-size: 10.32px;
  }

  .lv-chart .lv-plab {
    transform: translateY(-0.5px);
  }

  .lv-chart .lv-plab-dip {
    transform: translate(-10px, -0.5px);
  }
}

/* narrow */
@media (max-width: 1023px) {
  .lv-example {
    padding-top: 48px;
  }

  .lv-ex-head {
    margin-bottom: 20px;
  }

  .lv-ex-head .ll-lead {
    max-width: 600px;
  }

  .lv-pick {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .lv-day {
    gap: 4px;
    padding: 12px 14px;
  }

  .lv-day svg {
    display: block;
  }

  .lv-day-title {
    font-size: 15px;
  }

  .lv-sc-head {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
  }

  .lv-sc-desc {
    order: 1;
    flex-basis: 100%;
    margin-top: -4px;
  }

  .lv-chart text {
    font-size: 13px;
  }

  .lv-chart .lv-plab {
    transform: translateY(-2px);
  }

  .lv-chart .lv-plab-dip {
    transform: translate(-60px, -2px);
  }
}

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

  .lv-title {
    font-size: 40px;
  }

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

  .lv-section {
    padding-block: 40px;
  }

  .lv-choose {
    padding-block: 32px;
  }

  .lv-users {
    padding-bottom: 64px;
  }

  .lv-scen {
    padding: 16px;
  }

  .lv-chart {
    min-width: 560px;
  }

  .lv-labs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .lv-lab {
    width: auto !important;
  }
}
